Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001406/0.001406, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001801/0.001801, allocations: 192.3 kB / 16.14 MB, free: 6.711 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.452/1.452, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.624/2.624, allocations: 437 MB / 0.7099 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.91 kB / 0.8685 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8081/0.8094, allocations: 151.6 MB / 1.017 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004735/0.8142, allocations: 2.894 MB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003043/0.8172, allocations: 1.681 MB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002132/0.8175, allocations: 7.938 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009904/0.8185, allocations: 286.8 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003851/0.8189, allocations: 151.4 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008215/0.8197, allocations: 332.5 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007847/0.8205, allocations: 0.7027 MB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005677/0.8211, allocations: 454.2 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.8214, allocations: 247 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003015/0.8217, allocations: 282.6 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.35e-05/0.8218, allocations: 36 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002149/0.822, allocations: 83.95 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001887/0.8222, allocations: 183.3 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003206/0.8225, allocations: 314 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008152/0.8234, allocations: 0.7162 MB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.8234, allocations: 8 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.072e-06/0.8234, allocations: 0 / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.341e-05/0.8234, allocations: 0 / 1.025 GB, free: 10.44 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.001707/0.8251, allocations: 1.027 MB / 1.026 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.8252, allocations: 8.031 kB / 1.026 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.8253, allocations: 87.91 kB / 1.026 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000739/0.8261, allocations: 0.4889 MB / 1.026 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.946e-05/0.8262, allocations: 45.69 kB / 1.026 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.824e-05/0.8262, allocations: 59.94 kB / 1.026 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009896/0.8272, allocations: 0.6246 MB / 1.027 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.8273, allocations: 4 kB / 1.027 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.8274, allocations: 20 kB / 1.027 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.8274, allocations: 16 kB / 1.027 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006678/0.8281, allocations: 383.5 kB / 1.027 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002901/0.831, allocations: 2.588 MB / 1.03 GB, free: 4.828 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006882/0.8317, allocations: 372 kB / 1.03 GB, free: 4.41 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.832, allocations: 181 kB / 1.03 GB, free: 4.215 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.181e-05/0.832, allocations: 4 kB / 1.03 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005197/0.8326, allocations: 293.4 kB / 1.031 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=44): time 2.214e-06/0.8326, allocations: 0 / 1.031 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of matching and sorting (n=44): time 0.001001/0.8336, allocations: 0.4988 MB / 1.031 GB, free: 3.391 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.8337, allocations: 217.6 kB / 1.031 GB, free: 3.129 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007007/0.8344, allocations: 0.6119 MB / 1.032 GB, free: 2.504 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.378e-05/0.8345, allocations: 49.7 kB / 1.032 GB, free: 2.449 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/0.8348, allocations: 349.2 kB / 1.032 GB, free: 2.105 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.099e-05/0.8349, allocations: 110.6 kB / 1.033 GB, free: 1.996 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/0.8351, allocations: 150.3 kB / 1.033 GB, free: 1.844 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001718/0.8352, allocations: 382.8 kB / 1.033 GB, free: 1.461 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003123/0.8356, allocations: 137.2 kB / 1.033 GB, free: 1.324 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004011/0.836, allocations: 346.9 kB / 1.034 GB, free: 0.9023 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005807/0.8366, allocations: 444.9 kB / 1.034 GB, free: 396 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.8366, allocations: 0 / 1.034 GB, free: 396 kB / 0.7794 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.000934/0.8375, allocations: 0.5381 MB / 1.034 GB, free: 15.84 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.8375, allocations: 8 kB / 1.034 GB, free: 15.83 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.8376, allocations: 7.938 kB / 1.034 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.8376, allocations: 12 kB / 1.034 GB, free: 15.81 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.8378, allocations: 75.77 kB / 1.035 GB, free: 15.74 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/0.8379, allocations: 15.88 kB / 1.035 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.8381, allocations: 63.89 kB / 1.035 GB, free: 15.66 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.65e-05/0.8382, allocations: 32 kB / 1.035 GB, free: 15.63 MB / 0.795 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.000335/0.8385, allocations: 267.7 kB / 1.035 GB, free: 15.36 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.724e-05/0.8386, allocations: 71.23 kB / 1.035 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007445/0.8393, allocations: 403.1 kB / 1.035 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/0.8394, allocations: 8 kB / 1.035 GB, free: 14.88 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.8394, allocations: 7.938 kB / 1.035 GB, free: 14.87 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.8394, allocations: 7.984 kB / 1.035 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.8411, allocations: 1.059 MB / 1.036 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.8411, allocations: 7.938 kB / 1.036 GB, free: 13.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.8412, allocations: 23.92 kB / 1.036 GB, free: 13.71 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.8413, allocations: 8 kB / 1.036 GB, free: 13.7 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.8413, allocations: 15.98 kB / 1.036 GB, free: 13.69 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.8413, allocations: 4 kB / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.8413, allocations: 0 / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007744/0.8421, allocations: 0.5407 MB / 1.037 GB, free: 13.11 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.8423, allocations: 140.2 kB / 1.037 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.887e-05/0.8423, allocations: 15.98 kB / 1.037 GB, free: 12.94 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.8425, allocations: 15.98 kB / 1.037 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.8427, allocations: 47.88 kB / 1.037 GB, free: 12.88 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/0.8427, allocations: 23.98 kB / 1.037 GB, free: 12.86 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004831/0.8432, allocations: 402.8 kB / 1.038 GB, free: 12.46 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.8432, allocations: 0 / 1.038 GB, free: 12.46 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005799/0.8438, allocations: 135.6 kB / 1.038 GB, free: 12.33 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 (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.001357/0.8452, allocations: 460.2 kB / 1.038 GB, free: 12.03 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007766/0.846, allocations: 405.3 kB / 1.039 GB, free: 11.63 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.846, allocations: 0 / 1.039 GB, free: 11.63 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003388/0.8463, allocations: 198 kB / 1.039 GB, free: 11.44 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006323/0.847, allocations: 94.12 kB / 1.039 GB, free: 11.36 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002207/0.8492, allocations: 1.355 MB / 1.04 GB, free: 9.953 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.8498, allocations: 0.9391 MB / 1.041 GB, free: 8.992 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002555/0.8501, allocations: 80.34 kB / 1.041 GB, free: 8.914 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.8502, allocations: 43.42 kB / 1.041 GB, free: 8.871 MB / 0.795 GB Notification: Performance of SimCode: time 6.31e-07/0.8502, allocations: 4 kB / 1.041 GB, free: 8.867 MB / 0.795 GB Notification: Performance of Templates: time 0.01157/0.8618, allocations: 5.286 MB / 1.046 GB, free: 3.625 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches