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.001398/0.001402, 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.001408/0.001408, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.262/1.262, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.495/2.495, allocations: 482.4 MB / 0.7547 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.003459/0.003459, allocations: 65.39 kB / 0.924 GB, free: 29.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.256, allocations: 162.2 MB / 1.082 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003037/0.2591, allocations: 2.077 MB / 1.084 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008138/0.2599, allocations: 0.565 MB / 1.085 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.328e-05/0.26, allocations: 3.938 kB / 1.085 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.463e-05/0.2601, allocations: 19.73 kB / 1.085 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.972e-05/0.2602, allocations: 35.59 kB / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.2604, allocations: 95.89 kB / 1.085 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002712/0.2607, allocations: 263.4 kB / 1.085 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.2609, allocations: 114.8 kB / 1.085 GB, free: 9.914 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.261, allocations: 107.7 kB / 1.086 GB, free: 9.809 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.2612, allocations: 119.4 kB / 1.086 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.548e-05/0.2612, allocations: 28 kB / 1.086 GB, free: 9.664 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.096e-05/0.2613, allocations: 28 kB / 1.086 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 5.642e-05/0.2613, allocations: 55.81 kB / 1.086 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.2614, allocations: 115.4 kB / 1.086 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002578/0.2617, allocations: 275.3 kB / 1.086 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2617, allocations: 0 / 1.086 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2617, allocations: 4 kB / 1.086 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.2617, allocations: 0 / 1.086 GB, free: 9.195 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.001085/0.2628, allocations: 0.6331 MB / 1.087 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.2629, allocations: 12.02 kB / 1.087 GB, free: 8.48 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.776e-05/0.2629, allocations: 59.08 kB / 1.087 GB, free: 8.414 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.998e-05/0.263, allocations: 32.66 kB / 1.087 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.2633, allocations: 257.1 kB / 1.087 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.2633, allocations: 12.81 kB / 1.087 GB, free: 8.082 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.2633, allocations: 24.38 kB / 1.087 GB, free: 8.059 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005784/0.2639, allocations: 278.5 kB / 1.087 GB, free: 7.77 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.2639, allocations: 0 / 1.087 GB, free: 7.77 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.264, allocations: 15.98 kB / 1.087 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.264, allocations: 4 kB / 1.087 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006359/0.2646, allocations: 197.6 kB / 1.088 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.2657, allocations: 0.6348 MB / 1.088 GB, free: 6.867 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007804/0.2664, allocations: 221.6 kB / 1.088 GB, free: 6.645 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002912/0.2667, allocations: 88.72 kB / 1.089 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.2668, allocations: 0 / 1.089 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004542/0.2672, allocations: 192.8 kB / 1.089 GB, free: 6.355 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 4.027e-06/0.2672, allocations: 3.938 kB / 1.089 GB, free: 6.352 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.0009828/0.2682, allocations: 334.6 kB / 1.089 GB, free: 6.02 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/0.2683, allocations: 118.7 kB / 1.089 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.2685, allocations: 198.7 kB / 1.089 GB, free: 5.676 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.2685, allocations: 33.7 kB / 1.089 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.734e-05/0.2686, allocations: 152.2 kB / 1.09 GB, free: 5.484 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.367e-05/0.2687, allocations: 51.36 kB / 1.09 GB, free: 5.434 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.241e-05/0.2688, allocations: 61.69 kB / 1.09 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.2689, allocations: 330.8 kB / 1.09 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.2693, allocations: 112.2 kB / 1.09 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003758/0.2696, allocations: 167.3 kB / 1.09 GB, free: 4.738 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000672/0.2703, allocations: 312.9 kB / 1.091 GB, free: 4.398 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2703, allocations: 0 / 1.091 GB, free: 4.398 MB / 0.8419 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008646/0.2712, allocations: 420.8 kB / 1.091 GB, free: 3.965 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.119e-05/0.2713, allocations: 93.05 kB / 1.091 GB, free: 3.855 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2713, allocations: 7.938 kB / 1.091 GB, free: 3.848 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.2713, allocations: 0 / 1.091 GB, free: 3.848 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.2715, allocations: 43.95 kB / 1.091 GB, free: 3.805 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.2715, allocations: 7.938 kB / 1.091 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.2718, allocations: 63.84 kB / 1.091 GB, free: 3.734 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.2718, allocations: 12 kB / 1.091 GB, free: 3.723 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.000131/0.272, allocations: 140.1 kB / 1.091 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.472e-05/0.272, allocations: 31.58 kB / 1.091 GB, free: 3.547 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006895/0.2727, allocations: 255.4 kB / 1.092 GB, free: 3.297 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2727, allocations: 0 / 1.092 GB, free: 3.297 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2727, allocations: 4 kB / 1.092 GB, free: 3.293 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2727, allocations: 0 / 1.092 GB, free: 3.293 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009134/0.2737, allocations: 0.5855 MB / 1.092 GB, free: 2.652 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2737, allocations: 4 kB / 1.092 GB, free: 2.648 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001486/0.2738, allocations: 27.95 kB / 1.092 GB, free: 2.621 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.2738, allocations: 4 kB / 1.092 GB, free: 2.617 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.2739, allocations: 8 kB / 1.092 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.2739, allocations: 0 / 1.092 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2739, allocations: 3.938 kB / 1.092 GB, free: 2.605 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007233/0.2746, allocations: 349.1 kB / 1.093 GB, free: 2.25 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.2747, allocations: 96.8 kB / 1.093 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.092e-05/0.2747, allocations: 11.98 kB / 1.093 GB, free: 2.125 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002875/0.275, allocations: 43.95 kB / 1.093 GB, free: 2.082 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.2751, allocations: 43.94 kB / 1.093 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.876e-05/0.2751, allocations: 7.984 kB / 1.093 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001115/0.2752, allocations: 146.4 kB / 1.093 GB, free: 1.891 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.2752, allocations: 0 / 1.093 GB, free: 1.891 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002728/0.2755, allocations: 59.78 kB / 1.093 GB, free: 1.832 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.001399/0.2769, allocations: 1.004 MB / 1.094 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008439/0.2778, allocations: 421.8 kB / 1.094 GB, free: 360 kB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2778, allocations: 0 / 1.094 GB, free: 360 kB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003532/0.2782, allocations: 116.2 kB / 1.094 GB, free: 244 kB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.2785, allocations: 31.75 kB / 1.094 GB, free: 212 kB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00376/0.2823, allocations: 2.575 MB / 1.097 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.2826, allocations: 0.7398 MB / 1.098 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.727e-05/0.2827, allocations: 17.55 kB / 1.098 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.2828, allocations: 63.41 kB / 1.098 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.2828, allocations: 4 kB / 1.098 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.19/5.473, allocations: 5.166 MB / 1.103 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 13/18.48, allocations: 8.891 kB / 1.103 GB, free: 7.664 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 & /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