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.00118/0.00118, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 193.1 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2162/0.2162, allocations: 22.37 MB / 312.8 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 59.91 kB / 381 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2665, allocations: 54.94 MB / 435.9 MB, free: 39.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003627/0.2701, allocations: 3.196 MB / 439.1 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.2714, allocations: 0.9147 MB / 440 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.2716, allocations: 2.812 kB / 440 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.2717, allocations: 72.31 kB / 440.1 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002635/0.272, allocations: 165.2 kB / 440.2 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.2724, allocations: 199.6 kB / 440.4 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004976/0.2729, allocations: 0.7356 MB / 441.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004548/0.2734, allocations: 450.6 kB / 441.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000243/0.2737, allocations: 312.2 kB / 441.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003586/0.274, allocations: 385.9 kB / 442.3 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.839e-05/0.2741, allocations: 76.25 kB / 442.4 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.2742, allocations: 78.75 kB / 442.4 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.2744, allocations: 213.1 kB / 442.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.2746, allocations: 338.5 kB / 443 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004535/0.2751, allocations: 0.7935 MB / 443.8 MB, free: 35.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.2751, allocations: 0 / 443.8 MB, free: 35.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2751, allocations: 0 / 443.8 MB, free: 35.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.2751, allocations: 0 / 443.8 MB, free: 35.01 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.001611/0.2767, allocations: 0.8988 MB / 444.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2767, allocations: 8.531 kB / 444.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.886e-05/0.2768, allocations: 97.92 kB / 444.8 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.277, allocations: 60.41 kB / 444.8 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004263/0.2774, allocations: 395.1 kB / 445.2 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.2775, allocations: 107 kB / 445.3 MB, free: 33.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.794e-05/0.2776, allocations: 58.25 kB / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.279, allocations: 0.6891 MB / 446.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.279, allocations: 0 / 446.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.037e-05/0.2791, allocations: 25.88 kB / 446.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.2791, allocations: 11.06 kB / 446.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.2804, allocations: 0.601 MB / 446.7 MB, free: 33.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004366/0.2848, allocations: 2.585 MB / 449.3 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.2859, allocations: 0.5448 MB / 449.8 MB, free: 31.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007934/0.2867, allocations: 413.3 kB / 450.2 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.121e-05/0.2868, allocations: 6.391 kB / 450.2 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.027e-05/0.2868, allocations: 37.62 kB / 450.3 MB, free: 31.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.385e-06/0.2868, allocations: 0 / 450.3 MB, free: 31.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005245/0.2921, allocations: 2.201 MB / 452.5 MB, free: 30.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.2921, allocations: 57.75 kB / 452.5 MB, free: 30.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003296/0.2925, allocations: 358.5 kB / 452.9 MB, free: 30.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.343e-05/0.2925, allocations: 36.98 kB / 452.9 MB, free: 30.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.2926, allocations: 229 kB / 453.2 MB, free: 30.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.2928, allocations: 189.4 kB / 453.3 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.293, allocations: 92.94 kB / 453.4 MB, free: 30 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.165e-05/0.2931, allocations: 353.7 kB / 453.8 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007756/0.2938, allocations: 369.2 kB / 454.1 MB, free: 29.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008005/0.2946, allocations: 416.7 kB / 454.5 MB, free: 29.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006701/0.3014, allocations: 2 MB / 456.5 MB, free: 28.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3014, allocations: 0 / 456.5 MB, free: 28.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001836/0.3032, allocations: 0.8484 MB / 457.4 MB, free: 28.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.3033, allocations: 5.625 kB / 457.4 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.3033, allocations: 3.203 kB / 457.4 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.593e-05/0.3033, allocations: 7.781 kB / 457.4 MB, free: 28.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006178/0.3095, allocations: 0.9059 MB / 458.3 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/0.3095, allocations: 8.516 kB / 458.3 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005921/0.3101, allocations: 63.44 kB / 458.4 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-05/0.3102, allocations: 19.62 kB / 458.4 MB, free: 28.42 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003577/0.3106, allocations: 197.1 kB / 458.6 MB, free: 28.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.3107, allocations: 49.22 kB / 458.6 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001952/0.3126, allocations: 0.8356 MB / 459.5 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.3126, allocations: 6.516 kB / 459.5 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3127, allocations: 1.156 kB / 459.5 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.3127, allocations: 5.828 kB / 459.5 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/0.3159, allocations: 1.752 MB / 461.2 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3159, allocations: 0 / 461.2 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006185/0.3221, allocations: 0.9028 MB / 462.1 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-05/0.3222, allocations: 2.844 kB / 462.1 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.327e-05/0.3222, allocations: 17.22 kB / 462.2 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.3223, allocations: 1.438 kB / 462.2 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3223, allocations: 1.062 kB / 462.2 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002749/0.325, allocations: 1.269 MB / 463.4 MB, free: 26.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.3251, allocations: 116 kB / 463.6 MB, free: 26.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.947e-05/0.3252, allocations: 14.5 kB / 463.6 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005311/0.3258, allocations: 57.62 kB / 463.6 MB, free: 26.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.326, allocations: 73.56 kB / 463.7 MB, free: 26.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.767e-05/0.326, allocations: 18.41 kB / 463.7 MB, free: 26.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002828/0.3263, allocations: 260.2 kB / 464 MB, free: 26.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3263, allocations: 0 / 464 MB, free: 26.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005637/0.3269, allocations: 145.6 kB / 464.1 MB, free: 26.12 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002907/0.3298, allocations: 1.827 MB / 465.9 MB, free: 25.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.3319, allocations: 0.8432 MB / 466.8 MB, free: 24.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.3319, allocations: 1.375 kB / 466.8 MB, free: 24.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008931/0.3328, allocations: 417.1 kB / 467.2 MB, free: 24.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005901/0.3334, allocations: 113.9 kB / 467.3 MB, free: 24.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009706/0.3431, allocations: 6.052 MB / 473.3 MB, free: 21.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.3434, allocations: 0.8517 MB / 474.2 MB, free: 20.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004634/0.3439, allocations: 92.62 kB / 474.3 MB, free: 20.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003558/0.3443, allocations: 188 kB / 474.5 MB, free: 20.43 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3443, allocations: 0 / 474.5 MB, free: 20.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.3739, allocations: 12.65 MB / 487.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.271, allocations: 4.062 kB / 487.1 MB, free: 10.27 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload_res.csv --start-time 0 --stop-time 20000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 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)