Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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: "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) [/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.1451/0.1451, allocations: 21.61 MB / 36.56 MB, free: 1.055 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.001102/0.001102, allocations: 183.1 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.433/1.433, allocations: 223.2 MB / 272.1 MB, free: 1.383 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.0009236/0.0009235, allocations: 103.2 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.0003598, allocations: 8 kB / 397.1 MB, free: 46.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1104, allocations: 55.82 MB / 452.9 MB, free: 6.527 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2975/0.4079, allocations: 84.72 MB / 0.5251 GB, free: 13.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.4082, allocations: 74.08 kB / 0.5251 GB, free: 13.19 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03426/0.4424, allocations: 14.01 MB / 0.5388 GB, free: 7.871 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4425, allocations: 0 / 0.5388 GB, free: 7.871 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.163e-05/0.4425, allocations: 15.22 kB / 0.5388 GB, free: 7.871 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002418/0.4449, allocations: 1.115 MB / 0.5399 GB, free: 7.129 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.445, allocations: 15.56 kB / 0.5399 GB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002122/0.4452, allocations: 127.3 kB / 0.54 GB, free: 7.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.4454, allocations: 96.78 kB / 0.5401 GB, free: 7.023 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007262/0.4461, allocations: 0.5004 MB / 0.5406 GB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.4463, allocations: 161.5 kB / 0.5408 GB, free: 6.582 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.4464, allocations: 86.17 kB / 0.5409 GB, free: 6.574 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/0.4484, allocations: 1.164 MB / 0.542 GB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.4484, allocations: 0 / 0.542 GB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.812e-05/0.4485, allocations: 30.91 kB / 0.542 GB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.4485, allocations: 19.31 kB / 0.542 GB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001816/0.4504, allocations: 0.966 MB / 0.543 GB, free: 6.047 MB / 362.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(tube.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006557/0.4569, allocations: 3.76 MB / 0.5467 GB, free: 4.477 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.4586, allocations: 0.9569 MB / 0.5476 GB, free: 4.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-05/0.4587, allocations: 14.22 kB / 0.5476 GB, free: 4.301 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.4587, allocations: 49.61 kB / 0.5477 GB, free: 4.254 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 2.575e-06/0.4587, allocations: 0 / 0.5477 GB, free: 4.254 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.007055/0.4658, allocations: 3.365 MB / 0.5509 GB, free: 1.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.164e-05/0.4658, allocations: 61.83 kB / 0.551 GB, free: 1.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004217/0.4662, allocations: 458.8 kB / 0.5514 GB, free: 1.551 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.848e-05/0.4663, allocations: 42.58 kB / 0.5515 GB, free: 1.516 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.4664, allocations: 326.6 kB / 0.5518 GB, free: 1.285 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.4666, allocations: 305.7 kB / 0.5521 GB, free: 1.031 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.784e-05/0.4667, allocations: 16.25 kB / 0.5521 GB, free: 1.027 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.695e-05/0.4668, allocations: 381.8 kB / 0.5525 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.4678, allocations: 0.5777 MB / 0.553 GB, free: 280 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.4689, allocations: 0.6437 MB / 0.5537 GB, free: 15.79 MB / 378.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.009622/0.4786, allocations: 2.856 MB / 0.5564 GB, free: 13.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.4786, allocations: 3.953 kB / 0.5564 GB, free: 13.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.002664/0.4813, allocations: 1.364 MB / 0.5578 GB, free: 12.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002893/0.4816, allocations: 0.8782 MB / 0.5586 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.4816, allocations: 3.938 kB / 0.5586 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.4816, allocations: 8 kB / 0.5587 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007077/0.4887, allocations: 1.334 MB / 0.56 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.956e-05/0.4887, allocations: 8 kB / 0.56 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008838/0.4896, allocations: 105.8 kB / 0.5601 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.792e-05/0.4897, allocations: 35.23 kB / 0.5601 GB, free: 10.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.4898, allocations: 4 kB / 0.5601 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002563/0.4923, allocations: 1.277 MB / 0.5613 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.4924, allocations: 4 kB / 0.5613 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.4924, allocations: 4 kB / 0.5614 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007015/0.4994, allocations: 1.336 MB / 0.5627 GB, free: 7.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.917e-05/0.4994, allocations: 4 kB / 0.5627 GB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009737/0.5004, allocations: 92.3 kB / 0.5628 GB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/0.5006, allocations: 42.89 kB / 0.5628 GB, free: 7.715 MB / 378.7 MB Warning: Assuming fixed start value for the following 7 variables: HnoTank.Ec:VARIABLE(fixed = true ) type: Real H.Ec:VARIABLE(fixed = true ) type: Real HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" 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.tubeNoTank.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (114): * Single equations (assignments): 114 * 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.0006812/0.5012, allocations: 325.2 kB / 0.5631 GB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002024/0.5015, allocations: 67.16 kB / 0.5632 GB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002817/0.5043, allocations: 1.292 MB / 0.5644 GB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.5043, allocations: 12 kB / 0.5644 GB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.5043, allocations: 0 / 0.5644 GB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.5043, allocations: 3.984 kB / 0.5644 GB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004769/0.5091, allocations: 2.543 MB / 0.5669 GB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.5091, allocations: 3.984 kB / 0.5669 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007137/0.5163, allocations: 1.306 MB / 0.5682 GB, free: 3.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.888e-05/0.5163, allocations: 8 kB / 0.5682 GB, free: 3.211 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001424/0.5165, allocations: 30.28 kB / 0.5682 GB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.067e-05/0.5165, allocations: 7.938 kB / 0.5682 GB, free: 3.184 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5165, allocations: 0 / 0.5682 GB, free: 3.184 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003952/0.5204, allocations: 2.031 MB / 0.5702 GB, free: 1.504 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002351/0.5207, allocations: 152.4 kB / 0.5704 GB, free: 1.336 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.5209, allocations: 20 kB / 0.5704 GB, free: 1.316 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000857/0.5217, allocations: 99.86 kB / 0.5705 GB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002399/0.522, allocations: 100.5 kB / 0.5706 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.609e-05/0.5221, allocations: 27.98 kB / 0.5706 GB, free: 1.094 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004618/0.5225, allocations: 362.8 kB / 0.571 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5226, allocations: 0 / 0.571 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001141/0.5237, allocations: 392 kB / 0.5713 GB, free: 368 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * 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 (87): * Single equations (assignments): 87 * 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.004248/0.528, allocations: 3.112 MB / 0.5744 GB, free: 13.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003892/0.5319, allocations: 1.956 MB / 0.5763 GB, free: 11.22 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5319, allocations: 0 / 0.5763 GB, free: 11.22 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001266/0.5332, allocations: 0.6251 MB / 0.5769 GB, free: 10.59 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000684/0.5339, allocations: 153.8 kB / 0.577 GB, free: 10.44 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00728/0.5411, allocations: 5.204 MB / 0.5821 GB, free: 5.125 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.5417, allocations: 0.9827 MB / 0.5831 GB, free: 4.117 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001095/0.5428, allocations: 237.8 kB / 0.5833 GB, free: 3.883 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005957/0.5434, allocations: 307.3 kB / 0.5836 GB, free: 3.582 MB / 394.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5435, allocations: 0 / 0.5836 GB, free: 3.582 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03254/0.576, allocations: 17.34 MB / 0.6005 GB, free: 2.492 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/0.5762, allocations: 197.9 kB / 0.6007 GB, free: 2.238 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.308/2.884, allocations: 0 / 0.6007 GB, free: 2.238 MB / 410.7 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)