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: translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001186/0.001186, allocations: 195.1 kB / 16.14 MB, free: 6.637 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.369/1.369, allocations: 222.9 MB / 239.8 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.767/2.767, allocations: 474.4 MB / 0.7465 GB, free: 3.164 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001257, allocations: 76.06 kB / 0.9135 GB, free: 32.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3181, allocations: 160.3 MB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003115/0.3212, allocations: 2.132 MB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009049/0.3221, allocations: 0.5651 MB / 1.073 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.17e-05/0.3222, allocations: 0 / 1.073 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.3224, allocations: 15.8 kB / 1.073 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.063e-05/0.3225, allocations: 27.78 kB / 1.073 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.3227, allocations: 83.91 kB / 1.073 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000222/0.3229, allocations: 243.3 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002203/0.3232, allocations: 114.9 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.3233, allocations: 95.61 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.3234, allocations: 119.4 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.3235, allocations: 12 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.983e-05/0.3235, allocations: 19.94 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.209e-05/0.3236, allocations: 43.83 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.914e-05/0.3237, allocations: 103.4 kB / 1.074 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.3239, allocations: 255.4 kB / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3239, allocations: 3.984 kB / 1.074 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.12e-07/0.3239, allocations: 0 / 1.074 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.3239, allocations: 4 kB / 1.074 GB, free: 4.719 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.001244/0.3252, allocations: 0.6371 MB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3252, allocations: 8.031 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.365e-05/0.3253, allocations: 28.66 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002909/0.3256, allocations: 252.9 kB / 1.075 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.3256, allocations: 20.75 kB / 1.075 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.032e-05/0.3257, allocations: 24.38 kB / 1.075 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006179/0.3263, allocations: 270.5 kB / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3263, allocations: 0 / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.691e-05/0.3264, allocations: 4 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.3264, allocations: 8 kB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006751/0.3271, allocations: 203.5 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.3281, allocations: 0.6091 MB / 1.076 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008015/0.3289, allocations: 222.4 kB / 1.076 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003117/0.3293, allocations: 96.78 kB / 1.076 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.3293, allocations: 0 / 1.076 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005365/0.3298, allocations: 187.1 kB / 1.076 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.623e-06/0.3299, allocations: 4 kB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.001069/0.3309, allocations: 330.9 kB / 1.077 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.771e-05/0.331, allocations: 110.8 kB / 1.077 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.3312, allocations: 212.3 kB / 1.077 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.3312, allocations: 37.7 kB / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.3313, allocations: 152.2 kB / 1.077 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.401e-05/0.3314, allocations: 51.34 kB / 1.077 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.3315, allocations: 61.69 kB / 1.077 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.3316, allocations: 330.8 kB / 1.077 GB, free: 0.6562 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003832/0.332, allocations: 112.2 kB / 1.078 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.3325, allocations: 175.2 kB / 1.078 GB, free: 356 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006941/0.3332, allocations: 313.1 kB / 1.078 GB, free: 8 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3332, allocations: 0 / 1.078 GB, free: 8 kB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001027/0.3342, allocations: 414.4 kB / 1.078 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.261e-05/0.3343, allocations: 93.25 kB / 1.079 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3343, allocations: 4 kB / 1.079 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.3344, allocations: 7.938 kB / 1.079 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002351/0.3346, allocations: 47.83 kB / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.3346, allocations: 4 kB / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004157/0.3351, allocations: 63.77 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.581e-05/0.3351, allocations: 8 kB / 1.079 GB, free: 15.34 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.0001739/0.3353, allocations: 148 kB / 1.079 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.639e-05/0.3353, allocations: 19.81 kB / 1.079 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000847/0.3362, allocations: 252.5 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.3362, allocations: 11.94 kB / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.3362, allocations: 0 / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.3362, allocations: 3.984 kB / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.3373, allocations: 0.58 MB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3373, allocations: 4 kB / 1.08 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.3374, allocations: 35.91 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3374, allocations: 0 / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.3375, allocations: 3.984 kB / 1.08 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3375, allocations: 0 / 1.08 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3375, allocations: 4 kB / 1.08 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007691/0.3383, allocations: 348.9 kB / 1.08 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.819e-05/0.3383, allocations: 96.8 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.444e-05/0.3384, allocations: 8 kB / 1.08 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003233/0.3387, allocations: 43.94 kB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.3388, allocations: 43.94 kB / 1.08 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/0.3389, allocations: 7.984 kB / 1.08 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001175/0.339, allocations: 147 kB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.339, allocations: 0 / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003197/0.3393, allocations: 51.84 kB / 1.08 GB, free: 13.45 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.0001712/0.3395, allocations: 119.2 kB / 1.081 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009237/0.3404, allocations: 414.8 kB / 1.081 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3405, allocations: 0 / 1.081 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003846/0.3408, allocations: 113.9 kB / 1.081 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004064/0.3413, allocations: 39.69 kB / 1.081 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00095/0.3422, allocations: 426 kB / 1.081 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000389/0.3426, allocations: 0.7439 MB / 1.082 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000101/0.3427, allocations: 17.55 kB / 1.082 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.83e-05/0.3428, allocations: 23.42 kB / 1.082 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of SimCode: time 7.11e-07/0.3428, allocations: 0 / 1.082 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of Templates: time 0.005767/0.3486, allocations: 2.789 MB / 1.085 GB, free: 8.746 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile (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 & ./Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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