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.001362/0.001362, allocations: 115.5 kB / 16.42 MB, free: 6.516 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.001242/0.001242, allocations: 187.9 kB / 17.35 MB, free: 5.738 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.409/1.409, allocations: 222.9 MB / 241.1 MB, free: 15.15 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.25/2.25, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001629, allocations: 63.84 kB / 0.9516 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8433/0.8449, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004275/0.8492, allocations: 2.799 MB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002856/0.8521, allocations: 1.67 MB / 1.093 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002695/0.8524, allocations: 6.812 kB / 1.093 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.8535, allocations: 312.3 kB / 1.093 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004631/0.854, allocations: 188.9 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009776/0.855, allocations: 378.7 kB / 1.094 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008924/0.8559, allocations: 0.7318 MB / 1.095 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006766/0.8566, allocations: 464.6 kB / 1.095 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003248/0.8569, allocations: 278.3 kB / 1.095 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003426/0.8572, allocations: 291.5 kB / 1.096 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.8574, allocations: 54.59 kB / 1.096 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003163/0.8577, allocations: 107.2 kB / 1.096 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000239/0.8579, allocations: 209.7 kB / 1.096 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002835/0.8582, allocations: 323.5 kB / 1.096 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.8594, allocations: 0.8106 MB / 1.097 GB, free: 452 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.8594, allocations: 0 / 1.097 GB, free: 452 kB / 0.8575 GB Notification: Performance of FrontEnd: time 2.224e-06/0.8594, allocations: 0.7812 kB / 1.097 GB, free: 452 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.273e-05/0.8594, allocations: 0 / 1.097 GB, free: 452 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.001661/0.8611, allocations: 1.038 MB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.8611, allocations: 8.281 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.8613, allocations: 83.91 kB / 1.098 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007649/0.8621, allocations: 496.4 kB / 1.099 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.718e-05/0.8622, allocations: 48.67 kB / 1.099 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.676e-05/0.8623, allocations: 64.7 kB / 1.099 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.8633, allocations: 0.6149 MB / 1.099 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.8634, allocations: 4.906 kB / 1.099 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.592e-05/0.8634, allocations: 24.28 kB / 1.099 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.8635, allocations: 13.72 kB / 1.099 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007454/0.8642, allocations: 376.3 kB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003129/0.8673, allocations: 2.575 MB / 1.102 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007746/0.8681, allocations: 388 kB / 1.103 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003034/0.8685, allocations: 170.2 kB / 1.103 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.146e-05/0.8685, allocations: 9.656 kB / 1.103 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005585/0.8691, allocations: 289.7 kB / 1.103 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=44): time 2.434e-06/0.8691, allocations: 0 / 1.103 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of matching and sorting (n=44): time 0.0011/0.8702, allocations: 0.497 MB / 1.104 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.8703, allocations: 216.4 kB / 1.104 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001054/0.8714, allocations: 0.613 MB / 1.104 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.367e-05/0.8715, allocations: 52.52 kB / 1.104 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003395/0.8718, allocations: 354 kB / 1.105 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.8719, allocations: 106.8 kB / 1.105 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002263/0.8722, allocations: 154.5 kB / 1.105 GB, free: 10.9 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001865/0.8724, allocations: 382.2 kB / 1.105 GB, free: 10.56 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.8726, allocations: 138 kB / 1.105 GB, free: 10.51 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004403/0.8731, allocations: 340.7 kB / 1.106 GB, free: 10.22 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000591/0.8737, allocations: 437.5 kB / 1.106 GB, free: 9.871 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.8737, allocations: 2.656 kB / 1.106 GB, free: 9.871 MB / 0.8731 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0009179/0.8746, allocations: 0.5369 MB / 1.107 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.8747, allocations: 8.562 kB / 1.107 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.8747, allocations: 6.312 kB / 1.107 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.8747, allocations: 13.75 kB / 1.107 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.875, allocations: 71.02 kB / 1.107 GB, free: 9.621 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.483e-05/0.875, allocations: 18.39 kB / 1.107 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.8753, allocations: 63.72 kB / 1.107 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-05/0.8753, allocations: 28.08 kB / 1.107 GB, free: 9.566 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.0003638/0.8757, allocations: 278.6 kB / 1.107 GB, free: 9.371 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.8758, allocations: 67.16 kB / 1.107 GB, free: 9.336 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000799/0.8766, allocations: 406.5 kB / 1.108 GB, free: 9.164 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.8767, allocations: 8.297 kB / 1.108 GB, free: 9.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.8767, allocations: 1.688 kB / 1.108 GB, free: 9.16 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.8768, allocations: 135.9 kB / 1.108 GB, free: 9.027 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.855e-05/0.8769, allocations: 16.23 kB / 1.108 GB, free: 9.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.8771, allocations: 14.83 kB / 1.108 GB, free: 9.016 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.8772, allocations: 53.19 kB / 1.108 GB, free: 9 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00097/0.8782, allocations: 0.8615 MB / 1.109 GB, free: 8.379 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001051/0.8793, allocations: 0.9631 MB / 1.11 GB, free: 7.645 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003217/0.8796, allocations: 185 kB / 1.11 GB, free: 7.574 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005518/0.8802, allocations: 404.3 kB / 1.11 GB, free: 7.402 MB / 0.8731 GB Notification: Performance of Backend: time 6.21e-07/0.8802, allocations: 4 kB / 1.11 GB, free: 7.398 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002448/0.8826, allocations: 0.6732 MB / 1.111 GB, free: 7.141 MB / 0.8731 GB Notification: Performance of SimCode: time 0.002324/0.885, allocations: 1.512 MB / 1.112 GB, free: 6.113 MB / 0.8731 GB Notification: Performance of Templates: time 0.01834/0.9033, allocations: 5.995 MB / 1.118 GB, free: 5.59 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/jenkins1/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