Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008079/0.0008079, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008007/0.0008007, allocations: 169.9 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8681/0.8681, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.5449/0.5449, allocations: 114 MB / 373.9 MB, free: 8.734 MB / 346.7 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 0.5542 GB, free: 2.734 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.434e-05/1.604e-05, allocations: 7.219 kB / 0.5543 GB, free: 2.73 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.002534/0.00255, allocations: 2.089 MB / 0.5563 GB, free: 0.6328 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0007245/0.003274, allocations: 0.5727 MB / 0.5569 GB, free: 60 kB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.604e-05/0.00337, allocations: 7.938 kB / 0.5569 GB, free: 52 kB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.003474, allocations: 23.72 kB / 0.5569 GB, free: 28 kB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 8.106e-05/0.003555, allocations: 51.52 kB / 0.5569 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002235/0.003778, allocations: 91.88 kB / 0.557 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0002306/0.004009, allocations: 291.2 kB / 0.5573 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.004195, allocations: 95.58 kB / 0.5574 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.004331, allocations: 159.7 kB / 0.5575 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.004433, allocations: 107.7 kB / 0.5576 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.004469, allocations: 28 kB / 0.5577 GB, free: 15.22 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 2.397e-05/0.004493, allocations: 31.94 kB / 0.5577 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 4.471e-05/0.004538, allocations: 63.8 kB / 0.5578 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 6.996e-05/0.004608, allocations: 87.75 kB / 0.5578 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0002413/0.004849, allocations: 315 kB / 0.5581 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.004851, allocations: 0 / 0.5581 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of FrontEnd: time 7.72e-07/0.004852, allocations: 0 / 0.5581 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.004856, allocations: 0 / 0.5581 GB, free: 14.73 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007138/0.00557, allocations: 0.5968 MB / 0.5587 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.005612, allocations: 20.48 kB / 0.5587 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.744e-05/0.00568, allocations: 63.12 kB / 0.5588 GB, free: 14 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.682e-05/0.005727, allocations: 32.75 kB / 0.5588 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.005988, allocations: 206.9 kB / 0.559 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.006006, allocations: 16.86 kB / 0.5591 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.006037, allocations: 36.11 kB / 0.5591 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004055/0.006443, allocations: 377.4 kB / 0.5594 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.006453, allocations: 0 / 0.5594 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.006471, allocations: 8 kB / 0.5595 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.006479, allocations: 11.98 kB / 0.5595 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003643/0.006843, allocations: 209.8 kB / 0.5597 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007456/0.007589, allocations: 0.5653 MB / 0.5602 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003637/0.007953, allocations: 202.4 kB / 0.5604 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.008112, allocations: 93 kB / 0.5605 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.008136, allocations: 7.875 kB / 0.5605 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002978/0.008434, allocations: 199.2 kB / 0.5607 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.008435, allocations: 4 kB / 0.5607 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=20): time 0.0005908/0.009026, allocations: 339.7 kB / 0.561 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.009079, allocations: 114.7 kB / 0.5611 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.009213, allocations: 219 kB / 0.5613 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.009238, allocations: 37.7 kB / 0.5614 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.882e-05/0.009317, allocations: 172.6 kB / 0.5615 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.009348, allocations: 47.64 kB / 0.5616 GB, free: 10.97 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.219e-05/0.00942, allocations: 69.97 kB / 0.5617 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003427/0.009763, allocations: 330.8 kB / 0.562 GB, free: 10.56 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.009985, allocations: 197.3 kB / 0.5622 GB, free: 10.35 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.01024, allocations: 316.1 kB / 0.5625 GB, free: 9.984 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.0106, allocations: 322.4 kB / 0.5628 GB, free: 9.633 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.0106, allocations: 3.984 kB / 0.5628 GB, free: 9.629 MB / 0.5261 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00052/0.01112, allocations: 0.5085 MB / 0.5633 GB, free: 9.078 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.294e-05/0.01117, allocations: 101.1 kB / 0.5634 GB, free: 8.961 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.01117, allocations: 4 kB / 0.5634 GB, free: 8.957 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.01118, allocations: 0 / 0.5634 GB, free: 8.957 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.01131, allocations: 51.89 kB / 0.5634 GB, free: 8.906 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.01132, allocations: 3.938 kB / 0.5634 GB, free: 8.902 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.01147, allocations: 63.77 kB / 0.5635 GB, free: 8.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.01149, allocations: 12 kB / 0.5635 GB, free: 8.828 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (antFre.disErr.y,$PRE.antFre.disErr.y,ySetOn.y,$PRE.ySetOn.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,antFre.errAndSetOn.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 (34): * Single equations (assignments): 31 * 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.844e-05/0.01159, allocations: 147.9 kB / 0.5636 GB, free: 8.676 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.189e-05/0.01161, allocations: 23.8 kB / 0.5637 GB, free: 8.652 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003999/0.01201, allocations: 283.2 kB / 0.5639 GB, free: 8.363 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.01201, allocations: 4 kB / 0.5639 GB, free: 8.359 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.01202, allocations: 0 / 0.5639 GB, free: 8.359 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.01202, allocations: 7.922 kB / 0.5639 GB, free: 8.352 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005814/0.0126, allocations: 0.5736 MB / 0.5645 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.0126, allocations: 0 / 0.5645 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.081e-05/0.01268, allocations: 39.95 kB / 0.5645 GB, free: 7.691 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.01268, allocations: 0 / 0.5645 GB, free: 7.691 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.01269, allocations: 4 kB / 0.5645 GB, free: 7.688 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.01269, allocations: 3.984 kB / 0.5645 GB, free: 7.684 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.01269, allocations: 0 / 0.5645 GB, free: 7.684 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000385/0.01308, allocations: 367.1 kB / 0.5649 GB, free: 7.309 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 1.882e-05/0.0131, allocations: 19.8 kB / 0.5649 GB, free: 7.289 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.01313, allocations: 11.98 kB / 0.5649 GB, free: 7.277 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.01326, allocations: 43.95 kB / 0.565 GB, free: 7.234 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.089e-05/0.01335, allocations: 51.91 kB / 0.565 GB, free: 7.184 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.01337, allocations: 11.98 kB / 0.565 GB, free: 7.172 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 7.868e-05/0.01345, allocations: 148.2 kB / 0.5652 GB, free: 7.027 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5e-08/0.01345, allocations: 4 kB / 0.5652 GB, free: 7.023 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001947/0.01365, allocations: 63.89 kB / 0.5652 GB, free: 6.961 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (antFre.errAndSetOn.y,$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,ySetOn.y) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,ySetOn.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 13 * 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.0007907/0.01444, allocations: 1.019 MB / 0.5662 GB, free: 5.914 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0005136/0.01495, allocations: 499.5 kB / 0.5667 GB, free: 5.371 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.01495, allocations: 320 / 0.5667 GB, free: 5.371 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001826/0.01513, allocations: 121.7 kB / 0.5668 GB, free: 5.254 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.01536, allocations: 34.33 kB / 0.5669 GB, free: 5.227 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.01806, allocations: 3.038 MB / 0.5698 GB, free: 1.992 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.482e-05/0.01815, allocations: 138.2 kB / 0.57 GB, free: 1.84 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.779e-05/0.01822, allocations: 17.95 kB / 0.57 GB, free: 1.816 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.01832, allocations: 84.45 kB / 0.5701 GB, free: 1.734 MB / 0.5261 GB Notification: Performance of SimCode: time 6.41e-07/0.01832, allocations: 0 / 0.5701 GB, free: 1.734 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01871/0.03703, allocations: 6.655 MB / 0.5765 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.228/7.265, allocations: 4.875 kB / 0.5766 GB, free: 11.33 MB / 0.5417 GB " [Timeout remaining time 653] (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.687128734774888] Failed to read output from testmodel.py, exit status != 0: 7.34709048923105 7.35820066 7.351491967 Calling exit ...