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.001816/0.001817, allocations: 109.5 kB / 16.27 MB, free: 6.414 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.001991/0.001991, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.42/1.42, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.781/2.781, allocations: 482.4 MB / 0.7553 GB, free: 7.02 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 64.83 kB / 0.9245 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8112/0.8131, allocations: 162.2 MB / 1.083 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003483/0.8167, allocations: 2.085 MB / 1.085 GB, free: 236 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00104/0.8177, allocations: 0.5565 MB / 1.086 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.8179, allocations: 10.89 kB / 1.086 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.818, allocations: 23.81 kB / 1.086 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.376e-05/0.8181, allocations: 36.7 kB / 1.086 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002806/0.8184, allocations: 84.84 kB / 1.086 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003698/0.8188, allocations: 274.3 kB / 1.086 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.8191, allocations: 111.6 kB / 1.086 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001649/0.8192, allocations: 105.4 kB / 1.086 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.8194, allocations: 130.2 kB / 1.086 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.915e-05/0.8195, allocations: 26.12 kB / 1.086 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.006e-05/0.8196, allocations: 27.09 kB / 1.086 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.642e-05/0.8196, allocations: 54.33 kB / 1.086 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.8198, allocations: 112.4 kB / 1.086 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.8202, allocations: 272 kB / 1.087 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.8202, allocations: 1.156 kB / 1.087 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.914e-06/0.8202, allocations: 0 / 1.087 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.8202, allocations: 0 / 1.087 GB, free: 15.2 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.001271/0.8215, allocations: 0.6378 MB / 1.087 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.8215, allocations: 9.719 kB / 1.087 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.055e-05/0.8216, allocations: 26.41 kB / 1.087 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.8219, allocations: 263.9 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.822, allocations: 18.91 kB / 1.088 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.306e-05/0.822, allocations: 21 kB / 1.088 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006699/0.8227, allocations: 276.5 kB / 1.088 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.8227, allocations: 0 / 1.088 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.8227, allocations: 6.219 kB / 1.088 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.8228, allocations: 4.969 kB / 1.088 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007195/0.8235, allocations: 198.9 kB / 1.088 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.8247, allocations: 0.6093 MB / 1.089 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008809/0.8256, allocations: 223.7 kB / 1.089 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/0.8259, allocations: 89.2 kB / 1.089 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.826, allocations: 6.375 kB / 1.089 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005489/0.8265, allocations: 191.6 kB / 1.089 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.723e-06/0.8265, allocations: 0 / 1.089 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.001165/0.8277, allocations: 336.8 kB / 1.09 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.116e-05/0.8278, allocations: 108.9 kB / 1.09 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002298/0.828, allocations: 202.8 kB / 1.09 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.8281, allocations: 39.31 kB / 1.09 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.8282, allocations: 156.8 kB / 1.09 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.225e-05/0.8283, allocations: 47.44 kB / 1.09 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.8284, allocations: 61.55 kB / 1.09 GB, free: 13 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.8286, allocations: 329.6 kB / 1.09 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000401/0.829, allocations: 111.1 kB / 1.091 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004329/0.8294, allocations: 176.2 kB / 1.091 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007304/0.8302, allocations: 307.6 kB / 1.091 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.8302, allocations: 0 / 1.091 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009826/0.8312, allocations: 419 kB / 1.091 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.092e-05/0.8313, allocations: 91.81 kB / 1.091 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.8313, allocations: 1.125 kB / 1.091 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.8313, allocations: 7.219 kB / 1.092 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002342/0.8315, allocations: 49.17 kB / 1.092 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.8316, allocations: 2.938 kB / 1.092 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.8319, allocations: 57.8 kB / 1.092 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.832, allocations: 13.11 kB / 1.092 GB, free: 12.01 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.0001793/0.8321, allocations: 154.2 kB / 1.092 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.019e-05/0.8322, allocations: 17.5 kB / 1.092 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008201/0.833, allocations: 256.7 kB / 1.092 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.833, allocations: 6.781 kB / 1.092 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.833, allocations: 0 / 1.092 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.8331, allocations: 5.312 kB / 1.092 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/0.8342, allocations: 0.5717 MB / 1.093 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.8342, allocations: 0 / 1.093 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001776/0.8344, allocations: 32.44 kB / 1.093 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.8344, allocations: 4.938 kB / 1.093 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.8344, allocations: 8.797 kB / 1.093 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.8344, allocations: 0 / 1.093 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.8345, allocations: 1.984 kB / 1.093 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000847/0.8353, allocations: 347.4 kB / 1.093 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.355e-05/0.8354, allocations: 99.2 kB / 1.093 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.839e-05/0.8355, allocations: 12.72 kB / 1.093 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003134/0.8358, allocations: 40.8 kB / 1.093 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.8359, allocations: 44.7 kB / 1.093 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.836, allocations: 7.141 kB / 1.093 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.00015/0.8361, allocations: 150 kB / 1.093 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8361, allocations: 3.938 kB / 1.093 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003576/0.8365, allocations: 56.89 kB / 1.093 GB, free: 10.95 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.0001977/0.8367, allocations: 112.2 kB / 1.093 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001052/0.8377, allocations: 428.7 kB / 1.094 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.8378, allocations: 0.5 kB / 1.094 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003879/0.8382, allocations: 105.5 kB / 1.094 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.8386, allocations: 42.41 kB / 1.094 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009895/0.8396, allocations: 404.5 kB / 1.094 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.84, allocations: 0.7396 MB / 1.095 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.176e-05/0.8401, allocations: 26.36 kB / 1.095 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of SimCode: time 5.21e-07/0.8401, allocations: 0 / 1.095 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of Templates: time 0.006413/0.8465, allocations: 2.859 MB / 1.098 GB, free: 9.305 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=400 -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/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