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.001201/0.001201, allocations: 110.8 kB / 16.46 MB, free: 6.035 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.001208/0.001208, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.334/1.334, allocations: 225.6 MB / 247.8 MB, free: 13.9 MB / 206.1 MB " [Timeout remaining time 178] 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.002429/0.002429, allocations: 288.6 kB / 303 MB, free: 9.473 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 1.139/1.139, allocations: 180.9 MB / 0.5261 GB, free: 14.66 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.002612/0.002612, allocations: 97.86 kB / 0.7248 GB, free: 40.09 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1494, allocations: 94.16 MB / 0.8168 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003246/0.1526, allocations: 2.086 MB / 0.8188 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008861/0.1535, allocations: 0.5765 MB / 0.8194 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.275e-05/0.1536, allocations: 0 / 0.8194 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000113/0.1537, allocations: 19.73 kB / 0.8194 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 9.198e-05/0.1538, allocations: 47.59 kB / 0.8194 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002321/0.154, allocations: 83.89 kB / 0.8195 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002982/0.1543, allocations: 267.3 kB / 0.8198 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.1546, allocations: 99.67 kB / 0.8199 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.1547, allocations: 107.7 kB / 0.82 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.1548, allocations: 119.4 kB / 0.8201 GB, free: 1.906 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.294e-05/0.1549, allocations: 24 kB / 0.8201 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 3.333e-05/0.1549, allocations: 28 kB / 0.8201 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.246e-05/0.155, allocations: 63.75 kB / 0.8202 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.1551, allocations: 107.5 kB / 0.8203 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.1554, allocations: 287.1 kB / 0.8206 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1554, allocations: 0 / 0.8206 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1554, allocations: 3.938 kB / 0.8206 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.1554, allocations: 0 / 0.8206 GB, free: 1.402 MB / 0.5606 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.001076/0.1565, allocations: 0.6369 MB / 0.8212 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.1565, allocations: 8.031 kB / 0.8212 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.681e-05/0.1566, allocations: 63.11 kB / 0.8213 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.777e-05/0.1566, allocations: 32.8 kB / 0.8213 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003301/0.157, allocations: 257.1 kB / 0.8215 GB, free: 304 kB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.157, allocations: 16.81 kB / 0.8215 GB, free: 288 kB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.985e-05/0.157, allocations: 20.38 kB / 0.8216 GB, free: 268 kB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005773/0.1576, allocations: 282.5 kB / 0.8218 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1576, allocations: 0 / 0.8218 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.379e-05/0.1576, allocations: 8 kB / 0.8218 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1576, allocations: 4 kB / 0.8218 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006401/0.1583, allocations: 197.6 kB / 0.822 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.1593, allocations: 0.6272 MB / 0.8226 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007401/0.1601, allocations: 214.5 kB / 0.8229 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/0.1603, allocations: 84.78 kB / 0.8229 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.1604, allocations: 7.938 kB / 0.8229 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004397/0.1608, allocations: 181.4 kB / 0.8231 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=18): time 1.463e-06/0.1608, allocations: 0 / 0.8231 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of matching and sorting (n=18): time 0.0009584/0.1618, allocations: 333.2 kB / 0.8234 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.575e-05/0.1618, allocations: 118.7 kB / 0.8235 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.162, allocations: 199.4 kB / 0.8237 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.1621, allocations: 41.7 kB / 0.8238 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.1622, allocations: 156.4 kB / 0.8239 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.449e-05/0.1622, allocations: 51.62 kB / 0.824 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.753e-05/0.1623, allocations: 65.69 kB / 0.824 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.1625, allocations: 330.8 kB / 0.8244 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003284/0.1628, allocations: 108.2 kB / 0.8245 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003657/0.1631, allocations: 171.8 kB / 0.8246 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006171/0.1638, allocations: 308.2 kB / 0.8249 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.1638, allocations: 4 kB / 0.8249 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008229/0.1646, allocations: 432.5 kB / 0.8253 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.503e-05/0.1647, allocations: 89.05 kB / 0.8254 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1647, allocations: 0 / 0.8254 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.1647, allocations: 4 kB / 0.8254 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.1649, allocations: 56.05 kB / 0.8255 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.1649, allocations: 0 / 0.8255 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.1652, allocations: 63.72 kB / 0.8255 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/0.1652, allocations: 12 kB / 0.8255 GB, free: 11.94 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 0.0001371/0.1653, allocations: 148 kB / 0.8257 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.257e-05/0.1654, allocations: 19.84 kB / 0.8257 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006974/0.1661, allocations: 265.2 kB / 0.826 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.1661, allocations: 3.984 kB / 0.826 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1661, allocations: 0 / 0.826 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1661, allocations: 4 kB / 0.826 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009175/0.167, allocations: 0.5801 MB / 0.8265 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.167, allocations: 0 / 0.8265 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.1671, allocations: 27.97 kB / 0.8266 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1671, allocations: 4 kB / 0.8266 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.1672, allocations: 11.98 kB / 0.8266 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1672, allocations: 0 / 0.8266 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1672, allocations: 0 / 0.8266 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006692/0.1678, allocations: 344.8 kB / 0.8269 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.109e-05/0.1679, allocations: 96.97 kB / 0.827 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.061e-05/0.1679, allocations: 11.98 kB / 0.827 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002743/0.1682, allocations: 35.89 kB / 0.827 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.1683, allocations: 47.94 kB / 0.8271 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.1683, allocations: 15.97 kB / 0.8271 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001099/0.1685, allocations: 136.2 kB / 0.8272 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.1e-08/0.1685, allocations: 4 kB / 0.8272 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002866/0.1687, allocations: 63.88 kB / 0.8273 GB, free: 10.04 MB / 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.00135/0.1701, allocations: 0.9917 MB / 0.8283 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000805/0.1709, allocations: 410.8 kB / 0.8287 GB, free: 8.582 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1709, allocations: 0 / 0.8287 GB, free: 8.582 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003241/0.1712, allocations: 103.9 kB / 0.8288 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.1716, allocations: 36.03 kB / 0.8288 GB, free: 8.445 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003796/0.1754, allocations: 2.611 MB / 0.8313 GB, free: 5.711 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.1757, allocations: 0.7398 MB / 0.8321 GB, free: 4.941 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.99e-05/0.1758, allocations: 17.55 kB / 0.8321 GB, free: 4.926 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.1759, allocations: 75.41 kB / 0.8322 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of SimCode: time 5.01e-07/0.1759, allocations: 0 / 0.8322 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02842/0.2043, allocations: 5.261 MB / 0.8373 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.612/7.817, allocations: 15.27 kB / 0.8373 GB, free: 15.79 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=50 --tolerance=1e-08 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.63231253111735] Failed to read output from testmodel.py, exit status != 0: 7.882979055866599 7.896452292 7.738430565 Calling exit ...