Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") [/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.09348/0.09348, 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.0009763/0.0009763, allocations: 186.5 kB / 42.82 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.245/1.245, allocations: 223.2 MB / 272.1 MB, free: 1.418 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.000824/0.0008239, allocations: 101.5 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003058/0.0003058, allocations: 12 kB / 397 MB, free: 46.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08365/0.08397, allocations: 55.82 MB / 452.9 MB, free: 6.648 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2922/0.3763, allocations: 84.54 MB / 0.5248 GB, free: 13.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.3765, allocations: 72.16 kB / 0.5249 GB, free: 13.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02142/0.398, allocations: 8.908 MB / 0.5336 GB, free: 9.773 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.398, allocations: 0 / 0.5336 GB, free: 9.773 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.398, allocations: 11.53 kB / 0.5336 GB, free: 9.773 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001409/0.3994, allocations: 0.8226 MB / 0.5344 GB, free: 9.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.3995, allocations: 7.531 kB / 0.5344 GB, free: 9.176 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.3996, allocations: 65.47 kB / 0.5345 GB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004681/0.4001, allocations: 376.3 kB / 0.5348 GB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.4002, allocations: 117.1 kB / 0.5349 GB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.374e-05/0.4003, allocations: 50.06 kB / 0.535 GB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.4017, allocations: 0.7974 MB / 0.5358 GB, free: 8.539 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.4017, allocations: 7.938 kB / 0.5358 GB, free: 8.531 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.92e-05/0.4018, allocations: 20.38 kB / 0.5358 GB, free: 8.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.4018, allocations: 11.06 kB / 0.5358 GB, free: 8.531 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.4031, allocations: 0.6644 MB / 0.5364 GB, free: 8.402 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00444/0.4075, allocations: 2.717 MB / 0.5391 GB, free: 7.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000988/0.4085, allocations: 0.5954 MB / 0.5397 GB, free: 7.055 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.103e-05/0.4086, allocations: 12.11 kB / 0.5397 GB, free: 7.055 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.4086, allocations: 34.38 kB / 0.5397 GB, free: 7.016 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 2.564e-06/0.4086, allocations: 0 / 0.5397 GB, free: 7.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.00528/0.4139, allocations: 2.499 MB / 0.5422 GB, free: 6.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.414, allocations: 63.61 kB / 0.5422 GB, free: 6.203 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.4142, allocations: 312.7 kB / 0.5425 GB, free: 6.066 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.595e-05/0.4143, allocations: 37.3 kB / 0.5426 GB, free: 6.035 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.802e-05/0.4144, allocations: 228.8 kB / 0.5428 GB, free: 5.887 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.4145, allocations: 194.3 kB / 0.543 GB, free: 5.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.642e-05/0.4145, allocations: 6.062 kB / 0.543 GB, free: 5.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.289e-05/0.4146, allocations: 357.7 kB / 0.5433 GB, free: 5.422 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007563/0.4154, allocations: 416 kB / 0.5437 GB, free: 5.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007207/0.4161, allocations: 453.6 kB / 0.5441 GB, free: 5.211 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.005284/0.4214, allocations: 1.861 MB / 0.546 GB, free: 4.719 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4214, allocations: 0 / 0.546 GB, free: 4.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001688/0.4231, allocations: 0.9301 MB / 0.5469 GB, free: 4.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.4232, allocations: 0.5328 MB / 0.5474 GB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.4233, allocations: 3.844 kB / 0.5474 GB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.4233, allocations: 3.844 kB / 0.5474 GB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005446/0.4287, allocations: 1.206 MB / 0.5486 GB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.4288, allocations: 8.656 kB / 0.5486 GB, free: 3.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005424/0.4293, allocations: 82.36 kB / 0.5487 GB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.631e-05/0.4294, allocations: 19.36 kB / 0.5487 GB, free: 3.188 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.277e-06/0.4294, allocations: 4 kB / 0.5487 GB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001587/0.431, allocations: 0.8667 MB / 0.5495 GB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.431, allocations: 0 / 0.5495 GB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.011e-06/0.431, allocations: 12.09 kB / 0.5495 GB, free: 2.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005375/0.4364, allocations: 1.205 MB / 0.5507 GB, free: 1.355 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.4364, allocations: 4 kB / 0.5507 GB, free: 1.352 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005394/0.4369, allocations: 81.83 kB / 0.5508 GB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.317e-05/0.437, allocations: 23.36 kB / 0.5508 GB, free: 1.262 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: 6 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0003638/0.4374, allocations: 296.3 kB / 0.5511 GB, free: 1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.595e-05/0.4375, allocations: 39.53 kB / 0.5511 GB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001739/0.4392, allocations: 0.9263 MB / 0.552 GB, free: 300 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.4392, allocations: 4 kB / 0.552 GB, free: 296 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4392, allocations: 4 kB / 0.552 GB, free: 292 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.4392, allocations: 0 / 0.552 GB, free: 292 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003225/0.4425, allocations: 1.905 MB / 0.5539 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.4425, allocations: 7.938 kB / 0.5539 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005851/0.4483, allocations: 1.206 MB / 0.5551 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.4484, allocations: 0 / 0.5551 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.301e-05/0.4484, allocations: 22.23 kB / 0.5551 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.4485, allocations: 4 kB / 0.5551 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4485, allocations: 0 / 0.5551 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/0.4513, allocations: 1.445 MB / 0.5565 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001743/0.4515, allocations: 116.1 kB / 0.5566 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.4516, allocations: 15.05 kB / 0.5566 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006143/0.4522, allocations: 70.5 kB / 0.5567 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.4524, allocations: 82.44 kB / 0.5568 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.514e-05/0.4525, allocations: 19.23 kB / 0.5568 GB, free: 12.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003182/0.4528, allocations: 253.7 kB / 0.5571 GB, free: 11.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4528, allocations: 4 kB / 0.5571 GB, free: 11.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008399/0.4537, allocations: 247.9 kB / 0.5573 GB, free: 11.75 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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * 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.0002053/0.4539, allocations: 126.8 kB / 0.5574 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003231/0.4571, allocations: 1.363 MB / 0.5587 GB, free: 10.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4571, allocations: 4 kB / 0.5588 GB, free: 10.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.4582, allocations: 464.9 kB / 0.5592 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005217/0.4587, allocations: 90.89 kB / 0.5593 GB, free: 10.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004207/0.4629, allocations: 2.164 MB / 0.5614 GB, free: 8.191 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/0.4634, allocations: 0.8703 MB / 0.5622 GB, free: 7.297 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006293/0.464, allocations: 136.3 kB / 0.5624 GB, free: 7.164 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.4643, allocations: 51.41 kB / 0.5624 GB, free: 7.113 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4643, allocations: 0 / 0.5624 GB, free: 7.113 MB / 378.7 MB Notification: Performance of Templates: time 0.012/0.4763, allocations: 7.528 MB / 0.5698 GB, free: 15.67 MB / 394.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)