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.001077/0.001077, 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.001135/0.001135, allocations: 193 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.192/0.192, allocations: 22.35 MB / 312.7 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 67.89 kB / 380.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2455, allocations: 54.93 MB / 435.9 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003142/0.2487, allocations: 3.189 MB / 439.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.2498, allocations: 0.9019 MB / 440 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.2499, allocations: 9.5 kB / 440 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.2501, allocations: 64.06 kB / 440 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002546/0.2504, allocations: 165.5 kB / 440.2 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003815/0.2507, allocations: 199.6 kB / 440.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004311/0.2512, allocations: 0.7346 MB / 441.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004102/0.2516, allocations: 443.2 kB / 441.6 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000216/0.2518, allocations: 307 kB / 441.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003417/0.2522, allocations: 392.5 kB / 442.2 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.227e-05/0.2523, allocations: 81.91 kB / 442.3 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.2524, allocations: 77.69 kB / 442.4 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.2525, allocations: 205.2 kB / 442.6 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000219/0.2528, allocations: 340.6 kB / 442.9 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004313/0.2532, allocations: 0.7837 MB / 443.7 MB, free: 35.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2532, allocations: 2.812 kB / 443.7 MB, free: 35.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2532, allocations: 0 / 443.7 MB, free: 35.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2532, allocations: 0 / 443.7 MB, free: 35.08 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.001605/0.2548, allocations: 0.9011 MB / 444.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.934e-05/0.2549, allocations: 9.062 kB / 444.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.698e-05/0.255, allocations: 99.17 kB / 444.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.2551, allocations: 62.06 kB / 444.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003973/0.2555, allocations: 384.3 kB / 445.2 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.2556, allocations: 112.5 kB / 445.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.565e-05/0.2557, allocations: 52 kB / 445.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.2571, allocations: 0.6842 MB / 446 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.2571, allocations: 0 / 446 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-05/0.2572, allocations: 23.03 kB / 446 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-06/0.2572, allocations: 14.12 kB / 446 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.2585, allocations: 0.5943 MB / 446.6 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004526/0.263, allocations: 2.595 MB / 449.2 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.2641, allocations: 0.5295 MB / 449.8 MB, free: 31.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007796/0.2649, allocations: 402.4 kB / 450.2 MB, free: 31.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.19e-05/0.2649, allocations: 10.59 kB / 450.2 MB, free: 31.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.2649, allocations: 41.81 kB / 450.2 MB, free: 31.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.603e-06/0.2649, allocations: 0 / 450.2 MB, free: 31.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005142/0.2701, allocations: 2.157 MB / 452.4 MB, free: 30.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.32e-05/0.2701, allocations: 61.69 kB / 452.4 MB, free: 30.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003091/0.2704, allocations: 360.3 kB / 452.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.2705, allocations: 36.83 kB / 452.8 MB, free: 30.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.908e-05/0.2706, allocations: 232.1 kB / 453 MB, free: 30.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.895e-05/0.2707, allocations: 179.6 kB / 453.2 MB, free: 30.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.2709, allocations: 97.16 kB / 453.3 MB, free: 30.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.592e-05/0.2709, allocations: 353.7 kB / 453.7 MB, free: 29.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007749/0.2717, allocations: 370.5 kB / 454 MB, free: 29.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008283/0.2725, allocations: 415.9 kB / 454.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006524/0.2791, allocations: 1.976 MB / 456.4 MB, free: 28.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.2791, allocations: 0 / 456.4 MB, free: 28.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001849/0.2809, allocations: 0.8456 MB / 457.2 MB, free: 28.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.281, allocations: 9.281 kB / 457.3 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.281, allocations: 2.344 kB / 457.3 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.281, allocations: 6.484 kB / 457.3 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00627/0.2873, allocations: 0.9 MB / 458.2 MB, free: 28.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.2873, allocations: 3.984 kB / 458.2 MB, free: 28.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005374/0.2878, allocations: 62.73 kB / 458.2 MB, free: 28.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.962e-05/0.2879, allocations: 20.28 kB / 458.2 MB, free: 28.51 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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003037/0.2882, allocations: 210.4 kB / 458.5 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.156e-05/0.2883, allocations: 44.16 kB / 458.5 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001918/0.2902, allocations: 0.8138 MB / 459.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.842e-06/0.2903, allocations: 5.062 kB / 459.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2903, allocations: 1.031 kB / 459.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.2903, allocations: 2.531 kB / 459.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/0.2936, allocations: 1.737 MB / 461.1 MB, free: 27.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2936, allocations: 1.438 kB / 461.1 MB, free: 27.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006242/0.2998, allocations: 0.8872 MB / 461.9 MB, free: 27.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.468e-06/0.2998, allocations: 3.156 kB / 461.9 MB, free: 27.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.062e-05/0.2999, allocations: 16.64 kB / 462 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.2999, allocations: 7.219 kB / 462 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2999, allocations: 4 kB / 462 MB, free: 27.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002784/0.3027, allocations: 1.244 MB / 463.2 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.3028, allocations: 123.3 kB / 463.3 MB, free: 26.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.815e-05/0.3029, allocations: 14 kB / 463.4 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000533/0.3035, allocations: 52.97 kB / 463.4 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.3037, allocations: 71.86 kB / 463.5 MB, free: 26.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-05/0.3037, allocations: 17.08 kB / 463.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002768/0.304, allocations: 265.7 kB / 463.8 MB, free: 26.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.304, allocations: 0 / 463.8 MB, free: 26.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005456/0.3046, allocations: 140.6 kB / 463.9 MB, free: 26.23 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 (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.002931/0.3075, allocations: 1.799 MB / 465.7 MB, free: 25.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001998/0.3095, allocations: 0.8297 MB / 466.5 MB, free: 24.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3095, allocations: 0 / 466.5 MB, free: 24.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009222/0.3105, allocations: 406.9 kB / 466.9 MB, free: 24.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005672/0.311, allocations: 113.3 kB / 467 MB, free: 24.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.3215, allocations: 6.128 MB / 473.2 MB, free: 21.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.3218, allocations: 0.8539 MB / 474 MB, free: 20.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004408/0.3223, allocations: 91.58 kB / 474.1 MB, free: 20.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003457/0.3226, allocations: 186.4 kB / 474.3 MB, free: 20.55 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3226, allocations: 0 / 474.3 MB, free: 20.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04449/0.3671, allocations: 12.53 MB / 486.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.559/7.926, allocations: 7.531 kB / 486.8 MB, free: 10.51 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/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)