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.001248/0.001248, allocations: 110.9 kB / 16.41 MB, free: 6.008 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.00128/0.00128, allocations: 182.2 kB / 17.34 MB, free: 5.629 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.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.463/2.463, allocations: 437 MB / 0.7112 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 63.91 kB / 1.019 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7816/0.783, allocations: 151.6 MB / 1.167 GB, free: 3.871 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004324/0.7874, allocations: 2.782 MB / 1.17 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002751/0.7902, allocations: 1.677 MB / 1.172 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003257/0.7905, allocations: 7.938 kB / 1.172 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001023/0.7916, allocations: 303.9 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0006009/0.7922, allocations: 190.9 kB / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009401/0.7931, allocations: 373.2 kB / 1.173 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0009226/0.7941, allocations: 0.734 MB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007086/0.7948, allocations: 475.1 kB / 1.174 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003864/0.7952, allocations: 271 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003878/0.7956, allocations: 282.7 kB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.7957, allocations: 59.94 kB / 1.174 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002576/0.7959, allocations: 112 kB / 1.174 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001863/0.7961, allocations: 207.3 kB / 1.175 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003049/0.7965, allocations: 326 kB / 1.175 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000908/0.7974, allocations: 0.8114 MB / 1.176 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7974, allocations: 0 / 1.176 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.134e-06/0.7974, allocations: 0 / 1.176 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.271e-05/0.7974, allocations: 0 / 1.176 GB, free: 11.29 MB / 0.9044 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.001661/0.7991, allocations: 1.031 MB / 1.177 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.7991, allocations: 12.03 kB / 1.177 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.7993, allocations: 87.91 kB / 1.177 GB, free: 10.1 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007214/0.8, allocations: 496.7 kB / 1.177 GB, free: 9.574 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.472e-05/0.8001, allocations: 45.69 kB / 1.177 GB, free: 9.531 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.096e-05/0.8002, allocations: 67.92 kB / 1.177 GB, free: 9.465 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00092/0.8011, allocations: 0.613 MB / 1.178 GB, free: 8.789 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.8011, allocations: 3.938 kB / 1.178 GB, free: 8.785 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.686e-05/0.8012, allocations: 24 kB / 1.178 GB, free: 8.762 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.8012, allocations: 12 kB / 1.178 GB, free: 8.75 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006585/0.8019, allocations: 387.5 kB / 1.178 GB, free: 8.371 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002973/0.8049, allocations: 2.58 MB / 1.181 GB, free: 5.68 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006983/0.8056, allocations: 377.9 kB / 1.181 GB, free: 5.258 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002711/0.8059, allocations: 176.9 kB / 1.181 GB, free: 5.066 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.489e-05/0.8059, allocations: 7.984 kB / 1.181 GB, free: 5.059 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004702/0.8064, allocations: 289.5 kB / 1.182 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=44): time 2.826e-06/0.8064, allocations: 0 / 1.182 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of matching and sorting (n=44): time 0.001003/0.8074, allocations: 0.5002 MB / 1.182 GB, free: 4.238 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.8076, allocations: 221.5 kB / 1.182 GB, free: 3.973 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000785/0.8083, allocations: 0.6119 MB / 1.183 GB, free: 3.352 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.298e-05/0.8084, allocations: 49.69 kB / 1.183 GB, free: 3.297 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003032/0.8087, allocations: 344.6 kB / 1.183 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.8088, allocations: 111.2 kB / 1.183 GB, free: 2.844 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/0.8091, allocations: 162.2 kB / 1.184 GB, free: 2.68 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.8092, allocations: 374.8 kB / 1.184 GB, free: 2.305 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002833/0.8095, allocations: 145.2 kB / 1.184 GB, free: 2.16 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003995/0.8099, allocations: 338.9 kB / 1.184 GB, free: 1.746 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005742/0.8105, allocations: 437 kB / 1.185 GB, free: 1.242 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.8105, allocations: 0 / 1.185 GB, free: 1.242 MB / 0.9044 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.000878/0.8114, allocations: 0.5382 MB / 1.185 GB, free: 0.6914 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.8115, allocations: 10.5 kB / 1.185 GB, free: 0.6836 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.8115, allocations: 7.938 kB / 1.185 GB, free: 0.6758 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.858e-05/0.8115, allocations: 19.92 kB / 1.185 GB, free: 0.6562 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/0.8118, allocations: 75.77 kB / 1.186 GB, free: 0.582 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.946e-05/0.8118, allocations: 15.94 kB / 1.186 GB, free: 0.5664 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/0.8121, allocations: 59.42 kB / 1.186 GB, free: 0.5078 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.8121, allocations: 28.34 kB / 1.186 GB, free: 492 kB / 0.9044 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.0003609/0.8125, allocations: 277.5 kB / 1.186 GB, free: 204 kB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.866e-05/0.8126, allocations: 63.25 kB / 1.186 GB, free: 140 kB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007087/0.8133, allocations: 419.1 kB / 1.186 GB, free: 15.72 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/0.8133, allocations: 4 kB / 1.186 GB, free: 15.71 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.8133, allocations: 7.938 kB / 1.186 GB, free: 15.71 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.8133, allocations: 3.984 kB / 1.186 GB, free: 15.7 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.8148, allocations: 1.052 MB / 1.187 GB, free: 14.59 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.8149, allocations: 11.92 kB / 1.187 GB, free: 14.58 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.815, allocations: 31.91 kB / 1.187 GB, free: 14.55 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.815, allocations: 4 kB / 1.187 GB, free: 14.54 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.815, allocations: 8 kB / 1.187 GB, free: 14.54 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.815, allocations: 4 kB / 1.187 GB, free: 14.53 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.8151, allocations: 3.984 kB / 1.187 GB, free: 14.53 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006818/0.8157, allocations: 0.5265 MB / 1.188 GB, free: 13.97 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.8159, allocations: 152.1 kB / 1.188 GB, free: 13.8 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.605e-05/0.816, allocations: 12 kB / 1.188 GB, free: 13.79 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.8162, allocations: 19.98 kB / 1.188 GB, free: 13.77 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.8163, allocations: 47.89 kB / 1.188 GB, free: 13.72 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.266e-05/0.8163, allocations: 23.98 kB / 1.188 GB, free: 13.7 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0004169/0.8167, allocations: 394.8 kB / 1.189 GB, free: 13.32 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8167, allocations: 0 / 1.189 GB, free: 13.32 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005649/0.8173, allocations: 135.7 kB / 1.189 GB, free: 13.18 MB / 0.92 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.001066/0.8184, allocations: 468 kB / 1.189 GB, free: 12.88 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0007164/0.8191, allocations: 402.7 kB / 1.19 GB, free: 12.49 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.8191, allocations: 4.125 kB / 1.19 GB, free: 12.48 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002937/0.8194, allocations: 188.5 kB / 1.19 GB, free: 12.3 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005836/0.82, allocations: 96.62 kB / 1.19 GB, free: 12.21 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001808/0.8218, allocations: 1.186 MB / 1.191 GB, free: 10.98 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005129/0.8224, allocations: 0.9336 MB / 1.192 GB, free: 10.02 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.8225, allocations: 51.42 kB / 1.192 GB, free: 9.965 MB / 0.92 GB Notification: Performance of SimCode: time 6.01e-07/0.8225, allocations: 0 / 1.192 GB, free: 9.965 MB / 0.92 GB Notification: Performance of Templates: time 0.0122/0.8347, allocations: 7.876 MB / 1.2 GB, free: 2.129 MB / 0.92 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/jenkins1/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