Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001783/0.001783, allocations: 104.2 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002097/0.002097, allocations: 210.4 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.609/1.609, allocations: 230.5 MB / 252.8 MB, free: 9.133 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.4/3.4, allocations: 0.4899 GB / 0.7915 GB, free: 33.49 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 76.08 kB / 1.149 GB, free: 26.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3632, allocations: 176.1 MB / 1.321 GB, free: 2.828 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004404/0.3676, allocations: 2.265 MB / 1.323 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002882/0.3705, allocations: 1.433 MB / 1.325 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002839/0.3708, allocations: 11.88 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000554/0.3714, allocations: 179.3 kB / 1.325 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000651/0.372, allocations: 215.1 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005053/0.3725, allocations: 187.5 kB / 1.325 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006611/0.3732, allocations: 426.9 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.3734, allocations: 73.22 kB / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003486/0.3738, allocations: 195.2 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003041/0.3741, allocations: 191.2 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.871e-05/0.3741, allocations: 24 kB / 1.326 GB, free: 13.63 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.3743, allocations: 83.95 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.3745, allocations: 111.6 kB / 1.326 GB, free: 13.44 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001821/0.3747, allocations: 166.9 kB / 1.327 GB, free: 13.28 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007023/0.3754, allocations: 0.5018 MB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3754, allocations: 4 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3754, allocations: 0 / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.346e-05/0.3754, allocations: 0 / 1.327 GB, free: 12.77 MB / 1.029 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.001408/0.3768, allocations: 0.7348 MB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3768, allocations: 11.98 kB / 1.328 GB, free: 11.97 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.377, allocations: 56.55 kB / 1.328 GB, free: 11.92 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006833/0.3777, allocations: 426.5 kB / 1.328 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.3777, allocations: 8.375 kB / 1.328 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.936e-05/0.3777, allocations: 19.94 kB / 1.328 GB, free: 11.44 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000386/0.3781, allocations: 176.1 kB / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.3781, allocations: 0 / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.3781, allocations: 8 kB / 1.329 GB, free: 11.24 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.3782, allocations: 8 kB / 1.329 GB, free: 11.23 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000258/0.3784, allocations: 87.89 kB / 1.329 GB, free: 11.15 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.3797, allocations: 0.7817 MB / 1.329 GB, free: 10.31 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003676/0.3801, allocations: 129.3 kB / 1.329 GB, free: 10.16 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.3802, allocations: 49.64 kB / 1.33 GB, free: 10.11 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.6e-05/0.3803, allocations: 8 kB / 1.33 GB, free: 10.1 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002753/0.3805, allocations: 133 kB / 1.33 GB, free: 9.953 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.352e-06/0.3805, allocations: 0 / 1.33 GB, free: 9.953 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0006334/0.3812, allocations: 221.3 kB / 1.33 GB, free: 9.73 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.976e-05/0.3812, allocations: 102.8 kB / 1.33 GB, free: 9.605 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008082/0.3821, allocations: 0.6032 MB / 1.331 GB, free: 8.992 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.3821, allocations: 33.7 kB / 1.331 GB, free: 8.953 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.3823, allocations: 200.6 kB / 1.331 GB, free: 8.754 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.56e-05/0.3823, allocations: 39.7 kB / 1.331 GB, free: 8.715 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001401/0.3825, allocations: 77.64 kB / 1.331 GB, free: 8.633 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001894/0.3827, allocations: 358.7 kB / 1.331 GB, free: 8.273 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.3829, allocations: 104 kB / 1.331 GB, free: 8.172 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002736/0.3832, allocations: 177.8 kB / 1.332 GB, free: 7.977 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.3835, allocations: 186.2 kB / 1.332 GB, free: 7.781 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3835, allocations: 4 kB / 1.332 GB, free: 7.777 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006674/0.3842, allocations: 351.5 kB / 1.332 GB, free: 7.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.3842, allocations: 4 kB / 1.332 GB, free: 7.426 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.3842, allocations: 0 / 1.332 GB, free: 7.426 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.3842, allocations: 4 kB / 1.332 GB, free: 7.422 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.3845, allocations: 51.91 kB / 1.332 GB, free: 7.371 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.3845, allocations: 4 kB / 1.332 GB, free: 7.367 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.3847, allocations: 40 kB / 1.332 GB, free: 7.328 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.922e-05/0.3847, allocations: 15.98 kB / 1.332 GB, free: 7.312 MB / 1.029 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.0002345/0.385, allocations: 195.4 kB / 1.332 GB, free: 7.109 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.193e-05/0.385, allocations: 47.7 kB / 1.332 GB, free: 7.062 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.572e-05/0.3851, allocations: 39.52 kB / 1.332 GB, free: 7.016 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.3851, allocations: 4 kB / 1.332 GB, free: 7.012 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3851, allocations: 0 / 1.332 GB, free: 7.012 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3852, allocations: 3.938 kB / 1.332 GB, free: 7.008 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003714/0.3855, allocations: 349.3 kB / 1.333 GB, free: 6.617 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.3855, allocations: 0 / 1.333 GB, free: 6.617 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.016e-05/0.3856, allocations: 7.984 kB / 1.333 GB, free: 6.609 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3856, allocations: 4 kB / 1.333 GB, free: 6.605 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.3856, allocations: 7.938 kB / 1.333 GB, free: 6.598 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.788e-06/0.3856, allocations: 4 kB / 1.333 GB, free: 6.594 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3856, allocations: 0 / 1.333 GB, free: 6.594 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000426/0.386, allocations: 214.1 kB / 1.333 GB, free: 6.363 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001306/0.3861, allocations: 124.8 kB / 1.333 GB, free: 6.223 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.074e-05/0.3862, allocations: 4 kB / 1.333 GB, free: 6.219 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.3863, allocations: 19.98 kB / 1.333 GB, free: 6.199 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.889e-05/0.3864, allocations: 19.97 kB / 1.333 GB, free: 6.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.3864, allocations: 11.98 kB / 1.333 GB, free: 6.168 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004783/0.3869, allocations: 367.1 kB / 1.334 GB, free: 5.812 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3869, allocations: 0 / 1.334 GB, free: 5.812 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003472/0.3873, allocations: 75.89 kB / 1.334 GB, free: 5.738 MB / 1.029 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.001644/0.3889, allocations: 428.4 kB / 1.334 GB, free: 5.473 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000479/0.3894, allocations: 187.8 kB / 1.334 GB, free: 5.289 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.3894, allocations: 4 kB / 1.334 GB, free: 5.285 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.3895, allocations: 52.11 kB / 1.334 GB, free: 5.234 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005506/0.3901, allocations: 112.2 kB / 1.334 GB, free: 5.137 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.3913, allocations: 0.6302 MB / 1.335 GB, free: 4.473 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005205/0.3918, allocations: 0.8185 MB / 1.336 GB, free: 3.629 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001519/0.3919, allocations: 50.94 kB / 1.336 GB, free: 3.574 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.392, allocations: 35.44 kB / 1.336 GB, free: 3.543 MB / 1.029 GB Notification: Performance of SimCode: time 3.81e-07/0.3921, allocations: 0 / 1.336 GB, free: 3.543 MB / 1.029 GB Notification: Performance of Templates: time 0.01097/0.403, allocations: 4.769 MB / 1.34 GB, free: 14.81 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.518742938060313]