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.597/1.597, allocations: 289.9 MB / 297.4 MB, free: 6.332 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.001226/0.001226, allocations: 184.5 kB / 366.7 MB, free: 1.637 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.2 MB / 0.626 GB, free: 7.156 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.0009803/0.0009805, allocations: 84.8 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.395e-05/2.397e-05, allocations: 7.984 kB / 0.8597 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7265/0.7265, allocations: 116.3 MB / 0.9733 GB, free: 76.21 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1986/0.9251, allocations: 141.9 MB / 1.112 GB, free: 8.332 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.9254, allocations: 92.58 kB / 1.112 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02115/0.9466, allocations: 7.818 MB / 1.12 GB, free: 456 kB / 0.7136 GB Notification: Performance of FrontEnd: time 1.242e-06/0.9467, allocations: 0 / 1.12 GB, free: 456 kB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.924e-05/0.9467, allocations: 16 kB / 1.12 GB, free: 440 kB / 0.7136 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.001954/0.9487, allocations: 0.8882 MB / 1.12 GB, free: 15.49 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.9487, allocations: 8.031 kB / 1.12 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.9489, allocations: 59.3 kB / 1.12 GB, free: 15.42 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006378/0.9496, allocations: 396.5 kB / 1.121 GB, free: 14.99 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.605e-05/0.9496, allocations: 16 kB / 1.121 GB, free: 14.98 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.315e-05/0.9497, allocations: 27.98 kB / 1.121 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006509/0.9504, allocations: 409.2 kB / 1.121 GB, free: 14.55 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007841/0.9512, allocations: 0.5254 MB / 1.122 GB, free: 13.99 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.9512, allocations: 0 / 1.122 GB, free: 13.99 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.282e-05/0.9512, allocations: 0 / 1.122 GB, free: 13.99 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.9512, allocations: 11.95 kB / 1.122 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0024/0.9537, allocations: 1.583 MB / 1.123 GB, free: 12.34 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.9547, allocations: 0.6873 MB / 1.124 GB, free: 11.59 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003509/0.9551, allocations: 268.3 kB / 1.124 GB, free: 11.32 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.333e-05/0.9552, allocations: 7.984 kB / 1.124 GB, free: 11.31 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005936/0.9558, allocations: 447.2 kB / 1.125 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=51): time 4.338e-06/0.9558, allocations: 4 kB / 1.125 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of matching and sorting (n=51): time 0.0009751/0.9568, allocations: 0.5964 MB / 1.125 GB, free: 10.24 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.9569, allocations: 284.9 kB / 1.126 GB, free: 9.898 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.9573, allocations: 325 kB / 1.126 GB, free: 9.574 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 6.608e-05/0.9573, allocations: 38.91 kB / 1.126 GB, free: 9.531 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.9575, allocations: 204.7 kB / 1.126 GB, free: 9.324 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.9576, allocations: 122.4 kB / 1.126 GB, free: 9.203 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-05/0.9576, allocations: 0 / 1.126 GB, free: 9.203 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.9578, allocations: 362.8 kB / 1.127 GB, free: 8.84 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002803/0.9581, allocations: 193 kB / 1.127 GB, free: 8.648 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/0.9585, allocations: 381 kB / 1.127 GB, free: 8.203 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003275/0.9588, allocations: 239.7 kB / 1.127 GB, free: 7.973 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.9588, allocations: 4 kB / 1.127 GB, free: 7.969 MB / 0.7292 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008442/0.9597, allocations: 0.5575 MB / 1.128 GB, free: 7.406 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008098/0.9605, allocations: 1.863 MB / 1.13 GB, free: 5.395 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.9605, allocations: 8 kB / 1.13 GB, free: 5.387 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.821e-05/0.9606, allocations: 8 kB / 1.13 GB, free: 5.379 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004215/0.961, allocations: 110.8 kB / 1.13 GB, free: 5.273 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.961, allocations: 15.98 kB / 1.13 GB, free: 5.258 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004468/0.9615, allocations: 91.75 kB / 1.13 GB, free: 5.168 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.631e-05/0.9615, allocations: 23.98 kB / 1.13 GB, free: 5.145 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 9.427e-06/0.9615, allocations: 4 kB / 1.13 GB, free: 5.141 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007053/0.9623, allocations: 459.3 kB / 1.13 GB, free: 4.691 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.9623, allocations: 8.547 kB / 1.13 GB, free: 4.684 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.9623, allocations: 8 kB / 1.13 GB, free: 4.676 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.9626, allocations: 87.75 kB / 1.131 GB, free: 4.59 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.9626, allocations: 11.08 kB / 1.131 GB, free: 4.582 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003383/0.9629, allocations: 59.78 kB / 1.131 GB, free: 4.523 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.963, allocations: 21.95 kB / 1.131 GB, free: 4.504 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 () * 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.0002137/0.9632, allocations: 160.8 kB / 1.131 GB, free: 4.34 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.557e-05/0.9633, allocations: 47.53 kB / 1.131 GB, free: 4.293 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.9634, allocations: 54.88 kB / 1.131 GB, free: 4.238 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.9635, allocations: 4 kB / 1.131 GB, free: 4.234 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.9635, allocations: 11.95 kB / 1.131 GB, free: 4.223 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.9635, allocations: 0 / 1.131 GB, free: 4.223 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002044/0.9655, allocations: 1.646 MB / 1.132 GB, free: 2.531 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.9656, allocations: 4 kB / 1.132 GB, free: 2.527 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003347/0.9659, allocations: 87.84 kB / 1.133 GB, free: 2.441 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-05/0.9659, allocations: 4 kB / 1.133 GB, free: 2.438 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.994e-05/0.966, allocations: 11.98 kB / 1.133 GB, free: 2.426 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.966, allocations: 0 / 1.133 GB, free: 2.426 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/0.966, allocations: 4 kB / 1.133 GB, free: 2.422 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.9672, allocations: 1.113 MB / 1.134 GB, free: 1.262 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.9674, allocations: 116.6 kB / 1.134 GB, free: 1.129 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.924e-05/0.9675, allocations: 21.81 kB / 1.134 GB, free: 1.109 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007267/0.9682, allocations: 115.8 kB / 1.134 GB, free: 0.9961 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.9684, allocations: 47.94 kB / 1.134 GB, free: 0.9492 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.245e-05/0.9684, allocations: 18.89 kB / 1.134 GB, free: 0.9336 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0003208/0.9688, allocations: 260.5 kB / 1.134 GB, free: 0.6797 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9688, allocations: 0 / 1.134 GB, free: 0.6797 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.00105/0.9698, allocations: 163.5 kB / 1.134 GB, free: 0.5195 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) * 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.0002802/0.9701, allocations: 140.5 kB / 1.135 GB, free: 384 kB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001466/0.9716, allocations: 0.8781 MB / 1.135 GB, free: 15.47 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.9716, allocations: 0 / 1.135 GB, free: 15.47 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004814/0.9721, allocations: 291.1 kB / 1.136 GB, free: 15.19 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008225/0.9729, allocations: 73.92 kB / 1.136 GB, free: 15.12 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.975, allocations: 0.7658 MB / 1.136 GB, free: 14.31 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008007/0.9758, allocations: 0.9257 MB / 1.137 GB, free: 13.36 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0007478/0.9765, allocations: 293.2 kB / 1.138 GB, free: 13.07 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.9767, allocations: 35.44 kB / 1.138 GB, free: 13.04 MB / 0.7448 GB Notification: Performance of SimCode: time 1.082e-06/0.9767, allocations: 0 / 1.138 GB, free: 13.04 MB / 0.7448 GB Notification: Performance of Templates: time 0.01334/0.99, allocations: 5.927 MB / 1.143 GB, free: 7.246 MB / 0.7448 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)