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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.351/1.351, allocations: 289.8 MB / 297.1 MB, free: 6.691 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.001022/0.001022, allocations: 177.3 kB / 366.3 MB, free: 2.023 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.015/1.015, allocations: 205.1 MB / 0.6256 GB, free: 5.84 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.0007915/0.0007914, allocations: 90.36 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.59e-06/5.62e-06, allocations: 0 / 0.859 GB, free: 13.37 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3882/0.3882, allocations: 116.3 MB / 0.9726 GB, free: 68.68 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1345/0.5227, allocations: 141.8 MB / 1.111 GB, free: 6.715 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.5229, allocations: 96.36 kB / 1.111 GB, free: 6.621 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.02064/0.5436, allocations: 7.496 MB / 1.118 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.762e-05/0.5437, allocations: 15.94 kB / 1.118 GB, free: 15.09 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.001722/0.5454, allocations: 0.8755 MB / 1.119 GB, free: 14.15 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.5454, allocations: 12.03 kB / 1.119 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.5456, allocations: 47.44 kB / 1.119 GB, free: 14.09 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000597/0.5462, allocations: 407.5 kB / 1.12 GB, free: 13.66 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.5462, allocations: 12 kB / 1.12 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.595e-05/0.5463, allocations: 33.66 kB / 1.12 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006432/0.547, allocations: 429.2 kB / 1.12 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007344/0.5477, allocations: 0.541 MB / 1.121 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.5477, allocations: 0 / 1.121 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.316e-05/0.5478, allocations: 3.906 kB / 1.121 GB, free: 12.61 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.5478, allocations: 12 kB / 1.121 GB, free: 12.6 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002299/0.5501, allocations: 1.575 MB / 1.122 GB, free: 10.97 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008791/0.551, allocations: 0.6483 MB / 1.123 GB, free: 10.27 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003437/0.5513, allocations: 282.3 kB / 1.123 GB, free: 9.973 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.5514, allocations: 8 kB / 1.123 GB, free: 9.965 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005113/0.5519, allocations: 425.6 kB / 1.124 GB, free: 9.516 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=51): time 2.425e-06/0.5519, allocations: 0.5625 kB / 1.124 GB, free: 9.516 MB / 0.7292 GB Notification: Performance of matching and sorting (n=51): time 0.0008362/0.5528, allocations: 0.54 MB / 1.124 GB, free: 8.969 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.5529, allocations: 289 kB / 1.124 GB, free: 8.625 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/0.5532, allocations: 327.3 kB / 1.125 GB, free: 8.297 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.471e-05/0.5533, allocations: 33.7 kB / 1.125 GB, free: 8.258 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.5534, allocations: 168.6 kB / 1.125 GB, free: 8.09 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.5535, allocations: 123.6 kB / 1.125 GB, free: 7.969 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.5536, allocations: 0 / 1.125 GB, free: 7.969 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.5537, allocations: 358.7 kB / 1.125 GB, free: 7.609 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002901/0.554, allocations: 209.2 kB / 1.126 GB, free: 7.402 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004329/0.5544, allocations: 393.7 kB / 1.126 GB, free: 6.949 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003239/0.5548, allocations: 243.7 kB / 1.126 GB, free: 6.711 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.5548, allocations: 4 kB / 1.126 GB, free: 6.707 MB / 0.7292 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008063/0.5556, allocations: 0.5647 MB / 1.127 GB, free: 6.137 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006257/0.5562, allocations: 1.834 MB / 1.129 GB, free: 4.152 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.5562, allocations: 4.438 kB / 1.129 GB, free: 4.148 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.5563, allocations: 15.98 kB / 1.129 GB, free: 4.133 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004024/0.5567, allocations: 103.8 kB / 1.129 GB, free: 4.031 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.5567, allocations: 8.562 kB / 1.129 GB, free: 4.023 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004452/0.5572, allocations: 87.7 kB / 1.129 GB, free: 3.938 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.257e-05/0.5572, allocations: 20 kB / 1.129 GB, free: 3.918 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 8.886e-06/0.5572, allocations: 10.88 kB / 1.129 GB, free: 3.91 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006536/0.5579, allocations: 469.9 kB / 1.129 GB, free: 3.453 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.5579, allocations: 4 kB / 1.129 GB, free: 3.449 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.808e-06/0.5579, allocations: 9.312 kB / 1.129 GB, free: 3.441 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003083/0.5582, allocations: 75.83 kB / 1.129 GB, free: 3.367 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.5583, allocations: 15.92 kB / 1.129 GB, free: 3.352 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.5586, allocations: 51.81 kB / 1.129 GB, free: 3.301 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.5586, allocations: 23.98 kB / 1.129 GB, free: 3.277 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.0001785/0.5588, allocations: 167.8 kB / 1.13 GB, free: 3.109 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.917e-05/0.5589, allocations: 43.44 kB / 1.13 GB, free: 3.066 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.559, allocations: 50.89 kB / 1.13 GB, free: 3.012 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.559, allocations: 4.656 kB / 1.13 GB, free: 3.008 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.5591, allocations: 4 kB / 1.13 GB, free: 3.004 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.5591, allocations: 3.984 kB / 1.13 GB, free: 3 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/0.5609, allocations: 1.596 MB / 1.131 GB, free: 1.355 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5609, allocations: 0 / 1.131 GB, free: 1.355 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003264/0.5613, allocations: 87.86 kB / 1.131 GB, free: 1.27 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.5613, allocations: 4 kB / 1.131 GB, free: 1.266 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/0.5613, allocations: 12.64 kB / 1.131 GB, free: 1.254 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.5613, allocations: 8 kB / 1.131 GB, free: 1.246 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5613, allocations: 7.906 kB / 1.131 GB, free: 1.238 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008732/0.5622, allocations: 1.048 MB / 1.132 GB, free: 144 kB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.768e-05/0.5623, allocations: 120.6 kB / 1.132 GB, free: 4 kB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.5625, allocations: 12.05 kB / 1.132 GB, free: 15.99 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006949/0.5632, allocations: 111.9 kB / 1.133 GB, free: 15.88 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.5633, allocations: 56.88 kB / 1.133 GB, free: 15.83 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.5633, allocations: 16 kB / 1.133 GB, free: 15.81 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0002292/0.5636, allocations: 255 kB / 1.133 GB, free: 15.56 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0008057/0.5644, allocations: 167.5 kB / 1.133 GB, free: 15.4 MB / 0.7448 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.0001969/0.5646, allocations: 150 kB / 1.133 GB, free: 15.25 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001116/0.5657, allocations: 0.8491 MB / 1.134 GB, free: 14.39 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5657, allocations: 0 / 1.134 GB, free: 14.39 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004145/0.5661, allocations: 303.6 kB / 1.134 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006103/0.5667, allocations: 66.58 kB / 1.134 GB, free: 14.03 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.5682, allocations: 0.7915 MB / 1.135 GB, free: 13.2 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006431/0.5689, allocations: 0.9603 MB / 1.136 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of SimCode: time 2.91e-07/0.5689, allocations: 2.25 kB / 1.136 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of Templates: time 0.01286/0.5818, allocations: 7.935 MB / 1.144 GB, free: 4.359 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)