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.001852/0.001852, allocations: 109.7 kB / 17.12 MB, free: 5.926 MB / 14.72 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.002258/0.002258, allocations: 204 kB / 20.09 MB, free: 2.977 MB / 14.72 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 1.488/1.488, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.9495/0.9495, allocations: 150 MB / 459.5 MB, free: 5.734 MB / 350.1 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: IBPSA requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 66.56 kB / 0.6362 GB, free: 30.36 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.1661, allocations: 89.14 MB / 0.7232 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003859/0.17, allocations: 2.144 MB / 0.7253 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.1712, allocations: 0.6156 MB / 0.7259 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001949/0.1714, allocations: 4 kB / 0.7259 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.1716, allocations: 23.67 kB / 0.7259 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001459/0.1717, allocations: 39.59 kB / 0.726 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003367/0.1721, allocations: 103.9 kB / 0.7261 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0004055/0.1725, allocations: 275.3 kB / 0.7263 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.1727, allocations: 107.4 kB / 0.7264 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001983/0.1729, allocations: 115.6 kB / 0.7266 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.1731, allocations: 139.4 kB / 0.7267 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.089e-05/0.1732, allocations: 28 kB / 0.7267 GB, free: 476 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 4.398e-05/0.1732, allocations: 28 kB / 0.7267 GB, free: 448 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.362e-05/0.1733, allocations: 59.77 kB / 0.7268 GB, free: 388 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.1734, allocations: 123.4 kB / 0.7269 GB, free: 264 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004331/0.1739, allocations: 302.8 kB / 0.7272 GB, free: 15.96 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.1739, allocations: 3.984 kB / 0.7272 GB, free: 15.96 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.423e-06/0.1739, allocations: 0 / 0.7272 GB, free: 15.96 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.1739, allocations: 0 / 0.7272 GB, free: 15.96 MB / 0.545 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.001339/0.1752, allocations: 0.672 MB / 0.7279 GB, free: 15.22 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1753, allocations: 12.03 kB / 0.7279 GB, free: 15.21 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001032/0.1754, allocations: 55.17 kB / 0.7279 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.538e-05/0.1755, allocations: 36.69 kB / 0.728 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004552/0.1759, allocations: 273.3 kB / 0.7282 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.1759, allocations: 24.36 kB / 0.7282 GB, free: 14.78 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.823e-05/0.176, allocations: 28 kB / 0.7283 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006871/0.1767, allocations: 291.5 kB / 0.7285 GB, free: 14.45 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.1767, allocations: 0 / 0.7285 GB, free: 14.45 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.083e-05/0.1767, allocations: 15.94 kB / 0.7286 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.1767, allocations: 8 kB / 0.7286 GB, free: 14.42 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007177/0.1774, allocations: 213.6 kB / 0.7288 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.1787, allocations: 0.6543 MB / 0.7294 GB, free: 13.51 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007021/0.1795, allocations: 198.3 kB / 0.7296 GB, free: 13.3 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.1798, allocations: 88.78 kB / 0.7297 GB, free: 13.21 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.1798, allocations: 4 kB / 0.7297 GB, free: 13.21 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005275/0.1803, allocations: 206.1 kB / 0.7299 GB, free: 13 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.1803, allocations: 0 / 0.7299 GB, free: 13 MB / 0.545 GB Notification: Performance of matching and sorting (n=20): time 0.001179/0.1815, allocations: 351.1 kB / 0.7302 GB, free: 12.65 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.804e-05/0.1816, allocations: 114.8 kB / 0.7303 GB, free: 12.52 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.1818, allocations: 211.2 kB / 0.7305 GB, free: 12.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.1819, allocations: 37.7 kB / 0.7306 GB, free: 12.26 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.182, allocations: 164.7 kB / 0.7307 GB, free: 12.09 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.774e-05/0.1821, allocations: 63.55 kB / 0.7308 GB, free: 12.03 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.1822, allocations: 65.97 kB / 0.7309 GB, free: 11.96 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1824, allocations: 338.8 kB / 0.7312 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003993/0.1828, allocations: 112.2 kB / 0.7313 GB, free: 11.51 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/0.1832, allocations: 187.3 kB / 0.7315 GB, free: 11.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007229/0.1839, allocations: 318.4 kB / 0.7318 GB, free: 10.95 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1839, allocations: 0 / 0.7318 GB, free: 10.95 MB / 0.545 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009902/0.1849, allocations: 439.5 kB / 0.7322 GB, free: 10.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.705e-05/0.185, allocations: 89.09 kB / 0.7323 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.185, allocations: 0 / 0.7323 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.185, allocations: 8.156 kB / 0.7323 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.1853, allocations: 51.83 kB / 0.7323 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.1853, allocations: 4 kB / 0.7323 GB, free: 10.33 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003489/0.1856, allocations: 55.84 kB / 0.7324 GB, free: 10.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/0.1856, allocations: 15.98 kB / 0.7324 GB, free: 10.26 MB / 0.545 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 0.0001837/0.1858, allocations: 156 kB / 0.7325 GB, free: 10.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.1859, allocations: 19.86 kB / 0.7326 GB, free: 10.08 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008188/0.1867, allocations: 275.2 kB / 0.7328 GB, free: 9.809 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.1867, allocations: 8 kB / 0.7328 GB, free: 9.801 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1867, allocations: 0 / 0.7328 GB, free: 9.801 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1867, allocations: 3.984 kB / 0.7328 GB, free: 9.797 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.1879, allocations: 0.6208 MB / 0.7334 GB, free: 9.121 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1879, allocations: 0 / 0.7334 GB, free: 9.121 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.188, allocations: 31.97 kB / 0.7335 GB, free: 9.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.188, allocations: 0 / 0.7335 GB, free: 9.09 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.447e-05/0.1881, allocations: 11.98 kB / 0.7335 GB, free: 9.078 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1881, allocations: 0 / 0.7335 GB, free: 9.078 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1881, allocations: 0 / 0.7335 GB, free: 9.078 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008015/0.1889, allocations: 368.2 kB / 0.7338 GB, free: 8.703 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.105e-05/0.1889, allocations: 92.97 kB / 0.7339 GB, free: 8.594 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.535e-05/0.189, allocations: 8 kB / 0.7339 GB, free: 8.586 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003146/0.1893, allocations: 47.94 kB / 0.734 GB, free: 8.539 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.1894, allocations: 55.86 kB / 0.734 GB, free: 8.484 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.622e-05/0.1895, allocations: 8 kB / 0.734 GB, free: 8.477 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001295/0.1896, allocations: 144.5 kB / 0.7342 GB, free: 8.336 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.1896, allocations: 0 / 0.7342 GB, free: 8.336 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003423/0.1899, allocations: 67.88 kB / 0.7342 GB, free: 8.27 MB / 0.545 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.001553/0.1915, allocations: 1.016 MB / 0.7352 GB, free: 7.227 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0009521/0.1924, allocations: 418.4 kB / 0.7356 GB, free: 6.781 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1924, allocations: 3.938 kB / 0.7356 GB, free: 6.777 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003817/0.1928, allocations: 108.2 kB / 0.7357 GB, free: 6.672 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.1932, allocations: 43.69 kB / 0.7358 GB, free: 6.629 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/0.1979, allocations: 2.7 MB / 0.7384 GB, free: 3.801 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.1983, allocations: 0.7442 MB / 0.7391 GB, free: 3.031 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001174/0.1984, allocations: 33.86 kB / 0.7392 GB, free: 3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.1986, allocations: 75.41 kB / 0.7393 GB, free: 2.926 MB / 0.545 GB Notification: Performance of SimCode: time 5.91e-07/0.1986, allocations: 0 / 0.7393 GB, free: 2.926 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03208/0.2307, allocations: 5.703 MB / 0.7448 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.148/8.379, allocations: 16.41 kB / 0.7448 GB, free: 13.39 MB / 0.5606 GB " [Timeout remaining time 652] (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: 12.260859455913305] Failed to read output from testmodel.py, exit status != 0: 8.451243326067924 8.478347001 8.299355678 Calling exit ...