Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00159/0.00159, 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.002227/0.002227, allocations: 193.4 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.562/1.562, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.013/3.013, allocations: 472.7 MB / 0.7449 GB, free: 4.816 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00234/0.00234, allocations: 59.62 kB / 0.9116 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3505, allocations: 159.9 MB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004076/0.3546, allocations: 2.291 MB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002209/0.3568, allocations: 1.251 MB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002522/0.3571, allocations: 7.938 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005076/0.3577, allocations: 159.5 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004318/0.3582, allocations: 155.5 kB / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006325/0.3588, allocations: 222.6 kB / 1.072 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005754/0.3594, allocations: 406.9 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002553/0.3597, allocations: 113.2 kB / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003119/0.36, allocations: 171.3 kB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002587/0.3602, allocations: 187.3 kB / 1.073 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.926e-05/0.3603, allocations: 24 kB / 1.073 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.3605, allocations: 75.97 kB / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.3606, allocations: 111.6 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.3608, allocations: 166.9 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005659/0.3614, allocations: 482.6 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3614, allocations: 3.984 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3614, allocations: 0 / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.359e-05/0.3614, allocations: 0 / 1.073 GB, free: 4.895 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001231/0.3627, allocations: 0.7157 MB / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.3627, allocations: 8.031 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.3628, allocations: 40.47 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005761/0.3634, allocations: 410.2 kB / 1.075 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.3635, allocations: 12.38 kB / 1.075 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.361e-05/0.3635, allocations: 15.94 kB / 1.075 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.3638, allocations: 172.7 kB / 1.075 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.3639, allocations: 0 / 1.075 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.3639, allocations: 4 kB / 1.075 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.3639, allocations: 7.938 kB / 1.075 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.3641, allocations: 95.89 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.3653, allocations: 0.7854 MB / 1.076 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003358/0.3656, allocations: 137.4 kB / 1.076 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.3657, allocations: 49.7 kB / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.3658, allocations: 0 / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002484/0.366, allocations: 132.9 kB / 1.076 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.366, allocations: 0 / 1.076 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005467/0.3666, allocations: 229.4 kB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.3667, allocations: 106.8 kB / 1.076 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00066/0.3673, allocations: 0.5759 MB / 1.077 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.3674, allocations: 33.69 kB / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.3675, allocations: 200.4 kB / 1.077 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.082e-05/0.3676, allocations: 39.55 kB / 1.077 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.3677, allocations: 69.69 kB / 1.077 GB, free: 0.8398 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3678, allocations: 358.7 kB / 1.077 GB, free: 492 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.3681, allocations: 108 kB / 1.078 GB, free: 384 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002375/0.3683, allocations: 161.8 kB / 1.078 GB, free: 200 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.3686, allocations: 195.4 kB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3687, allocations: 0 / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005923/0.3693, allocations: 342.8 kB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.3693, allocations: 9.875 kB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3693, allocations: 0 / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.3693, allocations: 4 kB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.3695, allocations: 52.11 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.3696, allocations: 3.938 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.3698, allocations: 39.81 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-05/0.3698, allocations: 12 kB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * 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.0002128/0.37, allocations: 203.5 kB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.3701, allocations: 35.53 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.608e-05/0.3702, allocations: 43.38 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3702, allocations: 4 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3702, allocations: 0 / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3702, allocations: 3.984 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.3706, allocations: 333.3 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3706, allocations: 0 / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.737e-05/0.3706, allocations: 11.94 kB / 1.079 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3706, allocations: 3.984 kB / 1.079 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.3706, allocations: 4 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.3706, allocations: 0 / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.3706, allocations: 0 / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003644/0.371, allocations: 217.3 kB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.3711, allocations: 124.6 kB / 1.079 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.38e-05/0.3712, allocations: 8 kB / 1.079 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.3713, allocations: 12.11 kB / 1.079 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.41e-05/0.3714, allocations: 31.91 kB / 1.079 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.3715, allocations: 11.98 kB / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004069/0.3719, allocations: 359.1 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3719, allocations: 0 / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003414/0.3722, allocations: 63.94 kB / 1.08 GB, free: 13.99 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (TTanTop.tab.nextTimeEventScaled,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001033/0.3733, allocations: 420.9 kB / 1.08 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004711/0.3737, allocations: 203.9 kB / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3738, allocations: 0 / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.3739, allocations: 63.91 kB / 1.08 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005405/0.3745, allocations: 115.9 kB / 1.081 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.3756, allocations: 0.6975 MB / 1.081 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.376, allocations: 0.8107 MB / 1.082 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001654/0.3761, allocations: 46.95 kB / 1.082 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.218e-05/0.3762, allocations: 35.42 kB / 1.082 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of SimCode: time 6.92e-07/0.3762, allocations: 0 / 1.082 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of Templates: time 0.009842/0.3861, allocations: 4.608 MB / 1.087 GB, free: 7.16 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches