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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001467/0.001467, allocations: 106.6 kB / 16.27 MB, free: 6.008 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.001563/0.001563, allocations: 190.4 kB / 17.2 MB, free: 5.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.361/1.361, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.7/2.7, allocations: 469.4 MB / 0.7427 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 61.64 kB / 0.9088 GB, free: 14.15 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3317, allocations: 159.1 MB / 1.064 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004188/0.3359, allocations: 2.236 MB / 1.066 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002473/0.3385, allocations: 1.27 MB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003249/0.3388, allocations: 7.938 kB / 1.068 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005544/0.3395, allocations: 183.3 kB / 1.068 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000524/0.34, allocations: 167.2 kB / 1.068 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007247/0.3407, allocations: 246.6 kB / 1.068 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000564/0.3413, allocations: 399 kB / 1.069 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.3416, allocations: 111.6 kB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003052/0.3419, allocations: 163.3 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002731/0.3422, allocations: 175.3 kB / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.83e-05/0.3423, allocations: 24 kB / 1.069 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002604/0.3426, allocations: 83.91 kB / 1.069 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.3427, allocations: 107.7 kB / 1.069 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.3429, allocations: 162.9 kB / 1.069 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000606/0.3435, allocations: 494.6 kB / 1.07 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3435, allocations: 0 / 1.07 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.874e-06/0.3435, allocations: 0 / 1.07 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.342e-05/0.3436, allocations: 0 / 1.07 GB, free: 9.227 MB / 0.8419 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.001275/0.3448, allocations: 0.7079 MB / 1.071 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3449, allocations: 8.625 kB / 1.071 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.345, allocations: 44.38 kB / 1.071 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006608/0.3457, allocations: 410.3 kB / 1.071 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.3457, allocations: 24.3 kB / 1.071 GB, free: 7.957 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.477e-05/0.3458, allocations: 15.94 kB / 1.071 GB, free: 7.941 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003626/0.3461, allocations: 173.4 kB / 1.071 GB, free: 7.758 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.3462, allocations: 0 / 1.071 GB, free: 7.758 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.3462, allocations: 11.88 kB / 1.071 GB, free: 7.746 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.3462, allocations: 7.984 kB / 1.071 GB, free: 7.738 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002277/0.3464, allocations: 95.89 kB / 1.071 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.3477, allocations: 0.7815 MB / 1.072 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/0.348, allocations: 129.4 kB / 1.072 GB, free: 6.66 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.3481, allocations: 61.69 kB / 1.072 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.3482, allocations: 0 / 1.072 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.3485, allocations: 121.1 kB / 1.072 GB, free: 6.457 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=12): time 1.703e-06/0.3485, allocations: 3.938 kB / 1.072 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12): time 0.0005749/0.3491, allocations: 221.3 kB / 1.073 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.656e-05/0.3491, allocations: 106.8 kB / 1.073 GB, free: 6.102 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007089/0.3498, allocations: 0.5875 MB / 1.073 GB, free: 5.508 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.3499, allocations: 29.7 kB / 1.073 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.3501, allocations: 200.4 kB / 1.073 GB, free: 5.273 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/0.3501, allocations: 27.7 kB / 1.074 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.3502, allocations: 73.59 kB / 1.074 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3504, allocations: 366.7 kB / 1.074 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.3506, allocations: 104 kB / 1.074 GB, free: 4.699 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002513/0.3508, allocations: 166.9 kB / 1.074 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003241/0.3512, allocations: 190.7 kB / 1.074 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.3512, allocations: 0 / 1.074 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005964/0.3518, allocations: 337.1 kB / 1.075 GB, free: 3.98 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3518, allocations: 15.92 kB / 1.075 GB, free: 3.965 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3518, allocations: 0 / 1.075 GB, free: 3.965 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.3518, allocations: 0 / 1.075 GB, free: 3.965 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.3521, allocations: 56.02 kB / 1.075 GB, free: 3.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.3521, allocations: 0 / 1.075 GB, free: 3.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.3523, allocations: 43.72 kB / 1.075 GB, free: 3.867 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.571e-05/0.3524, allocations: 11.98 kB / 1.075 GB, free: 3.855 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.0002167/0.3526, allocations: 195.4 kB / 1.075 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.684e-05/0.3527, allocations: 39.53 kB / 1.075 GB, free: 3.617 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.691e-05/0.3528, allocations: 43.36 kB / 1.075 GB, free: 3.57 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.3528, allocations: 4.047 kB / 1.075 GB, free: 3.566 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.3528, allocations: 3.984 kB / 1.075 GB, free: 3.562 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3528, allocations: 0 / 1.075 GB, free: 3.562 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003476/0.3531, allocations: 333.3 kB / 1.075 GB, free: 3.188 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3532, allocations: 0 / 1.075 GB, free: 3.188 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.069e-05/0.3532, allocations: 15.98 kB / 1.075 GB, free: 3.172 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.3532, allocations: 0 / 1.075 GB, free: 3.172 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.3532, allocations: 7.938 kB / 1.075 GB, free: 3.164 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3532, allocations: 3.938 kB / 1.075 GB, free: 3.16 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.3532, allocations: 0 / 1.075 GB, free: 3.16 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003981/0.3537, allocations: 213.3 kB / 1.076 GB, free: 2.93 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.3538, allocations: 120.9 kB / 1.076 GB, free: 2.793 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.683e-05/0.3538, allocations: 8 kB / 1.076 GB, free: 2.785 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.354, allocations: 23.97 kB / 1.076 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.85e-05/0.3541, allocations: 19.97 kB / 1.076 GB, free: 2.742 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.3541, allocations: 12 kB / 1.076 GB, free: 2.73 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004148/0.3545, allocations: 355.1 kB / 1.076 GB, free: 2.383 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3545, allocations: 0 / 1.076 GB, free: 2.383 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003302/0.3549, allocations: 71.83 kB / 1.076 GB, free: 2.312 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.001061/0.3559, allocations: 419 kB / 1.077 GB, free: 2.059 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000472/0.3564, allocations: 215.7 kB / 1.077 GB, free: 1.848 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3564, allocations: 0 / 1.077 GB, free: 1.848 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.3566, allocations: 63.89 kB / 1.077 GB, free: 1.785 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005383/0.3571, allocations: 98.64 kB / 1.077 GB, free: 1.695 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.3582, allocations: 0.6523 MB / 1.078 GB, free: 1.004 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.3586, allocations: 0.8068 MB / 1.078 GB, free: 176 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.289e-05/0.3587, allocations: 35.42 kB / 1.078 GB, free: 140 kB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.3587, allocations: 0 / 1.078 GB, free: 140 kB / 0.8419 GB Notification: Performance of Templates: time 0.5385/0.8972, allocations: 5.06 MB / 1.083 GB, free: 21.27 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/jenkins1/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