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.007571/0.007571, allocations: 103.6 kB / 15.74 MB, free: 6.449 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.002097/0.002097, allocations: 196.5 kB / 16.67 MB, free: 6.355 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.858/2.858, allocations: 482.4 MB / 0.7548 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 67.89 kB / 1.083 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2797, allocations: 162.2 MB / 1.242 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003656/0.2834, allocations: 2.077 MB / 1.244 GB, free: 8.012 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001216/0.2846, allocations: 0.5649 MB / 1.244 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.2848, allocations: 0 / 1.244 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.285, allocations: 19.73 kB / 1.244 GB, free: 7.422 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001333/0.2851, allocations: 39.59 kB / 1.244 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003385/0.2855, allocations: 91.88 kB / 1.244 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003776/0.2859, allocations: 263.3 kB / 1.245 GB, free: 7.035 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002726/0.2862, allocations: 122.9 kB / 1.245 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.2864, allocations: 107.7 kB / 1.245 GB, free: 6.809 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001857/0.2865, allocations: 123.4 kB / 1.245 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.709e-05/0.2866, allocations: 24 kB / 1.245 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.702e-05/0.2867, allocations: 28 kB / 1.245 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 6.737e-05/0.2867, allocations: 59.81 kB / 1.245 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.2869, allocations: 111.4 kB / 1.245 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003564/0.2872, allocations: 290.8 kB / 1.245 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2872, allocations: 0 / 1.245 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.002e-06/0.2873, allocations: 0 / 1.245 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.2873, allocations: 0 / 1.245 GB, free: 6.184 MB / 0.9981 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.001299/0.2886, allocations: 0.633 MB / 1.246 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.2886, allocations: 8.031 kB / 1.246 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.2887, allocations: 63.12 kB / 1.246 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.11e-05/0.2888, allocations: 32.78 kB / 1.246 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003979/0.2892, allocations: 260.5 kB / 1.246 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.2893, allocations: 16.81 kB / 1.246 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.2893, allocations: 20.38 kB / 1.246 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006688/0.29, allocations: 282.5 kB / 1.247 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.29, allocations: 0 / 1.247 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/0.29, allocations: 8 kB / 1.247 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.2901, allocations: 4 kB / 1.247 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007222/0.2908, allocations: 201.6 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.292, allocations: 0.6311 MB / 1.247 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000859/0.2928, allocations: 222.2 kB / 1.248 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000328/0.2932, allocations: 96.78 kB / 1.248 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.2932, allocations: 3.938 kB / 1.248 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005306/0.2937, allocations: 179.2 kB / 1.248 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=18): time 2.324e-06/0.2938, allocations: 0 / 1.248 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18): time 0.001142/0.2949, allocations: 336 kB / 1.248 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.981e-05/0.295, allocations: 114.8 kB / 1.248 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.2952, allocations: 204.3 kB / 1.249 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/0.2953, allocations: 45.69 kB / 1.249 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.2954, allocations: 156.3 kB / 1.249 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.992e-05/0.2954, allocations: 51.64 kB / 1.249 GB, free: 2.406 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.2956, allocations: 61.69 kB / 1.249 GB, free: 2.34 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.2957, allocations: 326.8 kB / 1.249 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003783/0.2961, allocations: 108.2 kB / 1.249 GB, free: 1.906 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004314/0.2965, allocations: 171.3 kB / 1.249 GB, free: 1.715 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007487/0.2973, allocations: 300.7 kB / 1.25 GB, free: 1.387 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2973, allocations: 3.984 kB / 1.25 GB, free: 1.383 MB / 0.9981 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009737/0.2983, allocations: 427.7 kB / 1.25 GB, free: 0.9414 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.876e-05/0.2984, allocations: 97.03 kB / 1.25 GB, free: 0.8281 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.2984, allocations: 0 / 1.25 GB, free: 0.8281 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.2984, allocations: 12.09 kB / 1.25 GB, free: 0.8164 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000229/0.2986, allocations: 39.95 kB / 1.25 GB, free: 0.7773 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.2986, allocations: 7.938 kB / 1.25 GB, free: 0.7695 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003348/0.299, allocations: 51.84 kB / 1.25 GB, free: 0.7188 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/0.299, allocations: 15.98 kB / 1.25 GB, free: 0.7031 MB / 0.9981 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.0001534/0.2992, allocations: 152.1 kB / 1.25 GB, free: 0.5469 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-05/0.2992, allocations: 23.8 kB / 1.25 GB, free: 0.5234 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008238/0.3001, allocations: 259.2 kB / 1.251 GB, free: 264 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.3001, allocations: 0 / 1.251 GB, free: 264 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3001, allocations: 0 / 1.251 GB, free: 264 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3001, allocations: 7.984 kB / 1.251 GB, free: 256 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4803/0.7804, allocations: 0.5772 MB / 1.251 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.7805, allocations: 0 / 1.251 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.7806, allocations: 33.41 kB / 1.251 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.7806, allocations: 0.8438 kB / 1.251 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.7807, allocations: 5.328 kB / 1.251 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.7807, allocations: 1.531 kB / 1.251 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.7807, allocations: 0 / 1.251 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007272/0.7814, allocations: 347.3 kB / 1.252 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.691e-05/0.7815, allocations: 95.8 kB / 1.252 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.51e-05/0.7815, allocations: 13.45 kB / 1.252 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/0.7818, allocations: 42.62 kB / 1.252 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.782, allocations: 45.8 kB / 1.252 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.782, allocations: 7.312 kB / 1.252 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001052/0.7821, allocations: 141.1 kB / 1.252 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7821, allocations: 1.094 kB / 1.252 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003253/0.7825, allocations: 57.47 kB / 1.252 GB, free: 15.27 MB / 0.9981 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.001302/0.7838, allocations: 1.006 MB / 1.253 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008508/0.7846, allocations: 418.8 kB / 1.253 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.7846, allocations: 3.469 kB / 1.253 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003707/0.785, allocations: 111 kB / 1.254 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.7854, allocations: 40.06 kB / 1.254 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003639/0.789, allocations: 2.579 MB / 1.256 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.7892, allocations: 0.7388 MB / 1.257 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001062/0.7893, allocations: 20.45 kB / 1.257 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.7894, allocations: 69.84 kB / 1.257 GB, free: 11.89 MB / 0.9981 GB Notification: Performance of SimCode: time 7.91e-07/0.7895, allocations: 0 / 1.257 GB, free: 11.89 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02652/0.816, allocations: 5.238 MB / 1.262 GB, free: 11.38 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.972/8.788, allocations: 10.25 kB / 1.262 GB, free: 11.38 MB / 0.9981 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