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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007937/0.007937, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.002175/0.002175, allocations: 196.1 kB / 16.67 MB, free: 5.938 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.397/1.397, allocations: 222.9 MB / 240.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.295/2.295, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 63.91 kB / 0.9509 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.077/1.079, allocations: 140.4 MB / 1.088 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.005529/1.084, allocations: 2.779 MB / 1.091 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003159/1.088, allocations: 1.675 MB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000312/1.088, allocations: 6.812 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001141/1.089, allocations: 315.1 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005354/1.09, allocations: 184.1 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001204/1.091, allocations: 386.1 kB / 1.093 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009945/1.092, allocations: 0.7322 MB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007573/1.093, allocations: 463.5 kB / 1.094 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003688/1.093, allocations: 270.7 kB / 1.095 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004028/1.093, allocations: 292.2 kB / 1.095 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001367/1.093, allocations: 53.75 kB / 1.095 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/1.094, allocations: 107.2 kB / 1.095 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000212/1.094, allocations: 213.2 kB / 1.095 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002891/1.094, allocations: 323 kB / 1.095 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001022/1.095, allocations: 0.8072 MB / 1.096 GB, free: 476 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/1.095, allocations: 1.266 kB / 1.096 GB, free: 476 kB / 0.8575 GB Notification: Performance of FrontEnd: time 2.204e-06/1.095, allocations: 0 / 1.096 GB, free: 476 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.21e-05/1.095, allocations: 0.625 kB / 1.096 GB, free: 476 kB / 0.8575 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.001639/1.097, allocations: 1.041 MB / 1.097 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/1.097, allocations: 10.16 kB / 1.097 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/1.097, allocations: 83.53 kB / 1.097 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007542/1.098, allocations: 499.5 kB / 1.098 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.412e-05/1.098, allocations: 48.8 kB / 1.098 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/1.098, allocations: 66.11 kB / 1.098 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/1.099, allocations: 0.6142 MB / 1.099 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/1.099, allocations: 5.031 kB / 1.099 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/1.099, allocations: 24.44 kB / 1.099 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/1.099, allocations: 12.75 kB / 1.099 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007511/1.1, allocations: 377.6 kB / 1.099 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002947/1.103, allocations: 2.575 MB / 1.101 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007518/1.104, allocations: 380 kB / 1.102 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/1.104, allocations: 174.6 kB / 1.102 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-05/1.104, allocations: 10.17 kB / 1.102 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005222/1.105, allocations: 285.2 kB / 1.102 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=44): time 2.835e-06/1.105, allocations: 4 kB / 1.102 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of matching and sorting (n=44): time 0.001326/1.106, allocations: 0.4968 MB / 1.103 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/1.106, allocations: 221.4 kB / 1.103 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/1.107, allocations: 0.6154 MB / 1.104 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.072e-05/1.107, allocations: 50.22 kB / 1.104 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.00036/1.108, allocations: 346.4 kB / 1.104 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/1.108, allocations: 114.2 kB / 1.104 GB, free: 10.99 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002161/1.108, allocations: 153.3 kB / 1.104 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002021/1.108, allocations: 383.3 kB / 1.105 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004154/1.109, allocations: 137.1 kB / 1.105 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005606/1.109, allocations: 341.6 kB / 1.105 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006216/1.11, allocations: 438.1 kB / 1.105 GB, free: 9.883 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/1.11, allocations: 1.312 kB / 1.105 GB, free: 9.883 MB / 0.8731 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001032/1.111, allocations: 0.5413 MB / 1.106 GB, free: 9.645 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/1.111, allocations: 7.969 kB / 1.106 GB, free: 9.645 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/1.111, allocations: 6.203 kB / 1.106 GB, free: 9.645 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.309e-05/1.111, allocations: 10.16 kB / 1.106 GB, free: 9.645 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/1.111, allocations: 74.8 kB / 1.106 GB, free: 9.629 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.209e-05/1.111, allocations: 16.09 kB / 1.106 GB, free: 9.625 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002981/1.112, allocations: 59.12 kB / 1.106 GB, free: 9.586 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/1.112, allocations: 27.81 kB / 1.106 GB, free: 9.582 MB / 0.8731 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.000435/1.112, allocations: 278.5 kB / 1.106 GB, free: 9.387 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/1.112, allocations: 67.69 kB / 1.107 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008158/1.113, allocations: 409.7 kB / 1.107 GB, free: 9.176 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/1.113, allocations: 6.281 kB / 1.107 GB, free: 9.176 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.25e-05/1.113, allocations: 10.22 kB / 1.107 GB, free: 9.168 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/1.113, allocations: 8 kB / 1.107 GB, free: 9.164 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/1.115, allocations: 1.053 MB / 1.108 GB, free: 8.566 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/1.115, allocations: 7.047 kB / 1.108 GB, free: 8.562 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/1.115, allocations: 28.22 kB / 1.108 GB, free: 8.555 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/1.115, allocations: 3.391 kB / 1.108 GB, free: 8.555 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.775e-05/1.115, allocations: 16.06 kB / 1.108 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/1.115, allocations: 7.391 kB / 1.108 GB, free: 8.543 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.115, allocations: 3.641 kB / 1.108 GB, free: 8.543 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008289/1.116, allocations: 0.5289 MB / 1.109 GB, free: 8.23 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/1.116, allocations: 143.8 kB / 1.109 GB, free: 8.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.989e-05/1.116, allocations: 12.41 kB / 1.109 GB, free: 8.086 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/1.117, allocations: 18.48 kB / 1.109 GB, free: 8.078 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/1.117, allocations: 45.03 kB / 1.109 GB, free: 8.07 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/1.117, allocations: 21.77 kB / 1.109 GB, free: 8.066 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005411/1.117, allocations: 395.6 kB / 1.109 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/1.117, allocations: 0 / 1.109 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006718/1.118, allocations: 143.8 kB / 1.109 GB, free: 7.859 MB / 0.8731 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.001197/1.119, allocations: 461 kB / 1.11 GB, free: 7.645 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008335/1.12, allocations: 419 kB / 1.11 GB, free: 7.508 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.12, allocations: 0 / 1.11 GB, free: 7.508 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003621/1.12, allocations: 197.6 kB / 1.11 GB, free: 7.441 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006284/1.121, allocations: 111.1 kB / 1.11 GB, free: 7.395 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/1.123, allocations: 1.143 MB / 1.112 GB, free: 6.766 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006887/1.124, allocations: 0.9265 MB / 1.112 GB, free: 6.047 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002821/1.124, allocations: 79.05 kB / 1.113 GB, free: 6.031 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/1.124, allocations: 48.91 kB / 1.113 GB, free: 6.02 MB / 0.8731 GB Notification: Performance of SimCode: time 6.51e-07/1.124, allocations: 0 / 1.113 GB, free: 6.02 MB / 0.8731 GB Notification: Performance of Templates: time 0.01654/1.141, allocations: 5.774 MB / 1.118 GB, free: 5.469 MB / 0.8731 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches