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.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 104.6 kB / 16.27 MB, free: 5.93 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.001312/0.001312, allocations: 187.4 kB / 17.2 MB, free: 5.574 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.388/1.388, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8186/0.8186, allocations: 126.7 MB / 417.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00221/0.00221, allocations: 71.88 kB / 0.4959 GB, free: 2.703 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3301, allocations: 78.85 MB / 0.5729 GB, free: 30.85 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003202/0.3333, allocations: 2.072 MB / 0.5749 GB, free: 29.42 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008808/0.3342, allocations: 0.5631 MB / 0.5755 GB, free: 29.02 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.3344, allocations: 2.125 kB / 0.5755 GB, free: 29.02 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.3345, allocations: 25.42 kB / 0.5755 GB, free: 29 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.767e-05/0.3346, allocations: 38.33 kB / 0.5755 GB, free: 28.98 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.3349, allocations: 88.22 kB / 0.5756 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002576/0.3351, allocations: 262.4 kB / 0.5759 GB, free: 28.8 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.3354, allocations: 117.4 kB / 0.576 GB, free: 28.75 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.3355, allocations: 113.2 kB / 0.5761 GB, free: 28.69 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.3356, allocations: 122.3 kB / 0.5762 GB, free: 28.63 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.789e-05/0.3357, allocations: 26.88 kB / 0.5762 GB, free: 28.63 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.811e-05/0.3357, allocations: 26.12 kB / 0.5762 GB, free: 28.63 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.667e-05/0.3358, allocations: 57.02 kB / 0.5763 GB, free: 28.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.3359, allocations: 115.7 kB / 0.5764 GB, free: 28.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.3362, allocations: 268 kB / 0.5767 GB, free: 28.41 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3362, allocations: 3.25 kB / 0.5767 GB, free: 28.41 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3362, allocations: 0 / 0.5767 GB, free: 28.41 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.3362, allocations: 0 / 0.5767 GB, free: 28.41 MB / 446.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.001057/0.3373, allocations: 0.6359 MB / 0.5773 GB, free: 27.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3374, allocations: 10.03 kB / 0.5773 GB, free: 27.86 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.358e-05/0.3374, allocations: 62.97 kB / 0.5774 GB, free: 27.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.758e-05/0.3375, allocations: 28 kB / 0.5774 GB, free: 27.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.3378, allocations: 248.9 kB / 0.5776 GB, free: 27.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.3378, allocations: 24.72 kB / 0.5776 GB, free: 27.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.004e-05/0.3378, allocations: 20.75 kB / 0.5777 GB, free: 27.53 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006036/0.3385, allocations: 270 kB / 0.5779 GB, free: 27.41 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.3385, allocations: 3.938 kB / 0.5779 GB, free: 27.41 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.659e-05/0.3385, allocations: 12.22 kB / 0.5779 GB, free: 27.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3385, allocations: 7.906 kB / 0.5779 GB, free: 27.39 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006648/0.3392, allocations: 200.3 kB / 0.5781 GB, free: 27.34 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009401/0.3401, allocations: 0.6262 MB / 0.5788 GB, free: 26.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000803/0.3409, allocations: 221.3 kB / 0.579 GB, free: 26.69 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002995/0.3413, allocations: 90.78 kB / 0.579 GB, free: 26.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.3413, allocations: 2.438 kB / 0.5791 GB, free: 26.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004631/0.3418, allocations: 196.1 kB / 0.5792 GB, free: 26.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.613e-06/0.3418, allocations: 0.8438 kB / 0.5792 GB, free: 26.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.001029/0.3428, allocations: 327.7 kB / 0.5796 GB, free: 26.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.3429, allocations: 112.8 kB / 0.5797 GB, free: 26.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.343, allocations: 208.2 kB / 0.5799 GB, free: 26.06 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.3431, allocations: 35.23 kB / 0.5799 GB, free: 26.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.841e-05/0.3431, allocations: 157.7 kB / 0.58 GB, free: 25.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.292e-05/0.3432, allocations: 46.38 kB / 0.5801 GB, free: 25.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.306e-05/0.3433, allocations: 62.69 kB / 0.5801 GB, free: 25.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.353e-05/0.3433, allocations: 332.7 kB / 0.5805 GB, free: 25.47 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003477/0.3437, allocations: 116.6 kB / 0.5806 GB, free: 25.42 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003598/0.344, allocations: 175.1 kB / 0.5807 GB, free: 25.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006235/0.3447, allocations: 309.5 kB / 0.581 GB, free: 25.06 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3447, allocations: 3.031 kB / 0.581 GB, free: 25.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008431/0.3455, allocations: 426.4 kB / 0.5814 GB, free: 24.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.569e-05/0.3456, allocations: 84.86 kB / 0.5815 GB, free: 24.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.3456, allocations: 5.859 kB / 0.5815 GB, free: 24.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.3456, allocations: 4.219 kB / 0.5815 GB, free: 24.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/0.3459, allocations: 49.89 kB / 0.5816 GB, free: 24.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.3459, allocations: 3.125 kB / 0.5816 GB, free: 24.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.3462, allocations: 56.62 kB / 0.5816 GB, free: 24.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.3463, allocations: 10.12 kB / 0.5817 GB, free: 24.65 MB / 446.1 MB 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.0001307/0.3464, allocations: 146 kB / 0.5818 GB, free: 24.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.651e-05/0.3464, allocations: 32.98 kB / 0.5818 GB, free: 24.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007338/0.3472, allocations: 264.4 kB / 0.5821 GB, free: 24.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3472, allocations: 2.812 kB / 0.5821 GB, free: 24.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3472, allocations: 0 / 0.5821 GB, free: 24.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3472, allocations: 3.594 kB / 0.5821 GB, free: 24.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008841/0.3481, allocations: 0.5778 MB / 0.5826 GB, free: 23.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3481, allocations: 1.406 kB / 0.5826 GB, free: 23.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.3483, allocations: 35.08 kB / 0.5827 GB, free: 23.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3483, allocations: 1.438 kB / 0.5827 GB, free: 23.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.3483, allocations: 2.031 kB / 0.5827 GB, free: 23.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.3483, allocations: 3.219 kB / 0.5827 GB, free: 23.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.3483, allocations: 0 / 0.5827 GB, free: 23.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007109/0.349, allocations: 350 kB / 0.583 GB, free: 23.63 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.845e-05/0.3491, allocations: 94.03 kB / 0.5831 GB, free: 23.53 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/0.3491, allocations: 7.875 kB / 0.5831 GB, free: 23.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/0.3494, allocations: 39.52 kB / 0.5832 GB, free: 23.51 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.3496, allocations: 46.12 kB / 0.5832 GB, free: 23.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.3496, allocations: 10.14 kB / 0.5832 GB, free: 23.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.288e-05/0.3497, allocations: 143.5 kB / 0.5833 GB, free: 23.37 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3497, allocations: 0 / 0.5833 GB, free: 23.37 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000323/0.35, allocations: 57.31 kB / 0.5834 GB, free: 23.36 MB / 446.1 MB 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.00133/0.3514, allocations: 1 MB / 0.5844 GB, free: 22.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0009045/0.3523, allocations: 428.5 kB / 0.5848 GB, free: 22.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3523, allocations: 0 / 0.5848 GB, free: 22.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003529/0.3527, allocations: 113.1 kB / 0.5849 GB, free: 22.19 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.3531, allocations: 41.14 kB / 0.5849 GB, free: 22.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003851/0.3569, allocations: 2.578 MB / 0.5874 GB, free: 20.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001512/0.3571, allocations: 0.7329 MB / 0.5882 GB, free: 19.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001143/0.3572, allocations: 21.27 kB / 0.5882 GB, free: 19.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.3574, allocations: 70.53 kB / 0.5883 GB, free: 19.39 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3574, allocations: 0 / 0.5883 GB, free: 19.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02686/0.3842, allocations: 5.153 MB / 0.5933 GB, free: 16.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.055/8.44, allocations: 0 / 0.5933 GB, free: 16.49 MB / 446.1 MB (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)