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.005566/0.005566, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001458/0.001458, allocations: 200.3 kB / 16.68 MB, free: 5.934 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002346/0.002346, allocations: 292.2 kB / 290.8 MB, free: 14.45 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.6 MB / 0.5074 GB, free: 12.6 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00252/0.00252, allocations: 103.8 kB / 0.6944 GB, free: 15.16 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4008/0.4034, allocations: 89.12 MB / 0.7814 GB, free: 1.16 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.002819/0.4062, allocations: 2.079 MB / 0.7834 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009275/0.4072, allocations: 0.5636 MB / 0.784 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.581e-05/0.4073, allocations: 6.75 kB / 0.784 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.4074, allocations: 19.73 kB / 0.784 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 9.223e-05/0.4075, allocations: 48.09 kB / 0.784 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002461/0.4078, allocations: 90.06 kB / 0.7841 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003169/0.4081, allocations: 264.5 kB / 0.7844 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002445/0.4083, allocations: 126.1 kB / 0.7845 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.4085, allocations: 108.7 kB / 0.7846 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.4087, allocations: 112.2 kB / 0.7847 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.993e-05/0.4087, allocations: 25.66 kB / 0.7847 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.271e-05/0.4088, allocations: 26.41 kB / 0.7848 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.71e-05/0.4088, allocations: 59.12 kB / 0.7848 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.409, allocations: 120.7 kB / 0.7849 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003318/0.4093, allocations: 282.8 kB / 0.7852 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.4093, allocations: 0 / 0.7852 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.172e-06/0.4093, allocations: 0 / 0.7852 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.4093, allocations: 1.156 kB / 0.7852 GB, free: 14.18 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.001183/0.4105, allocations: 0.6313 MB / 0.7858 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.4106, allocations: 10.38 kB / 0.7858 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.828e-05/0.4107, allocations: 64.94 kB / 0.7859 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.351e-05/0.4107, allocations: 27.33 kB / 0.7859 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.4111, allocations: 263.1 kB / 0.7862 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.4111, allocations: 21.86 kB / 0.7862 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.717e-05/0.4112, allocations: 19.72 kB / 0.7862 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006583/0.4118, allocations: 274 kB / 0.7865 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.4119, allocations: 3.984 kB / 0.7865 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.47e-05/0.4119, allocations: 6.344 kB / 0.7865 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.4119, allocations: 4.594 kB / 0.7865 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006901/0.4126, allocations: 201.2 kB / 0.7867 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.4137, allocations: 0.626 MB / 0.7873 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008305/0.4146, allocations: 217.7 kB / 0.7875 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003115/0.4149, allocations: 89.31 kB / 0.7876 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.4149, allocations: 10.33 kB / 0.7876 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004927/0.4154, allocations: 180.4 kB / 0.7878 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 1.784e-06/0.4155, allocations: 0 / 0.7878 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.001083/0.4165, allocations: 335 kB / 0.7881 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.496e-05/0.4166, allocations: 111.2 kB / 0.7882 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.4169, allocations: 200.2 kB / 0.7884 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.531e-05/0.4169, allocations: 38.08 kB / 0.7884 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.417, allocations: 165.6 kB / 0.7886 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.593e-05/0.4171, allocations: 46.36 kB / 0.7886 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.4172, allocations: 62.97 kB / 0.7887 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.4174, allocations: 327.8 kB / 0.789 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003646/0.4177, allocations: 109.9 kB / 0.7891 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004091/0.4181, allocations: 177.3 kB / 0.7893 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006881/0.4188, allocations: 303.5 kB / 0.7895 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4189, allocations: 1.125 kB / 0.7895 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009166/0.4198, allocations: 427.8 kB / 0.79 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.991e-05/0.4199, allocations: 96.53 kB / 0.79 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.4199, allocations: 2.062 kB / 0.79 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.4199, allocations: 6.25 kB / 0.7901 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.4201, allocations: 50.2 kB / 0.7901 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.4201, allocations: 2.594 kB / 0.7901 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.4205, allocations: 55.92 kB / 0.7902 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.4205, allocations: 12.12 kB / 0.7902 GB, free: 10.23 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.0001509/0.4206, allocations: 156.6 kB / 0.7903 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.4207, allocations: 22.19 kB / 0.7903 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007453/0.4214, allocations: 257.6 kB / 0.7906 GB, free: 9.926 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.4215, allocations: 5.5 kB / 0.7906 GB, free: 9.922 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4215, allocations: 1.406 kB / 0.7906 GB, free: 9.922 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.4215, allocations: 4 kB / 0.7906 GB, free: 9.918 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.4225, allocations: 0.5847 MB / 0.7912 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.4225, allocations: 1.281 kB / 0.7912 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.4227, allocations: 38.03 kB / 0.7912 GB, free: 9.418 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.4227, allocations: 0.9062 kB / 0.7912 GB, free: 9.418 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.4227, allocations: 6.297 kB / 0.7912 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.4227, allocations: 1.031 kB / 0.7912 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4227, allocations: 0 / 0.7912 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007617/0.4235, allocations: 341.1 kB / 0.7915 GB, free: 9.188 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-05/0.4235, allocations: 93.56 kB / 0.7916 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.189e-05/0.4236, allocations: 7.656 kB / 0.7916 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003026/0.4239, allocations: 43.59 kB / 0.7917 GB, free: 9.059 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.424, allocations: 44.44 kB / 0.7917 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.4241, allocations: 5.438 kB / 0.7917 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001227/0.4242, allocations: 148 kB / 0.7919 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4242, allocations: 1.094 kB / 0.7919 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003002/0.4245, allocations: 54.89 kB / 0.7919 GB, free: 8.906 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.001519/0.426, allocations: 0.9967 MB / 0.7929 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008998/0.4269, allocations: 421.1 kB / 0.7933 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.427, allocations: 1.125 kB / 0.7933 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000377/0.4273, allocations: 121 kB / 0.7934 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.4277, allocations: 38.36 kB / 0.7934 GB, free: 7.711 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004053/0.4318, allocations: 2.599 MB / 0.796 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.4322, allocations: 0.7379 MB / 0.7967 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.802e-05/0.4323, allocations: 24.09 kB / 0.7967 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.4324, allocations: 71.81 kB / 0.7968 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of SimCode: time 3.21e-07/0.4324, allocations: 3.938 kB / 0.7968 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02736/0.4598, allocations: 5.243 MB / 0.8019 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.779/8.238, allocations: 7.266 kB / 0.8019 GB, free: 2.309 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1)