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.0057/0.0057, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001662/0.001662, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.479/2.479, allocations: 482.6 MB / 0.7551 GB, free: 6.641 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 64.52 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2613, allocations: 162.3 MB / 1.242 GB, free: 8.855 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.002972/0.2643, allocations: 2.091 MB / 1.244 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0008598/0.2652, allocations: 0.5572 MB / 1.244 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.104e-05/0.2653, allocations: 0 / 1.244 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.2654, allocations: 31.66 kB / 1.245 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.149e-05/0.2655, allocations: 27.66 kB / 1.245 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.2657, allocations: 87.89 kB / 1.245 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002863/0.266, allocations: 267.3 kB / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.2662, allocations: 115.2 kB / 1.245 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.2664, allocations: 115.6 kB / 1.245 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.2665, allocations: 119.5 kB / 1.245 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.459e-05/0.2666, allocations: 28 kB / 1.245 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 4.1e-05/0.2666, allocations: 24 kB / 1.245 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.933e-05/0.2667, allocations: 59.81 kB / 1.245 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.2668, allocations: 115.4 kB / 1.245 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.2671, allocations: 282.8 kB / 1.246 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.2671, allocations: 0 / 1.246 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2671, allocations: 3.938 kB / 1.246 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.2671, allocations: 4 kB / 1.246 GB, free: 4.934 MB / 0.9669 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.001089/0.2682, allocations: 0.6423 MB / 1.246 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.2682, allocations: 12.03 kB / 1.246 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.695e-05/0.2683, allocations: 59.06 kB / 1.246 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.618e-05/0.2684, allocations: 28.8 kB / 1.246 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.2687, allocations: 257.1 kB / 1.247 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.2687, allocations: 24.81 kB / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.521e-05/0.2688, allocations: 24.36 kB / 1.247 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000585/0.2693, allocations: 270.5 kB / 1.247 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.2694, allocations: 0 / 1.247 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.2694, allocations: 8 kB / 1.247 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.2694, allocations: 7.984 kB / 1.247 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006452/0.2701, allocations: 201.6 kB / 1.247 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.2711, allocations: 0.6311 MB / 1.248 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007833/0.2719, allocations: 222.5 kB / 1.248 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002942/0.2722, allocations: 88.78 kB / 1.248 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.2722, allocations: 0 / 1.248 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004504/0.2727, allocations: 189.1 kB / 1.248 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/0.2727, allocations: 4 kB / 1.248 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of matching and sorting (n=18): time 0.00101/0.2737, allocations: 330.5 kB / 1.249 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.2738, allocations: 110.8 kB / 1.249 GB, free: 1.625 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.2739, allocations: 210.2 kB / 1.249 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.274, allocations: 33.7 kB / 1.249 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.2741, allocations: 156.3 kB / 1.249 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.706e-05/0.2741, allocations: 55.62 kB / 1.249 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.821e-05/0.2743, allocations: 57.7 kB / 1.249 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.2744, allocations: 334.8 kB / 1.25 GB, free: 0.7656 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003475/0.2747, allocations: 108.2 kB / 1.25 GB, free: 0.6602 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003855/0.2751, allocations: 171.3 kB / 1.25 GB, free: 480 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006598/0.2758, allocations: 308.1 kB / 1.25 GB, free: 136 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2758, allocations: 0 / 1.25 GB, free: 136 kB / 0.9669 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008776/0.2767, allocations: 427.7 kB / 1.25 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.439e-05/0.2768, allocations: 97.03 kB / 1.251 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2768, allocations: 4 kB / 1.251 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.2768, allocations: 0 / 1.251 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.277, allocations: 43.91 kB / 1.251 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.277, allocations: 7.922 kB / 1.251 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.2773, allocations: 59.97 kB / 1.251 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.756e-05/0.2774, allocations: 12 kB / 1.251 GB, free: 15.45 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.0001337/0.2775, allocations: 163.9 kB / 1.251 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.369e-05/0.2775, allocations: 23.8 kB / 1.251 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007097/0.2783, allocations: 259.3 kB / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.2783, allocations: 0 / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2783, allocations: 0 / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.2783, allocations: 0 / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009369/0.2792, allocations: 0.582 MB / 1.252 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2792, allocations: 0 / 1.252 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.2794, allocations: 31.95 kB / 1.252 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.2794, allocations: 0 / 1.252 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.2794, allocations: 8 kB / 1.252 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2794, allocations: 0 / 1.252 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2794, allocations: 0 / 1.252 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007177/0.2802, allocations: 352.8 kB / 1.252 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.637e-05/0.2802, allocations: 96.94 kB / 1.252 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.797e-05/0.2803, allocations: 8 kB / 1.252 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.2806, allocations: 43.94 kB / 1.252 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.2807, allocations: 47.86 kB / 1.252 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.2807, allocations: 7.984 kB / 1.252 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001119/0.2808, allocations: 143.3 kB / 1.252 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2808, allocations: 0 / 1.252 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002751/0.2811, allocations: 55.89 kB / 1.252 GB, free: 13.55 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.00136/0.2825, allocations: 1.01 MB / 1.253 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008299/0.2833, allocations: 410 kB / 1.254 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2833, allocations: 0 / 1.254 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003507/0.2837, allocations: 116.2 kB / 1.254 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.284, allocations: 35.95 kB / 1.254 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003701/0.2877, allocations: 2.596 MB / 1.257 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.288, allocations: 0.7359 MB / 1.257 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.781e-05/0.2881, allocations: 17.55 kB / 1.257 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.2883, allocations: 71.41 kB / 1.257 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of SimCode: time 1.833e-06/0.2883, allocations: 0 / 1.257 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3791/0.6674, allocations: 5.231 MB / 1.262 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.124/8.792, allocations: 6.812 kB / 1.262 GB, free: 3.316 MB / 0.9825 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --timeout=400 --tolerance=1e-08 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.mat","/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