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.001565/0.001565, allocations: 103.4 kB / 15.34 MB, free: 0.5039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 193.4 kB / 16.25 MB, free: 6.633 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.399/1.399, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002477/0.002477, allocations: 279.2 kB / 290.4 MB, free: 2.102 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.048/1.048, allocations: 178.6 MB / 0.507 GB, free: 4.719 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002646/0.002646, allocations: 106.1 kB / 0.6061 GB, free: 24.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.15, allocations: 89.14 MB / 0.6931 GB, free: 4.531 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.00345/0.1535, allocations: 2.131 MB / 0.6952 GB, free: 2.395 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009387/0.1544, allocations: 0.5553 MB / 0.6957 GB, free: 1.836 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.517e-05/0.1545, allocations: 7.875 kB / 0.6957 GB, free: 1.828 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.1546, allocations: 16.48 kB / 0.6958 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.208e-05/0.1547, allocations: 21.75 kB / 0.6958 GB, free: 1.793 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002401/0.155, allocations: 83.84 kB / 0.6959 GB, free: 1.711 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000313/0.1553, allocations: 272 kB / 0.6961 GB, free: 1.445 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.1555, allocations: 111.4 kB / 0.6962 GB, free: 1.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.1557, allocations: 107.6 kB / 0.6963 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.1558, allocations: 128 kB / 0.6964 GB, free: 1.109 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.1559, allocations: 25.72 kB / 0.6965 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.581e-05/0.1559, allocations: 28 kB / 0.6965 GB, free: 1.059 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.266e-05/0.156, allocations: 59.81 kB / 0.6966 GB, free: 1 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.1561, allocations: 107.5 kB / 0.6967 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002823/0.1564, allocations: 263.1 kB / 0.6969 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1564, allocations: 8 kB / 0.6969 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1564, allocations: 0 / 0.6969 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.1564, allocations: 0 / 0.6969 GB, free: 0.6289 MB / 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.001235/0.1577, allocations: 0.6389 MB / 0.6975 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1577, allocations: 12.03 kB / 0.6976 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.333e-05/0.1578, allocations: 59.02 kB / 0.6976 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.951e-05/0.1579, allocations: 32.66 kB / 0.6976 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003159/0.1582, allocations: 244.6 kB / 0.6979 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.1582, allocations: 16.81 kB / 0.6979 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.469e-05/0.1583, allocations: 24.38 kB / 0.6979 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006338/0.1589, allocations: 270.5 kB / 0.6982 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1589, allocations: 4 kB / 0.6982 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/0.159, allocations: 8 kB / 0.6982 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.159, allocations: 4 kB / 0.6982 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006624/0.1597, allocations: 205.5 kB / 0.6984 GB, free: 15 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.1608, allocations: 0.6348 MB / 0.699 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008058/0.1616, allocations: 222.5 kB / 0.6992 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.1619, allocations: 84.78 kB / 0.6993 GB, free: 14 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.162, allocations: 4 kB / 0.6993 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004878/0.1625, allocations: 191.1 kB / 0.6995 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.1625, allocations: 0 / 0.6995 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.001037/0.1635, allocations: 338.6 kB / 0.6998 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.524e-05/0.1636, allocations: 110.8 kB / 0.6999 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000202/0.1638, allocations: 199.1 kB / 0.7001 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.003e-05/0.1639, allocations: 41.64 kB / 0.7001 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.164, allocations: 148.2 kB / 0.7003 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.209e-05/0.164, allocations: 55.34 kB / 0.7003 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.1642, allocations: 65.69 kB / 0.7004 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1643, allocations: 334.8 kB / 0.7007 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003716/0.1647, allocations: 108.1 kB / 0.7008 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000429/0.1651, allocations: 179.3 kB / 0.701 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006941/0.1658, allocations: 303 kB / 0.7013 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1658, allocations: 0 / 0.7013 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009363/0.1668, allocations: 426.2 kB / 0.7017 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.523e-05/0.1669, allocations: 89.05 kB / 0.7018 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1669, allocations: 0 / 0.7018 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.1669, allocations: 4 kB / 0.7018 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.1671, allocations: 51.89 kB / 0.7018 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1671, allocations: 4 kB / 0.7018 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.1675, allocations: 63.84 kB / 0.7019 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.1675, allocations: 12 kB / 0.7019 GB, free: 11.15 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.0001579/0.1677, allocations: 140.7 kB / 0.702 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.1677, allocations: 27.73 kB / 0.7021 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007936/0.1685, allocations: 264.8 kB / 0.7023 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1685, allocations: 4 kB / 0.7023 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1685, allocations: 0 / 0.7023 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1685, allocations: 0 / 0.7023 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.1696, allocations: 0.5801 MB / 0.7029 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1696, allocations: 0 / 0.7029 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.1698, allocations: 35.89 kB / 0.7029 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1698, allocations: 0 / 0.7029 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.1698, allocations: 4 kB / 0.7029 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1698, allocations: 4 kB / 0.7029 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1698, allocations: 0 / 0.7029 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007626/0.1706, allocations: 345.5 kB / 0.7033 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.756e-05/0.1707, allocations: 100.8 kB / 0.7033 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.39e-05/0.1707, allocations: 11.94 kB / 0.7034 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003007/0.171, allocations: 43.95 kB / 0.7034 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.1711, allocations: 39.94 kB / 0.7034 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.1712, allocations: 15.92 kB / 0.7035 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001285/0.1713, allocations: 148 kB / 0.7036 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1713, allocations: 0 / 0.7036 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000301/0.1716, allocations: 59.84 kB / 0.7037 GB, free: 9.258 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.001521/0.1732, allocations: 0.9989 MB / 0.7046 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009131/0.1741, allocations: 427.8 kB / 0.705 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1741, allocations: 320 / 0.705 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003598/0.1745, allocations: 111.9 kB / 0.7051 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.1748, allocations: 35.91 kB / 0.7052 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.179, allocations: 2.649 MB / 0.7078 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.1794, allocations: 0.7359 MB / 0.7085 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001098/0.1795, allocations: 17.55 kB / 0.7085 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.1796, allocations: 71.41 kB / 0.7086 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.1797, allocations: 4 kB / 0.7086 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01959/0.1993, allocations: 4.904 MB / 0.7134 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000269/0.1995, allocations: 256.1 kB / 0.7136 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.062, allocations: 4 kB / 0.7136 GB, free: 15.07 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)