Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 214.2 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.149/3.149, allocations: 0.4892 GB / 0.7951 GB, free: 35.42 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=100,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=100,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002109/0.002109, allocations: 71.33 kB / 1.154 GB, free: 25.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3479, allocations: 176.1 MB / 1.326 GB, free: 1.801 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003761/0.3516, allocations: 2.113 MB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.3529, allocations: 0.5961 MB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.353, allocations: 0 / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.3531, allocations: 27.67 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.3532, allocations: 39.59 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000302/0.3535, allocations: 111.8 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003493/0.3539, allocations: 295.3 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/0.3542, allocations: 95.5 kB / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.3543, allocations: 131.5 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.3545, allocations: 115.4 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.353e-05/0.3545, allocations: 28 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.989e-05/0.3546, allocations: 32 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.479e-05/0.3547, allocations: 71.75 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.3548, allocations: 103.5 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003825/0.3552, allocations: 322.7 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3552, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3552, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.3552, allocations: 8 kB / 1.33 GB, free: 13.72 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001274/0.3565, allocations: 0.6026 MB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.3565, allocations: 11.97 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.139e-05/0.3566, allocations: 32.75 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004167/0.357, allocations: 218.6 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.357, allocations: 12.81 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.62e-05/0.3571, allocations: 28.36 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000721/0.3578, allocations: 380.7 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.3578, allocations: 0 / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.3578, allocations: 8 kB / 1.332 GB, free: 12.33 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.3578, allocations: 8 kB / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006991/0.3585, allocations: 217.5 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.3597, allocations: 0.5372 MB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006666/0.3604, allocations: 194.4 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/0.3607, allocations: 84.78 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.3607, allocations: 11.94 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005052/0.3612, allocations: 199.1 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.803e-06/0.3612, allocations: 0 / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.00112/0.3623, allocations: 354.7 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.3624, allocations: 136.5 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.3627, allocations: 223.8 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.376e-05/0.3627, allocations: 37.69 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.3629, allocations: 172.6 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/0.3629, allocations: 51.62 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.363, allocations: 65.97 kB / 1.334 GB, free: 9.953 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.3632, allocations: 330.8 kB / 1.334 GB, free: 9.621 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004454/0.3636, allocations: 205.3 kB / 1.334 GB, free: 9.402 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005259/0.3642, allocations: 355 kB / 1.335 GB, free: 8.992 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007028/0.3649, allocations: 319 kB / 1.335 GB, free: 8.645 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3649, allocations: 0 / 1.335 GB, free: 8.645 MB / 1.029 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001024/0.3659, allocations: 0.5201 MB / 1.335 GB, free: 8.082 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.437e-05/0.366, allocations: 85.11 kB / 1.336 GB, free: 7.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.366, allocations: 3.938 kB / 1.336 GB, free: 7.977 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.366, allocations: 7.938 kB / 1.336 GB, free: 7.969 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002489/0.3662, allocations: 51.89 kB / 1.336 GB, free: 7.918 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.3662, allocations: 4.156 kB / 1.336 GB, free: 7.914 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003384/0.3666, allocations: 71.75 kB / 1.336 GB, free: 7.844 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.894e-05/0.3666, allocations: 12 kB / 1.336 GB, free: 7.832 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (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,antFre.errAndSetOn.y,antFre.ySetOn.y,$PRE.antFre.ySetOn.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 (34): * Single equations (assignments): 31 * 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.0001847/0.3668, allocations: 148.4 kB / 1.336 GB, free: 7.676 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.189e-05/0.3668, allocations: 19.86 kB / 1.336 GB, free: 7.656 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008176/0.3677, allocations: 291.1 kB / 1.336 GB, free: 7.367 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.3677, allocations: 8.016 kB / 1.336 GB, free: 7.359 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3677, allocations: 0 / 1.336 GB, free: 7.359 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3677, allocations: 0 / 1.336 GB, free: 7.359 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.3688, allocations: 0.5308 MB / 1.337 GB, free: 6.793 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.3688, allocations: 3.938 kB / 1.337 GB, free: 6.789 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.369, allocations: 39.89 kB / 1.337 GB, free: 6.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.369, allocations: 0 / 1.337 GB, free: 6.75 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.369, allocations: 4 kB / 1.337 GB, free: 6.746 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.155e-06/0.369, allocations: 0 / 1.337 GB, free: 6.746 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.369, allocations: 4 kB / 1.337 GB, free: 6.742 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008027/0.3698, allocations: 357.1 kB / 1.337 GB, free: 6.379 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.063e-05/0.3698, allocations: 23.8 kB / 1.337 GB, free: 6.355 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.075e-05/0.3699, allocations: 11.98 kB / 1.337 GB, free: 6.344 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.3702, allocations: 55.94 kB / 1.337 GB, free: 6.289 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.3703, allocations: 51.8 kB / 1.337 GB, free: 6.238 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.3703, allocations: 15.98 kB / 1.337 GB, free: 6.223 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001479/0.3705, allocations: 148.6 kB / 1.337 GB, free: 6.078 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3705, allocations: 0 / 1.337 GB, free: 6.078 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003341/0.3708, allocations: 67.88 kB / 1.337 GB, free: 6.012 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (antFre.errAndSetOn.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.ySetOn.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,antFre.ySetOn.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 13 * 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.0001674/0.371, allocations: 119.1 kB / 1.337 GB, free: 5.887 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00101/0.372, allocations: 0.5001 MB / 1.338 GB, free: 5.332 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.372, allocations: 3.984 kB / 1.338 GB, free: 5.328 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000366/0.3724, allocations: 112.2 kB / 1.338 GB, free: 5.219 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003985/0.3728, allocations: 39.84 kB / 1.338 GB, free: 5.18 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009357/0.3737, allocations: 428.2 kB / 1.339 GB, free: 4.734 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.3738, allocations: 141.9 kB / 1.339 GB, free: 4.578 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.3739, allocations: 19.44 kB / 1.339 GB, free: 4.559 MB / 1.029 GB Notification: Performance of SimCode: time 4.21e-07/0.3739, allocations: 3.938 kB / 1.339 GB, free: 4.555 MB / 1.029 GB Notification: Performance of Templates: time 0.005801/0.3797, allocations: 3.267 MB / 1.342 GB, free: 1.293 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.21785747492686]