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.001155/0.001155, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001159/0.00116, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.163/1.163, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1686/0.1686, allocations: 22.35 MB / 312.4 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 63.89 kB / 380.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2157, allocations: 54.94 MB / 435.3 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002999/0.2188, allocations: 3.412 MB / 438.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009864/0.2198, allocations: 0.9302 MB / 439.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.2199, allocations: 5.125 kB / 439.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.22, allocations: 54.33 kB / 439.7 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.2203, allocations: 150.6 kB / 439.9 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003465/0.2206, allocations: 165.1 kB / 440 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004122/0.221, allocations: 0.738 MB / 440.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003611/0.2214, allocations: 440.1 kB / 441.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.2216, allocations: 308.8 kB / 441.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002946/0.2219, allocations: 405 kB / 441.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.257e-05/0.222, allocations: 79.12 kB / 442 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.109e-05/0.2221, allocations: 77.25 kB / 442.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.2222, allocations: 203.9 kB / 442.3 MB, free: 35.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.2224, allocations: 345 kB / 442.6 MB, free: 34.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003878/0.2228, allocations: 0.785 MB / 443.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2228, allocations: 0 / 443.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2228, allocations: 0 / 443.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.2228, allocations: 0 / 443.4 MB, free: 34.66 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.001396/0.2242, allocations: 0.8999 MB / 444.3 MB, free: 34.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/0.2243, allocations: 15.72 kB / 444.3 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.124e-05/0.2243, allocations: 90.33 kB / 444.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.391e-05/0.2244, allocations: 59.62 kB / 444.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003558/0.2248, allocations: 390.6 kB / 444.8 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.592e-05/0.2249, allocations: 109.3 kB / 444.9 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.148e-05/0.225, allocations: 49.12 kB / 445 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.2262, allocations: 0.6856 MB / 445.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.2262, allocations: 1.938 kB / 445.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.363e-05/0.2263, allocations: 19.5 kB / 445.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.2263, allocations: 10.75 kB / 445.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.2274, allocations: 0.6049 MB / 446.3 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003914/0.2314, allocations: 2.598 MB / 448.9 MB, free: 31.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008759/0.2322, allocations: 0.5343 MB / 449.4 MB, free: 31.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006801/0.2329, allocations: 398.3 kB / 449.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.589e-05/0.233, allocations: 14.25 kB / 449.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.502e-05/0.233, allocations: 33.59 kB / 449.9 MB, free: 31.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.473e-06/0.233, allocations: 0 / 449.9 MB, free: 31.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.004346/0.2374, allocations: 2.168 MB / 452 MB, free: 30.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.778e-05/0.2374, allocations: 58.69 kB / 452.1 MB, free: 30.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/0.2376, allocations: 357.4 kB / 452.4 MB, free: 30.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.2377, allocations: 36.77 kB / 452.5 MB, free: 30.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.739e-05/0.2378, allocations: 230.1 kB / 452.7 MB, free: 29.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.895e-05/0.2379, allocations: 181.1 kB / 452.9 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.238, allocations: 97.8 kB / 453 MB, free: 29.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.744e-05/0.2381, allocations: 356.3 kB / 453.3 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006489/0.2387, allocations: 365.2 kB / 453.7 MB, free: 29.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006569/0.2394, allocations: 408.8 kB / 454.1 MB, free: 29.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005563/0.245, allocations: 1.982 MB / 456.1 MB, free: 28.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.245, allocations: 0 / 456.1 MB, free: 28.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001526/0.2465, allocations: 0.8469 MB / 456.9 MB, free: 28.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.2465, allocations: 9.031 kB / 456.9 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.2465, allocations: 1.375 kB / 456.9 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.2466, allocations: 4.062 kB / 456.9 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005169/0.2517, allocations: 0.8981 MB / 457.8 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.2518, allocations: 4.016 kB / 457.8 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004478/0.2522, allocations: 59.44 kB / 457.9 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.746e-05/0.2523, allocations: 19.92 kB / 457.9 MB, free: 28.11 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.0002341/0.2525, allocations: 206.4 kB / 458.1 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.7e-05/0.2526, allocations: 48.44 kB / 458.2 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.2543, allocations: 0.8227 MB / 459 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.2543, allocations: 5.375 kB / 459 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.2543, allocations: 0 / 459 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.2543, allocations: 2.25 kB / 459 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00272/0.257, allocations: 1.738 MB / 460.7 MB, free: 26.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.257, allocations: 0.7969 kB / 460.7 MB, free: 26.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005159/0.2622, allocations: 0.8833 MB / 461.6 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.2622, allocations: 8.188 kB / 461.6 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.175e-05/0.2623, allocations: 16.61 kB / 461.6 MB, free: 26.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.2623, allocations: 5.078 kB / 461.6 MB, free: 26.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2623, allocations: 1.781 kB / 461.6 MB, free: 26.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.2645, allocations: 1.247 MB / 462.9 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.865e-05/0.2646, allocations: 118.7 kB / 463 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.299e-05/0.2647, allocations: 14.64 kB / 463 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.2652, allocations: 56.69 kB / 463.1 MB, free: 25.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.2653, allocations: 69.05 kB / 463.1 MB, free: 25.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-05/0.2654, allocations: 20.31 kB / 463.2 MB, free: 25.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002227/0.2656, allocations: 258 kB / 463.4 MB, free: 25.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2656, allocations: 0 / 463.4 MB, free: 25.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004199/0.266, allocations: 144.3 kB / 463.6 MB, free: 25.81 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.002394/0.2684, allocations: 1.801 MB / 465.4 MB, free: 24.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001674/0.2701, allocations: 0.8328 MB / 466.2 MB, free: 24.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2701, allocations: 0.9062 kB / 466.2 MB, free: 24.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007485/0.2709, allocations: 411.9 kB / 466.6 MB, free: 24.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.2714, allocations: 108.7 kB / 466.7 MB, free: 24.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008816/0.2802, allocations: 6.307 MB / 473 MB, free: 20.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.2804, allocations: 0.8469 MB / 473.9 MB, free: 20.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003978/0.2808, allocations: 100 kB / 473.9 MB, free: 20.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000326/0.2812, allocations: 185.7 kB / 474.1 MB, free: 19.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2812, allocations: 0 / 474.1 MB, free: 19.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.073/4.354, allocations: 12.19 MB / 486.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/4.354, allocations: 213.3 kB / 486.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.761/7.116, allocations: 1.312 kB / 486.5 MB, free: 10.45 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)