Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|triAndRes.1..y|triAndRes.2..y|triAndRes.3..y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|triAndRes.1..y|triAndRes.2..y|triAndRes.3..y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 111.4 kB / 16.42 MB, free: 6.469 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.001533/0.001533, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.463/1.463, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.603/2.603, allocations: 461.7 MB / 0.7352 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.91 kB / 1.055 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8425/0.8439, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond): time 0.003851/0.8479, allocations: 2.042 MB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00139/0.8493, allocations: 0.6662 MB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001887/0.8495, allocations: 0 / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 8.996e-05/0.8496, allocations: 19.73 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001962/0.8499, allocations: 47.59 kB / 1.211 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004825/0.8503, allocations: 123.5 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006968/0.8511, allocations: 0.5533 MB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003844/0.8514, allocations: 254.2 kB / 1.212 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003913/0.8518, allocations: 247.1 kB / 1.212 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003393/0.8522, allocations: 230.9 kB / 1.212 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.8523, allocations: 52 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.8525, allocations: 52 kB / 1.212 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.8526, allocations: 131.6 kB / 1.212 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003431/0.853, allocations: 238.7 kB / 1.213 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007374/0.8537, allocations: 0.6831 MB / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.8537, allocations: 0 / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.333e-06/0.8537, allocations: 0 / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.151e-05/0.8537, allocations: 0 / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002389/0.8561, allocations: 0.9974 MB / 1.214 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.8562, allocations: 8.031 kB / 1.214 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.8564, allocations: 60.28 kB / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006078/0.857, allocations: 395.8 kB / 1.215 GB, free: 6.781 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.35e-05/0.857, allocations: 33.36 kB / 1.215 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.334e-05/0.8571, allocations: 32.38 kB / 1.215 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.8584, allocations: 0.6743 MB / 1.216 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.8584, allocations: 3.938 kB / 1.216 GB, free: 6.004 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.8584, allocations: 19.92 kB / 1.216 GB, free: 5.984 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.8585, allocations: 8 kB / 1.216 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.8597, allocations: 0.6032 MB / 1.216 GB, free: 5.375 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002626/0.8623, allocations: 1.629 MB / 1.218 GB, free: 3.676 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/0.8641, allocations: 0.8861 MB / 1.219 GB, free: 2.734 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000654/0.8648, allocations: 356.8 kB / 1.219 GB, free: 2.367 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 5.173e-05/0.8649, allocations: 11.98 kB / 1.219 GB, free: 2.355 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009821/0.8659, allocations: 0.5254 MB / 1.219 GB, free: 1.801 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=51): time 3.146e-06/0.8659, allocations: 0 / 1.219 GB, free: 1.801 MB / 0.9356 GB Notification: Performance of matching and sorting (n=51): time 0.002346/0.8682, allocations: 1.088 MB / 1.221 GB, free: 0.707 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/0.8684, allocations: 277 kB / 1.221 GB, free: 384 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005692/0.869, allocations: 433.5 kB / 1.221 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.887e-05/0.8691, allocations: 41.7 kB / 1.221 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.8693, allocations: 204.9 kB / 1.221 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.8694, allocations: 126.4 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.8696, allocations: 118.1 kB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.8698, allocations: 358.8 kB / 1.222 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000621/0.8704, allocations: 298.8 kB / 1.222 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007272/0.8711, allocations: 485.8 kB / 1.223 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.8724, allocations: 0.7435 MB / 1.223 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.8724, allocations: 4 kB / 1.223 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001587/0.874, allocations: 0.807 MB / 1.224 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.471e-05/0.874, allocations: 33.7 kB / 1.224 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.8741, allocations: 8 kB / 1.224 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.8741, allocations: 8 kB / 1.224 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003711/0.8745, allocations: 99.77 kB / 1.224 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.8745, allocations: 8 kB / 1.224 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004281/0.8749, allocations: 91.64 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.635e-05/0.875, allocations: 24 kB / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005822/0.8756, allocations: 405 kB / 1.225 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005418/0.8761, allocations: 394 kB / 1.225 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000895/0.877, allocations: 0.6048 MB / 1.226 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.15e-06/0.877, allocations: 4 kB / 1.226 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.001149/0.8782, allocations: 0.6539 MB / 1.227 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.8782, allocations: 37.69 kB / 1.227 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.8783, allocations: 8 kB / 1.227 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.8783, allocations: 8.562 kB / 1.227 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.8785, allocations: 79.75 kB / 1.227 GB, free: 9.996 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.8786, allocations: 8 kB / 1.227 GB, free: 9.988 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/0.8789, allocations: 75.7 kB / 1.227 GB, free: 9.914 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.601e-05/0.879, allocations: 20 kB / 1.227 GB, free: 9.895 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 53 (triAndRes[1].uniDel1.firstTrigger,$PRE.triAndRes[1].uniDel1.firstTrigger,triAndRes[1].sam.firstTrigger,$PRE.triAndRes[1].sam.firstTrigger,triAndRes[1].sam.sampleTrigger,$whenCondition9,triAndRes[1].uniDel1.sampleTrigger,$whenCondition10,triAndRes[1].firstTrigger,$PRE.triAndRes[1].firstTrigger,triAndRes[1].sampleTrigger,$whenCondition7,triAndRes[2].uniDel1.firstTrigger,$PRE.triAndRes[2].uniDel1.firstTrigger,triAndRes[2].sam.firstTrigger,$PRE.triAndRes[2].sam.firstTrigger,triAndRes[2].sam.sampleTrigger,$whenCondition5,triAndRes[2].uniDel1.sampleTrigger,$whenCondition6,triAndRes[2].uniDel1.y,$PRE.triAndRes[2].uniDel1.y,triAndRes[2].sam.y,triAndRes[2].incY.y,triAndRes[2].firstTrigger,$PRE.triAndRes[2].firstTrigger,triAndRes[2].sampleTrigger,$whenCondition4,triAndRes[3].uniDel1.firstTrigger,$PRE.triAndRes[3].uniDel1.firstTrigger,triAndRes[3].sam.firstTrigger,$PRE.triAndRes[3].sam.firstTrigger,triAndRes[3].sam.sampleTrigger,$whenCondition2,triAndRes[3].uniDel1.sampleTrigger,$whenCondition3,triAndRes[3].uniDel1.y,$PRE.triAndRes[3].uniDel1.y,triAndRes[3].sam.y,triAndRes[3].incY.y,triAndRes[3].firstTrigger,$PRE.triAndRes[3].firstTrigger,triAndRes[3].sampleTrigger,$whenCondition1,triAndRes[1].uniDel1.y,$PRE.triAndRes[1].uniDel1.y,triAndRes[1].sam.y,triAndRes[1].incY.y,act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,$whenCondition8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0002665/0.8793, allocations: 260.6 kB / 1.227 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.8794, allocations: 51.42 kB / 1.227 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.8795, allocations: 59.3 kB / 1.227 GB, free: 9.523 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.8795, allocations: 7.984 kB / 1.227 GB, free: 9.516 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.8795, allocations: 0 / 1.227 GB, free: 9.516 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.8796, allocations: 128.5 kB / 1.227 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.284e-05/0.8797, allocations: 19.98 kB / 1.227 GB, free: 9.352 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005047/0.8803, allocations: 99.84 kB / 1.227 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.8804, allocations: 55.88 kB / 1.227 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001996/0.8824, allocations: 1.282 MB / 1.229 GB, free: 7.906 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001702/0.8841, allocations: 1.322 MB / 1.23 GB, free: 6.562 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007386/0.8849, allocations: 377.3 kB / 1.23 GB, free: 6.199 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003148/0.8852, allocations: 303.1 kB / 1.231 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of Backend: time 5.41e-07/0.8852, allocations: 4 kB / 1.231 GB, free: 5.898 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002213/0.8874, allocations: 0.8858 MB / 1.231 GB, free: 4.984 MB / 0.9512 GB Notification: Performance of SimCode: time 0.001793/0.8892, allocations: 1.268 MB / 1.233 GB, free: 3.672 MB / 0.9512 GB Notification: Performance of Templates: time 0.01757/0.9068, allocations: 10.18 MB / 1.243 GB, free: 9.559 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches