Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_latest_Buildings_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.001643/0.001643, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 198.9 kB / 16.54 MB, free: 6.672 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.425/1.425, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.86/2.86, allocations: 482.6 MB / 0.7549 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002074/0.002074, allocations: 73.42 kB / 0.9243 GB, free: 29.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2791, allocations: 162.3 MB / 1.083 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.004078/0.2832, allocations: 2.078 MB / 1.085 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009997/0.2843, allocations: 0.5611 MB / 1.085 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.2844, allocations: 7.938 kB / 1.085 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.2845, allocations: 19.73 kB / 1.085 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.782e-05/0.2846, allocations: 39.66 kB / 1.085 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.2849, allocations: 95.81 kB / 1.085 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002985/0.2852, allocations: 255.4 kB / 1.086 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002381/0.2855, allocations: 114.9 kB / 1.086 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.2856, allocations: 107.6 kB / 1.086 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.2858, allocations: 127.4 kB / 1.086 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.046e-05/0.2858, allocations: 28 kB / 1.086 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.988e-05/0.2859, allocations: 28 kB / 1.086 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.142e-05/0.2859, allocations: 55.77 kB / 1.086 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.286, allocations: 115.4 kB / 1.086 GB, free: 9.168 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002871/0.2863, allocations: 271.4 kB / 1.087 GB, free: 8.902 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2864, allocations: 3.938 kB / 1.087 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2864, allocations: 0 / 1.087 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.2864, allocations: 0 / 1.087 GB, free: 8.898 MB / 0.8419 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.001302/0.2877, allocations: 0.6449 MB / 1.087 GB, free: 8.184 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.2877, allocations: 8.031 kB / 1.087 GB, free: 8.176 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.284e-05/0.2878, allocations: 59.08 kB / 1.087 GB, free: 8.109 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.182e-05/0.2879, allocations: 24.66 kB / 1.087 GB, free: 8.086 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002979/0.2882, allocations: 253.1 kB / 1.087 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.2882, allocations: 16.81 kB / 1.087 GB, free: 7.785 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.227e-05/0.2883, allocations: 24.36 kB / 1.088 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006718/0.2889, allocations: 278.5 kB / 1.088 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.289, allocations: 0 / 1.088 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.289, allocations: 8 kB / 1.088 GB, free: 7.465 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.289, allocations: 7.984 kB / 1.088 GB, free: 7.457 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.2902, allocations: 201.6 kB / 1.088 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001642/0.2918, allocations: 0.6309 MB / 1.089 GB, free: 6.574 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.2932, allocations: 217.4 kB / 1.089 GB, free: 6.355 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005363/0.2937, allocations: 92.78 kB / 1.089 GB, free: 6.262 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.2938, allocations: 4 kB / 1.089 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000829/0.2946, allocations: 188.9 kB / 1.089 GB, free: 6.062 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 2.385e-06/0.2946, allocations: 3.938 kB / 1.089 GB, free: 6.059 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.001772/0.2964, allocations: 333.1 kB / 1.089 GB, free: 5.727 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.2965, allocations: 110.8 kB / 1.09 GB, free: 5.594 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002971/0.2968, allocations: 205.5 kB / 1.09 GB, free: 5.387 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.095e-05/0.2969, allocations: 37.7 kB / 1.09 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.2971, allocations: 156.2 kB / 1.09 GB, free: 5.188 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.179e-05/0.2972, allocations: 51.34 kB / 1.09 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.2973, allocations: 61.69 kB / 1.09 GB, free: 5.07 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001639/0.2975, allocations: 330.8 kB / 1.09 GB, free: 4.738 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004065/0.2979, allocations: 112.2 kB / 1.09 GB, free: 4.629 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/0.2984, allocations: 171.3 kB / 1.091 GB, free: 4.438 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007224/0.2991, allocations: 304.9 kB / 1.091 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2991, allocations: 0 / 1.091 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009592/0.3001, allocations: 420.8 kB / 1.091 GB, free: 3.672 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.569e-05/0.3002, allocations: 94.77 kB / 1.091 GB, free: 3.562 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3002, allocations: 0 / 1.091 GB, free: 3.562 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.3002, allocations: 4 kB / 1.091 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002578/0.3005, allocations: 55.98 kB / 1.091 GB, free: 3.504 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.3005, allocations: 4 kB / 1.091 GB, free: 3.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003364/0.3008, allocations: 59.72 kB / 1.091 GB, free: 3.441 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.3009, allocations: 8 kB / 1.092 GB, free: 3.434 MB / 0.8419 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.0001648/0.301, allocations: 148 kB / 1.092 GB, free: 3.281 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.622e-05/0.3011, allocations: 31.64 kB / 1.092 GB, free: 3.25 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007883/0.3019, allocations: 255.3 kB / 1.092 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3019, allocations: 0 / 1.092 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3019, allocations: 0 / 1.092 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.3019, allocations: 0 / 1.092 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.303, allocations: 0.5813 MB / 1.092 GB, free: 2.363 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.303, allocations: 3.984 kB / 1.092 GB, free: 2.359 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.3032, allocations: 43.89 kB / 1.093 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3032, allocations: 4 kB / 1.093 GB, free: 2.312 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.3032, allocations: 4 kB / 1.093 GB, free: 2.309 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3032, allocations: 3.938 kB / 1.093 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3032, allocations: 0 / 1.093 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007764/0.304, allocations: 344.4 kB / 1.093 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.36e-05/0.3041, allocations: 104.8 kB / 1.093 GB, free: 1.832 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.3041, allocations: 0 / 1.093 GB, free: 1.832 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003189/0.3045, allocations: 39.95 kB / 1.093 GB, free: 1.793 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.3046, allocations: 51.88 kB / 1.093 GB, free: 1.742 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.3046, allocations: 7.984 kB / 1.093 GB, free: 1.734 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001279/0.3048, allocations: 147 kB / 1.093 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3048, allocations: 4 kB / 1.093 GB, free: 1.586 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000314/0.3051, allocations: 55.84 kB / 1.093 GB, free: 1.531 MB / 0.8419 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.001537/0.3066, allocations: 1 MB / 1.094 GB, free: 0.5039 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009609/0.3076, allocations: 430.1 kB / 1.095 GB, free: 48 kB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3076, allocations: 0 / 1.095 GB, free: 48 kB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000407/0.308, allocations: 108 kB / 1.095 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003971/0.3084, allocations: 49.14 kB / 1.095 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004138/0.3126, allocations: 2.564 MB / 1.097 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003509/0.313, allocations: 0.7359 MB / 1.098 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001026/0.3131, allocations: 21.55 kB / 1.098 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.3132, allocations: 71.41 kB / 1.098 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of SimCode: time 3.71e-07/0.3132, allocations: 0 / 1.098 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0274/0.3406, allocations: 5.158 MB / 1.103 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.512/7.853, allocations: 11.88 kB / 1.103 GB, free: 7.352 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.csv --start-time 0 --stop-time 100 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches