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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload",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.1014/0.1014, allocations: 21.61 MB / 36.56 MB, free: 1.133 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.00106/0.00106, allocations: 183.2 kB / 42.82 MB, free: 3.812 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.351/1.351, allocations: 223.2 MB / 272.1 MB, free: 1.348 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.0009745/0.0009743, allocations: 112.8 kB / 328.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003917/0.0003915, allocations: 11.98 kB / 397.1 MB, free: 46.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1012, allocations: 55.82 MB / 452.9 MB, free: 6.508 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3429/0.4442, allocations: 84.76 MB / 0.5251 GB, free: 13.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.4444, allocations: 80.64 kB / 0.5252 GB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02366/0.4681, allocations: 8.917 MB / 0.5339 GB, free: 9.953 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4681, allocations: 0 / 0.5339 GB, free: 9.953 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.323e-05/0.4682, allocations: 11.5 kB / 0.5339 GB, free: 9.953 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.001794/0.47, allocations: 0.8312 MB / 0.5347 GB, free: 9.352 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.47, allocations: 7.688 kB / 0.5347 GB, free: 9.352 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001595/0.4702, allocations: 104.2 kB / 0.5348 GB, free: 9.293 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.4704, allocations: 57.94 kB / 0.5349 GB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006094/0.471, allocations: 383.6 kB / 0.5352 GB, free: 8.977 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.4711, allocations: 106.6 kB / 0.5353 GB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.4713, allocations: 48 kB / 0.5354 GB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/0.473, allocations: 0.8039 MB / 0.5362 GB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.473, allocations: 0 / 0.5362 GB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.699e-05/0.4731, allocations: 16.53 kB / 0.5362 GB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.4731, allocations: 15.62 kB / 0.5362 GB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.4745, allocations: 0.6617 MB / 0.5368 GB, free: 8.531 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005325/0.4799, allocations: 2.718 MB / 0.5395 GB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.481, allocations: 0.5956 MB / 0.5401 GB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.93e-05/0.4811, allocations: 8.031 kB / 0.5401 GB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.4811, allocations: 34.94 kB / 0.5401 GB, free: 7.145 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 2.705e-06/0.4811, allocations: 0 / 0.5401 GB, free: 7.145 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.005887/0.487, allocations: 2.508 MB / 0.5426 GB, free: 6.395 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.4871, allocations: 59.66 kB / 0.5426 GB, free: 6.328 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003505/0.4874, allocations: 311.9 kB / 0.5429 GB, free: 6.195 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.354e-05/0.4875, allocations: 36.86 kB / 0.543 GB, free: 6.164 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.99e-05/0.4876, allocations: 228.4 kB / 0.5432 GB, free: 6.012 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.4877, allocations: 195 kB / 0.5434 GB, free: 5.871 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.583e-05/0.4878, allocations: 7.312 kB / 0.5434 GB, free: 5.871 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.011e-05/0.4879, allocations: 360 kB / 0.5437 GB, free: 5.543 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007631/0.4886, allocations: 412.8 kB / 0.5441 GB, free: 5.461 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007654/0.4894, allocations: 456.9 kB / 0.5445 GB, free: 5.328 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.005592/0.495, allocations: 1.857 MB / 0.5463 GB, free: 4.844 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.495, allocations: 4 kB / 0.5464 GB, free: 4.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001862/0.4969, allocations: 0.9308 MB / 0.5473 GB, free: 4.637 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001837/0.4971, allocations: 0.5293 MB / 0.5478 GB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.4971, allocations: 4 kB / 0.5478 GB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-05/0.4971, allocations: 4 kB / 0.5478 GB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005679/0.5028, allocations: 1.212 MB / 0.549 GB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.996e-05/0.5029, allocations: 7.984 kB / 0.549 GB, free: 2.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006702/0.5035, allocations: 74.09 kB / 0.549 GB, free: 2.785 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.14e-05/0.5036, allocations: 26.55 kB / 0.5491 GB, free: 2.766 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.5036, allocations: 4 kB / 0.5491 GB, free: 2.762 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001652/0.5053, allocations: 0.8694 MB / 0.5499 GB, free: 2.145 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.5053, allocations: 3.938 kB / 0.5499 GB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.426e-06/0.5053, allocations: 4 kB / 0.5499 GB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005509/0.5108, allocations: 1.209 MB / 0.5511 GB, free: 0.9297 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-05/0.5109, allocations: 4 kB / 0.5511 GB, free: 0.9258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006551/0.5115, allocations: 77.98 kB / 0.5512 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.4e-05/0.5116, allocations: 27.66 kB / 0.5512 GB, free: 0.8359 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.0005019/0.5121, allocations: 278.8 kB / 0.5515 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.5122, allocations: 43.53 kB / 0.5515 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.5142, allocations: 0.9317 MB / 0.5524 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.5142, allocations: 8 kB / 0.5524 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.5142, allocations: 0 / 0.5524 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.5142, allocations: 0 / 0.5524 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003718/0.5179, allocations: 1.911 MB / 0.5543 GB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.518, allocations: 0 / 0.5543 GB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006127/0.5241, allocations: 1.197 MB / 0.5555 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.611e-05/0.5242, allocations: 4 kB / 0.5555 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.5243, allocations: 19.67 kB / 0.5555 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.134e-06/0.5243, allocations: 4 kB / 0.5555 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.5243, allocations: 7.938 kB / 0.5555 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002997/0.5273, allocations: 1.437 MB / 0.5569 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/0.5276, allocations: 123.8 kB / 0.557 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.5277, allocations: 15.23 kB / 0.557 GB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006275/0.5284, allocations: 75.25 kB / 0.5571 GB, free: 11.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.5285, allocations: 75.06 kB / 0.5572 GB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.185e-05/0.5286, allocations: 19.55 kB / 0.5572 GB, free: 11.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000313/0.5289, allocations: 257.2 kB / 0.5575 GB, free: 11.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5289, allocations: 0 / 0.5575 GB, free: 11.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000806/0.5297, allocations: 243.9 kB / 0.5577 GB, free: 11.34 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.003039/0.5328, allocations: 2.221 MB / 0.5599 GB, free: 9.445 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002727/0.5355, allocations: 1.366 MB / 0.5612 GB, free: 8.453 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.5356, allocations: 4 kB / 0.5612 GB, free: 8.449 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008667/0.5364, allocations: 464.1 kB / 0.5616 GB, free: 8.117 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004935/0.5369, allocations: 91.83 kB / 0.5617 GB, free: 8.055 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00458/0.5415, allocations: 3.324 MB / 0.565 GB, free: 4.844 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.542, allocations: 0.8697 MB / 0.5658 GB, free: 3.949 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006847/0.5427, allocations: 128.3 kB / 0.5659 GB, free: 3.824 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003863/0.5431, allocations: 195.2 kB / 0.5661 GB, free: 3.758 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5431, allocations: 0 / 0.5661 GB, free: 3.758 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02701/0.5701, allocations: 11.52 MB / 0.5774 GB, free: 8.488 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/0.5703, allocations: 205.9 kB / 0.5776 GB, free: 8.254 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.174/2.745, allocations: 7.875 kB / 0.5776 GB, free: 8.246 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload.fmu > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)