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.001512/0.001512, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001688/0.001688, allocations: 212.7 kB / 22.25 MB, free: 4.855 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.545/1.545, allocations: 230.6 MB / 256 MB, free: 7.785 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.333/3.333, allocations: 0.4892 GB / 0.7943 GB, free: 35.63 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.002129/0.002129, allocations: 62.72 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3721, allocations: 176.1 MB / 1.326 GB, free: 1.871 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.005322/0.3774, allocations: 2.17 MB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003281/0.3807, allocations: 1.357 MB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000348/0.381, allocations: 7.938 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000648/0.3817, allocations: 179.3 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0008416/0.3825, allocations: 215.1 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006873/0.3832, allocations: 187.5 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0008353/0.384, allocations: 430.8 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002628/0.3843, allocations: 65.48 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003946/0.3847, allocations: 179.3 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004145/0.3851, allocations: 195.2 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.759e-05/0.3852, allocations: 24 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002623/0.3854, allocations: 75.98 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002178/0.3857, allocations: 119.6 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002422/0.3859, allocations: 123.2 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0008806/0.3868, allocations: 0.5057 MB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3868, allocations: 0 / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3868, allocations: 0 / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of Transformations before backend: time 2.358e-05/0.3868, allocations: 0 / 1.331 GB, free: 12.04 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.001654/0.3885, allocations: 0.6673 MB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.3885, allocations: 8.031 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.3887, allocations: 48.61 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008048/0.3895, allocations: 360.8 kB / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.3895, allocations: 12.36 kB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.3895, allocations: 19.94 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.39, allocations: 201.8 kB / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.39, allocations: 3.938 kB / 1.332 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.39, allocations: 11.98 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.39, allocations: 4 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/0.3903, allocations: 91.95 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.3918, allocations: 0.6838 MB / 1.333 GB, free: 9.836 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.3922, allocations: 137.3 kB / 1.333 GB, free: 9.684 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/0.3923, allocations: 57.8 kB / 1.333 GB, free: 9.621 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.3924, allocations: 7.938 kB / 1.333 GB, free: 9.613 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003002/0.3927, allocations: 125 kB / 1.334 GB, free: 9.473 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 2.174e-06/0.3927, allocations: 0 / 1.334 GB, free: 9.473 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0007169/0.3934, allocations: 233.7 kB / 1.334 GB, free: 9.238 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.989e-05/0.3935, allocations: 106.8 kB / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008947/0.3944, allocations: 0.5799 MB / 1.334 GB, free: 8.516 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.3944, allocations: 37.7 kB / 1.334 GB, free: 8.473 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.3946, allocations: 200.5 kB / 1.335 GB, free: 8.273 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.22e-05/0.3947, allocations: 35.72 kB / 1.335 GB, free: 8.238 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.3949, allocations: 81.62 kB / 1.335 GB, free: 8.152 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002229/0.3951, allocations: 354.8 kB / 1.335 GB, free: 7.797 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.3953, allocations: 104 kB / 1.335 GB, free: 7.695 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.3956, allocations: 246.9 kB / 1.335 GB, free: 7.414 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003678/0.396, allocations: 212.2 kB / 1.336 GB, free: 7.195 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.396, allocations: 0 / 1.336 GB, free: 7.195 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006516/0.3967, allocations: 357.1 kB / 1.336 GB, free: 6.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.3967, allocations: 4 kB / 1.336 GB, free: 6.836 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.3967, allocations: 0 / 1.336 GB, free: 6.836 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.3967, allocations: 4 kB / 1.336 GB, free: 6.832 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.3969, allocations: 47.91 kB / 1.336 GB, free: 6.785 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.3969, allocations: 4 kB / 1.336 GB, free: 6.781 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.3972, allocations: 39.95 kB / 1.336 GB, free: 6.742 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.658e-05/0.3972, allocations: 15.98 kB / 1.336 GB, free: 6.727 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.0002499/0.3974, allocations: 198.6 kB / 1.336 GB, free: 6.523 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.3975, allocations: 43.75 kB / 1.336 GB, free: 6.48 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000474/0.398, allocations: 200.9 kB / 1.337 GB, free: 6.277 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.398, allocations: 0 / 1.337 GB, free: 6.277 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.398, allocations: 0 / 1.337 GB, free: 6.277 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.398, allocations: 11.98 kB / 1.337 GB, free: 6.266 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.3983, allocations: 257 kB / 1.337 GB, free: 5.984 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3983, allocations: 3.938 kB / 1.337 GB, free: 5.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.976e-05/0.3984, allocations: 11.98 kB / 1.337 GB, free: 5.969 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3984, allocations: 0 / 1.337 GB, free: 5.969 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.3984, allocations: 7.938 kB / 1.337 GB, free: 5.961 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3984, allocations: 0 / 1.337 GB, free: 5.961 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3984, allocations: 0 / 1.337 GB, free: 5.961 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004252/0.3988, allocations: 239 kB / 1.337 GB, free: 5.707 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.748e-05/0.3989, allocations: 47.64 kB / 1.337 GB, free: 5.66 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.712e-05/0.399, allocations: 12.03 kB / 1.337 GB, free: 5.648 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.3991, allocations: 19.97 kB / 1.337 GB, free: 5.629 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.247e-05/0.3992, allocations: 23.95 kB / 1.337 GB, free: 5.605 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.3992, allocations: 12 kB / 1.337 GB, free: 5.594 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004404/0.3996, allocations: 355.1 kB / 1.337 GB, free: 5.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3996, allocations: 0 / 1.337 GB, free: 5.25 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003436/0.4, allocations: 71.89 kB / 1.338 GB, free: 5.18 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 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * 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.001829/0.4018, allocations: 460.7 kB / 1.338 GB, free: 4.914 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004839/0.4023, allocations: 203.7 kB / 1.338 GB, free: 4.715 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4023, allocations: 0 / 1.338 GB, free: 4.715 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001675/0.4025, allocations: 67.89 kB / 1.338 GB, free: 4.648 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005451/0.403, allocations: 103.2 kB / 1.338 GB, free: 4.559 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.4044, allocations: 0.6188 MB / 1.339 GB, free: 3.902 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.4046, allocations: 208.7 kB / 1.339 GB, free: 3.676 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001797/0.4048, allocations: 62.94 kB / 1.339 GB, free: 3.613 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.4049, allocations: 35.42 kB / 1.339 GB, free: 3.578 MB / 1.029 GB Notification: Performance of SimCode: time 6.21e-07/0.4049, allocations: 0 / 1.339 GB, free: 3.578 MB / 1.029 GB Notification: Performance of Templates: time 0.01278/0.4177, allocations: 5.387 MB / 1.344 GB, free: 14.27 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.360089795663953]