Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.706/1.706, allocations: 387.2 MB / 394.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009294/0.0009293, allocations: 189.2 kB / 487 MB, free: 5.32 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.076/1.076, allocations: 221.3 MB / 0.7819 GB, free: 1.332 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008187/0.0008188, allocations: 105.8 kB / 0.9213 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.079e-06/5.1e-06, allocations: 0 / 1.066 GB, free: 167.7 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.165, allocations: 142.3 MB / 1.205 GB, free: 25.68 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4531/0.6181, allocations: 152 MB / 1.354 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.6184, allocations: 92.81 kB / 1.354 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01921/0.6376, allocations: 7.567 MB / 1.361 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.815e-05/0.6376, allocations: 8 kB / 1.361 GB, free: 13.86 MB / 0.8073 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.001403/0.639, allocations: 0.8618 MB / 1.362 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.869e-05/0.6391, allocations: 13.03 kB / 1.362 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.375e-05/0.6392, allocations: 55.55 kB / 1.362 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004351/0.6396, allocations: 392.2 kB / 1.362 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.6396, allocations: 19.94 kB / 1.362 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.137e-05/0.6397, allocations: 31.73 kB / 1.362 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005038/0.6402, allocations: 427.8 kB / 1.363 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000564/0.6408, allocations: 0.5423 MB / 1.363 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.6408, allocations: 0 / 1.363 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/0.6408, allocations: 0 / 1.363 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.6409, allocations: 8 kB / 1.363 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.6425, allocations: 1.575 MB / 1.365 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006851/0.6432, allocations: 0.6457 MB / 1.366 GB, free: 9.895 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002499/0.6435, allocations: 275.2 kB / 1.366 GB, free: 9.672 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.6435, allocations: 16.77 kB / 1.366 GB, free: 9.66 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00038/0.6439, allocations: 434.6 kB / 1.366 GB, free: 9.289 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=51): time 1.533e-06/0.6439, allocations: 0 / 1.366 GB, free: 9.289 MB / 0.8073 GB Notification: Performance of matching and sorting (n=51): time 0.0006455/0.6446, allocations: 0.5401 MB / 1.367 GB, free: 8.855 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.6446, allocations: 295 kB / 1.367 GB, free: 8.516 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.6449, allocations: 311.5 kB / 1.367 GB, free: 8.262 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/0.6449, allocations: 40.81 kB / 1.367 GB, free: 8.219 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.701e-05/0.645, allocations: 162.8 kB / 1.368 GB, free: 8.066 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 7.174e-05/0.6451, allocations: 118.3 kB / 1.368 GB, free: 7.973 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.6451, allocations: 4 kB / 1.368 GB, free: 7.969 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.569e-05/0.6451, allocations: 360.4 kB / 1.368 GB, free: 7.625 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.6454, allocations: 209.4 kB / 1.368 GB, free: 7.48 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002734/0.6456, allocations: 391.8 kB / 1.369 GB, free: 7.102 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002409/0.6459, allocations: 246 kB / 1.369 GB, free: 6.922 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.6459, allocations: 0 / 1.369 GB, free: 6.922 MB / 0.8073 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006176/0.6465, allocations: 0.5703 MB / 1.369 GB, free: 6.461 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002185/0.6468, allocations: 1.829 MB / 1.371 GB, free: 4.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.6468, allocations: 4 kB / 1.371 GB, free: 4.516 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.6468, allocations: 8 kB / 1.371 GB, free: 4.508 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003539/0.6471, allocations: 107.5 kB / 1.371 GB, free: 4.406 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.6472, allocations: 11.91 kB / 1.371 GB, free: 4.395 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.6475, allocations: 87.77 kB / 1.371 GB, free: 4.309 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.6476, allocations: 23.19 kB / 1.371 GB, free: 4.289 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.849e-06/0.6476, allocations: 4 kB / 1.371 GB, free: 4.285 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004977/0.6481, allocations: 472.5 kB / 1.372 GB, free: 3.926 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.6481, allocations: 4.312 kB / 1.372 GB, free: 3.922 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.723e-06/0.6481, allocations: 8 kB / 1.372 GB, free: 3.914 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.6484, allocations: 71.33 kB / 1.372 GB, free: 3.848 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.6484, allocations: 8 kB / 1.372 GB, free: 3.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.6487, allocations: 55.95 kB / 1.372 GB, free: 3.785 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.6487, allocations: 23.3 kB / 1.372 GB, free: 3.766 MB / 0.8073 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.0001168/0.6488, allocations: 167.8 kB / 1.372 GB, free: 3.602 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.859e-05/0.6489, allocations: 47.52 kB / 1.372 GB, free: 3.555 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.846e-05/0.649, allocations: 47.83 kB / 1.372 GB, free: 3.527 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.649, allocations: 4 kB / 1.372 GB, free: 3.523 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.649, allocations: 8 kB / 1.372 GB, free: 3.516 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.649, allocations: 3.984 kB / 1.372 GB, free: 3.512 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.6503, allocations: 1.597 MB / 1.374 GB, free: 2.125 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.6503, allocations: 8.047 kB / 1.374 GB, free: 2.117 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002813/0.6506, allocations: 83.86 kB / 1.374 GB, free: 2.035 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.6506, allocations: 4 kB / 1.374 GB, free: 2.031 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.042e-05/0.6507, allocations: 11.23 kB / 1.374 GB, free: 2.023 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.6507, allocations: 7.906 kB / 1.374 GB, free: 2.016 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6507, allocations: 0 / 1.374 GB, free: 2.016 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006004/0.6513, allocations: 1.051 MB / 1.375 GB, free: 1.027 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 4.927e-05/0.6513, allocations: 116.6 kB / 1.375 GB, free: 0.8945 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.783e-05/0.6514, allocations: 15.67 kB / 1.375 GB, free: 0.8828 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006405/0.6521, allocations: 115.8 kB / 1.375 GB, free: 0.7734 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.665e-05/0.6522, allocations: 47.72 kB / 1.375 GB, free: 0.7344 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-05/0.6522, allocations: 19.92 kB / 1.375 GB, free: 0.7188 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001499/0.6523, allocations: 243.7 kB / 1.376 GB, free: 0.5273 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0006712/0.653, allocations: 170.8 kB / 1.376 GB, free: 372 kB / 0.8073 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.0001349/0.6532, allocations: 143.4 kB / 1.376 GB, free: 224 kB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0009014/0.6541, allocations: 0.8493 MB / 1.377 GB, free: 15.55 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.6541, allocations: 8.188 kB / 1.377 GB, free: 15.54 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003534/0.6544, allocations: 294.3 kB / 1.377 GB, free: 15.32 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005883/0.655, allocations: 61.31 kB / 1.377 GB, free: 15.27 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.6563, allocations: 0.7888 MB / 1.378 GB, free: 14.55 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004855/0.6568, allocations: 0.9654 MB / 1.379 GB, free: 13.59 MB / 0.823 GB Notification: Performance of SimCode: time 2.6e-07/0.6568, allocations: 4 kB / 1.379 GB, free: 13.58 MB / 0.823 GB Notification: Performance of Templates: time 0.01076/0.6676, allocations: 7.878 MB / 1.386 GB, free: 5.777 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches