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) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 192.4 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002406/0.002406, allocations: 274.9 kB / 290.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.014/1.014, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002682/0.002682, allocations: 96.02 kB / 0.6066 GB, free: 24.75 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1464, allocations: 89.15 MB / 0.6936 GB, free: 4.211 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003333/0.1497, allocations: 2.066 MB / 0.6956 GB, free: 2.137 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008782/0.1506, allocations: 0.5698 MB / 0.6962 GB, free: 1.566 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.911e-05/0.1507, allocations: 0 / 0.6962 GB, free: 1.566 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001026/0.1508, allocations: 31.61 kB / 0.6962 GB, free: 1.535 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.368e-05/0.1509, allocations: 35.66 kB / 0.6963 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.1512, allocations: 91.81 kB / 0.6964 GB, free: 1.41 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002954/0.1515, allocations: 264.1 kB / 0.6966 GB, free: 1.152 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002301/0.1517, allocations: 116.1 kB / 0.6967 GB, free: 1.039 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.1519, allocations: 111.6 kB / 0.6968 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.152, allocations: 123.5 kB / 0.6969 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.554e-05/0.1521, allocations: 27.94 kB / 0.697 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.348e-05/0.1521, allocations: 28 kB / 0.697 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.348e-05/0.1522, allocations: 55.81 kB / 0.6971 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.1523, allocations: 111.5 kB / 0.6972 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002723/0.1526, allocations: 267.1 kB / 0.6974 GB, free: 336 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1526, allocations: 0 / 0.6974 GB, free: 336 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1526, allocations: 4 kB / 0.6974 GB, free: 332 kB / 494.1 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.1526, allocations: 0 / 0.6974 GB, free: 332 kB / 494.1 MB 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.001139/0.1538, allocations: 0.6409 MB / 0.698 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1538, allocations: 12.03 kB / 0.6981 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.191e-05/0.1539, allocations: 55.08 kB / 0.6981 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.155e-05/0.154, allocations: 32.59 kB / 0.6981 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.1542, allocations: 241.1 kB / 0.6984 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.1543, allocations: 28.8 kB / 0.6984 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/0.1543, allocations: 16.38 kB / 0.6984 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006122/0.1549, allocations: 274.6 kB / 0.6987 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.1549, allocations: 3.938 kB / 0.6987 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.155, allocations: 15.98 kB / 0.6987 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.155, allocations: 4 kB / 0.6987 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006812/0.1557, allocations: 197.6 kB / 0.6989 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.1568, allocations: 0.6309 MB / 0.6995 GB, free: 14 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008414/0.1576, allocations: 222.5 kB / 0.6997 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003259/0.158, allocations: 92.78 kB / 0.6998 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.158, allocations: 4 kB / 0.6998 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004903/0.1585, allocations: 183.2 kB / 0.7 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.483e-06/0.1585, allocations: 0 / 0.7 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0011/0.1596, allocations: 339 kB / 0.7003 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.1597, allocations: 106.8 kB / 0.7004 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.1599, allocations: 207.1 kB / 0.7006 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.16, allocations: 37.7 kB / 0.7006 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.1601, allocations: 156.1 kB / 0.7008 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.901e-05/0.1601, allocations: 59.27 kB / 0.7008 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.964e-05/0.1602, allocations: 57.7 kB / 0.7009 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1604, allocations: 334.8 kB / 0.7012 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003767/0.1608, allocations: 108.2 kB / 0.7013 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004278/0.1612, allocations: 175.8 kB / 0.7015 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007045/0.1619, allocations: 305.6 kB / 0.7018 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1619, allocations: 0 / 0.7018 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009201/0.1628, allocations: 420.5 kB / 0.7022 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.56e-05/0.1629, allocations: 97.03 kB / 0.7023 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1629, allocations: 0 / 0.7023 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.163, allocations: 8.156 kB / 0.7023 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.1632, allocations: 43.91 kB / 0.7023 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1632, allocations: 7.984 kB / 0.7023 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/0.1635, allocations: 55.73 kB / 0.7024 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.1636, allocations: 8 kB / 0.7024 GB, free: 10.86 MB / 0.4981 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.0001455/0.1637, allocations: 156.7 kB / 0.7025 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.429e-05/0.1637, allocations: 19.75 kB / 0.7026 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007697/0.1645, allocations: 261.7 kB / 0.7028 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1645, allocations: 4 kB / 0.7028 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1645, allocations: 4 kB / 0.7028 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1646, allocations: 3.938 kB / 0.7028 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.1656, allocations: 0.5762 MB / 0.7034 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1656, allocations: 0 / 0.7034 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.1658, allocations: 43.89 kB / 0.7034 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1658, allocations: 0 / 0.7034 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.1658, allocations: 0 / 0.7034 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.1658, allocations: 4 kB / 0.7034 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.1658, allocations: 7.984 kB / 0.7034 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007575/0.1666, allocations: 340.9 kB / 0.7038 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.264e-05/0.1666, allocations: 100.8 kB / 0.7039 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.674e-05/0.1667, allocations: 4 kB / 0.7039 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003182/0.167, allocations: 47.88 kB / 0.7039 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.1671, allocations: 43.94 kB / 0.7039 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.1672, allocations: 4 kB / 0.704 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001254/0.1673, allocations: 159.9 kB / 0.7041 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1673, allocations: 0 / 0.7041 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002892/0.1676, allocations: 55.84 kB / 0.7042 GB, free: 8.949 MB / 0.4981 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.001472/0.1691, allocations: 0.9947 MB / 0.7051 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008868/0.17, allocations: 431.5 kB / 0.7055 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.17, allocations: 0 / 0.7055 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003706/0.1704, allocations: 111.9 kB / 0.7056 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.1707, allocations: 36.28 kB / 0.7057 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003939/0.1747, allocations: 2.576 MB / 0.7082 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.175, allocations: 0.7359 MB / 0.7089 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.86e-05/0.1751, allocations: 25.53 kB / 0.7089 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.1752, allocations: 71.41 kB / 0.709 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1752, allocations: 3.938 kB / 0.709 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.315/1.49, allocations: 5.163 MB / 0.7141 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/13.14, allocations: 10.06 kB / 0.7141 GB, free: 14.79 MB / 0.5137 GB (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 --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)