Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.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 7.0.3-maint.7.0.x/package.mo): time 1.17/1.17, allocations: 249.4 MB / 256.7 MB, free: 6.914 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001011/0.001011, allocations: 181.1 kB / 316 MB, free: 3.488 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.004/1.004, allocations: 205.1 MB / 0.5667 GB, free: 15.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008267/0.0008267, allocations: 86.16 kB / 0.671 GB, free: 4.828 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.481e-06/5.501e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1329, allocations: 106.3 MB / 0.8846 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3879/0.5208, allocations: 135.6 MB / 1.017 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.521, allocations: 86.44 kB / 1.017 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01927/0.5403, allocations: 7.519 MB / 1.024 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.128e-05/0.5404, allocations: 8 kB / 1.024 GB, free: 12.86 MB / 0.6511 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.001501/0.5419, allocations: 0.8804 MB / 1.025 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.5419, allocations: 8.031 kB / 1.025 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.947e-05/0.542, allocations: 55.34 kB / 1.025 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005084/0.5426, allocations: 407.7 kB / 1.026 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.5426, allocations: 15.98 kB / 1.026 GB, free: 11.5 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.531e-05/0.5427, allocations: 24 kB / 1.026 GB, free: 11.47 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005681/0.5432, allocations: 428.6 kB / 1.026 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006672/0.5439, allocations: 0.543 MB / 1.027 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.5439, allocations: 3.938 kB / 1.027 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.544, allocations: 0 / 1.027 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.544, allocations: 8 kB / 1.027 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.546, allocations: 1.574 MB / 1.028 GB, free: 9.281 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008234/0.5468, allocations: 0.6481 MB / 1.029 GB, free: 8.719 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.5471, allocations: 276.2 kB / 1.029 GB, free: 8.5 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.5472, allocations: 15.91 kB / 1.029 GB, free: 8.484 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004612/0.5476, allocations: 424.9 kB / 1.03 GB, free: 8.125 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=51): time 1.703e-06/0.5477, allocations: 3.938 kB / 1.03 GB, free: 8.121 MB / 0.6511 GB Notification: Performance of matching and sorting (n=51): time 0.0007687/0.5484, allocations: 0.5448 MB / 1.03 GB, free: 7.68 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.5485, allocations: 291.4 kB / 1.03 GB, free: 7.34 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.5488, allocations: 320.3 kB / 1.031 GB, free: 7.074 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.778e-05/0.5489, allocations: 41.62 kB / 1.031 GB, free: 7.031 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.638e-05/0.549, allocations: 165.6 kB / 1.031 GB, free: 6.883 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.161e-05/0.5491, allocations: 116.3 kB / 1.031 GB, free: 6.785 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.34e-05/0.5491, allocations: 7.938 kB / 1.031 GB, free: 6.777 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.5492, allocations: 359.4 kB / 1.031 GB, free: 6.438 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.5495, allocations: 204.3 kB / 1.032 GB, free: 6.297 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003467/0.5498, allocations: 391.8 kB / 1.032 GB, free: 5.918 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.5501, allocations: 250.1 kB / 1.032 GB, free: 5.734 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.5501, allocations: 4 kB / 1.032 GB, free: 5.73 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007253/0.5509, allocations: 0.5722 MB / 1.033 GB, free: 5.266 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004793/0.5513, allocations: 1.826 MB / 1.034 GB, free: 3.328 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.5514, allocations: 15.94 kB / 1.034 GB, free: 3.312 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.5514, allocations: 8 kB / 1.034 GB, free: 3.305 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000379/0.5518, allocations: 103.2 kB / 1.035 GB, free: 3.207 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.5518, allocations: 11.98 kB / 1.035 GB, free: 3.195 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004136/0.5522, allocations: 83.77 kB / 1.035 GB, free: 3.113 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.5522, allocations: 22.62 kB / 1.035 GB, free: 3.098 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.119e-06/0.5523, allocations: 8 kB / 1.035 GB, free: 3.09 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005822/0.5528, allocations: 455.8 kB / 1.035 GB, free: 2.742 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.5529, allocations: 8.562 kB / 1.035 GB, free: 2.734 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.654e-06/0.5529, allocations: 12 kB / 1.035 GB, free: 2.723 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.5531, allocations: 75.44 kB / 1.035 GB, free: 2.652 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.5532, allocations: 15.94 kB / 1.035 GB, free: 2.637 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.5535, allocations: 59.73 kB / 1.035 GB, free: 2.578 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.5535, allocations: 19.19 kB / 1.035 GB, free: 2.562 MB / 0.6511 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.0001471/0.5537, allocations: 171.8 kB / 1.035 GB, free: 2.398 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.44e-05/0.5537, allocations: 39.53 kB / 1.036 GB, free: 2.359 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.96e-05/0.5538, allocations: 55.81 kB / 1.036 GB, free: 2.32 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.5538, allocations: 4 kB / 1.036 GB, free: 2.316 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5538, allocations: 4 kB / 1.036 GB, free: 2.312 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.5539, allocations: 3.906 kB / 1.036 GB, free: 2.309 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001582/0.5554, allocations: 1.594 MB / 1.037 GB, free: 0.9102 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.5555, allocations: 0 / 1.037 GB, free: 0.9102 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003141/0.5558, allocations: 87.44 kB / 1.037 GB, free: 0.8281 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.5558, allocations: 4 kB / 1.037 GB, free: 0.8242 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.334e-05/0.5558, allocations: 15.97 kB / 1.037 GB, free: 0.8086 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.5558, allocations: 4 kB / 1.037 GB, free: 0.8047 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5558, allocations: 0 / 1.037 GB, free: 0.8047 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007989/0.5567, allocations: 1.067 MB / 1.038 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 7.217e-05/0.5567, allocations: 115.9 kB / 1.038 GB, free: 15.67 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.073e-05/0.5568, allocations: 14.86 kB / 1.038 GB, free: 15.66 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006751/0.5575, allocations: 107.9 kB / 1.039 GB, free: 15.55 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.5576, allocations: 49.73 kB / 1.039 GB, free: 15.52 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.073e-05/0.5577, allocations: 19.36 kB / 1.039 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0001917/0.5579, allocations: 251.4 kB / 1.039 GB, free: 15.3 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007147/0.5586, allocations: 171.4 kB / 1.039 GB, free: 15.14 MB / 0.6667 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.0001654/0.5587, allocations: 145.7 kB / 1.039 GB, free: 14.99 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0009737/0.5597, allocations: 0.8551 MB / 1.04 GB, free: 14.32 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5597, allocations: 3.938 kB / 1.04 GB, free: 14.31 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0003787/0.5601, allocations: 304.1 kB / 1.04 GB, free: 14.09 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005857/0.5607, allocations: 74.81 kB / 1.04 GB, free: 14.03 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.562, allocations: 0.7711 MB / 1.041 GB, free: 13.32 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005032/0.5625, allocations: 0.9619 MB / 1.042 GB, free: 12.36 MB / 0.6667 GB Notification: Performance of SimCode: time 1.663e-06/0.5625, allocations: 0 / 1.042 GB, free: 12.36 MB / 0.6667 GB Notification: Performance of Templates: time 0.01115/0.5737, allocations: 7.939 MB / 1.05 GB, free: 4.473 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches