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.001481/0.001481, allocations: 103.4 kB / 16.27 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.001381/0.001381, allocations: 190 kB / 17.2 MB, free: 5.953 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.305/1.305, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7382/0.7382, allocations: 126.7 MB / 417.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 71.88 kB / 0.4959 GB, free: 2.645 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2695, allocations: 78.85 MB / 0.5729 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.00276/0.2722, allocations: 2.067 MB / 0.5749 GB, free: 29.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006871/0.2729, allocations: 0.5576 MB / 0.5755 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.583e-05/0.273, allocations: 7.594 kB / 0.5755 GB, free: 28.92 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.078e-05/0.2731, allocations: 20.3 kB / 0.5755 GB, free: 28.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.398e-05/0.2732, allocations: 41.78 kB / 0.5755 GB, free: 28.88 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001995/0.2734, allocations: 85.66 kB / 0.5756 GB, free: 28.83 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.2737, allocations: 270.5 kB / 0.5759 GB, free: 28.7 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.2739, allocations: 120.1 kB / 0.576 GB, free: 28.64 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.992e-05/0.274, allocations: 106.6 kB / 0.5761 GB, free: 28.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.2741, allocations: 123 kB / 0.5762 GB, free: 28.53 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.183e-05/0.2742, allocations: 25.5 kB / 0.5762 GB, free: 28.53 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.472e-05/0.2742, allocations: 27.06 kB / 0.5762 GB, free: 28.53 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.899e-05/0.2742, allocations: 55.64 kB / 0.5763 GB, free: 28.49 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.298e-05/0.2743, allocations: 119.2 kB / 0.5764 GB, free: 28.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.2746, allocations: 276.3 kB / 0.5767 GB, free: 28.3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.2746, allocations: 0 / 0.5767 GB, free: 28.3 MB / 446.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.2746, allocations: 0 / 0.5767 GB, free: 28.3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.2746, allocations: 1.375 kB / 0.5767 GB, free: 28.3 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.0008901/0.2755, allocations: 0.633 MB / 0.5773 GB, free: 27.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.711e-05/0.2755, allocations: 9.625 kB / 0.5773 GB, free: 27.75 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.204e-05/0.2756, allocations: 60.67 kB / 0.5774 GB, free: 27.69 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.128e-05/0.2757, allocations: 27.78 kB / 0.5774 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.2759, allocations: 245.6 kB / 0.5776 GB, free: 27.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.2759, allocations: 27.45 kB / 0.5776 GB, free: 27.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.158e-05/0.2759, allocations: 21.92 kB / 0.5777 GB, free: 27.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.2765, allocations: 272.9 kB / 0.5779 GB, free: 27.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.2765, allocations: 0.5 kB / 0.5779 GB, free: 27.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.2765, allocations: 13.41 kB / 0.5779 GB, free: 27.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.2765, allocations: 4.125 kB / 0.5779 GB, free: 27.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006104/0.2771, allocations: 195.2 kB / 0.5781 GB, free: 27.25 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000837/0.278, allocations: 0.6319 MB / 0.5787 GB, free: 26.71 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007198/0.2787, allocations: 220.7 kB / 0.579 GB, free: 26.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002795/0.279, allocations: 94.06 kB / 0.579 GB, free: 26.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.279, allocations: 6.734 kB / 0.5791 GB, free: 26.54 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004164/0.2794, allocations: 193.6 kB / 0.5792 GB, free: 26.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.432e-06/0.2795, allocations: 0 / 0.5792 GB, free: 26.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009437/0.2804, allocations: 323.4 kB / 0.5795 GB, free: 26.26 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.2804, allocations: 115.9 kB / 0.5797 GB, free: 26.13 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.2806, allocations: 208.1 kB / 0.5799 GB, free: 25.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.2806, allocations: 35.8 kB / 0.5799 GB, free: 25.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.691e-05/0.2807, allocations: 156.5 kB / 0.58 GB, free: 25.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.958e-05/0.2807, allocations: 50.72 kB / 0.5801 GB, free: 25.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.101e-05/0.2808, allocations: 62.31 kB / 0.5801 GB, free: 25.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.047e-05/0.2808, allocations: 331.4 kB / 0.5805 GB, free: 25.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000323/0.2812, allocations: 106.8 kB / 0.5806 GB, free: 25.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.2815, allocations: 180.7 kB / 0.5807 GB, free: 25.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005753/0.2821, allocations: 308.6 kB / 0.581 GB, free: 24.97 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2821, allocations: 4.531 kB / 0.581 GB, free: 24.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007543/0.2829, allocations: 420.3 kB / 0.5814 GB, free: 24.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.993e-05/0.2829, allocations: 93.97 kB / 0.5815 GB, free: 24.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2829, allocations: 8.719 kB / 0.5815 GB, free: 24.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.2829, allocations: 0 / 0.5815 GB, free: 24.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.2831, allocations: 48.14 kB / 0.5816 GB, free: 24.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2832, allocations: 7.5 kB / 0.5816 GB, free: 24.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.2834, allocations: 59.72 kB / 0.5816 GB, free: 24.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.2835, allocations: 10.53 kB / 0.5817 GB, free: 24.55 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 9.352e-05/0.2836, allocations: 142.6 kB / 0.5818 GB, free: 24.42 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.2836, allocations: 27.56 kB / 0.5818 GB, free: 24.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006501/0.2843, allocations: 253.9 kB / 0.5821 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2843, allocations: 2.812 kB / 0.5821 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2843, allocations: 1.156 kB / 0.5821 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2843, allocations: 3.984 kB / 0.5821 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007607/0.2851, allocations: 0.5861 MB / 0.5826 GB, free: 23.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2851, allocations: 1.312 kB / 0.5826 GB, free: 23.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.2852, allocations: 31.41 kB / 0.5827 GB, free: 23.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2852, allocations: 1.281 kB / 0.5827 GB, free: 23.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.2852, allocations: 7.297 kB / 0.5827 GB, free: 23.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.2853, allocations: 1.812 kB / 0.5827 GB, free: 23.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2853, allocations: 0 / 0.5827 GB, free: 23.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006205/0.2859, allocations: 345 kB / 0.583 GB, free: 23.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.781e-05/0.2859, allocations: 97.95 kB / 0.5831 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.286, allocations: 8.172 kB / 0.5831 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002791/0.2862, allocations: 40.2 kB / 0.5831 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.727e-05/0.2863, allocations: 45.38 kB / 0.5832 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.2864, allocations: 9.734 kB / 0.5832 GB, free: 23.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.588e-05/0.2865, allocations: 139.7 kB / 0.5833 GB, free: 23.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2865, allocations: 0.5312 kB / 0.5833 GB, free: 23.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000271/0.2867, allocations: 60.08 kB / 0.5834 GB, free: 23.26 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.001109/0.2879, allocations: 0.9965 MB / 0.5844 GB, free: 22.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007237/0.2886, allocations: 431.9 kB / 0.5848 GB, free: 22.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2886, allocations: 0.6875 kB / 0.5848 GB, free: 22.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003114/0.2889, allocations: 116.1 kB / 0.5849 GB, free: 22.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.2892, allocations: 44.7 kB / 0.5849 GB, free: 22.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00303/0.2923, allocations: 2.572 MB / 0.5874 GB, free: 20.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.2924, allocations: 0.7374 MB / 0.5882 GB, free: 19.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.593e-05/0.2925, allocations: 20.06 kB / 0.5882 GB, free: 19.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.577e-05/0.2926, allocations: 71.69 kB / 0.5883 GB, free: 19.29 MB / 446.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2926, allocations: 3.938 kB / 0.5883 GB, free: 19.28 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.139/1.432, allocations: 5.145 MB / 0.5933 GB, free: 16.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/13.78, allocations: 2.344 kB / 0.5933 GB, free: 16.43 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)