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.001491/0.001491, allocations: 108 kB / 15.61 MB, free: 152 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.001857/0.001857, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.493/1.493, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.743/2.743, allocations: 437 MB / 0.7103 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.91 kB / 0.8692 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8774/0.8787, allocations: 151.6 MB / 1.017 GB, free: 2.547 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.005039/0.8838, allocations: 2.792 MB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002913/0.8867, allocations: 1.681 MB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00023/0.887, allocations: 8 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009573/0.888, allocations: 310.5 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004331/0.8884, allocations: 186.9 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008775/0.8893, allocations: 375.7 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008102/0.8901, allocations: 0.7185 MB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005744/0.8907, allocations: 481.4 kB / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000268/0.891, allocations: 271 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.8913, allocations: 286.6 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.303e-05/0.8914, allocations: 56 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.8916, allocations: 108 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.8918, allocations: 195.3 kB / 1.025 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.8921, allocations: 330 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007753/0.8929, allocations: 0.7746 MB / 1.026 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.8929, allocations: 3.938 kB / 1.026 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.472e-06/0.8929, allocations: 0 / 1.026 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.988e-06/0.8929, allocations: 0 / 1.026 GB, free: 9.988 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.001484/0.8944, allocations: 1.023 MB / 1.027 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.8945, allocations: 12.03 kB / 1.027 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.8946, allocations: 91.89 kB / 1.027 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006203/0.8953, allocations: 492.7 kB / 1.027 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.656e-05/0.8953, allocations: 53.67 kB / 1.027 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.645e-05/0.8954, allocations: 63.92 kB / 1.027 GB, free: 8.176 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008744/0.8963, allocations: 0.6169 MB / 1.028 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.8963, allocations: 0 / 1.028 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.73e-05/0.8964, allocations: 23.98 kB / 1.028 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.8964, allocations: 16 kB / 1.028 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006048/0.897, allocations: 379.6 kB / 1.028 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002437/0.8994, allocations: 2.588 MB / 1.031 GB, free: 4.387 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006369/0.9001, allocations: 378.3 kB / 1.031 GB, free: 3.965 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002458/0.9003, allocations: 177.1 kB / 1.031 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.9004, allocations: 7.984 kB / 1.031 GB, free: 3.766 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004368/0.9008, allocations: 297.4 kB / 1.032 GB, free: 3.445 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=44): time 2.104e-06/0.9008, allocations: 0 / 1.032 GB, free: 3.445 MB / 0.7794 GB Notification: Performance of matching and sorting (n=44): time 0.0009429/0.9018, allocations: 0.4987 MB / 1.032 GB, free: 2.941 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.9019, allocations: 221.6 kB / 1.032 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006447/0.9026, allocations: 0.6042 MB / 1.033 GB, free: 2.059 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.9026, allocations: 53.7 kB / 1.033 GB, free: 2 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002493/0.9029, allocations: 349.1 kB / 1.033 GB, free: 1.656 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.868e-05/0.903, allocations: 114.6 kB / 1.033 GB, free: 1.543 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/0.9032, allocations: 154.2 kB / 1.034 GB, free: 1.387 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.9033, allocations: 378.8 kB / 1.034 GB, free: 1.008 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002655/0.9036, allocations: 141.2 kB / 1.034 GB, free: 0.8672 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003786/0.904, allocations: 340.1 kB / 1.034 GB, free: 464 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005504/0.9045, allocations: 433 kB / 1.035 GB, free: 15.95 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.9046, allocations: 4 kB / 1.035 GB, free: 15.94 MB / 0.795 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0008082/0.9054, allocations: 0.5458 MB / 1.035 GB, free: 15.39 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.9054, allocations: 4 kB / 1.035 GB, free: 15.39 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.9054, allocations: 8 kB / 1.035 GB, free: 15.38 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.9055, allocations: 8 kB / 1.035 GB, free: 15.37 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.9057, allocations: 71.84 kB / 1.035 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.808e-05/0.9057, allocations: 19.86 kB / 1.035 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.906, allocations: 63.94 kB / 1.035 GB, free: 15.22 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.342e-05/0.906, allocations: 28 kB / 1.036 GB, free: 15.19 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.0003212/0.9063, allocations: 274.8 kB / 1.036 GB, free: 14.91 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.327e-05/0.9064, allocations: 59.25 kB / 1.036 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006865/0.9071, allocations: 411.1 kB / 1.036 GB, free: 14.45 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.9071, allocations: 15.98 kB / 1.036 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.9072, allocations: 3.938 kB / 1.036 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.9072, allocations: 0 / 1.036 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001385/0.9086, allocations: 1.063 MB / 1.037 GB, free: 13.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.9086, allocations: 3.938 kB / 1.037 GB, free: 13.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.861e-05/0.9087, allocations: 27.86 kB / 1.037 GB, free: 13.27 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.884e-06/0.9087, allocations: 8 kB / 1.037 GB, free: 13.26 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/0.9087, allocations: 19.92 kB / 1.037 GB, free: 13.24 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.9087, allocations: 4 kB / 1.037 GB, free: 13.24 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.9088, allocations: 8 kB / 1.037 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006571/0.9094, allocations: 0.5368 MB / 1.038 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.9095, allocations: 140.1 kB / 1.038 GB, free: 12.51 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.454e-05/0.9096, allocations: 19.98 kB / 1.038 GB, free: 12.49 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.9098, allocations: 8 kB / 1.038 GB, free: 12.48 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.9099, allocations: 47.94 kB / 1.038 GB, free: 12.43 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.91, allocations: 23.98 kB / 1.038 GB, free: 12.41 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004107/0.9104, allocations: 402.8 kB / 1.038 GB, free: 12.02 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9104, allocations: 0 / 1.038 GB, free: 12.02 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000506/0.9109, allocations: 139.6 kB / 1.039 GB, free: 11.88 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.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.0009957/0.9119, allocations: 454.2 kB / 1.039 GB, free: 11.59 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008264/0.9127, allocations: 437.3 kB / 1.039 GB, free: 11.16 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.9127, allocations: 4 kB / 1.039 GB, free: 11.15 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000303/0.9131, allocations: 197.9 kB / 1.04 GB, free: 10.96 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000566/0.9136, allocations: 106.4 kB / 1.04 GB, free: 10.86 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.9153, allocations: 1.154 MB / 1.041 GB, free: 9.668 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/0.9158, allocations: 0.9299 MB / 1.042 GB, free: 8.711 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002264/0.9161, allocations: 80.36 kB / 1.042 GB, free: 8.633 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.9162, allocations: 51.36 kB / 1.042 GB, free: 8.582 MB / 0.795 GB Notification: Performance of SimCode: time 2.8e-07/0.9162, allocations: 0 / 1.042 GB, free: 8.582 MB / 0.795 GB Notification: Performance of Templates: time 0.01149/0.9277, allocations: 5.576 MB / 1.047 GB, free: 3.055 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