Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 105.7 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 185.9 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 225.6 MB / 249.3 MB, free: 3.172 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002193/0.002193, allocations: 286.3 kB / 304.7 MB, free: 3.582 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9647/0.9647, allocations: 180.9 MB / 0.5281 GB, free: 1.977 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002545/0.002545, allocations: 100.2 kB / 0.7278 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4376/0.4401, allocations: 94.15 MB / 0.8197 GB, free: 7.211 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.002596/0.4427, allocations: 2.106 MB / 0.8218 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0006845/0.4434, allocations: 0.5747 MB / 0.8223 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.767e-05/0.4435, allocations: 2.438 kB / 0.8223 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.4436, allocations: 24.39 kB / 0.8223 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 7.53e-05/0.4437, allocations: 42.05 kB / 0.8224 GB, free: 5.309 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002272/0.4439, allocations: 93.41 kB / 0.8225 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.4441, allocations: 262.3 kB / 0.8227 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.4443, allocations: 88.92 kB / 0.8228 GB, free: 5.078 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.4444, allocations: 115.1 kB / 0.8229 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.4446, allocations: 115 kB / 0.823 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.236e-05/0.4446, allocations: 26.06 kB / 0.8231 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 3.389e-05/0.4446, allocations: 25.81 kB / 0.8231 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.833e-05/0.4447, allocations: 63.98 kB / 0.8231 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.018e-05/0.4448, allocations: 111 kB / 0.8232 GB, free: 4.844 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002712/0.4451, allocations: 288.3 kB / 0.8235 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4451, allocations: 0.6562 kB / 0.8235 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.302e-06/0.4451, allocations: 0 / 0.8235 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.916e-06/0.4451, allocations: 1.281 kB / 0.8235 GB, free: 4.719 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0009336/0.446, allocations: 0.64 MB / 0.8241 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 2.996e-05/0.446, allocations: 8.938 kB / 0.8242 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.687e-05/0.4461, allocations: 60.58 kB / 0.8242 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.233e-05/0.4461, allocations: 30.53 kB / 0.8242 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.4464, allocations: 264.2 kB / 0.8245 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.4464, allocations: 18.53 kB / 0.8245 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.4464, allocations: 23.72 kB / 0.8245 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005346/0.447, allocations: 275 kB / 0.8248 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.447, allocations: 0 / 0.8248 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.447, allocations: 8.109 kB / 0.8248 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.447, allocations: 5.562 kB / 0.8248 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006081/0.4476, allocations: 198.6 kB / 0.825 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009279/0.4485, allocations: 0.6262 MB / 0.8256 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007447/0.4493, allocations: 219.1 kB / 0.8258 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.4496, allocations: 82.95 kB / 0.8259 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.4496, allocations: 4 kB / 0.8259 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004147/0.45, allocations: 185.6 kB / 0.8261 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.45, allocations: 0 / 0.8261 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of matching and sorting (n=18): time 0.0009437/0.4509, allocations: 339.2 kB / 0.8264 GB, free: 2.965 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.451, allocations: 108 kB / 0.8265 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.4511, allocations: 199.5 kB / 0.8267 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.4511, allocations: 40.03 kB / 0.8267 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.084e-05/0.4512, allocations: 160.3 kB / 0.8269 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.4512, allocations: 51.94 kB / 0.8269 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.153e-05/0.4513, allocations: 61.36 kB / 0.827 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.594e-05/0.4514, allocations: 336.5 kB / 0.8273 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003279/0.4517, allocations: 106.8 kB / 0.8274 GB, free: 2.105 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003474/0.452, allocations: 175 kB / 0.8276 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005745/0.4526, allocations: 308.5 kB / 0.8279 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4526, allocations: 4 kB / 0.8279 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007577/0.4534, allocations: 428 kB / 0.8283 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/0.4534, allocations: 91.81 kB / 0.8284 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.4534, allocations: 2.781 kB / 0.8284 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.4534, allocations: 3.656 kB / 0.8284 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.4536, allocations: 54.12 kB / 0.8284 GB, free: 1.473 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.4536, allocations: 7.281 kB / 0.8284 GB, free: 1.469 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002955/0.4539, allocations: 54.25 kB / 0.8285 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.4539, allocations: 8.875 kB / 0.8285 GB, free: 1.457 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 25 (antFre.disErr.y,$PRE.antFre.disErr.y,TEvaOutEmu.count,$PRE.TEvaOutEmu.count,TEvaOutEmu.T_start,$PRE.TEvaOutEmu.T_start,TConInEmu.count,$PRE.TConInEmu.count,TConInEmu.T_start,$PRE.TConInEmu.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,antFre.hys.y,$PRE.antFre.hys.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,antFre.intConOne.y,antFre.disErr.local_set,antFre.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 3 * 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 9.453e-05/0.454, allocations: 152.1 kB / 0.8287 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.4541, allocations: 24.3 kB / 0.8287 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006691/0.4547, allocations: 260 kB / 0.8289 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.4547, allocations: 2.531 kB / 0.8289 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.4547, allocations: 0 / 0.8289 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.4547, allocations: 7.688 kB / 0.8289 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008128/0.4555, allocations: 0.5792 MB / 0.8295 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4555, allocations: 0 / 0.8295 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.4557, allocations: 30.14 kB / 0.8295 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.4557, allocations: 4.656 kB / 0.8295 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.4557, allocations: 7.109 kB / 0.8295 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.4557, allocations: 0.5156 kB / 0.8295 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.4557, allocations: 1.25 kB / 0.8295 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006404/0.4564, allocations: 349.7 kB / 0.8299 GB, free: 0.6328 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.003e-05/0.4564, allocations: 92.08 kB / 0.83 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.4564, allocations: 8.875 kB / 0.83 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/0.4567, allocations: 38.5 kB / 0.83 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.4568, allocations: 42.81 kB / 0.83 GB, free: 0.5156 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.4568, allocations: 11.33 kB / 0.8301 GB, free: 0.5117 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 8.026e-05/0.4569, allocations: 140.6 kB / 0.8302 GB, free: 428 kB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.4569, allocations: 4 kB / 0.8302 GB, free: 424 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002656/0.4572, allocations: 64.3 kB / 0.8303 GB, free: 404 kB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 6 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001265/0.4584, allocations: 0.9999 MB / 0.8312 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008453/0.4593, allocations: 408.4 kB / 0.8316 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4593, allocations: 1.719 kB / 0.8316 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003461/0.4596, allocations: 106.2 kB / 0.8317 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.46, allocations: 43.7 kB / 0.8318 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.4637, allocations: 2.598 MB / 0.8343 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.464, allocations: 0.7354 MB / 0.835 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.013e-05/0.4641, allocations: 22.27 kB / 0.835 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.4642, allocations: 71.05 kB / 0.8351 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of SimCode: time 2.71e-07/0.4642, allocations: 0 / 0.8351 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02749/0.4917, allocations: 5.242 MB / 0.8402 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.088/7.579, allocations: 9.266 kB / 0.8402 GB, free: 12.2 MB / 0.5919 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.048181980004301]