Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",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.00115/0.00115, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001118/0.001118, allocations: 191 kB / 16.25 MB, free: 6.633 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.187/1.187, 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.173/0.173, allocations: 22.37 MB / 312.5 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.91 kB / 380.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.2189, allocations: 54.94 MB / 435.4 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.003442/0.2223, allocations: 4.547 MB / 439.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.2237, allocations: 1.217 MB / 441.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.2238, allocations: 7.875 kB / 441.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.224, allocations: 77.77 kB / 441.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003257/0.2244, allocations: 236.8 kB / 441.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000445/0.2248, allocations: 257.8 kB / 441.7 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006101/0.2254, allocations: 1.181 MB / 442.9 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004834/0.2259, allocations: 0.6733 MB / 443.5 MB, free: 34.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002904/0.2262, allocations: 483.3 kB / 444 MB, free: 34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004307/0.2267, allocations: 0.6186 MB / 444.6 MB, free: 33.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.2268, allocations: 117.6 kB / 444.7 MB, free: 33.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.2269, allocations: 121 kB / 444.9 MB, free: 33.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.2271, allocations: 325.4 kB / 445.2 MB, free: 33.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000294/0.2274, allocations: 0.5352 MB / 445.7 MB, free: 33.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006035/0.228, allocations: 1.237 MB / 447 MB, free: 32.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.228, allocations: 2.844 kB / 447 MB, free: 32.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.228, allocations: 0 / 447 MB, free: 32.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.208e-06/0.228, allocations: 0 / 447 MB, free: 32.74 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.001996/0.23, allocations: 1.253 MB / 448.2 MB, free: 31.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.635e-05/0.23, allocations: 7.812 kB / 448.2 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.2302, allocations: 134.3 kB / 448.4 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.2303, allocations: 95 kB / 448.4 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004853/0.2308, allocations: 0.5151 MB / 449 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.2309, allocations: 163.1 kB / 449.1 MB, free: 31.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.231, allocations: 85.25 kB / 449.2 MB, free: 31.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.2327, allocations: 1.011 MB / 450.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.2328, allocations: 7.938 kB / 450.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.109e-05/0.2329, allocations: 31.66 kB / 450.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.2329, allocations: 17.69 kB / 450.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001571/0.2344, allocations: 0.9016 MB / 451.2 MB, free: 30.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005007/0.2395, allocations: 3.564 MB / 454.7 MB, free: 28.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.241, allocations: 0.9074 MB / 455.6 MB, free: 28.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.2421, allocations: 0.6249 MB / 456.3 MB, free: 28.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.143e-05/0.2421, allocations: 13.17 kB / 456.3 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.469e-05/0.2421, allocations: 50.59 kB / 456.3 MB, free: 28.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 1.694e-06/0.2422, allocations: 0 / 456.3 MB, free: 28.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.006055/0.2482, allocations: 3.012 MB / 459.3 MB, free: 26.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.158e-05/0.2482, allocations: 65.41 kB / 459.4 MB, free: 26.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004582/0.2487, allocations: 0.5121 MB / 459.9 MB, free: 26.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.695e-05/0.2488, allocations: 37.33 kB / 460 MB, free: 26.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.2489, allocations: 326.2 kB / 460.3 MB, free: 26.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.2491, allocations: 301.9 kB / 460.6 MB, free: 26.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/0.2493, allocations: 154.7 kB / 460.7 MB, free: 25.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.074e-05/0.2494, allocations: 386.5 kB / 461.1 MB, free: 25.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.2504, allocations: 0.5325 MB / 461.6 MB, free: 25.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.2514, allocations: 0.6032 MB / 462.2 MB, free: 25.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008807/0.2603, allocations: 3.043 MB / 465.3 MB, free: 24.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.2603, allocations: 1.031 kB / 465.3 MB, free: 24.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002288/0.2626, allocations: 1.273 MB / 466.5 MB, free: 23.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.2626, allocations: 10.91 kB / 466.6 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.2626, allocations: 2.75 kB / 466.6 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.2626, allocations: 5.5 kB / 466.6 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005918/0.2685, allocations: 1.03 MB / 467.6 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.2686, allocations: 6.625 kB / 467.6 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006576/0.2692, allocations: 74.03 kB / 467.7 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.289e-05/0.2693, allocations: 35.69 kB / 467.7 MB, free: 23.74 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.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 HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.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: 10 * 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 (112): * Single equations (assignments): 112 * 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.0003516/0.2697, allocations: 258.7 kB / 468 MB, free: 23.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.2698, allocations: 69.75 kB / 468 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00231/0.2721, allocations: 1.2 MB / 469.2 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.2721, allocations: 9.75 kB / 469.2 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2721, allocations: 4 kB / 469.2 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.2721, allocations: 5.609 kB / 469.2 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003788/0.2759, allocations: 2.376 MB / 471.6 MB, free: 21.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.276, allocations: 6.219 kB / 471.6 MB, free: 21.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006154/0.2821, allocations: 1.005 MB / 472.6 MB, free: 21.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.2821, allocations: 8.312 kB / 472.6 MB, free: 21.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.123e-05/0.2822, allocations: 27.55 kB / 472.7 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.2822, allocations: 9.25 kB / 472.7 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.2822, allocations: 1.844 kB / 472.7 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003142/0.2854, allocations: 1.815 MB / 474.5 MB, free: 21.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.875e-05/0.2855, allocations: 149.7 kB / 474.6 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.2856, allocations: 22.11 kB / 474.7 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006673/0.2863, allocations: 72.02 kB / 474.7 MB, free: 20.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.2865, allocations: 101.9 kB / 474.8 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.381e-05/0.2866, allocations: 26.73 kB / 474.9 MB, free: 20.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003246/0.2869, allocations: 367.4 kB / 475.2 MB, free: 20.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2869, allocations: 0 / 475.2 MB, free: 20.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005642/0.2875, allocations: 235 kB / 475.4 MB, free: 20.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * 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 simulation (85): * Single equations (assignments): 85 * 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.003218/0.2907, allocations: 2.39 MB / 477.8 MB, free: 19.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002306/0.293, allocations: 1.314 MB / 479.2 MB, free: 17.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2931, allocations: 0 / 479.2 MB, free: 17.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009374/0.294, allocations: 0.5781 MB / 479.7 MB, free: 17.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006446/0.2947, allocations: 166.1 kB / 479.9 MB, free: 16.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.306, allocations: 9.338 MB / 489.2 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.3063, allocations: 0.9621 MB / 490.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005539/0.3069, allocations: 165.8 kB / 490.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004459/0.3073, allocations: 311.3 kB / 490.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3073, allocations: 0 / 490.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.759/4.066, allocations: 18.46 MB / 0.4972 GB, free: 3.836 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003247/4.067, allocations: 205.3 kB / 0.4974 GB, free: 3.582 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.073/7.14, allocations: 3.938 kB / 0.4974 GB, free: 3.578 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)