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.001467/0.001467, allocations: 101.9 kB / 15.98 MB, free: 6.352 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.001432/0.001432, allocations: 197 kB / 16.91 MB, free: 6.191 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.277/1.277, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7915/0.7915, allocations: 126.7 MB / 417.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 67.89 kB / 0.4954 GB, free: 3.027 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3196, allocations: 78.86 MB / 0.5724 GB, free: 30.28 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.0029/0.3226, allocations: 2.118 MB / 0.5745 GB, free: 28.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007667/0.3234, allocations: 0.5488 MB / 0.575 GB, free: 28.43 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.429e-05/0.3235, allocations: 3.469 kB / 0.575 GB, free: 28.43 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.3236, allocations: 12.56 kB / 0.575 GB, free: 28.42 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.093e-05/0.3237, allocations: 33.25 kB / 0.5751 GB, free: 28.4 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002261/0.3239, allocations: 79.53 kB / 0.5751 GB, free: 28.35 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.3242, allocations: 267.2 kB / 0.5754 GB, free: 28.22 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.3244, allocations: 114.4 kB / 0.5755 GB, free: 28.17 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.3245, allocations: 110.2 kB / 0.5756 GB, free: 28.11 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.3247, allocations: 123.8 kB / 0.5757 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.459e-05/0.3247, allocations: 30.34 kB / 0.5757 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.869e-05/0.3247, allocations: 26 kB / 0.5758 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.378e-05/0.3248, allocations: 51.05 kB / 0.5758 GB, free: 28.02 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.776e-05/0.3249, allocations: 123.2 kB / 0.5759 GB, free: 27.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002593/0.3252, allocations: 264.2 kB / 0.5762 GB, free: 27.83 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3252, allocations: 1.312 kB / 0.5762 GB, free: 27.83 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3252, allocations: 0 / 0.5762 GB, free: 27.83 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.3252, allocations: 0 / 0.5762 GB, free: 27.83 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.001003/0.3262, allocations: 0.6386 MB / 0.5768 GB, free: 27.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.3263, allocations: 11 kB / 0.5768 GB, free: 27.27 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.35e-05/0.3263, allocations: 61.64 kB / 0.5769 GB, free: 27.22 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.146e-05/0.3264, allocations: 27.8 kB / 0.5769 GB, free: 27.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002295/0.3266, allocations: 251.9 kB / 0.5771 GB, free: 26.96 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.3267, allocations: 23.14 kB / 0.5772 GB, free: 26.95 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.43e-05/0.3267, allocations: 22.03 kB / 0.5772 GB, free: 26.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000606/0.3273, allocations: 277.8 kB / 0.5775 GB, free: 26.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.3274, allocations: 0 / 0.5775 GB, free: 26.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.659e-05/0.3274, allocations: 12.2 kB / 0.5775 GB, free: 26.81 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-06/0.3274, allocations: 5.25 kB / 0.5775 GB, free: 26.81 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006575/0.3281, allocations: 194.9 kB / 0.5777 GB, free: 26.77 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.3291, allocations: 0.6264 MB / 0.5783 GB, free: 26.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007879/0.3299, allocations: 234.5 kB / 0.5785 GB, free: 26.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00032/0.3302, allocations: 88.53 kB / 0.5786 GB, free: 26.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.3303, allocations: 1.375 kB / 0.5786 GB, free: 26.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005292/0.3308, allocations: 194 kB / 0.5788 GB, free: 26.19 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.593e-06/0.3308, allocations: 0 / 0.5788 GB, free: 26.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.001003/0.3318, allocations: 331 kB / 0.5791 GB, free: 26.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.3319, allocations: 115.5 kB / 0.5792 GB, free: 25.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.332, allocations: 203.9 kB / 0.5794 GB, free: 25.76 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.088e-05/0.3321, allocations: 39.38 kB / 0.5794 GB, free: 25.72 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.546e-05/0.3321, allocations: 158.2 kB / 0.5796 GB, free: 25.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.3322, allocations: 46.5 kB / 0.5796 GB, free: 25.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.504e-05/0.3323, allocations: 63.59 kB / 0.5797 GB, free: 25.49 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.924e-05/0.3323, allocations: 327.5 kB / 0.58 GB, free: 25.17 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.3327, allocations: 113.3 kB / 0.5801 GB, free: 25.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003461/0.333, allocations: 170 kB / 0.5803 GB, free: 25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006005/0.3336, allocations: 314.9 kB / 0.5806 GB, free: 24.76 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.3336, allocations: 0 / 0.5806 GB, free: 24.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000848/0.3345, allocations: 419 kB / 0.581 GB, free: 24.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.3345, allocations: 92.34 kB / 0.581 GB, free: 24.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3346, allocations: 5.281 kB / 0.5811 GB, free: 24.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.3346, allocations: 2.625 kB / 0.5811 GB, free: 24.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.3348, allocations: 49.86 kB / 0.5811 GB, free: 24.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3348, allocations: 2.438 kB / 0.5811 GB, free: 24.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/0.3351, allocations: 51.89 kB / 0.5812 GB, free: 24.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.886e-05/0.3352, allocations: 13.58 kB / 0.5812 GB, free: 24.36 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.0001229/0.3353, allocations: 150.3 kB / 0.5813 GB, free: 24.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.316e-05/0.3353, allocations: 27.88 kB / 0.5813 GB, free: 24.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006891/0.336, allocations: 254.5 kB / 0.5816 GB, free: 24.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.336, allocations: 2.719 kB / 0.5816 GB, free: 24.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3361, allocations: 0 / 0.5816 GB, free: 24.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3361, allocations: 3.984 kB / 0.5816 GB, free: 24.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008381/0.3369, allocations: 0.5932 MB / 0.5822 GB, free: 23.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3369, allocations: 0.5312 kB / 0.5822 GB, free: 23.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.3371, allocations: 27.31 kB / 0.5822 GB, free: 23.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.3371, allocations: 1.312 kB / 0.5822 GB, free: 23.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.3371, allocations: 6.359 kB / 0.5822 GB, free: 23.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.3371, allocations: 1.281 kB / 0.5822 GB, free: 23.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3371, allocations: 3.156 kB / 0.5822 GB, free: 23.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006416/0.3378, allocations: 348.3 kB / 0.5825 GB, free: 23.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.103e-05/0.3378, allocations: 95.67 kB / 0.5826 GB, free: 23.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.3379, allocations: 6.656 kB / 0.5826 GB, free: 23.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002887/0.3382, allocations: 40.09 kB / 0.5827 GB, free: 23.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.3383, allocations: 46.62 kB / 0.5827 GB, free: 23.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.3383, allocations: 9.031 kB / 0.5827 GB, free: 23.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.051e-05/0.3384, allocations: 144.8 kB / 0.5829 GB, free: 23.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3384, allocations: 0 / 0.5829 GB, free: 23.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003177/0.3387, allocations: 54.12 kB / 0.5829 GB, free: 23.06 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.00121/0.3399, allocations: 1.006 MB / 0.5839 GB, free: 22.24 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007692/0.3407, allocations: 424.6 kB / 0.5843 GB, free: 21.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3407, allocations: 0 / 0.5843 GB, free: 21.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.3411, allocations: 115.6 kB / 0.5844 GB, free: 21.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003633/0.3414, allocations: 33.11 kB / 0.5844 GB, free: 21.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003404/0.3448, allocations: 2.644 MB / 0.587 GB, free: 19.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.345, allocations: 0.7424 MB / 0.5878 GB, free: 19.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.3451, allocations: 21.36 kB / 0.5878 GB, free: 19.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.3452, allocations: 70.41 kB / 0.5878 GB, free: 19.02 MB / 446.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3453, allocations: 0 / 0.5878 GB, free: 19.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.3683, allocations: 4.884 MB / 0.5926 GB, free: 16.71 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002219/0.3686, allocations: 229.5 kB / 0.5928 GB, free: 16.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.996/2.365, allocations: 7.312 kB / 0.5928 GB, free: 16.46 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-08 IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1)