Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_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.0.1-maint.8.0.x/package.mo): time 1.289/1.289, allocations: 285.5 MB / 292.8 MB, free: 10.48 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.0009592/0.0009593, allocations: 185.3 kB / 361.1 MB, free: 7.117 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9728/0.9728, allocations: 205.1 MB / 0.6195 GB, free: 10.31 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.0007742/0.0007742, allocations: 96.53 kB / 0.7326 GB, free: 44.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.54e-06/5.57e-06, allocations: 0 / 0.8511 GB, free: 3.004 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3896, allocations: 115.3 MB / 0.9637 GB, free: 78.28 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1306/0.5202, allocations: 140.8 MB / 1.101 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.5205, allocations: 89.02 kB / 1.101 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.02028/0.5408, allocations: 7.498 MB / 1.109 GB, free: 7.66 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.264e-05/0.5408, allocations: 11.98 kB / 1.109 GB, free: 7.648 MB / 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.001569/0.5424, allocations: 0.8755 MB / 1.109 GB, free: 6.715 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.5424, allocations: 8.531 kB / 1.109 GB, free: 6.707 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.5426, allocations: 55.42 kB / 1.11 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005358/0.5431, allocations: 395.5 kB / 1.11 GB, free: 6.227 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.5431, allocations: 25.3 kB / 1.11 GB, free: 6.203 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.256e-05/0.5432, allocations: 20 kB / 1.11 GB, free: 6.184 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000604/0.5438, allocations: 429.3 kB / 1.11 GB, free: 5.766 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006971/0.5445, allocations: 0.541 MB / 1.111 GB, free: 5.188 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.5445, allocations: 0 / 1.111 GB, free: 5.188 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.5446, allocations: 11.89 kB / 1.111 GB, free: 5.176 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.5446, allocations: 8 kB / 1.111 GB, free: 5.168 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.5467, allocations: 1.575 MB / 1.112 GB, free: 3.535 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008393/0.5476, allocations: 0.6492 MB / 1.113 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003158/0.5479, allocations: 274.2 kB / 1.113 GB, free: 2.547 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.8e-05/0.548, allocations: 15.97 kB / 1.113 GB, free: 2.531 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004978/0.5485, allocations: 426.6 kB / 1.114 GB, free: 2.086 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=51): time 1.844e-06/0.5485, allocations: 0 / 1.114 GB, free: 2.086 MB / 0.7136 GB Notification: Performance of matching and sorting (n=51): time 0.0007968/0.5493, allocations: 0.539 MB / 1.114 GB, free: 1.543 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/0.5494, allocations: 285 kB / 1.115 GB, free: 1.203 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002963/0.5497, allocations: 327.4 kB / 1.115 GB, free: 0.875 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.015e-05/0.5498, allocations: 41.69 kB / 1.115 GB, free: 0.8281 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.487e-05/0.5499, allocations: 176.4 kB / 1.115 GB, free: 0.6523 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.55, allocations: 114.5 kB / 1.115 GB, free: 0.5391 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.322e-05/0.55, allocations: 0 / 1.115 GB, free: 0.5391 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.5501, allocations: 366.7 kB / 1.116 GB, free: 176 kB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002801/0.5504, allocations: 205.2 kB / 1.116 GB, free: 15.97 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/0.5508, allocations: 393.6 kB / 1.116 GB, free: 15.52 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.5511, allocations: 243.8 kB / 1.116 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.5511, allocations: 0 / 1.116 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007852/0.5519, allocations: 0.5729 MB / 1.117 GB, free: 14.7 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005643/0.5525, allocations: 1.825 MB / 1.119 GB, free: 12.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.5525, allocations: 4.438 kB / 1.119 GB, free: 12.73 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.5525, allocations: 8 kB / 1.119 GB, free: 12.72 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003869/0.5529, allocations: 107.8 kB / 1.119 GB, free: 12.61 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.816e-05/0.553, allocations: 15.94 kB / 1.119 GB, free: 12.6 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004302/0.5534, allocations: 89.08 kB / 1.119 GB, free: 12.51 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/0.5534, allocations: 24 kB / 1.119 GB, free: 12.49 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 6.683e-06/0.5535, allocations: 7.906 kB / 1.119 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006276/0.5541, allocations: 467.9 kB / 1.119 GB, free: 12.03 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.5541, allocations: 4 kB / 1.119 GB, free: 12.02 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.726e-06/0.5541, allocations: 8.188 kB / 1.119 GB, free: 12.02 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.5544, allocations: 76.39 kB / 1.119 GB, free: 11.94 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.5544, allocations: 8 kB / 1.119 GB, free: 11.93 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.5547, allocations: 55.8 kB / 1.12 GB, free: 11.88 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.301e-05/0.5548, allocations: 24 kB / 1.12 GB, free: 11.86 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.0001608/0.5549, allocations: 163.1 kB / 1.12 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.167e-05/0.555, allocations: 51.42 kB / 1.12 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.992e-05/0.5551, allocations: 50.83 kB / 1.12 GB, free: 11.59 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.5551, allocations: 8 kB / 1.12 GB, free: 11.58 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5551, allocations: 0 / 1.12 GB, free: 11.58 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.5552, allocations: 7.984 kB / 1.12 GB, free: 11.57 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.5569, allocations: 1.596 MB / 1.121 GB, free: 9.93 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.5569, allocations: 0 / 1.121 GB, free: 9.93 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003129/0.5572, allocations: 83.86 kB / 1.121 GB, free: 9.848 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.5572, allocations: 4 kB / 1.121 GB, free: 9.844 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.254e-05/0.5573, allocations: 8 kB / 1.121 GB, free: 9.836 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.5573, allocations: 7.984 kB / 1.121 GB, free: 9.828 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.279e-05/0.5573, allocations: 9.719 kB / 1.121 GB, free: 9.82 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008571/0.5581, allocations: 1.051 MB / 1.123 GB, free: 8.723 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.947e-05/0.5582, allocations: 120.6 kB / 1.123 GB, free: 8.586 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.033e-05/0.5583, allocations: 12 kB / 1.123 GB, free: 8.574 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006876/0.559, allocations: 114.4 kB / 1.123 GB, free: 8.465 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.5591, allocations: 47.94 kB / 1.123 GB, free: 8.418 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.726e-05/0.5592, allocations: 19.98 kB / 1.123 GB, free: 8.398 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0002155/0.5594, allocations: 259 kB / 1.123 GB, free: 8.148 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0007287/0.5601, allocations: 163.5 kB / 1.123 GB, free: 7.988 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.0001673/0.5603, allocations: 142.9 kB / 1.123 GB, free: 7.84 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001037/0.5613, allocations: 0.8512 MB / 1.124 GB, free: 6.977 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5614, allocations: 4 kB / 1.124 GB, free: 6.973 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.5617, allocations: 294.2 kB / 1.124 GB, free: 6.688 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.5623, allocations: 79.11 kB / 1.125 GB, free: 6.617 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.5637, allocations: 0.7923 MB / 1.125 GB, free: 5.781 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005702/0.5643, allocations: 0.9727 MB / 1.126 GB, free: 4.781 MB / 0.7292 GB Notification: Performance of SimCode: time 3.5e-07/0.5643, allocations: 0 / 1.126 GB, free: 4.781 MB / 0.7292 GB Notification: Performance of Templates: time 0.01181/0.5761, allocations: 7.939 MB / 1.134 GB, free: 12.97 MB / 0.7448 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)