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.001063/0.001063, allocations: 100.2 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.001227/0.001227, 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.419/1.419, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2297/0.2297, allocations: 22.35 MB / 313.3 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004444/0.0004444, allocations: 8 kB / 381.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.2998, allocations: 55.97 MB / 437.9 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002498/0.3023, allocations: 2.686 MB / 440.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.3039, allocations: 0.9323 MB / 441.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001837/0.3041, allocations: 9.531 kB / 441.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.3042, allocations: 49.03 kB / 441.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002556/0.3045, allocations: 168.1 kB / 441.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004488/0.3049, allocations: 146.6 kB / 441.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004293/0.3054, allocations: 462.3 kB / 442.3 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003942/0.3058, allocations: 348.4 kB / 442.7 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.306, allocations: 251.6 kB / 442.9 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003346/0.3064, allocations: 332.4 kB / 443.2 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.138e-05/0.3065, allocations: 43.12 kB / 443.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.039e-05/0.3065, allocations: 47.09 kB / 443.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.3067, allocations: 159.8 kB / 443.5 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.3068, allocations: 125.1 kB / 443.6 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003851/0.3072, allocations: 0.5776 MB / 444.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3072, allocations: 0 / 444.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3072, allocations: 4 kB / 444.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3072, allocations: 0 / 444.2 MB, free: 35.42 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.001493/0.3087, allocations: 0.8131 MB / 445 MB, free: 34.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.3088, allocations: 8.719 kB / 445 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001077/0.3089, allocations: 97.39 kB / 445.1 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.309, allocations: 68.44 kB / 445.2 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004535/0.3094, allocations: 372.2 kB / 445.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.3096, allocations: 110.5 kB / 445.6 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.853e-05/0.3097, allocations: 52.5 kB / 445.7 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.3111, allocations: 0.721 MB / 446.4 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.3111, allocations: 4 kB / 446.4 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.477e-05/0.3112, allocations: 21.75 kB / 446.4 MB, free: 34.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.3112, allocations: 11.91 kB / 446.4 MB, free: 34.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001258/0.3124, allocations: 0.6392 MB / 447.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004739/0.3172, allocations: 2.686 MB / 449.8 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009998/0.3182, allocations: 0.5742 MB / 450.3 MB, free: 32.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.251e-05/0.3183, allocations: 8.531 kB / 450.4 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.95e-05/0.3183, allocations: 37.62 kB / 450.4 MB, free: 32.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 3.046e-06/0.3183, allocations: 0 / 450.4 MB, free: 32.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005117/0.3234, allocations: 2.335 MB / 452.7 MB, free: 31.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.3235, allocations: 61.09 kB / 452.8 MB, free: 31.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003197/0.3238, allocations: 357.9 kB / 453.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.409e-05/0.3239, allocations: 36.61 kB / 453.2 MB, free: 31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.324, allocations: 230.4 kB / 453.4 MB, free: 30.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3241, allocations: 180.7 kB / 453.6 MB, free: 30.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.772e-05/0.3241, allocations: 11.81 kB / 453.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.901e-05/0.3242, allocations: 357.3 kB / 453.9 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007556/0.325, allocations: 400.5 kB / 454.3 MB, free: 30.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007657/0.3257, allocations: 444.1 kB / 454.8 MB, free: 30.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007683/0.3265, allocations: 382.2 kB / 455.1 MB, free: 29.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3265, allocations: 0 / 455.1 MB, free: 29.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001885/0.3284, allocations: 0.915 MB / 456 MB, free: 29.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3285, allocations: 5.156 kB / 456.1 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.3285, allocations: 1.375 kB / 456.1 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.3285, allocations: 9.359 kB / 456.1 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006063/0.3346, allocations: 1.189 MB / 457.3 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.271e-05/0.3346, allocations: 11.36 kB / 457.3 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006885/0.3353, allocations: 77.72 kB / 457.3 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.817e-05/0.3354, allocations: 21.77 kB / 457.4 MB, free: 29.44 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.0003748/0.3358, allocations: 192.2 kB / 457.5 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.175e-05/0.3359, allocations: 47.84 kB / 457.6 MB, free: 29.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.3378, allocations: 0.8897 MB / 458.5 MB, free: 28.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.3378, allocations: 4.312 kB / 458.5 MB, free: 28.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3379, allocations: 4.984 kB / 458.5 MB, free: 28.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.3379, allocations: 11.22 kB / 458.5 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003349/0.3412, allocations: 1.819 MB / 460.3 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.3413, allocations: 0.6094 kB / 460.3 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006279/0.3475, allocations: 1.176 MB / 461.5 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.786e-05/0.3476, allocations: 6.625 kB / 461.5 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001364/0.3477, allocations: 17.08 kB / 461.5 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.3477, allocations: 6.5 kB / 461.5 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.3478, allocations: 1.312 kB / 461.5 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002763/0.3505, allocations: 1.364 MB / 462.9 MB, free: 27.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.3507, allocations: 119.8 kB / 463 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.3508, allocations: 13.66 kB / 463 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005394/0.3514, allocations: 69.19 kB / 463.1 MB, free: 27.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.3515, allocations: 75.44 kB / 463.2 MB, free: 27.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-05/0.3516, allocations: 20.86 kB / 463.2 MB, free: 27.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002742/0.3519, allocations: 254.6 kB / 463.4 MB, free: 27.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3519, allocations: 0 / 463.4 MB, free: 27.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005138/0.3524, allocations: 144.5 kB / 463.6 MB, free: 27.08 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.002958/0.3554, allocations: 1.991 MB / 465.6 MB, free: 25.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001917/0.3573, allocations: 0.841 MB / 466.4 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3573, allocations: 192 / 466.4 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009128/0.3582, allocations: 445.5 kB / 466.8 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.000588/0.3588, allocations: 100 kB / 466.9 MB, free: 25.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004837/0.3637, allocations: 3.523 MB / 470.5 MB, free: 23.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.364, allocations: 0.8629 MB / 471.3 MB, free: 22.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004667/0.3645, allocations: 94.59 kB / 471.4 MB, free: 22.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003395/0.3649, allocations: 185.8 kB / 471.6 MB, free: 22.18 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3649, allocations: 1.375 kB / 471.6 MB, free: 22.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.743/2.108, allocations: 11.18 MB / 482.8 MB, free: 16.1 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001356/2.108, allocations: 188.6 kB / 483 MB, free: 15.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/4.257, allocations: 0 / 483 MB, free: 15.86 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: