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.003956/0.003957, allocations: 102.1 kB / 15.73 MB, free: 6 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.001126/0.001126, allocations: 184.2 kB / 16.67 MB, free: 5.926 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002353/0.002353, allocations: 283.7 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.125/1.125, allocations: 178.5 MB / 0.5074 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002671/0.002671, allocations: 103.8 kB / 0.6944 GB, free: 15.16 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.385, allocations: 89.13 MB / 0.7814 GB, free: 1.176 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.002751/0.3878, allocations: 2.074 MB / 0.7834 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009358/0.3887, allocations: 0.5674 MB / 0.784 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.036e-05/0.3888, allocations: 2.656 kB / 0.784 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.3889, allocations: 23.73 kB / 0.784 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 8.572e-05/0.389, allocations: 35.44 kB / 0.784 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.3893, allocations: 90.8 kB / 0.7841 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002903/0.3896, allocations: 268.5 kB / 0.7844 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.3898, allocations: 122.2 kB / 0.7845 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.39, allocations: 112.8 kB / 0.7846 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.3901, allocations: 120.5 kB / 0.7847 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.357e-05/0.3902, allocations: 25.62 kB / 0.7847 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 3.925e-05/0.3902, allocations: 26.22 kB / 0.7848 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.568e-05/0.3903, allocations: 58.67 kB / 0.7848 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.3904, allocations: 116.6 kB / 0.7849 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.3907, allocations: 278.8 kB / 0.7852 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3907, allocations: 4 kB / 0.7852 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3907, allocations: 5.031 kB / 0.7852 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.401e-06/0.3907, allocations: 0 / 0.7852 GB, free: 14.2 MB / 0.5606 GB 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.001112/0.3919, allocations: 0.6315 MB / 0.7858 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.3919, allocations: 9.312 kB / 0.7858 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.666e-05/0.392, allocations: 57.91 kB / 0.7859 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.356e-05/0.3921, allocations: 32.11 kB / 0.7859 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003417/0.3924, allocations: 266 kB / 0.7862 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.3924, allocations: 14.56 kB / 0.7862 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.652e-05/0.3925, allocations: 24.09 kB / 0.7862 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006065/0.3931, allocations: 281.2 kB / 0.7865 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.3931, allocations: 0 / 0.7865 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.3931, allocations: 6.594 kB / 0.7865 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.3932, allocations: 4.656 kB / 0.7865 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006599/0.3938, allocations: 196.8 kB / 0.7867 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.3949, allocations: 0.623 MB / 0.7873 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008138/0.3958, allocations: 225.5 kB / 0.7875 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003103/0.3961, allocations: 88.38 kB / 0.7876 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.3961, allocations: 5.188 kB / 0.7876 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004919/0.3966, allocations: 184.5 kB / 0.7878 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 1.633e-06/0.3966, allocations: 0 / 0.7878 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.001102/0.3977, allocations: 332 kB / 0.7881 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.257e-05/0.3978, allocations: 107.3 kB / 0.7882 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.398, allocations: 199.7 kB / 0.7884 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.3981, allocations: 43.14 kB / 0.7884 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.3982, allocations: 164.8 kB / 0.7886 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.453e-05/0.3983, allocations: 46.55 kB / 0.7886 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.3984, allocations: 66.94 kB / 0.7887 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001977/0.3986, allocations: 327.3 kB / 0.789 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003597/0.399, allocations: 106.7 kB / 0.7891 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004091/0.3994, allocations: 173.3 kB / 0.7893 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006888/0.4001, allocations: 303.9 kB / 0.7895 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4001, allocations: 1.094 kB / 0.7895 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009269/0.401, allocations: 430.5 kB / 0.79 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.513e-05/0.4011, allocations: 93.56 kB / 0.79 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.4011, allocations: 5.453 kB / 0.7901 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.4011, allocations: 3.156 kB / 0.7901 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.4014, allocations: 56.83 kB / 0.7901 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.4014, allocations: 3.938 kB / 0.7901 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.4017, allocations: 54.83 kB / 0.7902 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.979e-05/0.4017, allocations: 16.14 kB / 0.7902 GB, free: 10.24 MB / 0.5606 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.0001506/0.4019, allocations: 145.2 kB / 0.7903 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.4019, allocations: 25.25 kB / 0.7903 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007475/0.4027, allocations: 265.5 kB / 0.7906 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.4027, allocations: 1.594 kB / 0.7906 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.4027, allocations: 5.156 kB / 0.7906 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.4027, allocations: 0 / 0.7906 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/0.4038, allocations: 0.5911 MB / 0.7912 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4038, allocations: 0 / 0.7912 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.4039, allocations: 31.38 kB / 0.7912 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.269e-06/0.404, allocations: 4.781 kB / 0.7912 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.404, allocations: 9.953 kB / 0.7912 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.404, allocations: 1.281 kB / 0.7912 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.404, allocations: 0 / 0.7912 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007622/0.4048, allocations: 340.3 kB / 0.7915 GB, free: 9.199 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.197e-05/0.4048, allocations: 94.66 kB / 0.7916 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.161e-05/0.4049, allocations: 7.625 kB / 0.7916 GB, free: 9.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002917/0.4052, allocations: 38.91 kB / 0.7917 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.4053, allocations: 45.34 kB / 0.7917 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.4053, allocations: 11.97 kB / 0.7917 GB, free: 9.039 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001164/0.4054, allocations: 141.8 kB / 0.7919 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4055, allocations: 4 kB / 0.7919 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003063/0.4058, allocations: 58.86 kB / 0.7919 GB, free: 8.914 MB / 0.5606 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.001463/0.4072, allocations: 0.9969 MB / 0.7929 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000887/0.4081, allocations: 417.1 kB / 0.7933 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4081, allocations: 0 / 0.7933 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003766/0.4085, allocations: 118.6 kB / 0.7934 GB, free: 7.746 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.4089, allocations: 34.39 kB / 0.7934 GB, free: 7.727 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003999/0.4129, allocations: 2.604 MB / 0.796 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003508/0.4133, allocations: 0.7377 MB / 0.7967 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001012/0.4134, allocations: 15.39 kB / 0.7967 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.4135, allocations: 72.75 kB / 0.7968 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of SimCode: time 4.71e-07/0.4135, allocations: 7.875 kB / 0.7968 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.4405, allocations: 5.235 MB / 0.8019 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.392/7.833, allocations: 8.234 kB / 0.8019 GB, free: 2.328 MB / 0.5606 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)