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.002116/0.002116, allocations: 100.4 kB / 16.4 MB, free: 6.52 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.00218/0.002181, allocations: 185.8 kB / 17.34 MB, free: 5.734 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.411/1.411, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.696/2.696, allocations: 472.7 MB / 0.746 GB, free: 416 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 67.89 kB / 1.07 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9714/0.9727, allocations: 159.9 MB / 1.226 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003497/0.9763, allocations: 2.08 MB / 1.228 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.9773, allocations: 0.5572 MB / 1.229 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.9775, allocations: 7.938 kB / 1.229 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.9776, allocations: 19.73 kB / 1.229 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.825e-05/0.9777, allocations: 39.59 kB / 1.229 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002801/0.978, allocations: 87.88 kB / 1.229 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003437/0.9784, allocations: 275.3 kB / 1.229 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.9787, allocations: 114.8 kB / 1.229 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/0.9788, allocations: 111.7 kB / 1.23 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.979, allocations: 119.4 kB / 1.23 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.741e-05/0.979, allocations: 28 kB / 1.23 GB, free: 10 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.077e-05/0.9791, allocations: 28 kB / 1.23 GB, free: 9.973 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.008e-05/0.9791, allocations: 59.75 kB / 1.23 GB, free: 9.914 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.9793, allocations: 115.4 kB / 1.23 GB, free: 9.801 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003469/0.9796, allocations: 279.4 kB / 1.23 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.9796, allocations: 0 / 1.23 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9796, allocations: 3.938 kB / 1.23 GB, free: 9.527 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.064e-06/0.9797, allocations: 0 / 1.23 GB, free: 9.527 MB / 0.9512 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.001306/0.981, allocations: 0.6409 MB / 1.231 GB, free: 8.816 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.981, allocations: 11.97 kB / 1.231 GB, free: 8.805 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.744e-05/0.9811, allocations: 28.75 kB / 1.231 GB, free: 8.777 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004197/0.9815, allocations: 261 kB / 1.231 GB, free: 8.484 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.9816, allocations: 16.73 kB / 1.231 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.553e-05/0.9816, allocations: 24.38 kB / 1.231 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006059/0.9822, allocations: 266.6 kB / 1.231 GB, free: 8.172 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.9822, allocations: 0 / 1.231 GB, free: 8.172 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.9823, allocations: 12 kB / 1.231 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.9823, allocations: 4 kB / 1.231 GB, free: 8.156 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006127/0.9829, allocations: 195.8 kB / 1.232 GB, free: 7.965 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.9841, allocations: 0.6171 MB / 1.232 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007725/0.9849, allocations: 226.4 kB / 1.232 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002772/0.9852, allocations: 84.78 kB / 1.233 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.9852, allocations: 4 kB / 1.233 GB, free: 6.977 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004912/0.9857, allocations: 191.1 kB / 1.233 GB, free: 6.777 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=18): time 1.723e-06/0.9857, allocations: 3.938 kB / 1.233 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18): time 0.0009895/0.9867, allocations: 330.9 kB / 1.233 GB, free: 6.445 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.863e-05/0.9868, allocations: 110.8 kB / 1.233 GB, free: 6.312 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.987, allocations: 204.1 kB / 1.233 GB, free: 6.102 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/0.9871, allocations: 33.7 kB / 1.233 GB, free: 6.062 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.9872, allocations: 160.3 kB / 1.234 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.694e-05/0.9872, allocations: 51.64 kB / 1.234 GB, free: 5.852 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.9873, allocations: 61.69 kB / 1.234 GB, free: 5.785 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.9875, allocations: 334.8 kB / 1.234 GB, free: 5.449 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003306/0.9878, allocations: 108.2 kB / 1.234 GB, free: 5.34 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000386/0.9882, allocations: 179.8 kB / 1.234 GB, free: 5.141 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000628/0.9889, allocations: 311 kB / 1.235 GB, free: 4.801 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.9889, allocations: 0 / 1.235 GB, free: 4.801 MB / 0.9512 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000948/0.9898, allocations: 423.8 kB / 1.235 GB, free: 4.363 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.64e-05/0.9899, allocations: 93.09 kB / 1.235 GB, free: 4.254 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.9899, allocations: 4 kB / 1.235 GB, free: 4.25 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.9899, allocations: 7.938 kB / 1.235 GB, free: 4.242 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.9902, allocations: 43.89 kB / 1.235 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.9902, allocations: 7.938 kB / 1.235 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002866/0.9905, allocations: 63.86 kB / 1.235 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.9905, allocations: 12 kB / 1.235 GB, free: 4.117 MB / 0.9512 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.0001508/0.9907, allocations: 148 kB / 1.235 GB, free: 3.965 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.078e-05/0.9907, allocations: 15.91 kB / 1.235 GB, free: 3.949 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006932/0.9914, allocations: 260.8 kB / 1.236 GB, free: 3.688 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.9914, allocations: 7.938 kB / 1.236 GB, free: 3.68 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.9914, allocations: 3.938 kB / 1.236 GB, free: 3.676 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.9914, allocations: 0 / 1.236 GB, free: 3.676 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.9925, allocations: 0.5704 MB / 1.236 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.9925, allocations: 0 / 1.236 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/0.9926, allocations: 35.89 kB / 1.236 GB, free: 3.016 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.9926, allocations: 0 / 1.236 GB, free: 3.016 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.9927, allocations: 8 kB / 1.236 GB, free: 3.008 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.9927, allocations: 0 / 1.236 GB, free: 3.008 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.9927, allocations: 3.938 kB / 1.236 GB, free: 3.004 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006856/0.9934, allocations: 343.2 kB / 1.236 GB, free: 2.652 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.264e-05/0.9934, allocations: 104.8 kB / 1.237 GB, free: 2.531 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.438e-05/0.9935, allocations: 8 kB / 1.237 GB, free: 2.523 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.9938, allocations: 43.94 kB / 1.237 GB, free: 2.48 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.9939, allocations: 43.95 kB / 1.237 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/0.9939, allocations: 11.98 kB / 1.237 GB, free: 2.426 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001132/0.9941, allocations: 136.5 kB / 1.237 GB, free: 2.293 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9941, allocations: 0 / 1.237 GB, free: 2.293 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003456/0.9944, allocations: 59.89 kB / 1.237 GB, free: 2.234 MB / 0.9512 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.0001642/0.9946, allocations: 120.3 kB / 1.237 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008225/0.9954, allocations: 420.6 kB / 1.237 GB, free: 1.66 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.9954, allocations: 0 / 1.237 GB, free: 1.66 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003263/0.9958, allocations: 116.2 kB / 1.237 GB, free: 1.547 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.9961, allocations: 31.95 kB / 1.238 GB, free: 1.516 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008798/0.997, allocations: 393.4 kB / 1.238 GB, free: 1.102 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.9975, allocations: 0.7398 MB / 1.239 GB, free: 344 kB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.991e-05/0.9976, allocations: 31.42 kB / 1.239 GB, free: 312 kB / 0.9512 GB Notification: Performance of SimCode: time 3.11e-07/0.9976, allocations: 0 / 1.239 GB, free: 312 kB / 0.9512 GB Notification: Performance of Templates: time 0.004991/1.003, allocations: 2.884 MB / 1.241 GB, free: 13.43 MB / 0.9669 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/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