Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Experimental.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_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.Experimental.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_10_Buildings.Experimental.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.007103/0.007103, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001554/0.001554, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.596/2.596, allocations: 437 MB / 0.7105 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 63.91 kB / 1.019 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3418, allocations: 151.6 MB / 1.167 GB, free: 6.949 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003614/0.3454, allocations: 2.264 MB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002162/0.3476, allocations: 1.264 MB / 1.17 GB, free: 3.391 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002142/0.3478, allocations: 7.938 kB / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0005115/0.3484, allocations: 167.3 kB / 1.17 GB, free: 3.219 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000467/0.3489, allocations: 179.2 kB / 1.17 GB, free: 3.043 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006677/0.3495, allocations: 246.5 kB / 1.171 GB, free: 2.805 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0005219/0.3501, allocations: 414.9 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.3503, allocations: 97.27 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003276/0.3506, allocations: 183.3 kB / 1.171 GB, free: 2.121 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002674/0.3509, allocations: 183.2 kB / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 7.268e-05/0.351, allocations: 24 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.3512, allocations: 75.95 kB / 1.172 GB, free: 1.844 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.3514, allocations: 115.6 kB / 1.172 GB, free: 1.73 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.3516, allocations: 171 kB / 1.172 GB, free: 1.562 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0006553/0.3522, allocations: 497.8 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3522, allocations: 0 / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3523, allocations: 0 / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.467e-05/0.3523, allocations: 4 kB / 1.172 GB, free: 1.07 MB / 0.92 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.001263/0.3535, allocations: 0.727 MB / 1.173 GB, free: 300 kB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.3536, allocations: 15.98 kB / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001295/0.3537, allocations: 44.66 kB / 1.173 GB, free: 240 kB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006213/0.3544, allocations: 410.6 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.3544, allocations: 12.38 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.3544, allocations: 19.92 kB / 1.174 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.3548, allocations: 169.7 kB / 1.174 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3548, allocations: 0 / 1.174 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.3548, allocations: 8 kB / 1.174 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.3549, allocations: 4 kB / 1.174 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002258/0.3551, allocations: 99.81 kB / 1.174 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.3564, allocations: 0.7894 MB / 1.175 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003301/0.3567, allocations: 133.4 kB / 1.175 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.3568, allocations: 49.7 kB / 1.175 GB, free: 14.42 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.078e-05/0.3569, allocations: 7.984 kB / 1.175 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/0.3572, allocations: 128.9 kB / 1.175 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.3572, allocations: 0 / 1.175 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0005473/0.3577, allocations: 213.3 kB / 1.175 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.443e-05/0.3578, allocations: 114.8 kB / 1.175 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006283/0.3584, allocations: 0.576 MB / 1.176 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.3585, allocations: 33.7 kB / 1.176 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.3586, allocations: 200.5 kB / 1.176 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.54e-05/0.3587, allocations: 35.73 kB / 1.176 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.3588, allocations: 77.64 kB / 1.176 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.3589, allocations: 358.7 kB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.3591, allocations: 103.9 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002304/0.3594, allocations: 175 kB / 1.177 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.3597, allocations: 186.5 kB / 1.177 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3597, allocations: 0.5 kB / 1.177 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005905/0.3603, allocations: 346.5 kB / 1.177 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.3603, allocations: 4 kB / 1.177 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3603, allocations: 4 kB / 1.177 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.3604, allocations: 112 / 1.177 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.3606, allocations: 55.84 kB / 1.177 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.3606, allocations: 4 kB / 1.177 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.3608, allocations: 39.95 kB / 1.177 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/0.3609, allocations: 16 kB / 1.177 GB, free: 11.67 MB / 0.9356 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.0001922/0.3611, allocations: 199.4 kB / 1.177 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.874e-05/0.3611, allocations: 43.77 kB / 1.178 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.123e-05/0.3612, allocations: 43.36 kB / 1.178 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3612, allocations: 4 kB / 1.178 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3612, allocations: 7.984 kB / 1.178 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.3612, allocations: 0 / 1.178 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002983/0.3615, allocations: 329.4 kB / 1.178 GB, free: 11 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3616, allocations: 0 / 1.178 GB, free: 11 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.353e-05/0.3616, allocations: 11.98 kB / 1.178 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.3616, allocations: 3.938 kB / 1.178 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.3616, allocations: 4 kB / 1.178 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3616, allocations: 0 / 1.178 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3616, allocations: 0 / 1.178 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003726/0.362, allocations: 221.5 kB / 1.178 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.3622, allocations: 120.9 kB / 1.178 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.102e-05/0.3622, allocations: 4 kB / 1.178 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.3623, allocations: 15.98 kB / 1.178 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.62e-05/0.3624, allocations: 19.97 kB / 1.178 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.3624, allocations: 7.984 kB / 1.178 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003963/0.3628, allocations: 359.1 kB / 1.179 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3629, allocations: 4 kB / 1.179 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003335/0.3632, allocations: 75.88 kB / 1.179 GB, free: 10.13 MB / 0.9356 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.001019/0.3642, allocations: 429.5 kB / 1.179 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004366/0.3647, allocations: 199.7 kB / 1.179 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3647, allocations: 0 / 1.179 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.3648, allocations: 64.09 kB / 1.179 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005033/0.3653, allocations: 100.2 kB / 1.179 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009446/0.3663, allocations: 0.6109 MB / 1.18 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.3667, allocations: 0.8184 MB / 1.181 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001465/0.3668, allocations: 62.92 kB / 1.181 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.889e-05/0.3669, allocations: 31.44 kB / 1.181 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of SimCode: time 4.81e-07/0.3669, allocations: 0 / 1.181 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of Templates: time 0.0099/0.3768, allocations: 4.765 MB / 1.186 GB, free: 3.215 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (rm -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches