Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.796/1.796, allocations: 292.6 MB / 307.5 MB, free: 5.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001712/0.001713, allocations: 172.1 kB / 377.1 MB, free: 1.531 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.013/2.013, allocations: 205.4 MB / 0.6367 GB, free: 8.633 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001187/0.001187, allocations: 89.77 kB / 0.751 GB, free: 62.86 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004808/0.0004809, allocations: 8 kB / 0.8748 GB, free: 11.19 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.347, allocations: 116.3 MB / 0.9884 GB, free: 6.734 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8022/1.149, allocations: 142.6 MB / 1.128 GB, free: 32.86 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/1.15, allocations: 90.75 kB / 1.128 GB, free: 32.79 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.02046/1.17, allocations: 7.885 MB / 1.135 GB, free: 27.33 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.295e-06/1.17, allocations: 4.688 kB / 1.135 GB, free: 27.32 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.482e-05/1.17, allocations: 12 kB / 1.135 GB, free: 27.31 MB / 0.7292 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.00172/1.172, allocations: 0.9411 MB / 1.136 GB, free: 26.44 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/1.172, allocations: 12.02 kB / 1.136 GB, free: 26.43 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/1.172, allocations: 61.22 kB / 1.136 GB, free: 26.38 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006461/1.173, allocations: 398.8 kB / 1.137 GB, free: 25.98 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/1.173, allocations: 31.39 kB / 1.137 GB, free: 25.96 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.586e-05/1.173, allocations: 33.78 kB / 1.137 GB, free: 25.93 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/1.174, allocations: 0.6649 MB / 1.138 GB, free: 25.38 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/1.174, allocations: 4 kB / 1.138 GB, free: 25.37 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.355e-05/1.174, allocations: 15.86 kB / 1.138 GB, free: 25.36 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/1.174, allocations: 8 kB / 1.138 GB, free: 25.35 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/1.175, allocations: 0.6126 MB / 1.138 GB, free: 24.88 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002884/1.178, allocations: 1.681 MB / 1.14 GB, free: 23.43 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002231/1.181, allocations: 0.953 MB / 1.141 GB, free: 22.63 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.352e-05/1.181, allocations: 17.84 kB / 1.141 GB, free: 22.62 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001326/1.182, allocations: 0.5428 MB / 1.141 GB, free: 22.19 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=51): time 6.633e-06/1.182, allocations: 2.438 kB / 1.141 GB, free: 22.19 MB / 0.7292 GB Notification: Performance of matching and sorting (n=51): time 0.003019/1.185, allocations: 1.14 MB / 1.142 GB, free: 21.29 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001983/1.185, allocations: 290.3 kB / 1.143 GB, free: 20.95 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006374/1.186, allocations: 392.4 kB / 1.143 GB, free: 20.62 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 7.632e-05/1.186, allocations: 45.88 kB / 1.143 GB, free: 20.57 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/1.186, allocations: 210.7 kB / 1.143 GB, free: 20.38 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/1.186, allocations: 128.3 kB / 1.143 GB, free: 20.26 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/1.186, allocations: 12 kB / 1.143 GB, free: 20.25 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001941/1.187, allocations: 362.6 kB / 1.144 GB, free: 19.9 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007331/1.187, allocations: 306.1 kB / 1.144 GB, free: 19.68 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009277/1.188, allocations: 497.8 kB / 1.145 GB, free: 19.21 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008198/1.189, allocations: 369.8 kB / 1.145 GB, free: 18.91 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/1.189, allocations: 4 kB / 1.145 GB, free: 18.9 MB / 0.7292 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001887/1.191, allocations: 0.838 MB / 1.146 GB, free: 18.2 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007819/1.192, allocations: 1.861 MB / 1.148 GB, free: 16.19 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/1.192, allocations: 7.938 kB / 1.148 GB, free: 16.18 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.974e-05/1.192, allocations: 8 kB / 1.148 GB, free: 16.18 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004833/1.192, allocations: 116.2 kB / 1.148 GB, free: 16.09 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/1.192, allocations: 5.422 kB / 1.148 GB, free: 16.09 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005471/1.193, allocations: 102.6 kB / 1.148 GB, free: 16.01 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.775e-05/1.193, allocations: 25.98 kB / 1.148 GB, free: 15.99 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 9.278e-06/1.193, allocations: 8.562 kB / 1.148 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001205/1.194, allocations: 0.6094 MB / 1.148 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/1.194, allocations: 8 kB / 1.148 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/1.194, allocations: 12.36 kB / 1.148 GB, free: 15.43 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002854/1.195, allocations: 79.53 kB / 1.148 GB, free: 15.37 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/1.195, allocations: 10.22 kB / 1.148 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003789/1.195, allocations: 79.62 kB / 1.149 GB, free: 15.3 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/1.195, allocations: 21.62 kB / 1.149 GB, free: 15.28 MB / 0.7292 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 ($PRE.triAndRes[1].uniDel1.firstTrigger,triAndRes[1].uniDel1.firstTrigger,$PRE.triAndRes[1].sam.firstTrigger,triAndRes[1].sam.firstTrigger,$whenCondition9,triAndRes[1].sam.sampleTrigger,$whenCondition10,triAndRes[1].uniDel1.sampleTrigger,$PRE.triAndRes[1].firstTrigger,triAndRes[1].firstTrigger,$whenCondition7,triAndRes[1].sampleTrigger,$PRE.triAndRes[2].uniDel1.firstTrigger,triAndRes[2].uniDel1.firstTrigger,$PRE.triAndRes[2].sam.firstTrigger,triAndRes[2].sam.firstTrigger,$whenCondition5,triAndRes[2].sam.sampleTrigger,$whenCondition6,triAndRes[2].uniDel1.sampleTrigger,triAndRes[2].incY.y,triAndRes[2].sam.y,$PRE.triAndRes[2].uniDel1.y,triAndRes[2].uniDel1.y,$PRE.triAndRes[2].firstTrigger,triAndRes[2].firstTrigger,$whenCondition4,triAndRes[2].sampleTrigger,$PRE.triAndRes[3].uniDel1.firstTrigger,triAndRes[3].uniDel1.firstTrigger,$PRE.triAndRes[3].sam.firstTrigger,triAndRes[3].sam.firstTrigger,$whenCondition2,triAndRes[3].sam.sampleTrigger,$whenCondition3,triAndRes[3].uniDel1.sampleTrigger,triAndRes[3].incY.y,triAndRes[3].sam.y,$PRE.triAndRes[3].uniDel1.y,triAndRes[3].uniDel1.y,$PRE.triAndRes[3].firstTrigger,triAndRes[3].firstTrigger,$whenCondition1,triAndRes[3].sampleTrigger,$whenCondition8,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count,triAndRes[1].incY.y,triAndRes[1].sam.y,$PRE.triAndRes[1].uniDel1.y,triAndRes[1].uniDel1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007042/1.196, allocations: 365 kB / 1.149 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/1.196, allocations: 44.89 kB / 1.149 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001464/1.196, allocations: 58.22 kB / 1.149 GB, free: 14.85 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/1.196, allocations: 15.89 kB / 1.149 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.253e-05/1.196, allocations: 0 / 1.149 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.065e-05/1.196, allocations: 13.86 kB / 1.149 GB, free: 14.83 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003414/1.2, allocations: 1.931 MB / 1.151 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/1.2, allocations: 0.7031 kB / 1.151 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003149/1.2, allocations: 96.88 kB / 1.151 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/1.2, allocations: 4.938 kB / 1.151 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.066e-05/1.2, allocations: 11.19 kB / 1.151 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/1.2, allocations: 4.562 kB / 1.151 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.2, allocations: 0.8125 kB / 1.151 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/1.202, allocations: 1.335 MB / 1.152 GB, free: 11.85 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/1.202, allocations: 131.3 kB / 1.152 GB, free: 11.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.284e-05/1.202, allocations: 15.75 kB / 1.153 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006931/1.203, allocations: 122.5 kB / 1.153 GB, free: 11.61 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/1.203, allocations: 53.94 kB / 1.153 GB, free: 11.57 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/1.203, allocations: 15.47 kB / 1.153 GB, free: 11.56 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0003439/1.203, allocations: 311.1 kB / 1.153 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.7e-07/1.203, allocations: 4 kB / 1.153 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0009068/1.204, allocations: 185.5 kB / 1.153 GB, free: 11.12 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 39 (triAndRes[3].sampleTrigger,$whenCondition1,triAndRes[3].firstTrigger,triAndRes[3].uniDel1.sampleTrigger,triAndRes[3].sam.sampleTrigger,$whenCondition3,$whenCondition2,triAndRes[3].incY.y,triAndRes[3].sam.firstTrigger,triAndRes[3].sam.y,triAndRes[3].uniDel1.firstTrigger,triAndRes[3].uniDel1.y,triAndRes[2].sampleTrigger,$whenCondition4,triAndRes[2].firstTrigger,triAndRes[2].uniDel1.sampleTrigger,triAndRes[2].sam.sampleTrigger,$whenCondition6,$whenCondition5,triAndRes[2].incY.y,triAndRes[2].sam.firstTrigger,triAndRes[2].sam.y,triAndRes[2].uniDel1.firstTrigger,triAndRes[2].uniDel1.y,triAndRes[1].sampleTrigger,$whenCondition7,triAndRes[1].firstTrigger,triAndRes[1].uniDel1.sampleTrigger,triAndRes[1].sam.sampleTrigger,$whenCondition10,$whenCondition9,$whenCondition8,act1.T_start,act1.count,triAndRes[1].incY.y,triAndRes[1].sam.firstTrigger,triAndRes[1].sam.y,triAndRes[1].uniDel1.firstTrigger,triAndRes[1].uniDel1.y) * Number of discrete states: 4 (act1.count,triAndRes[1].uniDel1.u,triAndRes[2].uniDel1.u,triAndRes[3].uniDel1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002314/1.204, allocations: 156.9 kB / 1.153 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.002038/1.206, allocations: 1.14 MB / 1.154 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/1.206, allocations: 64 / 1.154 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0006751/1.207, allocations: 395.3 kB / 1.155 GB, free: 9.711 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000647/1.208, allocations: 85.56 kB / 1.155 GB, free: 9.648 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/1.209, allocations: 1.15 MB / 1.156 GB, free: 8.617 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/1.21, allocations: 0.9217 MB / 1.157 GB, free: 7.75 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.000478/1.21, allocations: 205.8 kB / 1.157 GB, free: 7.621 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/1.21, allocations: 41.73 kB / 1.157 GB, free: 7.582 MB / 0.7292 GB Notification: Performance of SimCode: time 6.01e-07/1.21, allocations: 4.938 kB / 1.157 GB, free: 7.578 MB / 0.7292 GB Notification: Performance of Templates: time 0.01021/1.221, allocations: 6.08 MB / 1.163 GB, free: 3.031 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)