Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09569/0.09569, allocations: 21.61 MB / 36.56 MB, free: 1.059 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009607/0.0009607, allocations: 186.5 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.23/1.23, allocations: 223.2 MB / 272.2 MB, free: 1.793 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008591/0.000859, allocations: 94.78 kB / 328.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003029, allocations: 4 kB / 397 MB, free: 46.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08383/0.08415, allocations: 55.82 MB / 452.9 MB, free: 6.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2658/0.35, allocations: 84.47 MB / 0.5247 GB, free: 12.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001704/0.3502, allocations: 70.53 kB / 0.5248 GB, free: 12.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02003/0.3702, allocations: 8.866 MB / 0.5335 GB, free: 9.633 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3702, allocations: 0 / 0.5335 GB, free: 9.633 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.582e-05/0.3703, allocations: 7.938 kB / 0.5335 GB, free: 9.633 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001304/0.3716, allocations: 0.8204 MB / 0.5343 GB, free: 9.031 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.3716, allocations: 7.5 kB / 0.5343 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.3717, allocations: 62.09 kB / 0.5343 GB, free: 9.004 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004539/0.3722, allocations: 382.9 kB / 0.5347 GB, free: 8.719 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.3723, allocations: 109.7 kB / 0.5348 GB, free: 8.652 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-05/0.3724, allocations: 49.69 kB / 0.5348 GB, free: 8.652 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.3737, allocations: 0.7944 MB / 0.5356 GB, free: 8.402 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.3737, allocations: 3.953 kB / 0.5356 GB, free: 8.398 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.897e-05/0.3738, allocations: 24.12 kB / 0.5356 GB, free: 8.398 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.3738, allocations: 11.56 kB / 0.5357 GB, free: 8.398 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.375, allocations: 0.6566 MB / 0.5363 GB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004584/0.3796, allocations: 2.717 MB / 0.539 GB, free: 7.055 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009502/0.3806, allocations: 0.5828 MB / 0.5395 GB, free: 6.934 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.983e-05/0.3807, allocations: 15.62 kB / 0.5395 GB, free: 6.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.584e-05/0.3807, allocations: 41.38 kB / 0.5396 GB, free: 6.887 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 1.482e-06/0.3807, allocations: 0 / 0.5396 GB, free: 6.887 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.004893/0.3856, allocations: 2.467 MB / 0.542 GB, free: 6.145 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.939e-05/0.3856, allocations: 59.56 kB / 0.542 GB, free: 6.078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.3858, allocations: 318.7 kB / 0.5423 GB, free: 5.941 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.174e-05/0.3859, allocations: 33.33 kB / 0.5424 GB, free: 5.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.572e-05/0.386, allocations: 224.1 kB / 0.5426 GB, free: 5.766 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.337e-05/0.3861, allocations: 190.4 kB / 0.5428 GB, free: 5.629 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.3861, allocations: 11.22 kB / 0.5428 GB, free: 5.629 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.276e-05/0.3862, allocations: 357.4 kB / 0.5431 GB, free: 5.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000688/0.3869, allocations: 410 kB / 0.5435 GB, free: 5.215 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006914/0.3876, allocations: 455.4 kB / 0.544 GB, free: 5.078 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.005048/0.3926, allocations: 1.844 MB / 0.5458 GB, free: 4.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3926, allocations: 0 / 0.5458 GB, free: 4.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001563/0.3942, allocations: 0.9244 MB / 0.5467 GB, free: 4.387 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.3943, allocations: 0.6196 MB / 0.5473 GB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3943, allocations: 7.953 kB / 0.5473 GB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.3944, allocations: 3.844 kB / 0.5473 GB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005238/0.3996, allocations: 1.196 MB / 0.5484 GB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.3996, allocations: 4 kB / 0.5484 GB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000477/0.4001, allocations: 85.91 kB / 0.5485 GB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.721e-05/0.4002, allocations: 18.48 kB / 0.5485 GB, free: 3.207 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.592e-06/0.4002, allocations: 4 kB / 0.5485 GB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001513/0.4017, allocations: 0.8634 MB / 0.5494 GB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.4017, allocations: 0 / 0.5494 GB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.198e-06/0.4017, allocations: 4 kB / 0.5494 GB, free: 2.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005218/0.4069, allocations: 1.197 MB / 0.5506 GB, free: 1.395 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.407, allocations: 4 kB / 0.5506 GB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004399/0.4074, allocations: 75.17 kB / 0.5506 GB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.181e-05/0.4075, allocations: 27.17 kB / 0.5507 GB, free: 1.301 MB / 362.7 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(fixed = true ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002576/0.4077, allocations: 274.9 kB / 0.5509 GB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.828e-05/0.4078, allocations: 46.75 kB / 0.551 GB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/0.4094, allocations: 0.9077 MB / 0.5519 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4095, allocations: 4 kB / 0.5519 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4095, allocations: 4 kB / 0.5519 GB, free: 356 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.4095, allocations: 0 / 0.5519 GB, free: 356 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003123/0.4126, allocations: 1.88 MB / 0.5537 GB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.4126, allocations: 4 kB / 0.5537 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005574/0.4182, allocations: 1.182 MB / 0.5549 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.4182, allocations: 7.938 kB / 0.5549 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.372e-05/0.4183, allocations: 19.3 kB / 0.5549 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.481e-06/0.4183, allocations: 7.984 kB / 0.5549 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4183, allocations: 4 kB / 0.5549 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002547/0.4208, allocations: 1.411 MB / 0.5563 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.027e-05/0.4209, allocations: 121.5 kB / 0.5564 GB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.593e-05/0.421, allocations: 20.58 kB / 0.5564 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005048/0.4215, allocations: 73.67 kB / 0.5565 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.4217, allocations: 77.92 kB / 0.5566 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.262e-05/0.4218, allocations: 18.62 kB / 0.5566 GB, free: 12.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002373/0.422, allocations: 255.3 kB / 0.5568 GB, free: 12.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.422, allocations: 4 kB / 0.5568 GB, free: 12.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006299/0.4227, allocations: 244.9 kB / 0.5571 GB, free: 11.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (stank.lcold,stank.Thot,stank.Tcold,H.Tfo,H.Ec,tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001591/0.4228, allocations: 123.6 kB / 0.5572 GB, free: 11.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002538/0.4254, allocations: 1.354 MB / 0.5585 GB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4254, allocations: 0 / 0.5585 GB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008456/0.4262, allocations: 453.6 kB / 0.5589 GB, free: 10.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004309/0.4267, allocations: 97.08 kB / 0.559 GB, free: 10.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004019/0.4307, allocations: 2.234 MB / 0.5612 GB, free: 8.238 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.4311, allocations: 0.8737 MB / 0.5621 GB, free: 7.344 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006019/0.4317, allocations: 132.3 kB / 0.5622 GB, free: 7.215 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002358/0.432, allocations: 51.34 kB / 0.5622 GB, free: 7.164 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.432, allocations: 0 / 0.5622 GB, free: 7.164 MB / 378.7 MB Notification: Performance of Templates: time 0.01128/0.4432, allocations: 7.489 MB / 0.5695 GB, free: 15.77 MB / 394.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)