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.001685/0.001685, allocations: 113.3 kB / 18.94 MB, free: 2.934 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.002062/0.002062, allocations: 212.1 kB / 22.25 MB, free: 5.082 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.546/1.546, allocations: 230.6 MB / 256 MB, free: 8.016 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.322/3.322, allocations: 0.49 GB / 0.7951 GB, free: 33.15 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.002074/0.002074, allocations: 69.02 kB / 1.154 GB, free: 25.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3979/0.4, allocations: 176.1 MB / 1.326 GB, free: 1.438 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004049/0.4041, allocations: 2.275 MB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0025/0.4066, allocations: 1.438 MB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00015/0.4067, allocations: 15.88 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0004752/0.4072, allocations: 171.3 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004738/0.4077, allocations: 219 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.4081, allocations: 191.5 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005151/0.4086, allocations: 434.8 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.4088, allocations: 65.48 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002928/0.4091, allocations: 195.2 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.4094, allocations: 199.2 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.842e-05/0.4094, allocations: 24 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.4096, allocations: 75.97 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.4097, allocations: 115.6 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.4099, allocations: 170.9 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006112/0.4105, allocations: 0.494 MB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.4105, allocations: 0 / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.763e-06/0.4105, allocations: 0 / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.675e-06/0.4105, allocations: 4 kB / 1.332 GB, free: 11.36 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.001212/0.4117, allocations: 0.6555 MB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.4118, allocations: 16.02 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.4119, allocations: 48.61 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006067/0.4125, allocations: 356.7 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.4125, allocations: 24.36 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.4125, allocations: 19.94 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003356/0.4129, allocations: 168.2 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.4129, allocations: 3.938 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.4129, allocations: 8 kB / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.4129, allocations: 0 / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00021/0.4131, allocations: 91.94 kB / 1.334 GB, free: 9.914 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.4143, allocations: 0.7573 MB / 1.334 GB, free: 9.105 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003302/0.4146, allocations: 129.4 kB / 1.334 GB, free: 8.961 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.4148, allocations: 49.69 kB / 1.334 GB, free: 8.906 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.4148, allocations: 7.984 kB / 1.335 GB, free: 8.898 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.415, allocations: 129 kB / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.415, allocations: 0 / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0005502/0.4156, allocations: 217.3 kB / 1.335 GB, free: 8.535 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.341e-05/0.4157, allocations: 110.8 kB / 1.335 GB, free: 8.402 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007226/0.4164, allocations: 0.5993 MB / 1.336 GB, free: 7.793 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.159e-05/0.4164, allocations: 33.7 kB / 1.336 GB, free: 7.754 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.4166, allocations: 204.4 kB / 1.336 GB, free: 7.547 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.4166, allocations: 35.78 kB / 1.336 GB, free: 7.512 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.4168, allocations: 77.64 kB / 1.336 GB, free: 7.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4169, allocations: 358.7 kB / 1.336 GB, free: 7.07 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.4171, allocations: 108 kB / 1.336 GB, free: 6.965 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/0.4174, allocations: 177.7 kB / 1.336 GB, free: 6.77 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003346/0.4177, allocations: 186.9 kB / 1.337 GB, free: 6.574 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4177, allocations: 0 / 1.337 GB, free: 6.574 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005852/0.4183, allocations: 355.7 kB / 1.337 GB, free: 6.223 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.4183, allocations: 4 kB / 1.337 GB, free: 6.219 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.4183, allocations: 0 / 1.337 GB, free: 6.219 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.4184, allocations: 4 kB / 1.337 GB, free: 6.215 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.4186, allocations: 43.92 kB / 1.337 GB, free: 6.172 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.4186, allocations: 4 kB / 1.337 GB, free: 6.168 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002072/0.4188, allocations: 39.86 kB / 1.337 GB, free: 6.129 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.862e-05/0.4188, allocations: 15.98 kB / 1.337 GB, free: 6.113 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.0002278/0.419, allocations: 200.6 kB / 1.337 GB, free: 5.906 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.036e-05/0.4191, allocations: 43.72 kB / 1.337 GB, free: 5.863 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004918/0.4196, allocations: 201 kB / 1.338 GB, free: 5.656 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.4196, allocations: 112 / 1.338 GB, free: 5.656 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.4196, allocations: 7.938 kB / 1.338 GB, free: 5.648 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.4196, allocations: 3.984 kB / 1.338 GB, free: 5.645 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004105/0.42, allocations: 300.4 kB / 1.338 GB, free: 5.309 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.42, allocations: 11.98 kB / 1.338 GB, free: 5.297 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.89e-05/0.4201, allocations: 7.938 kB / 1.338 GB, free: 5.289 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.4201, allocations: 4 kB / 1.338 GB, free: 5.285 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.4201, allocations: 4 kB / 1.338 GB, free: 5.281 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.4201, allocations: 0 / 1.338 GB, free: 5.281 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.4201, allocations: 4 kB / 1.338 GB, free: 5.277 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004085/0.4205, allocations: 209.6 kB / 1.338 GB, free: 5.051 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.855e-05/0.4206, allocations: 51.7 kB / 1.338 GB, free: 5 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.421e-05/0.4207, allocations: 4 kB / 1.338 GB, free: 4.996 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.4208, allocations: 19.97 kB / 1.338 GB, free: 4.977 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.604e-05/0.4209, allocations: 23.91 kB / 1.338 GB, free: 4.953 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.4209, allocations: 4 kB / 1.338 GB, free: 4.949 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004963/0.4214, allocations: 371.1 kB / 1.339 GB, free: 4.59 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4214, allocations: 0 / 1.339 GB, free: 4.59 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003559/0.4218, allocations: 79.81 kB / 1.339 GB, free: 4.512 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 (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.001931/0.4237, allocations: 427 kB / 1.339 GB, free: 4.25 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004758/0.4242, allocations: 190.3 kB / 1.339 GB, free: 4.066 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4242, allocations: 0 / 1.339 GB, free: 4.066 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.4243, allocations: 51.97 kB / 1.339 GB, free: 4.016 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005239/0.4248, allocations: 106 kB / 1.339 GB, free: 3.918 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.426, allocations: 0.6266 MB / 1.34 GB, free: 3.254 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004839/0.4265, allocations: 0.8068 MB / 1.341 GB, free: 2.418 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001364/0.4266, allocations: 55.19 kB / 1.341 GB, free: 2.363 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.153e-05/0.4267, allocations: 39.42 kB / 1.341 GB, free: 2.328 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.4267, allocations: 3.938 kB / 1.341 GB, free: 2.324 MB / 1.029 GB Notification: Performance of Templates: time 0.01091/0.4376, allocations: 4.84 MB / 1.346 GB, free: 13.52 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.322493902873248]