Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.213/2.213, allocations: 387.1 MB / 399.7 MB, free: 9.52 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 180.4 kB / 492.3 MB, free: 0.6445 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 221.3 MB / 0.7871 GB, free: 12.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008943/0.0008943, allocations: 90.72 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.106e-05/3.137e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2586, allocations: 142.4 MB / 1.212 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9687/1.227, allocations: 157.3 MB / 1.366 GB, free: 18.99 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/1.228, allocations: 87.19 kB / 1.366 GB, free: 18.99 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03397/1.262, allocations: 14.51 MB / 1.38 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.464e-06/1.262, allocations: 0 / 1.38 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.0001182/1.262, allocations: 20.03 kB / 1.38 GB, free: 32.64 MB / 0.8386 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.001918/1.264, allocations: 0.8474 MB / 1.381 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/1.264, allocations: 11.5 kB / 1.381 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002149/1.264, allocations: 88.45 kB / 1.381 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002662/1.264, allocations: 84.56 kB / 1.381 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009566/1.265, allocations: 447 kB / 1.382 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.187e-05/1.265, allocations: 46.08 kB / 1.382 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/1.266, allocations: 55.56 kB / 1.382 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009744/1.267, allocations: 0.6074 MB / 1.383 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/1.267, allocations: 7.703 kB / 1.383 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.247e-05/1.267, allocations: 21.03 kB / 1.383 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/1.267, allocations: 15.38 kB / 1.383 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005934/1.267, allocations: 368.1 kB / 1.383 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/1.27, allocations: 2.575 MB / 1.385 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005097/1.27, allocations: 369.7 kB / 1.386 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/1.271, allocations: 176.1 kB / 1.386 GB, free: 29.01 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/1.271, allocations: 7.797 kB / 1.386 GB, free: 29.01 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003477/1.271, allocations: 287 kB / 1.386 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=44): time 3.346e-06/1.271, allocations: 0 / 1.386 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of matching and sorting (n=44): time 0.0006305/1.272, allocations: 398.6 kB / 1.387 GB, free: 28.72 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/1.272, allocations: 220.4 kB / 1.387 GB, free: 28.47 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006215/1.272, allocations: 0.5475 MB / 1.387 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.174e-05/1.272, allocations: 55.03 kB / 1.387 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002046/1.273, allocations: 352.7 kB / 1.388 GB, free: 28.08 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.481e-05/1.273, allocations: 106.7 kB / 1.388 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.978e-05/1.273, allocations: 14.28 kB / 1.388 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001304/1.273, allocations: 384.5 kB / 1.388 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/1.273, allocations: 132.4 kB / 1.388 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/1.273, allocations: 336.9 kB / 1.389 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/1.274, allocations: 152.2 kB / 1.389 GB, free: 27.39 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/1.274, allocations: 11.78 kB / 1.389 GB, free: 27.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0006932/1.274, allocations: 0.5191 MB / 1.389 GB, free: 27.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/1.274, allocations: 8.938 kB / 1.389 GB, free: 27.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/1.274, allocations: 7.844 kB / 1.389 GB, free: 27.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.462e-05/1.274, allocations: 11.64 kB / 1.389 GB, free: 27.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/1.275, allocations: 80.17 kB / 1.389 GB, free: 27.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/1.275, allocations: 15.44 kB / 1.389 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/1.275, allocations: 45.33 kB / 1.389 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/1.275, allocations: 29.91 kB / 1.39 GB, free: 27.18 MB / 0.8386 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,stateGraphRoot.resume,stateGraphRoot.suspend,transition5.condition,$whenCondition2,$whenCondition3,$whenCondition4,actMod,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled,notRun.y,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,$PRE.norm.localActive,norm.localActive,norm.inPort[2].occupied,norm.outPort[2].available,$PRE.norm.newActive,norm.newActive,$PRE.norm.oldActive,norm.oldActive,norm.active,stateGraphRoot.activeSteps,transition2.enableFire,transition1.enableFire,transition4.enableFire,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,off.active,transition3.enableFire,$PRE.timer.passed,timer.passed,$PRE.timer.entryTime,timer.entryTime,transition5.enableFire) * Number of discrete 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.0001458/1.275, allocations: 176.7 kB / 1.39 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.958e-05/1.275, allocations: 62 kB / 1.39 GB, free: 27.02 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005967/1.276, allocations: 407.6 kB / 1.39 GB, free: 26.9 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/1.276, allocations: 11.61 kB / 1.39 GB, free: 26.9 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/1.276, allocations: 0 / 1.39 GB, free: 26.9 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/1.276, allocations: 7.766 kB / 1.39 GB, free: 26.89 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/1.277, allocations: 1.072 MB / 1.391 GB, free: 26.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/1.277, allocations: 3.953 kB / 1.391 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/1.277, allocations: 30.55 kB / 1.391 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/1.277, allocations: 3.656 kB / 1.391 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/1.277, allocations: 11.48 kB / 1.391 GB, free: 26.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/1.277, allocations: 7.75 kB / 1.391 GB, free: 26.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.277, allocations: 7.75 kB / 1.391 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005535/1.278, allocations: 0.5866 MB / 1.392 GB, free: 26 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/1.278, allocations: 145.8 kB / 1.392 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.135e-05/1.278, allocations: 22.08 kB / 1.392 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/1.278, allocations: 17.92 kB / 1.392 GB, free: 25.85 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/1.278, allocations: 56.42 kB / 1.392 GB, free: 25.83 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/1.278, allocations: 26.64 kB / 1.392 GB, free: 25.82 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003757/1.279, allocations: 408 kB / 1.392 GB, free: 25.69 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.91e-07/1.279, allocations: 0 / 1.392 GB, free: 25.69 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000509/1.279, allocations: 130.1 kB / 1.393 GB, free: 25.68 MB / 0.8386 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.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled,notRun.y,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 38 * 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.001875/1.281, allocations: 1.792 MB / 1.394 GB, free: 24.37 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005768/1.282, allocations: 401.1 kB / 1.395 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/1.282, allocations: 0 / 1.395 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002488/1.282, allocations: 203.9 kB / 1.395 GB, free: 24.3 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004563/1.283, allocations: 89.69 kB / 1.395 GB, free: 24.27 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00176/1.284, allocations: 0.9952 MB / 1.396 GB, free: 23.79 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/1.285, allocations: 0.9421 MB / 1.397 GB, free: 22.99 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002362/1.285, allocations: 86.77 kB / 1.397 GB, free: 22.95 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000263/1.285, allocations: 248.1 kB / 1.397 GB, free: 22.92 MB / 0.8386 GB Notification: Performance of SimCode: time 4.21e-07/1.285, allocations: 0 / 1.397 GB, free: 22.92 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/1.313, allocations: 12.28 MB / 1.409 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/1.313, allocations: 199.1 kB / 1.409 GB, free: 13.22 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.439/3.752, allocations: 0 / 1.409 GB, free: 13.22 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown_res.mat does not exist to compare? outputFormat=mat