Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",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.0008449/0.0008449, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009143/0.0009143, allocations: 168.7 kB / 15.95 MB, free: 204 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.327/1.327, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1876/0.1876, allocations: 22.34 MB / 313.4 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003269, allocations: 8 kB / 382 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2527, allocations: 55.97 MB / 438 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002235/0.2549, allocations: 2.895 MB / 440.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.2561, allocations: 0.8963 MB / 441.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.2562, allocations: 6 kB / 441.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.2564, allocations: 48.86 kB / 441.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.2566, allocations: 179.5 kB / 442 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003622/0.257, allocations: 138 kB / 442.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004735/0.2575, allocations: 0.7339 MB / 442.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003616/0.2579, allocations: 352 kB / 443.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.2581, allocations: 269.3 kB / 443.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003252/0.2584, allocations: 356 kB / 443.9 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.03e-05/0.2585, allocations: 49.36 kB / 443.9 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.299e-05/0.2586, allocations: 47.19 kB / 444 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.2587, allocations: 167.6 kB / 444.1 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.452e-05/0.2588, allocations: 123.9 kB / 444.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.2591, allocations: 0.5817 MB / 444.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2591, allocations: 0 / 444.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2591, allocations: 3.328 kB / 444.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.2592, allocations: 2.906 kB / 444.8 MB, free: 35.38 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.00133/0.2605, allocations: 0.8026 MB / 445.6 MB, free: 34.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.2605, allocations: 12.78 kB / 445.6 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.788e-05/0.2606, allocations: 99.58 kB / 445.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.443e-05/0.2607, allocations: 69.66 kB / 445.8 MB, free: 34.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004803/0.2612, allocations: 373.7 kB / 446.2 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.2614, allocations: 111.6 kB / 446.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.2615, allocations: 48.78 kB / 446.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/0.2631, allocations: 0.7267 MB / 447.1 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.2631, allocations: 0 / 447.1 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.435e-05/0.2632, allocations: 18.91 kB / 447.1 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.2632, allocations: 17.53 kB / 447.1 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.2645, allocations: 0.6387 MB / 447.7 MB, free: 33.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004208/0.2687, allocations: 2.683 MB / 450.4 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000954/0.2696, allocations: 0.5692 MB / 451 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007301/0.2704, allocations: 443.5 kB / 451.4 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.981e-05/0.2704, allocations: 7.141 kB / 451.4 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.2705, allocations: 41.56 kB / 451.5 MB, free: 32.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.853e-06/0.2705, allocations: 2.656 kB / 451.5 MB, free: 32.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005058/0.2755, allocations: 2.336 MB / 453.8 MB, free: 31.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.2756, allocations: 57.22 kB / 453.9 MB, free: 31.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003788/0.276, allocations: 357.2 kB / 454.2 MB, free: 30.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.252e-05/0.276, allocations: 33.17 kB / 454.2 MB, free: 30.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.2761, allocations: 228.3 kB / 454.5 MB, free: 30.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.2763, allocations: 185.9 kB / 454.6 MB, free: 30.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.78e-05/0.2763, allocations: 14.81 kB / 454.7 MB, free: 30.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.355e-05/0.2764, allocations: 353 kB / 455 MB, free: 30.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007341/0.2771, allocations: 400.2 kB / 455.4 MB, free: 30.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007879/0.2779, allocations: 442.1 kB / 455.8 MB, free: 29.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007598/0.2787, allocations: 388.4 kB / 456.2 MB, free: 29.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2787, allocations: 5.312 kB / 456.2 MB, free: 29.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001747/0.2805, allocations: 0.9105 MB / 457.1 MB, free: 29.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.2805, allocations: 4.781 kB / 457.1 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.2805, allocations: 1.406 kB / 457.1 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.2805, allocations: 9.078 kB / 457.1 MB, free: 29.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00549/0.286, allocations: 1.191 MB / 458.3 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/0.2861, allocations: 3.344 kB / 458.3 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005471/0.2866, allocations: 75.59 kB / 458.4 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.167e-05/0.2867, allocations: 22.08 kB / 458.4 MB, free: 29.27 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: 7 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.000308/0.287, allocations: 197.9 kB / 458.6 MB, free: 29.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.808e-05/0.2871, allocations: 48.69 kB / 458.7 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/0.289, allocations: 0.8905 MB / 459.6 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.289, allocations: 8.969 kB / 459.6 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.289, allocations: 1.219 kB / 459.6 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.289, allocations: 2.25 kB / 459.6 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/0.2923, allocations: 1.828 MB / 461.4 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.2923, allocations: 2.281 kB / 461.4 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005377/0.2977, allocations: 1.176 MB / 462.6 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.2977, allocations: 2.062 kB / 462.6 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.208e-05/0.2978, allocations: 17.05 kB / 462.6 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.2978, allocations: 8.328 kB / 462.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2978, allocations: 3.953 kB / 462.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002596/0.3004, allocations: 1.346 MB / 464 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.3005, allocations: 115.6 kB / 464.1 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.851e-05/0.3006, allocations: 21.88 kB / 464.1 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/0.3011, allocations: 73.06 kB / 464.2 MB, free: 27.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.3013, allocations: 79.55 kB / 464.2 MB, free: 27.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.381e-05/0.3014, allocations: 13.89 kB / 464.3 MB, free: 27.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002676/0.3016, allocations: 253.7 kB / 464.5 MB, free: 26.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3016, allocations: 4 kB / 464.5 MB, free: 26.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005165/0.3022, allocations: 144.8 kB / 464.6 MB, free: 26.91 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 51 * 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.002767/0.3049, allocations: 1.905 MB / 466.5 MB, free: 25.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.3067, allocations: 0.8466 MB / 467.4 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3068, allocations: 384 / 467.4 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008649/0.3076, allocations: 445.1 kB / 467.8 MB, free: 25.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005976/0.3082, allocations: 110.3 kB / 467.9 MB, free: 25.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008726/0.317, allocations: 4.687 MB / 472.6 MB, free: 23.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004457/0.3175, allocations: 0.8551 MB / 473.5 MB, free: 22.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005252/0.318, allocations: 95.2 kB / 473.6 MB, free: 22.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003744/0.3184, allocations: 183.8 kB / 473.8 MB, free: 22.28 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3184, allocations: 0 / 473.8 MB, free: 22.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02284/0.3412, allocations: 11.47 MB / 485.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000126/0.3414, allocations: 198.2 kB / 485.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.93/2.271, allocations: 4 kB / 485.4 MB, free: 13.53 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1) Environment - environmentSimulation: