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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001047/0.001052, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 181.8 kB / 16.92 MB, free: 6.918 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: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.765/2.765, allocations: 462.7 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003217/0.0003218, allocations: 10.47 kB / 0.9034 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.313, allocations: 159.6 MB / 1.059 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.003545/0.3166, allocations: 2.497 MB / 1.062 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002849/0.3195, allocations: 1.65 MB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003716/0.3199, allocations: 11.94 kB / 1.063 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0009952/0.3209, allocations: 291.3 kB / 1.064 GB, free: 484 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004738/0.3214, allocations: 155.3 kB / 1.064 GB, free: 328 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009128/0.3223, allocations: 330.4 kB / 1.064 GB, free: 0 / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008579/0.3232, allocations: 0.6988 MB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006474/0.3238, allocations: 407.1 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003319/0.3242, allocations: 219 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003526/0.3245, allocations: 246.7 kB / 1.066 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.188e-05/0.3246, allocations: 24 kB / 1.066 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002152/0.3248, allocations: 71.95 kB / 1.066 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.325, allocations: 163.3 kB / 1.066 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002765/0.3253, allocations: 307.7 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005395/0.3258, allocations: 0.5379 MB / 1.067 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3259, allocations: 3.938 kB / 1.067 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3259, allocations: 4 kB / 1.067 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.043e-05/0.3259, allocations: 0 / 1.067 GB, free: 13.33 MB / 0.8262 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.001413/0.3273, allocations: 0.8908 MB / 1.068 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.3274, allocations: 8.031 kB / 1.068 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.3275, allocations: 91.89 kB / 1.068 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000643/0.3282, allocations: 488.7 kB / 1.068 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.87e-05/0.3283, allocations: 53.67 kB / 1.068 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.6e-05/0.3283, allocations: 59.94 kB / 1.068 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009441/0.3293, allocations: 0.6169 MB / 1.069 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.3293, allocations: 0 / 1.069 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.553e-05/0.3294, allocations: 31.97 kB / 1.069 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.3294, allocations: 12 kB / 1.069 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006591/0.3301, allocations: 383.5 kB / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002628/0.3327, allocations: 2.584 MB / 1.072 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006937/0.3334, allocations: 398.5 kB / 1.072 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002623/0.3337, allocations: 173 kB / 1.072 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.633e-05/0.3337, allocations: 8 kB / 1.072 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004608/0.3342, allocations: 293.4 kB / 1.073 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=44): time 3.026e-06/0.3342, allocations: 0 / 1.073 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44): time 0.0009659/0.3352, allocations: 0.4951 MB / 1.073 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/0.3353, allocations: 225.5 kB / 1.073 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000721/0.3361, allocations: 0.6157 MB / 1.074 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.161e-05/0.3361, allocations: 50.33 kB / 1.074 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002899/0.3364, allocations: 348.6 kB / 1.074 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.3366, allocations: 110.6 kB / 1.074 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.3367, allocations: 101.7 kB / 1.075 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3368, allocations: 378.8 kB / 1.075 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.3371, allocations: 137.2 kB / 1.075 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003964/0.3375, allocations: 350.9 kB / 1.075 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005927/0.3381, allocations: 432.9 kB / 1.076 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3382, allocations: 4 kB / 1.076 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.000876/0.339, allocations: 0.5301 MB / 1.076 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.3391, allocations: 8 kB / 1.076 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.3391, allocations: 8 kB / 1.076 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.722e-05/0.3391, allocations: 11.98 kB / 1.076 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.3394, allocations: 84.39 kB / 1.076 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.806e-05/0.3394, allocations: 15.88 kB / 1.076 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.3397, allocations: 67.36 kB / 1.076 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.088e-05/0.3397, allocations: 32 kB / 1.076 GB, free: 2.688 MB / 0.8262 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.0003308/0.3401, allocations: 265.6 kB / 1.077 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.937e-05/0.3402, allocations: 67.23 kB / 1.077 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007244/0.3409, allocations: 403.2 kB / 1.077 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.588e-05/0.3409, allocations: 8 kB / 1.077 GB, free: 1.938 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3409, allocations: 3.938 kB / 1.077 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.341, allocations: 7.984 kB / 1.077 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/0.3425, allocations: 1.075 MB / 1.078 GB, free: 0.7852 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.3425, allocations: 7.922 kB / 1.078 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.3426, allocations: 23.92 kB / 1.078 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.583e-06/0.3427, allocations: 4 kB / 1.078 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.3427, allocations: 15.98 kB / 1.078 GB, free: 0.7344 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.3427, allocations: 4 kB / 1.078 GB, free: 0.7305 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3427, allocations: 4 kB / 1.078 GB, free: 0.7266 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006914/0.3434, allocations: 0.529 MB / 1.079 GB, free: 168 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.3435, allocations: 144.2 kB / 1.079 GB, free: 4 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.861e-05/0.3436, allocations: 12.08 kB / 1.079 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.3438, allocations: 23.98 kB / 1.079 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.3439, allocations: 51.88 kB / 1.079 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.362e-05/0.344, allocations: 23.92 kB / 1.079 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000412/0.3444, allocations: 402.8 kB / 1.079 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3444, allocations: 0 / 1.079 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005421/0.345, allocations: 143.5 kB / 1.08 GB, free: 15.36 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.00109/0.3461, allocations: 447 kB / 1.08 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007361/0.3468, allocations: 406.6 kB / 1.08 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3468, allocations: 3.938 kB / 1.08 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003026/0.3471, allocations: 180.2 kB / 1.081 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/0.3478, allocations: 103.6 kB / 1.081 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.3499, allocations: 1.42 MB / 1.082 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005219/0.3505, allocations: 0.9386 MB / 1.083 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.3506, allocations: 47.42 kB / 1.083 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of SimCode: time 6.01e-07/0.3506, allocations: 0 / 1.083 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of Templates: time 0.01328/0.3639, allocations: 7.79 MB / 1.091 GB, free: 4.172 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