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.001168/0.001168, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.847/2.847, allocations: 472.6 MB / 0.7451 GB, free: 4.676 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 65.86 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3242, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.00361/0.3278, allocations: 2.251 MB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002063/0.3299, allocations: 1.278 MB / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.3301, allocations: 4 kB / 1.072 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004483/0.3306, allocations: 175.3 kB / 1.072 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000355/0.3309, allocations: 171.2 kB / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005606/0.3315, allocations: 247.3 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004152/0.3319, allocations: 406.9 kB / 1.073 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002251/0.3322, allocations: 101.2 kB / 1.073 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.3324, allocations: 171.3 kB / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002227/0.3326, allocations: 187.3 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.464e-05/0.3327, allocations: 24 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001691/0.3329, allocations: 71.97 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.333, allocations: 107.7 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.3331, allocations: 162.9 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004672/0.3336, allocations: 486.6 kB / 1.074 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3336, allocations: 0 / 1.074 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3336, allocations: 0 / 1.074 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.073e-05/0.3337, allocations: 0 / 1.074 GB, free: 4.617 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.001081/0.3347, allocations: 0.7157 MB / 1.075 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.3348, allocations: 8.031 kB / 1.075 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.3349, allocations: 40.47 kB / 1.075 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.3354, allocations: 418.2 kB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.3354, allocations: 8.375 kB / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/0.3355, allocations: 19.94 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003298/0.3358, allocations: 173.2 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3358, allocations: 3.938 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.489e-05/0.3359, allocations: 11.98 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.3359, allocations: 4 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002148/0.3361, allocations: 87.89 kB / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.3372, allocations: 0.7893 MB / 1.076 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003193/0.3376, allocations: 137.4 kB / 1.076 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.3377, allocations: 49.69 kB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.3377, allocations: 4 kB / 1.076 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002615/0.338, allocations: 129 kB / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.472e-06/0.338, allocations: 0 / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005244/0.3385, allocations: 217 kB / 1.077 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.374e-05/0.3386, allocations: 110.8 kB / 1.077 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005959/0.3392, allocations: 0.5759 MB / 1.077 GB, free: 0.9062 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.3393, allocations: 37.7 kB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.3394, allocations: 192.4 kB / 1.077 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.609e-05/0.3394, allocations: 39.59 kB / 1.078 GB, free: 0.6328 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.3396, allocations: 69.69 kB / 1.078 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3397, allocations: 358.7 kB / 1.078 GB, free: 204 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.34, allocations: 108 kB / 1.078 GB, free: 96 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.3402, allocations: 170.3 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.3405, allocations: 183.9 kB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3405, allocations: 0 / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006033/0.3411, allocations: 352.8 kB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.3411, allocations: 4 kB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3412, allocations: 4 kB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.3412, allocations: 4 kB / 1.079 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.3414, allocations: 43.92 kB / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.3414, allocations: 4 kB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002168/0.3416, allocations: 35.92 kB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.329e-05/0.3417, allocations: 24.02 kB / 1.079 GB, free: 15.25 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.0001962/0.3419, allocations: 199.5 kB / 1.079 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.822e-05/0.3419, allocations: 39.53 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.662e-05/0.342, allocations: 43.36 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.342, allocations: 0 / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.342, allocations: 0 / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.3421, allocations: 4 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003008/0.3424, allocations: 333.3 kB / 1.079 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3424, allocations: 4 kB / 1.079 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.552e-05/0.3424, allocations: 7.938 kB / 1.079 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.3424, allocations: 4 kB / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.3424, allocations: 3.938 kB / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.3425, allocations: 4 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3425, allocations: 0 / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003554/0.3428, allocations: 213.3 kB / 1.08 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.3429, allocations: 120.6 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.413e-05/0.343, allocations: 8 kB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.3431, allocations: 19.91 kB / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.078e-05/0.3432, allocations: 23.97 kB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.3432, allocations: 4 kB / 1.08 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003745/0.3436, allocations: 363 kB / 1.08 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3436, allocations: 0 / 1.08 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003243/0.3439, allocations: 67.92 kB / 1.08 GB, free: 13.71 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.0009636/0.3449, allocations: 430.9 kB / 1.081 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004496/0.3454, allocations: 203.8 kB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3454, allocations: 4 kB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.3456, allocations: 55.92 kB / 1.081 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005334/0.3461, allocations: 109.3 kB / 1.081 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000963/0.3471, allocations: 0.6075 MB / 1.082 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.3474, allocations: 0.8106 MB / 1.082 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000142/0.3476, allocations: 58.94 kB / 1.082 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.336e-05/0.3477, allocations: 31.42 kB / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.3477, allocations: 0 / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of Templates: time 0.009535/0.3572, allocations: 4.745 MB / 1.087 GB, free: 6.828 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