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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001425/0.001425, allocations: 103.9 kB / 16.41 MB, free: 6.5 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.001413/0.001413, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.55/2.55, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 67.89 kB / 1.055 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9158/0.9172, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004347/0.9216, allocations: 2.796 MB / 1.211 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002652/0.9243, allocations: 1.669 MB / 1.213 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/0.9245, allocations: 11.94 kB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0009509/0.9255, allocations: 302.7 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0004342/0.9259, allocations: 194.9 kB / 1.213 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008013/0.9267, allocations: 370.7 kB / 1.214 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007322/0.9275, allocations: 0.7417 MB / 1.214 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005671/0.9281, allocations: 463.3 kB / 1.215 GB, free: 7.098 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002792/0.9284, allocations: 275 kB / 1.215 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003096/0.9287, allocations: 278.8 kB / 1.215 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.629e-05/0.9288, allocations: 56 kB / 1.215 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002135/0.929, allocations: 111.8 kB / 1.215 GB, free: 6.391 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001834/0.9292, allocations: 203.4 kB / 1.216 GB, free: 6.191 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002643/0.9295, allocations: 330 kB / 1.216 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000813/0.9303, allocations: 0.8114 MB / 1.217 GB, free: 5.055 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/0.9303, allocations: 4 kB / 1.217 GB, free: 5.051 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.994e-06/0.9303, allocations: 0 / 1.217 GB, free: 5.051 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.9303, allocations: 0 / 1.217 GB, free: 5.051 MB / 0.9356 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.001443/0.9318, allocations: 1.031 MB / 1.218 GB, free: 3.961 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.9318, allocations: 12.03 kB / 1.218 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.932, allocations: 87.91 kB / 1.218 GB, free: 3.863 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006237/0.9326, allocations: 492.8 kB / 1.218 GB, free: 3.344 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.362e-05/0.9327, allocations: 53.61 kB / 1.218 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.971e-05/0.9327, allocations: 63.94 kB / 1.218 GB, free: 3.23 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009373/0.9337, allocations: 0.613 MB / 1.219 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.9337, allocations: 0 / 1.219 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.326e-05/0.9338, allocations: 27.98 kB / 1.219 GB, free: 2.527 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.9338, allocations: 12 kB / 1.219 GB, free: 2.516 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006615/0.9345, allocations: 379.6 kB / 1.219 GB, free: 2.145 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002877/0.9373, allocations: 2.584 MB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00067/0.938, allocations: 376 kB / 1.222 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.9383, allocations: 177 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.764e-05/0.9383, allocations: 11.84 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004287/0.9388, allocations: 285.5 kB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=44): time 1.883e-06/0.9388, allocations: 0 / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of matching and sorting (n=44): time 0.0009262/0.9397, allocations: 0.504 MB / 1.223 GB, free: 14 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.9398, allocations: 221.6 kB / 1.224 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006193/0.9405, allocations: 0.6119 MB / 1.224 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.744e-05/0.9405, allocations: 45.7 kB / 1.224 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002546/0.9408, allocations: 348.6 kB / 1.224 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 9.559e-05/0.9409, allocations: 111.2 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.9411, allocations: 154.2 kB / 1.225 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.9412, allocations: 382.8 kB / 1.225 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002531/0.9415, allocations: 137.2 kB / 1.225 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004094/0.9419, allocations: 346.9 kB / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005612/0.9425, allocations: 441 kB / 1.226 GB, free: 11 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.9425, allocations: 0 / 1.226 GB, free: 11 MB / 0.9512 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0008135/0.9433, allocations: 0.5382 MB / 1.227 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.9434, allocations: 13.97 kB / 1.227 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.9434, allocations: 4 kB / 1.227 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.593e-05/0.9434, allocations: 12 kB / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002281/0.9436, allocations: 75.78 kB / 1.227 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-05/0.9437, allocations: 19.86 kB / 1.227 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.9439, allocations: 55.44 kB / 1.227 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/0.944, allocations: 32.34 kB / 1.227 GB, free: 10.25 MB / 0.9512 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.0003034/0.9443, allocations: 273.6 kB / 1.227 GB, free: 9.973 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.548e-05/0.9444, allocations: 63.25 kB / 1.227 GB, free: 9.91 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000679/0.945, allocations: 411.1 kB / 1.227 GB, free: 9.5 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.9451, allocations: 8 kB / 1.227 GB, free: 9.492 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.9451, allocations: 3.938 kB / 1.227 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.9451, allocations: 4 kB / 1.227 GB, free: 9.484 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.9465, allocations: 1.072 MB / 1.228 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.9465, allocations: 7.938 kB / 1.228 GB, free: 8.344 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.9466, allocations: 27.92 kB / 1.229 GB, free: 8.316 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.9466, allocations: 0 / 1.229 GB, free: 8.316 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.035e-05/0.9467, allocations: 15.98 kB / 1.229 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.9467, allocations: 0 / 1.229 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.9467, allocations: 7.938 kB / 1.229 GB, free: 8.293 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006607/0.9474, allocations: 0.5347 MB / 1.229 GB, free: 7.723 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.837e-05/0.9475, allocations: 140.1 kB / 1.229 GB, free: 7.566 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.755e-05/0.9476, allocations: 23.98 kB / 1.229 GB, free: 7.543 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.9477, allocations: 12 kB / 1.229 GB, free: 7.531 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.9478, allocations: 47.88 kB / 1.229 GB, free: 7.484 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.9479, allocations: 23.98 kB / 1.229 GB, free: 7.461 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004098/0.9483, allocations: 398.8 kB / 1.23 GB, free: 7.074 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9483, allocations: 3.938 kB / 1.23 GB, free: 7.07 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004996/0.9488, allocations: 131.7 kB / 1.23 GB, free: 6.941 MB / 0.9512 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.001077/0.9499, allocations: 454.4 kB / 1.23 GB, free: 6.648 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0006598/0.9506, allocations: 406.5 kB / 1.231 GB, free: 6.254 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.9506, allocations: 8.125 kB / 1.231 GB, free: 6.246 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000298/0.9509, allocations: 191.7 kB / 1.231 GB, free: 6.059 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005646/0.9515, allocations: 94.12 kB / 1.231 GB, free: 5.965 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.9531, allocations: 1.171 MB / 1.232 GB, free: 4.746 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000482/0.9536, allocations: 0.9338 MB / 1.233 GB, free: 3.789 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.9538, allocations: 47.42 kB / 1.233 GB, free: 3.742 MB / 0.9512 GB Notification: Performance of SimCode: time 3.31e-07/0.9538, allocations: 0 / 1.233 GB, free: 3.742 MB / 0.9512 GB Notification: Performance of Templates: time 0.01093/0.9647, allocations: 7.895 MB / 1.241 GB, free: 11.88 MB / 0.9669 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","/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