Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.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_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") [/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.09457/0.09457, allocations: 21.61 MB / 36.56 MB, free: 1.078 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.0009858/0.0009857, allocations: 182.4 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.255/1.255, allocations: 223.2 MB / 272.1 MB, free: 1.754 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.0009066/0.0009066, allocations: 110.5 kB / 328.7 MB, free: 12.1 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.0003489, allocations: 8 kB / 397 MB, free: 46.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08932, allocations: 55.81 MB / 452.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3031/0.3924, allocations: 84.76 MB / 0.525 GB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.3927, allocations: 85 kB / 0.5251 GB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02149/0.4142, allocations: 8.924 MB / 0.5338 GB, free: 9.512 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4142, allocations: 3.984 kB / 0.5338 GB, free: 9.508 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.865e-05/0.4143, allocations: 15 kB / 0.5338 GB, free: 9.508 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.001398/0.4157, allocations: 0.8154 MB / 0.5346 GB, free: 8.914 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.4157, allocations: 11.7 kB / 0.5346 GB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.4158, allocations: 61.41 kB / 0.5347 GB, free: 8.883 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004607/0.4163, allocations: 380.2 kB / 0.5351 GB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.4164, allocations: 114.1 kB / 0.5352 GB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.688e-05/0.4165, allocations: 53.72 kB / 0.5352 GB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.4179, allocations: 0.7903 MB / 0.536 GB, free: 8.285 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.4179, allocations: 3.953 kB / 0.536 GB, free: 8.281 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/0.418, allocations: 23.03 kB / 0.536 GB, free: 8.277 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.418, allocations: 11.41 kB / 0.536 GB, free: 8.277 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.4192, allocations: 0.6603 MB / 0.5367 GB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004418/0.4236, allocations: 2.718 MB / 0.5393 GB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009644/0.4246, allocations: 0.5915 MB / 0.5399 GB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.866e-05/0.4247, allocations: 4.281 kB / 0.5399 GB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.4247, allocations: 45.33 kB / 0.5399 GB, free: 6.766 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 2.455e-06/0.4247, allocations: 0 / 0.5399 GB, free: 6.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.005291/0.43, allocations: 2.494 MB / 0.5424 GB, free: 6.023 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.4301, allocations: 59.64 kB / 0.5424 GB, free: 5.957 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.4304, allocations: 322 kB / 0.5427 GB, free: 5.816 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.675e-05/0.4304, allocations: 36.58 kB / 0.5428 GB, free: 5.785 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.038e-05/0.4305, allocations: 226.2 kB / 0.543 GB, free: 5.641 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.4306, allocations: 191.9 kB / 0.5432 GB, free: 5.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.552e-05/0.4307, allocations: 9.062 kB / 0.5432 GB, free: 5.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.833e-05/0.4308, allocations: 351.8 kB / 0.5435 GB, free: 5.176 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007252/0.4315, allocations: 417.1 kB / 0.5439 GB, free: 5.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000726/0.4322, allocations: 454.1 kB / 0.5444 GB, free: 4.961 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.005308/0.4375, allocations: 1.863 MB / 0.5462 GB, free: 4.469 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.4376, allocations: 0 / 0.5462 GB, free: 4.469 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001677/0.4392, allocations: 0.9335 MB / 0.5471 GB, free: 4.266 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.4394, allocations: 0.5301 MB / 0.5476 GB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.4394, allocations: 0 / 0.5476 GB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.4394, allocations: 3.844 kB / 0.5476 GB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005413/0.4448, allocations: 1.214 MB / 0.5488 GB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.94e-05/0.4449, allocations: 7.953 kB / 0.5488 GB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006364/0.4455, allocations: 78.42 kB / 0.5489 GB, free: 2.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.953e-05/0.4456, allocations: 23.92 kB / 0.5489 GB, free: 2.938 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.4456, allocations: 7.938 kB / 0.5489 GB, free: 2.93 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001606/0.4472, allocations: 0.8655 MB / 0.5498 GB, free: 2.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-06/0.4472, allocations: 0 / 0.5498 GB, free: 2.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.474e-06/0.4472, allocations: 4.094 kB / 0.5498 GB, free: 2.312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00538/0.4526, allocations: 1.216 MB / 0.5509 GB, free: 1.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.4527, allocations: 7.938 kB / 0.551 GB, free: 1.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006115/0.4533, allocations: 74.47 kB / 0.551 GB, free: 1.027 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.147e-05/0.4534, allocations: 23.05 kB / 0.551 GB, free: 1.008 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.0004429/0.4538, allocations: 286 kB / 0.5513 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.851e-05/0.4539, allocations: 43.52 kB / 0.5514 GB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/0.4556, allocations: 0.9259 MB / 0.5523 GB, free: 48 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.4556, allocations: 4 kB / 0.5523 GB, free: 44 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.4556, allocations: 0 / 0.5523 GB, free: 44 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.4556, allocations: 3.984 kB / 0.5523 GB, free: 40 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003342/0.459, allocations: 1.903 MB / 0.5541 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.459, allocations: 4 kB / 0.5541 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005759/0.4648, allocations: 1.201 MB / 0.5553 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.301e-05/0.4648, allocations: 4 kB / 0.5553 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.978e-05/0.4649, allocations: 18.73 kB / 0.5553 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.4649, allocations: 7.922 kB / 0.5553 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4649, allocations: 4 kB / 0.5553 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002639/0.4676, allocations: 1.438 MB / 0.5567 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.4678, allocations: 116.4 kB / 0.5569 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.4679, allocations: 14.69 kB / 0.5569 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005603/0.4684, allocations: 74.98 kB / 0.5569 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.4686, allocations: 86.39 kB / 0.557 GB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.4687, allocations: 19.36 kB / 0.557 GB, free: 11.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002777/0.469, allocations: 254.7 kB / 0.5573 GB, free: 11.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.469, allocations: 0 / 0.5573 GB, free: 11.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007729/0.4698, allocations: 251.6 kB / 0.5575 GB, free: 11.5 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.0001768/0.4699, allocations: 122.2 kB / 0.5576 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002692/0.4726, allocations: 1.366 MB / 0.559 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4727, allocations: 0 / 0.559 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008788/0.4735, allocations: 462.8 kB / 0.5594 GB, free: 10.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.474, allocations: 109.9 kB / 0.5595 GB, free: 9.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003599/0.4776, allocations: 2.161 MB / 0.5616 GB, free: 7.938 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/0.478, allocations: 0.8701 MB / 0.5625 GB, free: 7.043 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006791/0.4787, allocations: 132.3 kB / 0.5626 GB, free: 6.914 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002512/0.479, allocations: 54.72 kB / 0.5627 GB, free: 6.863 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.479, allocations: 0 / 0.5627 GB, free: 6.863 MB / 378.7 MB Notification: Performance of Templates: time 0.01225/0.4912, allocations: 7.54 MB / 0.57 GB, free: 15.42 MB / 394.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.sim & ./AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)