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.001191/0.001191, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.001132/0.001132, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.776/2.776, allocations: 436.5 MB / 0.7104 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006194/0.0006198, allocations: 12 kB / 0.8708 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8821/0.8827, allocations: 153.7 MB / 1.021 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.003308/0.8861, allocations: 2.387 MB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002369/0.8885, allocations: 1.561 MB / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002826/0.8888, allocations: 7.938 kB / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000874/0.8897, allocations: 286.8 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003821/0.8901, allocations: 155.6 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008075/0.8909, allocations: 290.3 kB / 1.025 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005534/0.8914, allocations: 468.4 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004536/0.8919, allocations: 382 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002336/0.8921, allocations: 219.2 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.8924, allocations: 234.9 kB / 1.027 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.43e-05/0.8925, allocations: 31.94 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.8927, allocations: 59.97 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.8928, allocations: 159.4 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.893, allocations: 133.3 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005269/0.8935, allocations: 0.5397 MB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.8935, allocations: 4 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.315e-06/0.8935, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.888e-06/0.8935, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 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.001231/0.8948, allocations: 0.8907 MB / 1.028 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.8948, allocations: 11.98 kB / 1.028 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.8949, allocations: 90.95 kB / 1.028 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006818/0.8956, allocations: 467.9 kB / 1.029 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.166e-05/0.8957, allocations: 53.3 kB / 1.029 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.574e-05/0.8958, allocations: 60 kB / 1.029 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008143/0.8966, allocations: 0.6091 MB / 1.03 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.8966, allocations: 0 / 1.03 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.8967, allocations: 27.98 kB / 1.03 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.8967, allocations: 12 kB / 1.03 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005792/0.8973, allocations: 375.6 kB / 1.03 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002397/0.8997, allocations: 2.588 MB / 1.033 GB, free: 4.793 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006235/0.9003, allocations: 380.1 kB / 1.033 GB, free: 4.367 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.9004, allocations: 11.98 kB / 1.033 GB, free: 4.355 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004359/0.9008, allocations: 285.5 kB / 1.033 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=44): time 2.054e-06/0.9008, allocations: 0 / 1.033 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of matching and sorting (n=44): time 0.0009313/0.9018, allocations: 0.4883 MB / 1.034 GB, free: 3.551 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.9019, allocations: 226.2 kB / 1.034 GB, free: 3.281 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006739/0.9026, allocations: 0.6157 MB / 1.035 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.392e-05/0.9026, allocations: 45.7 kB / 1.035 GB, free: 2.602 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002522/0.9029, allocations: 348.5 kB / 1.035 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.836e-05/0.903, allocations: 110.6 kB / 1.035 GB, free: 2.148 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.442e-05/0.903, allocations: 16 kB / 1.035 GB, free: 2.133 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.9032, allocations: 374.8 kB / 1.035 GB, free: 1.758 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/0.9034, allocations: 141.2 kB / 1.035 GB, free: 1.621 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003698/0.9038, allocations: 343.6 kB / 1.036 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.9041, allocations: 156.8 kB / 1.036 GB, free: 1.043 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.9041, allocations: 3.938 kB / 1.036 GB, free: 1.039 MB / 0.7794 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0007657/0.9049, allocations: 0.5341 MB / 1.036 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.9049, allocations: 7.953 kB / 1.036 GB, free: 500 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.9049, allocations: 8 kB / 1.037 GB, free: 492 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.9049, allocations: 8 kB / 1.037 GB, free: 484 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002246/0.9052, allocations: 75.83 kB / 1.037 GB, free: 408 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.9052, allocations: 11.94 kB / 1.037 GB, free: 396 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.9054, allocations: 67.89 kB / 1.037 GB, free: 328 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.52e-05/0.9055, allocations: 28 kB / 1.037 GB, free: 300 kB / 0.7794 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,$whenCondition1,$PRE.runSig.combiTimeTable.nextTimeEvent,$PRE.transition2.t_start,transition2.t_start,$PRE.transition1.t_start,transition1.t_start,$PRE.transition4.t_start,transition4.t_start,$PRE.transition3.t_start,transition3.t_start,$PRE.transition5.t_start,transition5.t_start,transition5.condition,stateGraphRoot.resume,stateGraphRoot.suspend,$whenCondition2,$whenCondition3,$whenCondition4,actMod,runSig.y,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled,and1.y,$PRE.cooDow.localActive,cooDow.localActive,cooDow.inPort[2].occupied,cooDow.outPort[2].available,$PRE.cooDow.newActive,cooDow.newActive,$PRE.cooDow.oldActive,cooDow.oldActive,cooDow.active,norm.active,$PRE.norm.localActive,norm.localActive,norm.inPort[2].occupied,norm.outPort[2].available,$PRE.norm.newActive,norm.newActive,$PRE.norm.oldActive,norm.oldActive,stateGraphRoot.activeSteps,transition2.enableFire,transition1.enableFire,transition4.enableFire,off.active,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,transition3.enableFire,$PRE.timer.passed,timer.passed,$PRE.timer.entryTime,timer.entryTime,transition5.enableFire) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003297/0.9058, allocations: 277.5 kB / 1.037 GB, free: 12 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.852e-05/0.9059, allocations: 63.3 kB / 1.037 GB, free: 15.95 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006492/0.9066, allocations: 411 kB / 1.037 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.9066, allocations: 8 kB / 1.037 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.9066, allocations: 4 kB / 1.037 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.9066, allocations: 3.984 kB / 1.037 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.9081, allocations: 1.071 MB / 1.038 GB, free: 14.39 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.9081, allocations: 4 kB / 1.038 GB, free: 14.39 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.9082, allocations: 31.91 kB / 1.039 GB, free: 14.36 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.346e-06/0.9082, allocations: 4 kB / 1.039 GB, free: 14.35 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.903e-05/0.9082, allocations: 8 kB / 1.039 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.9083, allocations: 4 kB / 1.039 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/0.9083, allocations: 3.984 kB / 1.039 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007185/0.909, allocations: 0.5843 MB / 1.039 GB, free: 13.69 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.9091, allocations: 148.2 kB / 1.039 GB, free: 13.53 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.972e-05/0.9092, allocations: 23.98 kB / 1.039 GB, free: 13.5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.9094, allocations: 15.98 kB / 1.039 GB, free: 13.49 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.9095, allocations: 47.89 kB / 1.039 GB, free: 13.44 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.9095, allocations: 27.92 kB / 1.039 GB, free: 13.41 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003996/0.91, allocations: 394.8 kB / 1.04 GB, free: 13.03 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.91, allocations: 0 / 1.04 GB, free: 13.03 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005252/0.9105, allocations: 135.6 kB / 1.04 GB, free: 12.9 MB / 0.795 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001001/0.9115, allocations: 459.4 kB / 1.04 GB, free: 12.6 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006738/0.9122, allocations: 402.6 kB / 1.041 GB, free: 12.21 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.9122, allocations: 0 / 1.041 GB, free: 12.21 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002903/0.9125, allocations: 200.4 kB / 1.041 GB, free: 12.01 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.9129, allocations: 78.22 kB / 1.041 GB, free: 11.94 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.9147, allocations: 1.316 MB / 1.042 GB, free: 10.57 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004764/0.9152, allocations: 0.9458 MB / 1.043 GB, free: 9.602 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002244/0.9154, allocations: 80.36 kB / 1.043 GB, free: 9.523 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.9156, allocations: 47.42 kB / 1.043 GB, free: 9.477 MB / 0.795 GB Notification: Performance of SimCode: time 8.51e-07/0.9156, allocations: 0 / 1.043 GB, free: 9.477 MB / 0.795 GB Notification: Performance of Templates: time 0.01176/0.9273, allocations: 5.086 MB / 1.048 GB, free: 4.438 MB / 0.795 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","../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches