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/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2416/0.2416, allocations: 22.34 MB / 313.3 MB, free: 13.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004954/0.0004956, allocations: 11.98 kB / 381.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.436/0.4365, allocations: 55.98 MB / 437.9 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.004435/0.441, allocations: 2.702 MB / 440.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.4433, allocations: 0.9349 MB / 441.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002399/0.4436, allocations: 2.969 kB / 441.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002201/0.4438, allocations: 53.09 kB / 441.6 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004461/0.4443, allocations: 171 kB / 441.8 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006632/0.4449, allocations: 144.5 kB / 441.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007489/0.4457, allocations: 470.8 kB / 442.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006674/0.4464, allocations: 343.3 kB / 442.7 MB, free: 36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003822/0.4468, allocations: 247.1 kB / 442.9 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005702/0.4474, allocations: 335.2 kB / 443.3 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.4475, allocations: 45.28 kB / 443.3 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.4477, allocations: 44.78 kB / 443.4 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.4479, allocations: 171.6 kB / 443.5 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001491/0.4481, allocations: 123.6 kB / 443.6 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007411/0.4488, allocations: 0.5799 MB / 444.2 MB, free: 35.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.4488, allocations: 0 / 444.2 MB, free: 35.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.4489, allocations: 0 / 444.2 MB, free: 35.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.587e-05/0.4489, allocations: 0 / 444.2 MB, free: 35.48 MB / 350.1 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.002765/0.4517, allocations: 0.8118 MB / 445 MB, free: 34.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.78e-05/0.4518, allocations: 11.94 kB / 445.1 MB, free: 34.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001751/0.4519, allocations: 88.5 kB / 445.1 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.4522, allocations: 64.44 kB / 445.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008465/0.453, allocations: 380.7 kB / 445.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002292/0.4533, allocations: 123.8 kB / 445.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.4535, allocations: 48.06 kB / 445.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002742/0.4562, allocations: 0.7272 MB / 446.5 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.078e-05/0.4563, allocations: 6.656 kB / 446.5 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.4564, allocations: 18.75 kB / 446.5 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/0.4564, allocations: 19.3 kB / 446.5 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002654/0.4591, allocations: 0.6461 MB / 447.2 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00847/0.4676, allocations: 2.67 MB / 449.8 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002097/0.4698, allocations: 0.574 MB / 450.4 MB, free: 32.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.205e-05/0.4698, allocations: 10.8 kB / 450.4 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.4699, allocations: 37.5 kB / 450.4 MB, free: 32.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 3.857e-06/0.4699, allocations: 4 kB / 450.5 MB, free: 32.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.01001/0.4799, allocations: 2.38 MB / 452.8 MB, free: 31.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.48, allocations: 57.81 kB / 452.9 MB, free: 31.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005722/0.4806, allocations: 353 kB / 453.2 MB, free: 31.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.474e-05/0.4807, allocations: 32.42 kB / 453.3 MB, free: 31.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.4809, allocations: 227.6 kB / 453.5 MB, free: 30.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000205/0.4811, allocations: 188 kB / 453.7 MB, free: 30.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.04e-05/0.4812, allocations: 15.56 kB / 453.7 MB, free: 30.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4813, allocations: 356.1 kB / 454 MB, free: 30.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001507/0.4828, allocations: 400.7 kB / 454.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00163/0.4845, allocations: 444.5 kB / 454.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.4861, allocations: 393.6 kB / 455.2 MB, free: 29.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.4861, allocations: 3.938 kB / 455.2 MB, free: 29.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003744/0.4899, allocations: 0.9094 MB / 456.2 MB, free: 29.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.49, allocations: 5.156 kB / 456.2 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.49, allocations: 4.391 kB / 456.2 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.034e-05/0.49, allocations: 9.016 kB / 456.2 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01217/0.5022, allocations: 1.209 MB / 457.4 MB, free: 29.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.793e-05/0.5023, allocations: 3.938 kB / 457.4 MB, free: 29.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/0.5035, allocations: 81.64 kB / 457.5 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.416e-05/0.5036, allocations: 17.69 kB / 457.5 MB, free: 29.47 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false 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 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 (67): * Single equations (assignments): 67 * 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.0005586/0.5042, allocations: 200.7 kB / 457.7 MB, free: 29.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/0.5044, allocations: 40.91 kB / 457.7 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003817/0.5082, allocations: 0.9048 MB / 458.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.5083, allocations: 4.531 kB / 458.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.5083, allocations: 5.109 kB / 458.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.5083, allocations: 2.953 kB / 458.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006491/0.5148, allocations: 1.837 MB / 460.5 MB, free: 28.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.5149, allocations: 1.188 kB / 460.5 MB, free: 28.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01277/0.5277, allocations: 1.191 MB / 461.7 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.451e-05/0.5277, allocations: 6.953 kB / 461.7 MB, free: 27.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001808/0.5279, allocations: 16.03 kB / 461.7 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.457e-06/0.528, allocations: 3.562 kB / 461.7 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.528, allocations: 7.938 kB / 461.7 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005592/0.5336, allocations: 1.381 MB / 463.1 MB, free: 27.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002905/0.5339, allocations: 121.2 kB / 463.2 MB, free: 27.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001741/0.5341, allocations: 15.62 kB / 463.2 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.5352, allocations: 75.17 kB / 463.3 MB, free: 27.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/0.5355, allocations: 80.23 kB / 463.4 MB, free: 27.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.983e-05/0.5355, allocations: 15.91 kB / 463.4 MB, free: 27.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004398/0.536, allocations: 253.9 kB / 463.6 MB, free: 27.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.536, allocations: 0 / 463.6 MB, free: 27.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009159/0.537, allocations: 144.9 kB / 463.8 MB, free: 27.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (53): * Single equations (assignments): 53 * 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.005695/0.5427, allocations: 2.005 MB / 465.8 MB, free: 25.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003804/0.5465, allocations: 0.8545 MB / 466.6 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.5465, allocations: 0 / 466.6 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001878/0.5484, allocations: 455.4 kB / 467.1 MB, free: 25.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009613/0.5494, allocations: 102.1 kB / 467.2 MB, free: 25.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00728/0.5567, allocations: 3.288 MB / 470.5 MB, free: 23.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005872/0.5574, allocations: 0.8674 MB / 471.3 MB, free: 22.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008718/0.5583, allocations: 91.42 kB / 471.4 MB, free: 22.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000553/0.5588, allocations: 187.1 kB / 471.6 MB, free: 22.32 MB / 350.1 MB Notification: Performance of SimCode: time 1.263e-06/0.5588, allocations: 4 kB / 471.6 MB, free: 22.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03828/0.5971, allocations: 11.26 MB / 482.9 MB, free: 16.12 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001907/0.5974, allocations: 214.6 kB / 483.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.145/2.742, allocations: 0 / 483.1 MB, free: 15.88 MB / 350.1 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) Environment - environmentSimulation: