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.005269/0.005269, allocations: 94.8 kB / 15.73 MB, free: 6.047 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: 206.4 kB / 16.68 MB, free: 5.973 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002426/0.002426, allocations: 278.9 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.012/1.012, allocations: 178.6 MB / 0.5074 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002584/0.002585, allocations: 99.83 kB / 0.6943 GB, free: 3.535 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4119/0.4145, allocations: 89.13 MB / 0.7814 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003293/0.4179, allocations: 2.084 MB / 0.7834 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009486/0.4188, allocations: 0.5653 MB / 0.784 GB, free: 12 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.72e-05/0.4189, allocations: 2.656 kB / 0.784 GB, free: 12 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.4191, allocations: 24 kB / 0.784 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 9.059e-05/0.4192, allocations: 36.14 kB / 0.784 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.4194, allocations: 93.25 kB / 0.7841 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003149/0.4197, allocations: 267.5 kB / 0.7844 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.42, allocations: 115.2 kB / 0.7845 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.4201, allocations: 114.5 kB / 0.7846 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000161/0.4203, allocations: 118.2 kB / 0.7847 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.742e-05/0.4204, allocations: 26.44 kB / 0.7847 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.004e-05/0.4204, allocations: 25.75 kB / 0.7848 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.932e-05/0.4205, allocations: 55.28 kB / 0.7848 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.4206, allocations: 120.6 kB / 0.7849 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00034/0.4209, allocations: 278.2 kB / 0.7852 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.421, allocations: 0 / 0.7852 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.623e-06/0.421, allocations: 0 / 0.7852 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.421, allocations: 0 / 0.7852 GB, free: 11.37 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.00115/0.4221, allocations: 0.6405 MB / 0.7858 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.4222, allocations: 9.688 kB / 0.7858 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.542e-05/0.4223, allocations: 59.59 kB / 0.7859 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.739e-05/0.4223, allocations: 28.77 kB / 0.7859 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.4227, allocations: 262.1 kB / 0.7862 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.4227, allocations: 24.14 kB / 0.7862 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.936e-05/0.4228, allocations: 19.31 kB / 0.7862 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006399/0.4234, allocations: 272.6 kB / 0.7865 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.4234, allocations: 0 / 0.7865 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.4234, allocations: 11.86 kB / 0.7865 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.4235, allocations: 4 kB / 0.7865 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006769/0.4241, allocations: 210.3 kB / 0.7867 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.4252, allocations: 0.6228 MB / 0.7873 GB, free: 9.879 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008134/0.4261, allocations: 223.7 kB / 0.7875 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003113/0.4264, allocations: 89.27 kB / 0.7876 GB, free: 9.785 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.4264, allocations: 5.359 kB / 0.7876 GB, free: 9.781 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004796/0.4269, allocations: 192.4 kB / 0.7878 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 1.653e-06/0.4269, allocations: 0 / 0.7878 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.001068/0.428, allocations: 332.1 kB / 0.7881 GB, free: 9.602 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.4281, allocations: 112.9 kB / 0.7882 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.4283, allocations: 198.8 kB / 0.7884 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.937e-05/0.4283, allocations: 35.27 kB / 0.7884 GB, free: 9.305 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.4284, allocations: 158.2 kB / 0.7886 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.822e-05/0.4285, allocations: 51.64 kB / 0.7886 GB, free: 9.129 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.4286, allocations: 61.31 kB / 0.7887 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.4287, allocations: 333.3 kB / 0.789 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003619/0.4291, allocations: 110.4 kB / 0.7891 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000424/0.4295, allocations: 176.2 kB / 0.7893 GB, free: 8.641 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007478/0.4303, allocations: 307.6 kB / 0.7896 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4303, allocations: 0.5625 kB / 0.7896 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001034/0.4313, allocations: 423.6 kB / 0.79 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.777e-05/0.4314, allocations: 96.33 kB / 0.7901 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4314, allocations: 1.125 kB / 0.7901 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.4315, allocations: 4.016 kB / 0.7901 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002189/0.4317, allocations: 44.12 kB / 0.7901 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.535e-06/0.4317, allocations: 4.188 kB / 0.7901 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.432, allocations: 57.67 kB / 0.7902 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.432, allocations: 12.69 kB / 0.7902 GB, free: 8.105 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.0001423/0.4322, allocations: 147.1 kB / 0.7903 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.4322, allocations: 26.14 kB / 0.7903 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000752/0.433, allocations: 264 kB / 0.7906 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.433, allocations: 9.031 kB / 0.7906 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.433, allocations: 1.156 kB / 0.7906 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.433, allocations: 1.078 kB / 0.7906 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.434, allocations: 0.5837 MB / 0.7912 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.434, allocations: 1.125 kB / 0.7912 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.4342, allocations: 32.19 kB / 0.7912 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.4342, allocations: 1.094 kB / 0.7912 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.4342, allocations: 3.938 kB / 0.7912 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.104e-05/0.4343, allocations: 5.688 kB / 0.7912 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4343, allocations: 0 / 0.7912 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007507/0.435, allocations: 348.1 kB / 0.7915 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.159e-05/0.4351, allocations: 90.78 kB / 0.7916 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.222e-05/0.4351, allocations: 8.625 kB / 0.7916 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002943/0.4354, allocations: 45.48 kB / 0.7917 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.4356, allocations: 44.33 kB / 0.7917 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.4356, allocations: 7.656 kB / 0.7917 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001216/0.4357, allocations: 143.2 kB / 0.7919 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4357, allocations: 0 / 0.7919 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002885/0.436, allocations: 61.83 kB / 0.7919 GB, free: 7.039 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.001436/0.4375, allocations: 1.001 MB / 0.7929 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008691/0.4383, allocations: 416.6 kB / 0.7933 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4384, allocations: 4.312 kB / 0.7933 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003552/0.4387, allocations: 118.4 kB / 0.7934 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.4391, allocations: 28.2 kB / 0.7935 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003873/0.443, allocations: 2.596 MB / 0.796 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.4433, allocations: 0.7378 MB / 0.7967 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.614e-05/0.4434, allocations: 25.27 kB / 0.7967 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.4435, allocations: 71.66 kB / 0.7968 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of SimCode: time 2.71e-07/0.4435, allocations: 0 / 0.7968 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0264/0.4699, allocations: 5.245 MB / 0.8019 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.679/8.149, allocations: 11.08 kB / 0.8019 GB, free: 0.9297 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)