Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.004832/0.004832, allocations: 97.75 kB / 15.73 MB, free: 5.996 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.001284/0.001284, allocations: 186.4 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.312/1.312, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.538/2.538, allocations: 469.8 MB / 0.7425 GB, free: 7.297 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 67.89 kB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.288, allocations: 159.1 MB / 1.22 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003238/0.2913, allocations: 2.086 MB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008817/0.2922, allocations: 0.5533 MB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.987e-05/0.2922, allocations: 0 / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.2924, allocations: 27.67 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.336e-05/0.2925, allocations: 35.66 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002328/0.2927, allocations: 87.88 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003127/0.293, allocations: 275.3 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.2933, allocations: 112.4 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.2934, allocations: 103.7 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.2935, allocations: 127.4 kB / 1.224 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.597e-05/0.2936, allocations: 28 kB / 1.224 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 3.968e-05/0.2936, allocations: 24 kB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.972e-05/0.2937, allocations: 59.81 kB / 1.224 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.2938, allocations: 107.5 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003154/0.2942, allocations: 286.8 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2942, allocations: 4 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2942, allocations: 0 / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.2942, allocations: 0 / 1.224 GB, free: 10.32 MB / 0.9825 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.001115/0.2953, allocations: 0.6369 MB / 1.225 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.2953, allocations: 12.03 kB / 1.225 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.174e-05/0.2954, allocations: 59.11 kB / 1.225 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.584e-05/0.2955, allocations: 32.8 kB / 1.225 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.2958, allocations: 257 kB / 1.225 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.2959, allocations: 24.81 kB / 1.225 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.813e-05/0.2959, allocations: 20.38 kB / 1.225 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005957/0.2965, allocations: 278.5 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2965, allocations: 0 / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.2965, allocations: 12 kB / 1.225 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.2966, allocations: 4 kB / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006499/0.2972, allocations: 193.6 kB / 1.226 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001068/0.2983, allocations: 0.6311 MB / 1.226 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007949/0.2991, allocations: 230.4 kB / 1.226 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003088/0.2994, allocations: 88.78 kB / 1.226 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.2994, allocations: 4 kB / 1.226 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004706/0.2999, allocations: 187.1 kB / 1.227 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.532e-06/0.2999, allocations: 0 / 1.227 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18): time 0.001034/0.301, allocations: 334.8 kB / 1.227 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.267e-05/0.3011, allocations: 114.8 kB / 1.227 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.3013, allocations: 200.3 kB / 1.227 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.632e-05/0.3013, allocations: 33.7 kB / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.3014, allocations: 168.3 kB / 1.227 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.21e-05/0.3015, allocations: 47.64 kB / 1.227 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.826e-05/0.3016, allocations: 61.69 kB / 1.228 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3017, allocations: 330.8 kB / 1.228 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000368/0.3021, allocations: 112.2 kB / 1.228 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.3025, allocations: 171.3 kB / 1.228 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006683/0.3032, allocations: 311.6 kB / 1.228 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3032, allocations: 7.938 kB / 1.228 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008848/0.3041, allocations: 421.7 kB / 1.229 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.217e-05/0.3042, allocations: 89.05 kB / 1.229 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3042, allocations: 4 kB / 1.229 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.3042, allocations: 0 / 1.229 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.3044, allocations: 52.11 kB / 1.229 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.3044, allocations: 3.938 kB / 1.229 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003032/0.3047, allocations: 63.78 kB / 1.229 GB, free: 4.836 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.502e-05/0.3048, allocations: 8 kB / 1.229 GB, free: 4.828 MB / 0.9825 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.0001501/0.3049, allocations: 152 kB / 1.229 GB, free: 4.672 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.211e-05/0.305, allocations: 19.84 kB / 1.229 GB, free: 4.652 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007336/0.3057, allocations: 261.6 kB / 1.229 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3057, allocations: 3.984 kB / 1.229 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3057, allocations: 0 / 1.229 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3057, allocations: 8 kB / 1.229 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009799/0.3067, allocations: 0.5801 MB / 1.23 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3067, allocations: 0 / 1.23 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.3069, allocations: 27.97 kB / 1.23 GB, free: 3.719 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3069, allocations: 4 kB / 1.23 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.3069, allocations: 7.984 kB / 1.23 GB, free: 3.707 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3069, allocations: 0 / 1.23 GB, free: 3.707 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.3069, allocations: 4 kB / 1.23 GB, free: 3.703 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007311/0.3077, allocations: 357.4 kB / 1.23 GB, free: 3.34 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.3077, allocations: 96.91 kB / 1.23 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.411e-05/0.3078, allocations: 11.98 kB / 1.231 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002818/0.3081, allocations: 35.89 kB / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.3082, allocations: 47.94 kB / 1.231 GB, free: 3.133 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.3082, allocations: 7.984 kB / 1.231 GB, free: 3.125 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001198/0.3083, allocations: 140.2 kB / 1.231 GB, free: 2.988 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3084, allocations: 4 kB / 1.231 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002791/0.3086, allocations: 63.88 kB / 1.231 GB, free: 2.922 MB / 0.9825 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.00147/0.3101, allocations: 0.9951 MB / 1.232 GB, free: 1.898 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008598/0.311, allocations: 418 kB / 1.232 GB, free: 1.453 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.311, allocations: 0 / 1.232 GB, free: 1.453 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003615/0.3114, allocations: 111.9 kB / 1.232 GB, free: 1.344 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.3117, allocations: 36.08 kB / 1.232 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003917/0.3156, allocations: 2.593 MB / 1.235 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.316, allocations: 0.7397 MB / 1.236 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.98e-05/0.3161, allocations: 21.55 kB / 1.236 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.3162, allocations: 71.41 kB / 1.236 GB, free: 13.74 MB / 0.9981 GB Notification: Performance of SimCode: time 3.51e-07/0.3162, allocations: 0 / 1.236 GB, free: 13.74 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.777/2.093, allocations: 5.221 MB / 1.241 GB, free: 8.676 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.47/16.57, allocations: 17.56 kB / 1.241 GB, free: 8.664 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches