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.001182/0.001182, allocations: 101.1 kB / 16.27 MB, free: 5.969 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.001269/0.001269, allocations: 194.8 kB / 17.2 MB, free: 5.594 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.339/1.339, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.611/2.611, allocations: 469.4 MB / 0.7427 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 68.33 kB / 0.9088 GB, free: 14.16 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3841, allocations: 159.1 MB / 1.064 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.005447/0.3896, allocations: 2.79 MB / 1.067 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003455/0.3931, allocations: 1.661 MB / 1.069 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004724/0.3936, allocations: 11.94 kB / 1.069 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001278/0.395, allocations: 315 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0007724/0.3957, allocations: 190.9 kB / 1.069 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.397, allocations: 374.4 kB / 1.069 GB, free: 9.695 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001152/0.3981, allocations: 0.7184 MB / 1.07 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008752/0.399, allocations: 471.8 kB / 1.071 GB, free: 8.512 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004793/0.3995, allocations: 267 kB / 1.071 GB, free: 8.25 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004922/0.4, allocations: 286.7 kB / 1.071 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001595/0.4002, allocations: 52 kB / 1.071 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003185/0.4005, allocations: 111.9 kB / 1.071 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002386/0.4007, allocations: 199.4 kB / 1.071 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004574/0.4012, allocations: 337.9 kB / 1.072 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.4024, allocations: 0.7669 MB / 1.073 GB, free: 6.512 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.4024, allocations: 7.938 kB / 1.073 GB, free: 6.504 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.116e-06/0.4024, allocations: 0 / 1.073 GB, free: 6.504 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.469e-05/0.4025, allocations: 0 / 1.073 GB, free: 6.504 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.002312/0.4048, allocations: 1.035 MB / 1.074 GB, free: 5.41 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.4048, allocations: 8.625 kB / 1.074 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002344/0.4051, allocations: 84 kB / 1.074 GB, free: 5.32 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008279/0.4059, allocations: 492.7 kB / 1.074 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.132e-05/0.406, allocations: 49.69 kB / 1.074 GB, free: 4.754 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.329e-05/0.4061, allocations: 67.92 kB / 1.074 GB, free: 4.688 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.4072, allocations: 0.613 MB / 1.075 GB, free: 4.012 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/0.4073, allocations: 3.938 kB / 1.075 GB, free: 4.008 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.616e-05/0.4073, allocations: 24 kB / 1.075 GB, free: 3.984 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/0.4074, allocations: 12 kB / 1.075 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008281/0.4082, allocations: 379.6 kB / 1.075 GB, free: 3.602 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003285/0.4115, allocations: 2.592 MB / 1.078 GB, free: 0.8984 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007258/0.4122, allocations: 379.5 kB / 1.078 GB, free: 488 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002931/0.4125, allocations: 173.7 kB / 1.078 GB, free: 296 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.875e-05/0.4126, allocations: 4 kB / 1.078 GB, free: 292 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.6716/1.084, allocations: 291 kB / 1.079 GB, free: 22.21 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=44): time 5.52e-06/1.084, allocations: 0.625 kB / 1.079 GB, free: 22.21 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44): time 0.001406/1.086, allocations: 0.4989 MB / 1.079 GB, free: 22.18 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/1.086, allocations: 226.2 kB / 1.079 GB, free: 21.92 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009978/1.087, allocations: 0.6121 MB / 1.08 GB, free: 21.8 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.051e-05/1.087, allocations: 50.75 kB / 1.08 GB, free: 21.77 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/1.087, allocations: 340.7 kB / 1.08 GB, free: 21.65 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/1.087, allocations: 111.5 kB / 1.08 GB, free: 21.6 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002251/1.088, allocations: 154.8 kB / 1.08 GB, free: 21.58 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000175/1.088, allocations: 381.7 kB / 1.081 GB, free: 21.27 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003135/1.088, allocations: 144 kB / 1.081 GB, free: 21.23 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004148/1.089, allocations: 345.2 kB / 1.081 GB, free: 20.95 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005728/1.089, allocations: 430 kB / 1.082 GB, free: 20.61 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/1.089, allocations: 2.109 kB / 1.082 GB, free: 20.61 MB / 0.8419 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0008933/1.09, allocations: 0.5431 MB / 1.082 GB, free: 20.39 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/1.09, allocations: 8.688 kB / 1.082 GB, free: 20.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/1.09, allocations: 5.375 kB / 1.082 GB, free: 20.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.562e-05/1.09, allocations: 9.406 kB / 1.082 GB, free: 20.39 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/1.09, allocations: 75.47 kB / 1.082 GB, free: 20.37 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.383e-05/1.09, allocations: 15.17 kB / 1.082 GB, free: 20.37 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/1.091, allocations: 65.67 kB / 1.082 GB, free: 20.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.154e-05/1.091, allocations: 28.92 kB / 1.082 GB, free: 20.32 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.000319/1.091, allocations: 270.1 kB / 1.083 GB, free: 20.13 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.878e-05/1.091, allocations: 67.28 kB / 1.083 GB, free: 20.1 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007626/1.092, allocations: 408.1 kB / 1.083 GB, free: 19.94 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/1.092, allocations: 5.656 kB / 1.083 GB, free: 19.94 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/1.092, allocations: 2.219 kB / 1.083 GB, free: 19.94 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/1.092, allocations: 7.234 kB / 1.083 GB, free: 19.94 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/1.094, allocations: 1.081 MB / 1.084 GB, free: 19.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/1.094, allocations: 1.188 kB / 1.084 GB, free: 19.34 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/1.094, allocations: 24.78 kB / 1.084 GB, free: 19.34 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/1.094, allocations: 3.594 kB / 1.084 GB, free: 19.34 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/1.094, allocations: 20.64 kB / 1.084 GB, free: 19.33 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/1.094, allocations: 3.953 kB / 1.084 GB, free: 19.33 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.094, allocations: 9.938 kB / 1.084 GB, free: 19.32 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007125/1.094, allocations: 0.5267 MB / 1.085 GB, free: 19.02 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/1.095, allocations: 136.5 kB / 1.085 GB, free: 18.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.063e-05/1.095, allocations: 15.73 kB / 1.085 GB, free: 18.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/1.095, allocations: 14.45 kB / 1.085 GB, free: 18.87 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/1.095, allocations: 55.11 kB / 1.085 GB, free: 18.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.601e-05/1.095, allocations: 22.31 kB / 1.085 GB, free: 18.85 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005696/1.096, allocations: 398.7 kB / 1.085 GB, free: 18.68 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.81e-07/1.096, allocations: 0.8125 kB / 1.085 GB, free: 18.68 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006743/1.096, allocations: 138.8 kB / 1.086 GB, free: 18.65 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.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.001186/1.098, allocations: 455.5 kB / 1.086 GB, free: 18.48 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001012/1.099, allocations: 446.8 kB / 1.086 GB, free: 18.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.099, allocations: 1.25 kB / 1.086 GB, free: 18.34 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003482/1.099, allocations: 191.6 kB / 1.087 GB, free: 18.28 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005926/1.1, allocations: 98.81 kB / 1.087 GB, free: 18.24 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/1.101, allocations: 1.201 MB / 1.088 GB, free: 17.57 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/1.102, allocations: 0.9319 MB / 1.089 GB, free: 16.86 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/1.102, allocations: 50.27 kB / 1.089 GB, free: 16.84 MB / 0.8419 GB Notification: Performance of SimCode: time 4.41e-07/1.102, allocations: 0.9688 kB / 1.089 GB, free: 16.84 MB / 0.8419 GB Notification: Performance of Templates: time 0.01981/1.122, allocations: 7.815 MB / 1.096 GB, free: 15.61 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=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