Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|actMod|runSig.y|cooDowOpt.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|actMod|runSig.y|cooDowOpt.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") [: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 10.0.0-master/package.mo): time 1.918/1.918, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.001309/0.001309, allocations: 173.3 kB / 490.8 MB, free: 1.953 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.277/1.277, allocations: 221.4 MB / 0.7863 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009325/0.0009325, allocations: 90.78 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.964e-06/6.983e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2248, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6176/0.8424, allocations: 157.4 MB / 1.365 GB, free: 17.34 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.8427, allocations: 89.77 kB / 1.365 GB, free: 17.34 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.03457/0.8773, allocations: 13.94 MB / 1.379 GB, free: 15.79 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.011e-05/0.8774, allocations: 22.41 kB / 1.379 GB, free: 15.79 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.0009911/0.8784, allocations: 0.831 MB / 1.38 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.8784, allocations: 12.75 kB / 1.38 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.8785, allocations: 85.5 kB / 1.38 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000588/0.8791, allocations: 441 kB / 1.38 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.8792, allocations: 29.8 kB / 1.38 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.874e-05/0.8793, allocations: 35.16 kB / 1.38 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005544/0.8798, allocations: 325.5 kB / 1.381 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006926/0.8805, allocations: 0.5272 MB / 1.381 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.8806, allocations: 9.125 kB / 1.381 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.113e-05/0.8806, allocations: 6.172 kB / 1.381 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.8806, allocations: 13.19 kB / 1.381 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.8828, allocations: 2.463 MB / 1.384 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004464/0.8832, allocations: 335.3 kB / 1.384 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001878/0.8834, allocations: 158.7 kB / 1.384 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.8835, allocations: 13.02 kB / 1.384 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.8837, allocations: 255.3 kB / 1.384 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=44): time 1.903e-06/0.8838, allocations: 0 / 1.384 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=44): time 0.0005103/0.8843, allocations: 318.4 kB / 1.385 GB, free: 28.03 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.8843, allocations: 224.5 kB / 1.385 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005597/0.8849, allocations: 0.5253 MB / 1.385 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.256e-05/0.885, allocations: 44.02 kB / 1.385 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.8851, allocations: 257.4 kB / 1.386 GB, free: 27.38 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.089e-05/0.8852, allocations: 98.56 kB / 1.386 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.748e-05/0.8852, allocations: 1.281 kB / 1.386 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.8854, allocations: 378.7 kB / 1.386 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.8855, allocations: 120.6 kB / 1.386 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000259/0.8858, allocations: 324.8 kB / 1.387 GB, free: 26.73 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002051/0.886, allocations: 131.2 kB / 1.387 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.886, allocations: 9.25 kB / 1.387 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0006356/0.8867, allocations: 473.7 kB / 1.387 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.8867, allocations: 5.312 kB / 1.387 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.8867, allocations: 5.094 kB / 1.387 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.8867, allocations: 10.88 kB / 1.387 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.887, allocations: 81.08 kB / 1.387 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.887, allocations: 8.969 kB / 1.387 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002408/0.8873, allocations: 33.48 kB / 1.387 GB, free: 26.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.944e-05/0.8873, allocations: 31.5 kB / 1.387 GB, free: 26.5 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 64 ($PRE.transition2.enableFire,$PRE.transition1.enableFire,$PRE.transition4.enableFire,$PRE.transition3.enableFire,$PRE.transition5.enableFire,$whenCondition1,$PRE.runSig.combiTimeTable.nextTimeEvent,$PRE.transition2.t_start,transition2.t_start,$PRE.transition1.t_start,transition1.t_start,$PRE.transition4.t_start,transition4.t_start,$PRE.transition3.t_start,transition3.t_start,$PRE.transition5.t_start,transition5.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition5.condition,$whenCondition2,$whenCondition3,$whenCondition4,actMod,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled,notRun.y,and1.y,$PRE.cooDow.localActive,cooDow.localActive,cooDow.inPort[2].occupied,cooDow.outPort[2].available,$PRE.cooDow.newActive,cooDow.newActive,$PRE.cooDow.oldActive,cooDow.oldActive,cooDow.active,$PRE.norm.localActive,norm.localActive,norm.inPort[2].occupied,norm.outPort[2].available,$PRE.norm.newActive,norm.newActive,$PRE.norm.oldActive,norm.oldActive,norm.active,stateGraphRoot.activeSteps,transition2.enableFire,transition1.enableFire,transition4.enableFire,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,off.active,transition3.enableFire,$PRE.timer.passed,timer.passed,$PRE.timer.entryTime,timer.entryTime,transition5.enableFire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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.0001485/0.8875, allocations: 150.1 kB / 1.387 GB, free: 26.37 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.772e-05/0.8876, allocations: 66.11 kB / 1.388 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006116/0.8882, allocations: 362.6 kB / 1.388 GB, free: 26.22 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.8882, allocations: 10.16 kB / 1.388 GB, free: 26.22 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.8882, allocations: 1.156 kB / 1.388 GB, free: 26.22 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.8882, allocations: 10.64 kB / 1.388 GB, free: 26.21 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001264/0.8895, allocations: 0.9341 MB / 1.389 GB, free: 25.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.8895, allocations: 9.234 kB / 1.389 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.8896, allocations: 33.8 kB / 1.389 GB, free: 25.72 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.8896, allocations: 6.625 kB / 1.389 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.8897, allocations: 8.719 kB / 1.389 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.247e-06/0.8897, allocations: 6.672 kB / 1.389 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.8897, allocations: 2.5 kB / 1.389 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005644/0.8903, allocations: 0.5234 MB / 1.389 GB, free: 25.38 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.057e-05/0.8904, allocations: 141.9 kB / 1.39 GB, free: 25.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.515e-05/0.8904, allocations: 9.25 kB / 1.39 GB, free: 25.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.8906, allocations: 14.83 kB / 1.39 GB, free: 25.24 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.8908, allocations: 50.64 kB / 1.39 GB, free: 25.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.002e-05/0.8908, allocations: 22.33 kB / 1.39 GB, free: 25.21 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0004333/0.8912, allocations: 378.7 kB / 1.39 GB, free: 25.09 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000551/0.8918, allocations: 108.1 kB / 1.39 GB, free: 25.08 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 42 (transition5.t_start,transition3.t_start,transition4.t_start,transition1.t_start,transition2.t_start,off.active,norm.active,cooDow.active,cooDow.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition1,actMod,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled,notRun.y,and1.y,cooDow.inPort[2].occupied,cooDow.outPort[2].available,cooDow.newActive,cooDow.oldActive,norm.localActive,norm.inPort[2].occupied,norm.outPort[2].available,norm.newActive,norm.oldActive,stateGraphRoot.activeSteps,transition2.enableFire,transition1.enableFire,transition4.enableFire,off.localActive,off.newActive,off.oldActive,transition3.enableFire,timer.passed,timer.entryTime) * Number of discrete states: 11 (runSig.combiTimeTable.nextTimeEvent,cooDow.newActive,timer.entryTime,norm.newActive,off.newActive,runSig.combiTimeTable.nextTimeEventScaled,transition2.t_start,transition1.t_start,transition4.t_start,transition3.t_start,transition5.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.0007491/0.8926, allocations: 380 kB / 1.39 GB, free: 24.88 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005204/0.8931, allocations: 368.8 kB / 1.391 GB, free: 24.84 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.8931, allocations: 1.25 kB / 1.391 GB, free: 24.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002423/0.8934, allocations: 194 kB / 1.391 GB, free: 24.82 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.8938, allocations: 68.95 kB / 1.391 GB, free: 24.81 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.8951, allocations: 0.818 MB / 1.392 GB, free: 24.45 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006062/0.8958, allocations: 1.005 MB / 1.393 GB, free: 23.62 MB / 0.8386 GB Notification: Performance of SimCode: time 2.91e-07/0.8958, allocations: 0 / 1.393 GB, free: 23.62 MB / 0.8386 GB Notification: Performance of Templates: time 0.01057/0.9063, allocations: 5.664 MB / 1.398 GB, free: 20.86 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown.csv","../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches