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.0009861/0.0009861, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007805/0.007805, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.349/1.349, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1782/0.1782, allocations: 22.35 MB / 313.8 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003117, allocations: 12 kB / 382.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2222, allocations: 55.96 MB / 438.7 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002167/0.2244, allocations: 3.043 MB / 441.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.2255, allocations: 0.925 MB / 442.6 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.2256, allocations: 6.719 kB / 442.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.2257, allocations: 46.22 kB / 442.7 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002378/0.226, allocations: 149 kB / 442.8 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.2263, allocations: 172.8 kB / 443 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000476/0.2268, allocations: 0.7978 MB / 443.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003624/0.2272, allocations: 382.1 kB / 444.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.2274, allocations: 265.7 kB / 444.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003061/0.2277, allocations: 360.5 kB / 444.8 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.62e-05/0.2278, allocations: 50.34 kB / 444.8 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.413e-05/0.2279, allocations: 47.59 kB / 444.9 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.228, allocations: 180 kB / 445.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001873/0.2282, allocations: 321.2 kB / 445.4 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003764/0.2285, allocations: 0.752 MB / 446.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.2285, allocations: 0 / 446.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2286, allocations: 0 / 446.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.2286, allocations: 0 / 446.1 MB, free: 35.12 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.001305/0.2299, allocations: 0.7984 MB / 446.9 MB, free: 34.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.2299, allocations: 15.62 kB / 446.9 MB, free: 34.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.379e-05/0.23, allocations: 95.84 kB / 447 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.159e-05/0.2301, allocations: 66.38 kB / 447.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.2305, allocations: 382.5 kB / 447.5 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.2306, allocations: 113.8 kB / 447.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.444e-05/0.2307, allocations: 52.31 kB / 447.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.232, allocations: 0.7319 MB / 448.4 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.232, allocations: 2.875 kB / 448.4 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.411e-05/0.2321, allocations: 19.81 kB / 448.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.2321, allocations: 12.25 kB / 448.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.2333, allocations: 0.6414 MB / 449 MB, free: 33.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004122/0.2374, allocations: 2.693 MB / 451.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009618/0.2384, allocations: 0.5704 MB / 452.3 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007557/0.2392, allocations: 443.5 kB / 452.7 MB, free: 31.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.2392, allocations: 8.625 kB / 452.7 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.315e-05/0.2392, allocations: 38.25 kB / 452.8 MB, free: 31.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.403e-06/0.2392, allocations: 0 / 452.8 MB, free: 31.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.004837/0.2441, allocations: 2.336 MB / 455.1 MB, free: 30.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.998e-05/0.2441, allocations: 65.88 kB / 455.2 MB, free: 30.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002949/0.2444, allocations: 363.3 kB / 455.5 MB, free: 30.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.2445, allocations: 32.36 kB / 455.6 MB, free: 30.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.907e-05/0.2446, allocations: 228.8 kB / 455.8 MB, free: 30.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.877e-05/0.2447, allocations: 184.2 kB / 456 MB, free: 30.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.167e-05/0.2447, allocations: 48.64 kB / 456 MB, free: 30.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.662e-05/0.2448, allocations: 356.5 kB / 456.4 MB, free: 29.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007866/0.2456, allocations: 402.3 kB / 456.8 MB, free: 29.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007858/0.2464, allocations: 448.4 kB / 457.2 MB, free: 29.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006116/0.2525, allocations: 2.216 MB / 459.4 MB, free: 28.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2525, allocations: 0 / 459.4 MB, free: 28.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001816/0.2544, allocations: 0.9177 MB / 460.3 MB, free: 28.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.2544, allocations: 10.44 kB / 460.3 MB, free: 28.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2544, allocations: 1.25 kB / 460.3 MB, free: 28.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.2544, allocations: 4.625 kB / 460.4 MB, free: 28.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006532/0.2609, allocations: 1.191 MB / 461.5 MB, free: 28.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.261, allocations: 8.5 kB / 461.6 MB, free: 28.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004986/0.2615, allocations: 78.7 kB / 461.6 MB, free: 28.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.2615, allocations: 21.86 kB / 461.7 MB, free: 28.5 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.0002485/0.2618, allocations: 212.9 kB / 461.9 MB, free: 28.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.996e-05/0.2619, allocations: 44.75 kB / 461.9 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.2637, allocations: 0.8836 MB / 462.8 MB, free: 27.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.2637, allocations: 5.625 kB / 462.8 MB, free: 27.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2638, allocations: 4.562 kB / 462.8 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.2638, allocations: 2.812 kB / 462.8 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003021/0.2668, allocations: 1.832 MB / 464.6 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2668, allocations: 1.375 kB / 464.6 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005811/0.2726, allocations: 1.176 MB / 465.8 MB, free: 27.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.073e-06/0.2726, allocations: 2.75 kB / 465.8 MB, free: 27.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.972e-05/0.2727, allocations: 17.11 kB / 465.8 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.2727, allocations: 3.594 kB / 465.8 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2727, allocations: 0 / 465.8 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.2753, allocations: 1.36 MB / 467.2 MB, free: 26.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.163e-05/0.2753, allocations: 119.3 kB / 467.3 MB, free: 26.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.58e-05/0.2754, allocations: 9.781 kB / 467.3 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004971/0.2759, allocations: 73.23 kB / 467.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.2761, allocations: 69.12 kB / 467.5 MB, free: 26.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.31e-05/0.2761, allocations: 21.28 kB / 467.5 MB, free: 26.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002297/0.2764, allocations: 257.5 kB / 467.7 MB, free: 26.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2764, allocations: 0 / 467.7 MB, free: 26.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004382/0.2768, allocations: 144.3 kB / 467.9 MB, free: 26.15 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.002679/0.2795, allocations: 1.907 MB / 469.8 MB, free: 25.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.2813, allocations: 0.8483 MB / 470.6 MB, free: 24.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2813, allocations: 1.031 kB / 470.6 MB, free: 24.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008593/0.2822, allocations: 442.2 kB / 471.1 MB, free: 24.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005438/0.2827, allocations: 110.7 kB / 471.2 MB, free: 24.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009583/0.2923, allocations: 6.67 MB / 477.8 MB, free: 20.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.2926, allocations: 0.8526 MB / 478.7 MB, free: 20.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003709/0.2929, allocations: 98.2 kB / 478.8 MB, free: 20.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003173/0.2933, allocations: 184.2 kB / 479 MB, free: 19.89 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2933, allocations: 0 / 479 MB, free: 19.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6948/0.9881, allocations: 11.59 MB / 490.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/0.9884, allocations: 210.5 kB / 490.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.25/3.238, allocations: 0 / 490.8 MB, free: 8.621 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)