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.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.001846/0.001846, allocations: 77.94 kB / 19.76 MB, free: 2.031 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.002248/0.002248, allocations: 162.4 kB / 23.01 MB, free: 4.945 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.412/1.412, allocations: 177.2 MB / 203.4 MB, free: 8.941 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.866/2.866, allocations: 394.2 MB / 0.6387 GB, free: 11.93 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002245/0.002245, allocations: 70.08 kB / 1.009 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7801/0.7823, allocations: 181.8 MB / 1.187 GB, free: 16.42 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003452/0.7858, allocations: 2.176 MB / 1.189 GB, free: 14.95 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.002138/0.7879, allocations: 1.359 MB / 1.19 GB, free: 14.06 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001753/0.7881, allocations: 12.72 kB / 1.19 GB, free: 14.05 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0004624/0.7886, allocations: 171.3 kB / 1.19 GB, free: 14 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0004549/0.789, allocations: 215.7 kB / 1.19 GB, free: 13.89 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003479/0.7894, allocations: 194.4 kB / 1.191 GB, free: 13.78 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0004104/0.7898, allocations: 432 kB / 1.191 GB, free: 13.58 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.7899, allocations: 61.84 kB / 1.191 GB, free: 13.55 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001963/0.7901, allocations: 172.4 kB / 1.191 GB, free: 13.47 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.7904, allocations: 187.8 kB / 1.191 GB, free: 13.4 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.081e-05/0.7904, allocations: 29.72 kB / 1.191 GB, free: 13.39 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001582/0.7906, allocations: 82.62 kB / 1.192 GB, free: 13.38 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.7907, allocations: 120.4 kB / 1.192 GB, free: 13.32 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.7908, allocations: 124.7 kB / 1.192 GB, free: 13.24 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.000549/0.7914, allocations: 0.5047 MB / 1.192 GB, free: 13.04 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.7914, allocations: 0.6094 kB / 1.192 GB, free: 13.04 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7914, allocations: 1.281 kB / 1.192 GB, free: 13.04 MB / 1.076 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.7914, allocations: 0 / 1.192 GB, free: 13.04 MB / 1.076 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.00101/0.7924, allocations: 0.6599 MB / 1.193 GB, free: 12.53 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.7924, allocations: 9.891 kB / 1.193 GB, free: 12.53 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.075e-05/0.7925, allocations: 45.41 kB / 1.193 GB, free: 12.5 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005159/0.793, allocations: 369.7 kB / 1.193 GB, free: 12.25 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.793, allocations: 11.42 kB / 1.193 GB, free: 12.24 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/0.7931, allocations: 18.44 kB / 1.193 GB, free: 12.23 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.7934, allocations: 210.5 kB / 1.194 GB, free: 12.1 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.7934, allocations: 0.9062 kB / 1.194 GB, free: 12.1 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.7934, allocations: 6.828 kB / 1.194 GB, free: 12.09 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.7934, allocations: 3.5 kB / 1.194 GB, free: 12.09 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.7937, allocations: 92.28 kB / 1.194 GB, free: 12.06 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009444/0.7946, allocations: 0.676 MB / 1.194 GB, free: 11.57 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.7949, allocations: 140 kB / 1.194 GB, free: 11.48 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.795, allocations: 52.14 kB / 1.194 GB, free: 11.45 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.795, allocations: 5.062 kB / 1.194 GB, free: 11.45 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.7953, allocations: 129.7 kB / 1.195 GB, free: 11.36 MB / 1.076 GB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.7953, allocations: 4 kB / 1.195 GB, free: 11.36 MB / 1.076 GB Notification: Performance of matching and sorting (n=12): time 0.0005264/0.7958, allocations: 231.3 kB / 1.195 GB, free: 11.25 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.7958, allocations: 105.7 kB / 1.195 GB, free: 11.13 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006569/0.7965, allocations: 0.5822 MB / 1.196 GB, free: 10.88 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.7965, allocations: 33.38 kB / 1.196 GB, free: 10.84 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.7966, allocations: 204.9 kB / 1.196 GB, free: 10.68 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.7967, allocations: 42.91 kB / 1.196 GB, free: 10.64 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.7968, allocations: 68.94 kB / 1.196 GB, free: 10.61 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 7.032e-05/0.7968, allocations: 357.7 kB / 1.196 GB, free: 10.28 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.797, allocations: 112.3 kB / 1.196 GB, free: 10.24 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.7973, allocations: 250.7 kB / 1.197 GB, free: 10.04 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.7976, allocations: 201.1 kB / 1.197 GB, free: 9.934 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7976, allocations: 0 / 1.197 GB, free: 9.934 MB / 1.076 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005379/0.7981, allocations: 353.1 kB / 1.197 GB, free: 9.789 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.7981, allocations: 12.28 kB / 1.197 GB, free: 9.785 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.7981, allocations: 1.188 kB / 1.197 GB, free: 9.785 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.7981, allocations: 14.8 kB / 1.197 GB, free: 9.773 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000201/0.7983, allocations: 47.25 kB / 1.197 GB, free: 9.77 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.7983, allocations: 7.125 kB / 1.197 GB, free: 9.766 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.7986, allocations: 37.58 kB / 1.197 GB, free: 9.754 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.7986, allocations: 10.45 kB / 1.197 GB, free: 9.754 MB / 1.076 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.0001635/0.7988, allocations: 196.8 kB / 1.197 GB, free: 9.605 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.7988, allocations: 49.38 kB / 1.197 GB, free: 9.574 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003977/0.7992, allocations: 207 kB / 1.198 GB, free: 9.48 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.7992, allocations: 3.188 kB / 1.198 GB, free: 9.48 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.7992, allocations: 0.7031 kB / 1.198 GB, free: 9.48 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.7992, allocations: 1.594 kB / 1.198 GB, free: 9.48 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.7995, allocations: 252.9 kB / 1.198 GB, free: 9.305 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.7995, allocations: 0 / 1.198 GB, free: 9.305 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.961e-05/0.7995, allocations: 11.41 kB / 1.198 GB, free: 9.305 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.7995, allocations: 1.062 kB / 1.198 GB, free: 9.305 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.7995, allocations: 12.23 kB / 1.198 GB, free: 9.297 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.7995, allocations: 5.094 kB / 1.198 GB, free: 9.293 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.7995, allocations: 1.125 kB / 1.198 GB, free: 9.293 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003629/0.7999, allocations: 233.5 kB / 1.198 GB, free: 9.152 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 7.53e-05/0.8, allocations: 46.22 kB / 1.198 GB, free: 9.125 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.066e-05/0.8, allocations: 9.109 kB / 1.198 GB, free: 9.121 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.8002, allocations: 17.77 kB / 1.198 GB, free: 9.117 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.562e-05/0.8002, allocations: 26.8 kB / 1.198 GB, free: 9.109 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.8002, allocations: 11 kB / 1.198 GB, free: 9.105 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0003605/0.8006, allocations: 359.8 kB / 1.199 GB, free: 8.945 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.8006, allocations: 1.5 kB / 1.199 GB, free: 8.945 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000338/0.8009, allocations: 68.39 kB / 1.199 GB, free: 8.934 MB / 1.076 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.001598/0.8025, allocations: 445.5 kB / 1.199 GB, free: 8.738 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004191/0.803, allocations: 195.8 kB / 1.199 GB, free: 8.68 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.803, allocations: 0.9062 kB / 1.199 GB, free: 8.68 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.8031, allocations: 70.06 kB / 1.199 GB, free: 8.652 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005129/0.8036, allocations: 105.6 kB / 1.199 GB, free: 8.621 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008783/0.8045, allocations: 0.6307 MB / 1.2 GB, free: 8.254 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001958/0.8047, allocations: 211.5 kB / 1.2 GB, free: 8.156 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001411/0.8048, allocations: 53.38 kB / 1.2 GB, free: 8.152 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.906e-05/0.8049, allocations: 38.66 kB / 1.2 GB, free: 8.137 MB / 1.076 GB Notification: Performance of SimCode: time 4.01e-07/0.8049, allocations: 0 / 1.2 GB, free: 8.137 MB / 1.076 GB Notification: Performance of Templates: time 0.01023/0.8151, allocations: 5.084 MB / 1.205 GB, free: 7.496 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (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=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.515710165025666]