Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 96.62 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.012/0.012, allocations: 169.8 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.685/2.685, allocations: 437.8 MB / 0.7121 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003644, allocations: 8 kB / 0.8728 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8149/0.8153, allocations: 153.8 MB / 1.023 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001183/0.8166, allocations: 428.7 kB / 1.023 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001724/0.8183, allocations: 1.058 MB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.309e-05/0.8184, allocations: 0 / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/0.8184, allocations: 7.875 kB / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.695e-05/0.8185, allocations: 3.938 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.8188, allocations: 43.95 kB / 1.025 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.8189, allocations: 63.83 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.8191, allocations: 15.98 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.167e-05/0.8192, allocations: 19.92 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.482e-05/0.8192, allocations: 31.84 kB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.771e-05/0.8193, allocations: 4 kB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.619e-05/0.8194, allocations: 23.97 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.201e-05/0.8194, allocations: 7.984 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.02e-05/0.8195, allocations: 53.5 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.8196, allocations: 71.8 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.8196, allocations: 0 / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.824e-06/0.8196, allocations: 3.938 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.8197, allocations: 0 / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006424/0.8203, allocations: 381.3 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.8204, allocations: 12.02 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.24e-05/0.8204, allocations: 4.938 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.8205, allocations: 172.2 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.919e-05/0.8206, allocations: 4.375 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.8206, allocations: 12.38 kB / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.8208, allocations: 82.2 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.8209, allocations: 192 / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.8209, allocations: 3.938 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.8209, allocations: 4 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002214/0.8211, allocations: 63.95 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005174/0.8216, allocations: 316.7 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002057/0.8219, allocations: 86.48 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.822, allocations: 52.83 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.822, allocations: 0 / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.8223, allocations: 99.59 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.8223, allocations: 3.938 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0005272/0.8228, allocations: 193.5 kB / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.8229, allocations: 55.41 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.823, allocations: 109.8 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.823, allocations: 25.7 kB / 1.026 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.24e-05/0.8231, allocations: 96.64 kB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.182e-05/0.8231, allocations: 23.66 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.352e-05/0.8232, allocations: 21.7 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.8233, allocations: 318.8 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.8235, allocations: 47.91 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.8236, allocations: 66.53 kB / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.8239, allocations: 114.4 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.8239, allocations: 0 / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003326/0.8243, allocations: 157.5 kB / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.8243, allocations: 11.98 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.8243, allocations: 0 / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.8243, allocations: 0 / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.8245, allocations: 31.98 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.8245, allocations: 0 / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.504e-05/0.8245, allocations: 15.91 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.8246, allocations: 7.984 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00012/0.8247, allocations: 125.8 kB / 1.027 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/0.8247, allocations: 7.906 kB / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003741/0.8251, allocations: 157.9 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.8251, allocations: 0 / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.8251, allocations: 256 / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.8251, allocations: 4 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005572/0.8257, allocations: 426.3 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.8257, allocations: 0 / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.763e-05/0.8258, allocations: 19.92 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.8258, allocations: 0 / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.8258, allocations: 0 / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.8258, allocations: 7.984 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.8258, allocations: 4 kB / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/0.8262, allocations: 251.4 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-05/0.8262, allocations: 77.11 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.8263, allocations: 7.984 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.8264, allocations: 16 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.645e-05/0.8264, allocations: 3.984 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.8264, allocations: 7.938 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.763e-05/0.8265, allocations: 87.27 kB / 1.028 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3e-07/0.8265, allocations: 0 / 1.028 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002474/0.8268, allocations: 19.91 kB / 1.028 GB, free: 9.977 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002016/0.827, allocations: 111.2 kB / 1.029 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003387/0.8273, allocations: 111.8 kB / 1.029 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.8273, allocations: 0 / 1.029 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.8275, allocations: 52.05 kB / 1.029 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.8277, allocations: 15.98 kB / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004052/0.8282, allocations: 175.3 kB / 1.029 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.8285, allocations: 0.6887 MB / 1.03 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.813e-05/0.8285, allocations: 12.42 kB / 1.03 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.863e-05/0.8285, allocations: 11.44 kB / 1.03 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.8285, allocations: 0 / 1.03 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of Templates: time 0.003458/0.832, allocations: 0.9227 MB / 1.03 GB, free: 7.84 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches