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.001214/0.001214, allocations: 108 kB / 15.61 MB, free: 152 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.001149/0.001149, allocations: 196 kB / 16.53 MB, free: 6.664 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.286/1.286, 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 11.1.0-maint.11.x/package.mo): time 2.524/2.524, allocations: 469.8 MB / 0.7424 GB, free: 7.445 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001743, allocations: 67.22 kB / 0.9087 GB, free: 34.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2465, allocations: 159.2 MB / 1.064 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.00311/0.2497, allocations: 2.097 MB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008183/0.2505, allocations: 0.5572 MB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.107e-05/0.2506, allocations: 4 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.719e-05/0.2507, allocations: 27.67 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.974e-05/0.2508, allocations: 35.66 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.251, allocations: 87.88 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.2513, allocations: 263.3 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.2515, allocations: 110.9 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.2516, allocations: 103.6 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.2518, allocations: 127.4 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.647e-05/0.2518, allocations: 32 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.999e-05/0.2519, allocations: 24 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.901e-05/0.2519, allocations: 55.81 kB / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.2521, allocations: 111.5 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.2523, allocations: 275.3 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.2523, allocations: 0 / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2523, allocations: 0 / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.2523, allocations: 0 / 1.068 GB, free: 10.23 MB / 0.8262 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.001059/0.2534, allocations: 0.6449 MB / 1.069 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.2534, allocations: 8.031 kB / 1.069 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.198e-05/0.2535, allocations: 55.17 kB / 1.069 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.748e-05/0.2536, allocations: 24.66 kB / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.2538, allocations: 252.9 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.2539, allocations: 20.81 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.733e-05/0.2539, allocations: 20.38 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005811/0.2545, allocations: 274.5 kB / 1.069 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.2545, allocations: 4 kB / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.2545, allocations: 8 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.2546, allocations: 7.984 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006602/0.2552, allocations: 205.5 kB / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.2563, allocations: 0.6348 MB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007708/0.257, allocations: 222.5 kB / 1.07 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002953/0.2573, allocations: 84.78 kB / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.2574, allocations: 8 kB / 1.07 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000461/0.2578, allocations: 188.7 kB / 1.07 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.372e-06/0.2578, allocations: 0 / 1.07 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.001005/0.2589, allocations: 333.1 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.542e-05/0.2589, allocations: 106.8 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.2591, allocations: 204.2 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.468e-05/0.2592, allocations: 33.7 kB / 1.071 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.797e-05/0.2593, allocations: 160.2 kB / 1.071 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.375e-05/0.2593, allocations: 47.44 kB / 1.071 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.691e-05/0.2594, allocations: 65.59 kB / 1.071 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.2596, allocations: 330.8 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000352/0.2599, allocations: 112.2 kB / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000386/0.2603, allocations: 179.2 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006466/0.261, allocations: 304.9 kB / 1.072 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.261, allocations: 0 / 1.072 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008601/0.2618, allocations: 416.6 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.188e-05/0.2619, allocations: 94.14 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2619, allocations: 0 / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.2619, allocations: 4 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.2622, allocations: 52.05 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.2622, allocations: 4 kB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.2625, allocations: 67.62 kB / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.2625, allocations: 8 kB / 1.073 GB, free: 4.758 MB / 0.8262 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.0001362/0.2627, allocations: 144 kB / 1.073 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.493e-05/0.2627, allocations: 31.73 kB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007277/0.2634, allocations: 257.1 kB / 1.073 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.2634, allocations: 4 kB / 1.073 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2635, allocations: 0 / 1.073 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.2635, allocations: 0 / 1.073 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009361/0.2644, allocations: 0.5802 MB / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2644, allocations: 3.984 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001455/0.2646, allocations: 31.95 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.2646, allocations: 4 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.2646, allocations: 7.938 kB / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2646, allocations: 3.938 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2646, allocations: 0 / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000695/0.2653, allocations: 344.8 kB / 1.074 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.371e-05/0.2654, allocations: 112.7 kB / 1.074 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.863e-05/0.2654, allocations: 4 kB / 1.074 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002786/0.2657, allocations: 35.95 kB / 1.074 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.2658, allocations: 47.94 kB / 1.074 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.2658, allocations: 7.984 kB / 1.074 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001167/0.266, allocations: 148 kB / 1.075 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.266, allocations: 4 kB / 1.075 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002729/0.2663, allocations: 55.84 kB / 1.075 GB, free: 2.859 MB / 0.8262 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.001389/0.2676, allocations: 0.999 MB / 1.076 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008391/0.2685, allocations: 423.4 kB / 1.076 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2685, allocations: 0 / 1.076 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003445/0.2689, allocations: 119.8 kB / 1.076 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.2692, allocations: 36.03 kB / 1.076 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003671/0.2729, allocations: 2.57 MB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.2732, allocations: 0.7359 MB / 1.079 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.79e-05/0.2733, allocations: 21.55 kB / 1.079 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.2734, allocations: 72.16 kB / 1.079 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of SimCode: time 2.11e-07/0.2734, allocations: 0 / 1.079 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8765/1.15, allocations: 5.152 MB / 1.085 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14/15.15, allocations: 4.375 kB / 1.085 GB, free: 8.668 MB / 0.8419 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