Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.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.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|actMod|runSig.y|cooDowOpt.y",fileNamePrefix="Buildings_9_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_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.546/2.546, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001133/0.001133, allocations: 184.8 kB / 487.4 MB, free: 5.059 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.533/1.533, allocations: 221.5 MB / 0.7824 GB, free: 0.9492 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.0009299/0.00093, allocations: 97.34 kB / 0.9219 GB, free: 2.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.643e-05/1.647e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2496, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8828/1.132, allocations: 156.7 MB / 1.359 GB, free: 18.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/1.133, allocations: 94.59 kB / 1.359 GB, free: 18.1 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03132/1.164, allocations: 14.29 MB / 1.373 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.276e-06/1.164, allocations: 0 / 1.373 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.116e-05/1.164, allocations: 23.97 kB / 1.373 GB, free: 32.46 MB / 0.8386 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.001274/1.165, allocations: 0.8448 MB / 1.374 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/1.166, allocations: 12 kB / 1.374 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/1.166, allocations: 81.66 kB / 1.374 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006152/1.166, allocations: 448.3 kB / 1.374 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.351e-05/1.166, allocations: 19.31 kB / 1.374 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.173e-05/1.166, allocations: 41.3 kB / 1.374 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005111/1.167, allocations: 312.2 kB / 1.375 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006781/1.168, allocations: 0.5336 MB / 1.375 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/1.168, allocations: 3.875 kB / 1.375 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/1.168, allocations: 2.344 kB / 1.375 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/1.168, allocations: 15.41 kB / 1.375 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002238/1.17, allocations: 2.494 MB / 1.378 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000439/1.17, allocations: 341.6 kB / 1.378 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/1.171, allocations: 161.5 kB / 1.378 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/1.171, allocations: 3.844 kB / 1.378 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/1.171, allocations: 268.5 kB / 1.378 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=44): time 2.325e-06/1.171, allocations: 0 / 1.378 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=44): time 0.0005079/1.172, allocations: 363 kB / 1.379 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/1.172, allocations: 221.3 kB / 1.379 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004999/1.172, allocations: 0.5172 MB / 1.379 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.406e-05/1.172, allocations: 43.25 kB / 1.38 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/1.172, allocations: 349.4 kB / 1.38 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.966e-05/1.172, allocations: 98.25 kB / 1.38 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.815e-05/1.172, allocations: 0 / 1.38 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001623/1.173, allocations: 385.9 kB / 1.38 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/1.173, allocations: 118 kB / 1.38 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002321/1.173, allocations: 321.7 kB / 1.381 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/1.173, allocations: 133 kB / 1.381 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/1.173, allocations: 3.875 kB / 1.381 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.000567/1.174, allocations: 469.2 kB / 1.381 GB, free: 27.7 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/1.174, allocations: 8.656 kB / 1.381 GB, free: 27.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/1.174, allocations: 7.656 kB / 1.381 GB, free: 27.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/1.174, allocations: 11.66 kB / 1.381 GB, free: 27.69 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/1.174, allocations: 80.89 kB / 1.381 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/1.174, allocations: 19.11 kB / 1.381 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/1.174, allocations: 34.52 kB / 1.381 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.894e-05/1.174, allocations: 26.09 kB / 1.382 GB, free: 27.64 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.0001711/1.175, allocations: 155 kB / 1.382 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.65e-05/1.175, allocations: 62.25 kB / 1.382 GB, free: 27.47 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005532/1.175, allocations: 380 kB / 1.382 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/1.175, allocations: 7.719 kB / 1.382 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/1.175, allocations: 3.906 kB / 1.382 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/1.175, allocations: 11.89 kB / 1.382 GB, free: 27.35 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/1.176, allocations: 0.978 MB / 1.383 GB, free: 26.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/1.176, allocations: 0 / 1.383 GB, free: 26.87 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/1.177, allocations: 31.17 kB / 1.383 GB, free: 26.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/1.177, allocations: 3.688 kB / 1.383 GB, free: 26.86 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/1.177, allocations: 7.828 kB / 1.383 GB, free: 26.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/1.177, allocations: 7.828 kB / 1.383 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.177, allocations: 0 / 1.383 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005468/1.177, allocations: 0.5713 MB / 1.384 GB, free: 26.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.938e-05/1.177, allocations: 142.8 kB / 1.384 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.407e-05/1.177, allocations: 10.95 kB / 1.384 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/1.177, allocations: 7.719 kB / 1.384 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/1.178, allocations: 56.91 kB / 1.384 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.031e-05/1.178, allocations: 23.02 kB / 1.384 GB, free: 26.33 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003354/1.178, allocations: 380.2 kB / 1.384 GB, free: 26.21 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.11e-07/1.178, allocations: 4 kB / 1.384 GB, free: 26.2 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004683/1.178, allocations: 92.62 kB / 1.384 GB, free: 26.2 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.0009045/1.179, allocations: 423.9 kB / 1.385 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004676/1.18, allocations: 363 kB / 1.385 GB, free: 25.93 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.18, allocations: 3.781 kB / 1.385 GB, free: 25.93 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000214/1.18, allocations: 192 kB / 1.385 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/1.181, allocations: 72.75 kB / 1.385 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/1.182, allocations: 0.8155 MB / 1.386 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004696/1.182, allocations: 0.9461 MB / 1.387 GB, free: 24.69 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002249/1.182, allocations: 82.88 kB / 1.387 GB, free: 24.65 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/1.183, allocations: 49.58 kB / 1.387 GB, free: 24.64 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.183, allocations: 0 / 1.387 GB, free: 24.64 MB / 0.8386 GB Notification: Performance of Templates: time 0.009936/1.192, allocations: 5.163 MB / 1.392 GB, free: 22.11 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown.csv","../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches