Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.007153/0.007153, allocations: 98.28 kB / 15.73 MB, free: 6.008 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.001469/0.001469, allocations: 193.2 kB / 16.67 MB, free: 5.926 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.513/1.513, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.631/2.631, allocations: 437 MB / 0.7105 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 60.12 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.079/1.08, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004474/1.085, allocations: 2.807 MB / 1.169 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002817/1.088, allocations: 1.665 MB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/1.088, allocations: 8 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0009787/1.089, allocations: 310.4 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.000414/1.089, allocations: 183 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008021/1.09, allocations: 373.5 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0007618/1.091, allocations: 0.7301 MB / 1.173 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005515/1.091, allocations: 467.6 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002674/1.092, allocations: 267 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/1.092, allocations: 290.7 kB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 8.332e-05/1.092, allocations: 55.94 kB / 1.174 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002223/1.092, allocations: 108 kB / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001823/1.093, allocations: 207.3 kB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000298/1.093, allocations: 322 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0008542/1.094, allocations: 0.821 MB / 1.175 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/1.094, allocations: 0 / 1.175 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.272e-06/1.094, allocations: 0 / 1.175 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.376e-06/1.094, allocations: 0 / 1.175 GB, free: 11.25 MB / 0.9044 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.001494/1.095, allocations: 1.057 MB / 1.176 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/1.095, allocations: 12.92 kB / 1.176 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/1.095, allocations: 88.38 kB / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006299/1.096, allocations: 0.4972 MB / 1.177 GB, free: 9.504 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.026e-05/1.096, allocations: 41.69 kB / 1.177 GB, free: 9.465 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.173e-05/1.096, allocations: 67.92 kB / 1.177 GB, free: 9.398 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009428/1.097, allocations: 0.6169 MB / 1.177 GB, free: 8.719 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/1.097, allocations: 3.938 kB / 1.177 GB, free: 8.715 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/1.097, allocations: 24 kB / 1.177 GB, free: 8.691 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/1.097, allocations: 15.94 kB / 1.177 GB, free: 8.676 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006319/1.098, allocations: 375.6 kB / 1.178 GB, free: 8.309 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/1.101, allocations: 2.584 MB / 1.18 GB, free: 5.613 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007132/1.101, allocations: 383.9 kB / 1.181 GB, free: 5.184 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/1.102, allocations: 177 kB / 1.181 GB, free: 4.992 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.023e-05/1.102, allocations: 8 kB / 1.181 GB, free: 4.984 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004489/1.102, allocations: 293.3 kB / 1.181 GB, free: 4.664 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=44): time 1.863e-06/1.102, allocations: 4 kB / 1.181 GB, free: 4.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=44): time 0.0009529/1.103, allocations: 0.4966 MB / 1.182 GB, free: 4.16 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/1.103, allocations: 225.5 kB / 1.182 GB, free: 3.891 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006391/1.104, allocations: 0.6082 MB / 1.182 GB, free: 3.273 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.383e-05/1.104, allocations: 54.31 kB / 1.182 GB, free: 3.215 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.000288/1.104, allocations: 357.2 kB / 1.183 GB, free: 2.859 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 9.769e-05/1.104, allocations: 115.1 kB / 1.183 GB, free: 2.746 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/1.104, allocations: 150.2 kB / 1.183 GB, free: 2.594 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000164/1.105, allocations: 382.8 kB / 1.183 GB, free: 2.211 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/1.105, allocations: 137.2 kB / 1.183 GB, free: 2.074 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/1.105, allocations: 350.9 kB / 1.184 GB, free: 1.648 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005633/1.106, allocations: 425 kB / 1.184 GB, free: 1.156 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/1.106, allocations: 4 kB / 1.184 GB, free: 1.152 MB / 0.9044 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00085/1.107, allocations: 0.5421 MB / 1.185 GB, free: 0.5977 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/1.107, allocations: 10.66 kB / 1.185 GB, free: 0.5898 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/1.107, allocations: 8 kB / 1.185 GB, free: 0.582 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/1.107, allocations: 19.91 kB / 1.185 GB, free: 0.5625 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/1.107, allocations: 76.47 kB / 1.185 GB, free: 500 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/1.107, allocations: 15.94 kB / 1.185 GB, free: 484 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/1.107, allocations: 63.61 kB / 1.185 GB, free: 420 kB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.466e-05/1.107, allocations: 24 kB / 1.185 GB, free: 396 kB / 0.9044 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.0002968/1.108, allocations: 277.5 kB / 1.185 GB, free: 108 kB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.315e-05/1.108, allocations: 67.58 kB / 1.185 GB, free: 40 kB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000718/1.108, allocations: 407.1 kB / 1.186 GB, free: 15.63 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/1.109, allocations: 12 kB / 1.186 GB, free: 15.62 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/1.109, allocations: 7.922 kB / 1.186 GB, free: 15.61 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/1.109, allocations: 4 kB / 1.186 GB, free: 15.61 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/1.11, allocations: 1.052 MB / 1.187 GB, free: 14.5 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/1.11, allocations: 7.922 kB / 1.187 GB, free: 14.49 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/1.11, allocations: 31.91 kB / 1.187 GB, free: 14.46 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/1.11, allocations: 4 kB / 1.187 GB, free: 14.45 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.028e-05/1.11, allocations: 16 kB / 1.187 GB, free: 14.44 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/1.11, allocations: 7.984 kB / 1.187 GB, free: 14.43 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.11, allocations: 4 kB / 1.187 GB, free: 14.43 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007217/1.111, allocations: 0.5307 MB / 1.187 GB, free: 13.86 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/1.111, allocations: 152.4 kB / 1.187 GB, free: 13.7 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.909e-05/1.111, allocations: 16 kB / 1.187 GB, free: 13.68 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/1.111, allocations: 11.98 kB / 1.187 GB, free: 13.67 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/1.111, allocations: 51.89 kB / 1.188 GB, free: 13.62 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.846e-05/1.111, allocations: 23.98 kB / 1.188 GB, free: 13.59 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000415/1.112, allocations: 398.8 kB / 1.188 GB, free: 13.21 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.8e-07/1.112, allocations: 4 kB / 1.188 GB, free: 13.2 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004935/1.112, allocations: 135.7 kB / 1.188 GB, free: 13.07 MB / 0.92 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.localActive,cooDow.active,$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.001038/1.113, allocations: 462.6 kB / 1.189 GB, free: 12.77 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0006598/1.114, allocations: 401.8 kB / 1.189 GB, free: 12.38 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/1.114, allocations: 0 / 1.189 GB, free: 12.38 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0003112/1.114, allocations: 192.5 kB / 1.189 GB, free: 12.19 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005449/1.115, allocations: 104.9 kB / 1.189 GB, free: 12.1 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/1.117, allocations: 1.157 MB / 1.19 GB, free: 10.9 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005173/1.117, allocations: 0.9335 MB / 1.191 GB, free: 9.934 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0002056/1.117, allocations: 88.36 kB / 1.191 GB, free: 9.844 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/1.118, allocations: 43.42 kB / 1.191 GB, free: 9.801 MB / 0.92 GB Notification: Performance of SimCode: time 5.01e-07/1.118, allocations: 0 / 1.191 GB, free: 9.801 MB / 0.92 GB Notification: Performance of Templates: time 0.01156/1.129, allocations: 5.638 MB / 1.197 GB, free: 4.211 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches