Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001447/0.001447, allocations: 105 kB / 15.99 MB, free: 6.355 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.001492/0.001492, allocations: 199.1 kB / 16.91 MB, free: 6.188 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.36/1.36, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.584/2.584, allocations: 469.8 MB / 0.7427 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001883, allocations: 66.61 kB / 0.9087 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.316, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004566/0.3206, allocations: 2.874 MB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002717/0.3234, allocations: 1.666 MB / 1.069 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002023/0.3236, allocations: 11.94 kB / 1.069 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009021/0.3245, allocations: 287.3 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0004025/0.3249, allocations: 163.3 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000805/0.3258, allocations: 342.7 kB / 1.069 GB, free: 9.754 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007835/0.3266, allocations: 0.7301 MB / 1.07 GB, free: 9.023 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006014/0.3272, allocations: 479.8 kB / 1.071 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000278/0.3274, allocations: 259.1 kB / 1.071 GB, free: 8.297 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003123/0.3278, allocations: 294.7 kB / 1.071 GB, free: 8.008 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.919e-05/0.3279, allocations: 56 kB / 1.071 GB, free: 7.953 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000208/0.3281, allocations: 111.9 kB / 1.071 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001884/0.3283, allocations: 199.3 kB / 1.071 GB, free: 7.648 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002884/0.3286, allocations: 334 kB / 1.072 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000644/0.3292, allocations: 0.5926 MB / 1.072 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3292, allocations: 0 / 1.072 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3292, allocations: 0 / 1.072 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.271e-05/0.3293, allocations: 0 / 1.072 GB, free: 6.727 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.001547/0.3308, allocations: 1.037 MB / 1.073 GB, free: 5.633 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.3309, allocations: 11.97 kB / 1.073 GB, free: 5.621 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.331, allocations: 84 kB / 1.073 GB, free: 5.539 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006482/0.3317, allocations: 0.4889 MB / 1.074 GB, free: 5.012 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.905e-05/0.3317, allocations: 41.69 kB / 1.074 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.638e-05/0.3318, allocations: 63.94 kB / 1.074 GB, free: 4.91 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009576/0.3328, allocations: 0.613 MB / 1.075 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.3328, allocations: 3.938 kB / 1.075 GB, free: 4.23 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.84e-05/0.3329, allocations: 27.98 kB / 1.075 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.3329, allocations: 12 kB / 1.075 GB, free: 4.191 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006435/0.3335, allocations: 383.5 kB / 1.075 GB, free: 3.816 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002705/0.3363, allocations: 2.584 MB / 1.077 GB, free: 1.121 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006972/0.337, allocations: 378.9 kB / 1.078 GB, free: 0.6992 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002641/0.3372, allocations: 169.1 kB / 1.078 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.297e-05/0.3373, allocations: 7.984 kB / 1.078 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004628/0.3378, allocations: 293.4 kB / 1.078 GB, free: 196 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=44): time 2.305e-06/0.3378, allocations: 0 / 1.078 GB, free: 196 kB / 0.8419 GB Notification: Performance of matching and sorting (n=44): time 0.4944/0.8322, allocations: 0.493 MB / 1.079 GB, free: 22.7 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.758e-05/0.8323, allocations: 226.7 kB / 1.079 GB, free: 22.45 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008618/0.8332, allocations: 0.6139 MB / 1.08 GB, free: 22.34 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.712e-05/0.8332, allocations: 49.33 kB / 1.08 GB, free: 22.3 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002441/0.8335, allocations: 346.2 kB / 1.08 GB, free: 22.18 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.567e-05/0.8336, allocations: 113.5 kB / 1.08 GB, free: 22.13 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.8338, allocations: 154.2 kB / 1.08 GB, free: 22.11 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.8339, allocations: 383.2 kB / 1.081 GB, free: 21.8 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.8342, allocations: 140.3 kB / 1.081 GB, free: 21.8 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000373/0.8346, allocations: 349.1 kB / 1.081 GB, free: 21.54 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005049/0.8351, allocations: 426.5 kB / 1.081 GB, free: 21.21 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.8351, allocations: 5.875 kB / 1.081 GB, free: 21.21 MB / 0.8419 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0007996/0.8359, allocations: 0.5426 MB / 1.082 GB, free: 20.98 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.8359, allocations: 11.42 kB / 1.082 GB, free: 20.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.836, allocations: 9.875 kB / 1.082 GB, free: 20.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.836, allocations: 9.688 kB / 1.082 GB, free: 20.98 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002396/0.8362, allocations: 70.84 kB / 1.082 GB, free: 20.97 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.956e-05/0.8363, allocations: 15.97 kB / 1.082 GB, free: 20.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002408/0.8365, allocations: 59.92 kB / 1.082 GB, free: 20.93 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.925e-05/0.8366, allocations: 28.23 kB / 1.082 GB, free: 20.93 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.0002872/0.8369, allocations: 282.6 kB / 1.082 GB, free: 20.73 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.164e-05/0.8369, allocations: 67.64 kB / 1.083 GB, free: 20.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006759/0.8376, allocations: 412 kB / 1.083 GB, free: 20.54 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.8376, allocations: 7.219 kB / 1.083 GB, free: 20.54 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.8377, allocations: 1.094 kB / 1.083 GB, free: 20.54 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.8377, allocations: 4.172 kB / 1.083 GB, free: 20.54 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.839, allocations: 1.067 MB / 1.084 GB, free: 19.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.8391, allocations: 2.141 kB / 1.084 GB, free: 19.94 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.8392, allocations: 32.39 kB / 1.084 GB, free: 19.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.83e-06/0.8392, allocations: 3.344 kB / 1.084 GB, free: 19.93 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.8392, allocations: 12.97 kB / 1.084 GB, free: 19.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.8392, allocations: 2.875 kB / 1.084 GB, free: 19.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.8392, allocations: 3.203 kB / 1.084 GB, free: 19.93 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006366/0.8399, allocations: 0.532 MB / 1.085 GB, free: 19.61 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.548e-05/0.84, allocations: 140.3 kB / 1.085 GB, free: 19.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.306e-05/0.84, allocations: 15.78 kB / 1.085 GB, free: 19.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.8402, allocations: 18.61 kB / 1.085 GB, free: 19.46 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.8403, allocations: 52.78 kB / 1.085 GB, free: 19.44 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/0.8404, allocations: 24.38 kB / 1.085 GB, free: 19.44 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004234/0.8408, allocations: 398.8 kB / 1.085 GB, free: 19.27 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8408, allocations: 0 / 1.085 GB, free: 19.27 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005404/0.8414, allocations: 139.1 kB / 1.085 GB, free: 19.24 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.active,cooDow.localActive,$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.001507/0.8429, allocations: 457 kB / 1.086 GB, free: 19.07 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008672/0.8438, allocations: 440.4 kB / 1.086 GB, free: 18.94 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.8438, allocations: 0.6562 kB / 1.086 GB, free: 18.94 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003012/0.8441, allocations: 200 kB / 1.086 GB, free: 18.87 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005691/0.8447, allocations: 95.78 kB / 1.086 GB, free: 18.83 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.8464, allocations: 1.389 MB / 1.088 GB, free: 17.97 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.8468, allocations: 0.9359 MB / 1.089 GB, free: 17.25 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.847, allocations: 45.8 kB / 1.089 GB, free: 17.24 MB / 0.8419 GB Notification: Performance of SimCode: time 2.91e-07/0.847, allocations: 0 / 1.089 GB, free: 17.24 MB / 0.8419 GB Notification: Performance of Templates: time 0.01942/0.8664, allocations: 7.837 MB / 1.096 GB, free: 16 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches