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: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") [/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.09345/0.09345, allocations: 21.61 MB / 36.56 MB, free: 1.094 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.0008493/0.0008495, allocations: 183.5 kB / 42.82 MB, free: 3.793 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.304/1.304, allocations: 223.2 MB / 272.2 MB, free: 1.375 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.0008112/0.000811, allocations: 109.7 kB / 328.7 MB, free: 11.72 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003261/0.0003262, allocations: 8 kB / 397 MB, free: 46.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08349/0.08384, allocations: 55.82 MB / 452.9 MB, free: 6.625 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2892/0.3731, allocations: 84.72 MB / 0.525 GB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/0.3733, allocations: 73.55 kB / 0.5251 GB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03269/0.4061, allocations: 14 MB / 0.5387 GB, free: 7.875 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4061, allocations: 0 / 0.5387 GB, free: 7.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.541e-05/0.4061, allocations: 15.34 kB / 0.5387 GB, free: 7.875 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.001976/0.4081, allocations: 1.117 MB / 0.5398 GB, free: 7.133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.4082, allocations: 7.656 kB / 0.5398 GB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.4083, allocations: 99.69 kB / 0.5399 GB, free: 7.086 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006753/0.409, allocations: 0.5025 MB / 0.5404 GB, free: 6.742 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.4091, allocations: 160 kB / 0.5406 GB, free: 6.641 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.4093, allocations: 88.16 kB / 0.5407 GB, free: 6.633 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001837/0.4111, allocations: 1.16 MB / 0.5418 GB, free: 6.285 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.4111, allocations: 3.984 kB / 0.5418 GB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.749e-05/0.4112, allocations: 34.62 kB / 0.5418 GB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.4113, allocations: 19.38 kB / 0.5419 GB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001704/0.413, allocations: 0.9641 MB / 0.5428 GB, free: 6.109 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.006164/0.4191, allocations: 3.763 MB / 0.5465 GB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.4207, allocations: 0.9516 MB / 0.5474 GB, free: 4.363 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.181e-05/0.4208, allocations: 19.77 kB / 0.5474 GB, free: 4.359 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.31e-05/0.4208, allocations: 42.25 kB / 0.5475 GB, free: 4.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 3.166e-06/0.4208, allocations: 0 / 0.5475 GB, free: 4.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.006648/0.4275, allocations: 3.369 MB / 0.5507 GB, free: 2.102 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.4276, allocations: 60.41 kB / 0.5508 GB, free: 2.031 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004379/0.428, allocations: 452 kB / 0.5512 GB, free: 1.684 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.681e-05/0.4281, allocations: 40.2 kB / 0.5513 GB, free: 1.648 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.4282, allocations: 328.6 kB / 0.5516 GB, free: 1.414 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.4284, allocations: 307.6 kB / 0.5519 GB, free: 1.156 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.465e-05/0.4285, allocations: 17.56 kB / 0.5519 GB, free: 1.152 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.477e-05/0.4286, allocations: 382.4 kB / 0.5523 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000974/0.4295, allocations: 0.5756 MB / 0.5528 GB, free: 412 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.4306, allocations: 0.6423 MB / 0.5535 GB, free: 15.91 MB / 378.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.009373/0.44, allocations: 2.855 MB / 0.5562 GB, free: 13.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.942e-06/0.44, allocations: 8 kB / 0.5562 GB, free: 13.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.00281/0.4428, allocations: 1.367 MB / 0.5576 GB, free: 12.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003554/0.4432, allocations: 0.8764 MB / 0.5584 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.4432, allocations: 4 kB / 0.5584 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.599e-05/0.4433, allocations: 8 kB / 0.5585 GB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006443/0.4497, allocations: 1.33 MB / 0.5598 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.636e-05/0.4498, allocations: 15.94 kB / 0.5598 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000903/0.4507, allocations: 94.64 kB / 0.5599 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.4508, allocations: 38.53 kB / 0.5599 GB, free: 10.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.4508, allocations: 4 kB / 0.5599 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002518/0.4533, allocations: 1.269 MB / 0.5611 GB, free: 9.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.4534, allocations: 12.09 kB / 0.5611 GB, free: 9.297 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.4534, allocations: 8 kB / 0.5612 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006457/0.4599, allocations: 1.335 MB / 0.5625 GB, free: 7.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.4599, allocations: 4 kB / 0.5625 GB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008956/0.4608, allocations: 93.22 kB / 0.5626 GB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.501e-05/0.4609, allocations: 34.17 kB / 0.5626 GB, free: 7.852 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.000668/0.4616, allocations: 332.6 kB / 0.5629 GB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001993/0.4618, allocations: 71.16 kB / 0.563 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003276/0.4651, allocations: 1.293 MB / 0.5642 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.4651, allocations: 8 kB / 0.5642 GB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4651, allocations: 0 / 0.5642 GB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.4651, allocations: 3.984 kB / 0.5642 GB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005531/0.4707, allocations: 2.544 MB / 0.5667 GB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.4707, allocations: 0 / 0.5667 GB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00674/0.4774, allocations: 1.31 MB / 0.568 GB, free: 3.352 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.127e-05/0.4775, allocations: 4 kB / 0.568 GB, free: 3.348 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/0.4776, allocations: 26.17 kB / 0.568 GB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.166e-05/0.4776, allocations: 11.92 kB / 0.568 GB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.4776, allocations: 4 kB / 0.5681 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003732/0.4814, allocations: 2.042 MB / 0.57 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002304/0.4816, allocations: 140.4 kB / 0.5702 GB, free: 1.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/0.4818, allocations: 27.98 kB / 0.5702 GB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007671/0.4826, allocations: 79.92 kB / 0.5703 GB, free: 1.465 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/0.4828, allocations: 116.4 kB / 0.5704 GB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.327e-05/0.4829, allocations: 31.98 kB / 0.5704 GB, free: 1.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004478/0.4833, allocations: 354.9 kB / 0.5708 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4833, allocations: 0 / 0.5708 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001105/0.4845, allocations: 392 kB / 0.5711 GB, free: 0.5938 MB / 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.0002089/0.4847, allocations: 147.4 kB / 0.5713 GB, free: 448 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003878/0.4886, allocations: 1.96 MB / 0.5732 GB, free: 14.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4886, allocations: 0 / 0.5732 GB, free: 14.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.4898, allocations: 0.6251 MB / 0.5738 GB, free: 13.85 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006126/0.4904, allocations: 153 kB / 0.5739 GB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006026/0.4965, allocations: 3.29 MB / 0.5772 GB, free: 10.37 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005463/0.497, allocations: 0.9749 MB / 0.5781 GB, free: 9.363 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001004/0.498, allocations: 241.8 kB / 0.5783 GB, free: 9.125 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.4984, allocations: 79.39 kB / 0.5784 GB, free: 9.047 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4984, allocations: 3.938 kB / 0.5784 GB, free: 9.043 MB / 394.7 MB Notification: Performance of Templates: time 0.01854/0.5169, allocations: 11.26 MB / 0.5894 GB, free: 13.89 MB / 410.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile (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 & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)