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.001177/0.001177, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00115/0.00115, allocations: 196.3 kB / 16.26 MB, free: 6.621 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 / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.584/2.584, allocations: 482.4 MB / 0.7544 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 67.55 kB / 0.9235 GB, free: 29.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2566, allocations: 162.2 MB / 1.082 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003147/0.2598, allocations: 2.142 MB / 1.084 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008108/0.2606, allocations: 0.5495 MB / 1.085 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.923e-05/0.2607, allocations: 0 / 1.085 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.588e-05/0.2608, allocations: 19.8 kB / 1.085 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.115e-05/0.2609, allocations: 27.78 kB / 1.085 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.2611, allocations: 75.92 kB / 1.085 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.2614, allocations: 267.3 kB / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002102/0.2616, allocations: 114.9 kB / 1.085 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.2617, allocations: 107.7 kB / 1.085 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.2619, allocations: 131.4 kB / 1.085 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.924e-05/0.2619, allocations: 24 kB / 1.085 GB, free: 10 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.917e-05/0.262, allocations: 28 kB / 1.085 GB, free: 9.973 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 5.826e-05/0.262, allocations: 51.84 kB / 1.085 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.2621, allocations: 115.4 kB / 1.085 GB, free: 9.809 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.2624, allocations: 267.3 kB / 1.086 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.2624, allocations: 4 kB / 1.086 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.012e-06/0.2624, allocations: 0 / 1.086 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.2624, allocations: 0 / 1.086 GB, free: 9.543 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.001088/0.2635, allocations: 0.6467 MB / 1.086 GB, free: 8.828 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.2636, allocations: 12.03 kB / 1.086 GB, free: 8.816 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.673e-05/0.2637, allocations: 63.06 kB / 1.086 GB, free: 8.746 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.942e-05/0.2637, allocations: 24.66 kB / 1.086 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.264, allocations: 241.1 kB / 1.087 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.264, allocations: 24.75 kB / 1.087 GB, free: 8.426 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.2641, allocations: 28.38 kB / 1.087 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005918/0.2647, allocations: 266.5 kB / 1.087 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.2647, allocations: 0 / 1.087 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.2647, allocations: 12 kB / 1.087 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.2647, allocations: 7.984 kB / 1.087 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006143/0.2654, allocations: 197.6 kB / 1.087 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.2664, allocations: 0.6309 MB / 1.088 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007449/0.2672, allocations: 230.4 kB / 1.088 GB, free: 6.992 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.2674, allocations: 88.78 kB / 1.088 GB, free: 6.902 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.2675, allocations: 4 kB / 1.088 GB, free: 6.898 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004696/0.268, allocations: 187.1 kB / 1.088 GB, free: 6.703 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.473e-06/0.268, allocations: 0 / 1.088 GB, free: 6.703 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.0009768/0.2689, allocations: 334.5 kB / 1.089 GB, free: 6.371 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.186e-05/0.269, allocations: 106.8 kB / 1.089 GB, free: 6.242 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.2692, allocations: 202.7 kB / 1.089 GB, free: 6.035 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.108e-05/0.2693, allocations: 41.69 kB / 1.089 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.779e-05/0.2694, allocations: 152.2 kB / 1.089 GB, free: 5.836 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.098e-05/0.2694, allocations: 47.34 kB / 1.089 GB, free: 5.789 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.95e-05/0.2695, allocations: 65.69 kB / 1.089 GB, free: 5.719 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.2697, allocations: 330.8 kB / 1.09 GB, free: 5.387 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003404/0.27, allocations: 108.2 kB / 1.09 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003726/0.2704, allocations: 175.3 kB / 1.09 GB, free: 5.086 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006285/0.271, allocations: 304.6 kB / 1.09 GB, free: 4.754 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.271, allocations: 7.984 kB / 1.09 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000866/0.2719, allocations: 416.5 kB / 1.09 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.129e-05/0.272, allocations: 94.75 kB / 1.091 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.272, allocations: 4.156 kB / 1.091 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.272, allocations: 4 kB / 1.091 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.2722, allocations: 47.89 kB / 1.091 GB, free: 4.152 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.2722, allocations: 4 kB / 1.091 GB, free: 4.148 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.2725, allocations: 59.67 kB / 1.091 GB, free: 4.09 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/0.2726, allocations: 11.98 kB / 1.091 GB, free: 4.078 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.0001427/0.2727, allocations: 148 kB / 1.091 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.736e-05/0.2728, allocations: 27.66 kB / 1.091 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006897/0.2735, allocations: 251.4 kB / 1.091 GB, free: 3.652 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.2735, allocations: 8 kB / 1.091 GB, free: 3.645 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2735, allocations: 0 / 1.091 GB, free: 3.645 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.2735, allocations: 3.984 kB / 1.091 GB, free: 3.641 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009311/0.2744, allocations: 0.5853 MB / 1.092 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.2744, allocations: 0 / 1.092 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.2746, allocations: 35.95 kB / 1.092 GB, free: 2.965 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.2746, allocations: 0 / 1.092 GB, free: 2.965 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.2746, allocations: 7.922 kB / 1.092 GB, free: 2.957 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.2746, allocations: 4 kB / 1.092 GB, free: 2.953 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2746, allocations: 0 / 1.092 GB, free: 2.953 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006944/0.2753, allocations: 352.8 kB / 1.092 GB, free: 2.594 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.193e-05/0.2754, allocations: 92.86 kB / 1.092 GB, free: 2.484 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.117e-05/0.2755, allocations: 8 kB / 1.092 GB, free: 2.477 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002889/0.2757, allocations: 39.94 kB / 1.092 GB, free: 2.438 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.2759, allocations: 43.94 kB / 1.092 GB, free: 2.395 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/0.2759, allocations: 12 kB / 1.092 GB, free: 2.383 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001209/0.276, allocations: 146.4 kB / 1.092 GB, free: 2.242 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.276, allocations: 0 / 1.092 GB, free: 2.242 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002806/0.2763, allocations: 59.84 kB / 1.092 GB, free: 2.184 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.001378/0.2777, allocations: 1 MB / 1.093 GB, free: 1.156 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008314/0.2785, allocations: 425.8 kB / 1.094 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2785, allocations: 0 / 1.094 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003408/0.2789, allocations: 112.2 kB / 1.094 GB, free: 0.5938 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.2792, allocations: 43.69 kB / 1.094 GB, free: 0.5508 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003765/0.283, allocations: 2.643 MB / 1.097 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.2833, allocations: 0.732 MB / 1.097 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.706e-05/0.2834, allocations: 21.55 kB / 1.097 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.2836, allocations: 71.41 kB / 1.097 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.2836, allocations: 0 / 1.097 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.298/0.5816, allocations: 4.897 MB / 1.102 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000271/0.5819, allocations: 235.8 kB / 1.102 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.027/2.609, allocations: 1.875 kB / 1.102 GB, free: 8.012 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