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/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 105.5 kB / 15.98 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001949/0.001949, allocations: 195.6 kB / 16.91 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.77/2.77, allocations: 482.4 MB / 0.755 GB, free: 7.176 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 69.06 kB / 0.924 GB, free: 356 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8546/0.8565, allocations: 162.2 MB / 1.082 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004452/0.861, allocations: 2.872 MB / 1.085 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003085/0.8642, allocations: 1.672 MB / 1.087 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003907/0.8646, allocations: 10.75 kB / 1.087 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.8657, allocations: 293.3 kB / 1.087 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0005123/0.8662, allocations: 156.7 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.8673, allocations: 333.3 kB / 1.088 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0009261/0.8682, allocations: 0.7392 MB / 1.088 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006974/0.8689, allocations: 477.1 kB / 1.089 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003463/0.8693, allocations: 269.2 kB / 1.089 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003466/0.8696, allocations: 293.3 kB / 1.089 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.765e-05/0.8697, allocations: 54.12 kB / 1.089 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002443/0.87, allocations: 105.4 kB / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002321/0.8702, allocations: 206.9 kB / 1.09 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.00034/0.8706, allocations: 326.1 kB / 1.09 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007921/0.8714, allocations: 0.5956 MB / 1.091 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.8714, allocations: 0.5156 kB / 1.091 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.294e-06/0.8714, allocations: 1.156 kB / 1.091 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2e-05/0.8714, allocations: 0 / 1.091 GB, free: 12.7 MB / 0.8419 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.001755/0.8732, allocations: 1.029 MB / 1.092 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.8732, allocations: 17.16 kB / 1.092 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.8734, allocations: 87.7 kB / 1.092 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007215/0.8741, allocations: 496.3 kB / 1.092 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.199e-05/0.8742, allocations: 44.23 kB / 1.092 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.991e-05/0.8743, allocations: 65.56 kB / 1.092 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.8754, allocations: 0.612 MB / 1.093 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.8754, allocations: 0 / 1.093 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.679e-05/0.8755, allocations: 28.14 kB / 1.093 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.792e-05/0.8755, allocations: 13.12 kB / 1.093 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007131/0.8762, allocations: 381.1 kB / 1.093 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003133/0.8794, allocations: 2.597 MB / 1.096 GB, free: 8.879 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007433/0.8801, allocations: 372.2 kB / 1.096 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003148/0.8805, allocations: 171.1 kB / 1.096 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.166e-05/0.8805, allocations: 13.34 kB / 1.096 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005183/0.881, allocations: 285.9 kB / 1.097 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=44): time 2.264e-06/0.8811, allocations: 0 / 1.097 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44): time 0.001042/0.8821, allocations: 0.4972 MB / 1.097 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.8823, allocations: 223.9 kB / 1.097 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007792/0.8831, allocations: 0.6094 MB / 1.098 GB, free: 7.633 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.851e-05/0.8831, allocations: 48.55 kB / 1.098 GB, free: 7.59 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000306/0.8835, allocations: 359 kB / 1.098 GB, free: 7.305 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.8836, allocations: 112.9 kB / 1.098 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002012/0.8838, allocations: 150.5 kB / 1.099 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002116/0.884, allocations: 382.5 kB / 1.099 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002931/0.8843, allocations: 141.8 kB / 1.099 GB, free: 6.754 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004753/0.8848, allocations: 353.8 kB / 1.099 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006221/0.8854, allocations: 434 kB / 1.1 GB, free: 6.105 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.8854, allocations: 1.188 kB / 1.1 GB, free: 6.105 MB / 0.8419 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.000929/0.8864, allocations: 0.5333 MB / 1.1 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.8864, allocations: 8.781 kB / 1.1 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.8864, allocations: 5.531 kB / 1.1 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.8865, allocations: 9.094 kB / 1.1 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.8867, allocations: 81.14 kB / 1.1 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.273e-05/0.8867, allocations: 22.81 kB / 1.1 GB, free: 5.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002856/0.887, allocations: 55 kB / 1.1 GB, free: 5.809 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-05/0.8871, allocations: 32.39 kB / 1.101 GB, free: 5.801 MB / 0.8419 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,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,transition2.t_start,$PRE.transition2.t_start,transition1.t_start,$PRE.transition1.t_start,transition4.t_start,$PRE.transition4.t_start,transition3.t_start,$PRE.transition3.t_start,transition5.t_start,$PRE.transition5.t_start,transition5.condition,stateGraphRoot.resume,stateGraphRoot.suspend,transition5.enableFire,timer.entryTime,$PRE.timer.entryTime,timer.passed,$PRE.timer.passed,transition3.enableFire,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.localActive,$PRE.off.localActive,off.active,transition4.enableFire,transition1.enableFire,transition2.enableFire,stateGraphRoot.activeSteps,norm.oldActive,$PRE.norm.oldActive,norm.newActive,$PRE.norm.newActive,norm.outPort[2].available,norm.inPort[2].occupied,norm.localActive,$PRE.norm.localActive,norm.active,cooDow.active,cooDow.oldActive,$PRE.cooDow.oldActive,cooDow.newActive,$PRE.cooDow.newActive,cooDow.outPort[2].available,cooDow.inPort[2].occupied,cooDow.localActive,$PRE.cooDow.localActive,and1.y,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,actMod,$whenCondition4,$whenCondition3,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003712/0.8875, allocations: 270.4 kB / 1.101 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.8876, allocations: 62.48 kB / 1.101 GB, free: 5.582 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007747/0.8884, allocations: 414.3 kB / 1.101 GB, free: 5.406 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.8884, allocations: 6.719 kB / 1.101 GB, free: 5.406 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.8884, allocations: 5.844 kB / 1.101 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.8884, allocations: 4.719 kB / 1.101 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.8901, allocations: 1.07 MB / 1.102 GB, free: 4.789 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.8901, allocations: 9.875 kB / 1.102 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.8902, allocations: 24.61 kB / 1.102 GB, free: 4.777 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.84e-06/0.8903, allocations: 3.406 kB / 1.102 GB, free: 4.777 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/0.8903, allocations: 11.95 kB / 1.102 GB, free: 4.773 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.8903, allocations: 3.812 kB / 1.102 GB, free: 4.773 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.8903, allocations: 2.219 kB / 1.102 GB, free: 4.773 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000777/0.8911, allocations: 0.5318 MB / 1.103 GB, free: 4.461 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.8912, allocations: 144.5 kB / 1.103 GB, free: 4.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.276e-05/0.8913, allocations: 15.69 kB / 1.103 GB, free: 4.312 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.8915, allocations: 14.72 kB / 1.103 GB, free: 4.309 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.8916, allocations: 49.06 kB / 1.103 GB, free: 4.297 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-05/0.8917, allocations: 20.77 kB / 1.103 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005048/0.8922, allocations: 404 kB / 1.103 GB, free: 4.121 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8922, allocations: 3.938 kB / 1.103 GB, free: 4.117 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006049/0.8928, allocations: 136.2 kB / 1.104 GB, free: 4.082 MB / 0.8419 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.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001573/0.8944, allocations: 453.8 kB / 1.104 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009614/0.8954, allocations: 439.6 kB / 1.104 GB, free: 3.73 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.8954, allocations: 2.625 kB / 1.104 GB, free: 3.73 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003199/0.8957, allocations: 194.9 kB / 1.105 GB, free: 3.664 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006439/0.8964, allocations: 106 kB / 1.105 GB, free: 3.621 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.8985, allocations: 1.393 MB / 1.106 GB, free: 2.742 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006363/0.8991, allocations: 0.9369 MB / 1.107 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.8993, allocations: 49.94 kB / 1.107 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of SimCode: time 7.31e-07/0.8993, allocations: 0 / 1.107 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of Templates: time 0.01529/0.9146, allocations: 7.829 MB / 1.115 GB, free: 0.5859 MB / 0.8419 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=400 -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches