Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",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.001542/0.001541, 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.001792/0.001792, allocations: 194.2 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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1834/0.1834, allocations: 22.36 MB / 312.7 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 71.88 kB / 381 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2201, allocations: 54.93 MB / 435.9 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003229/0.2233, allocations: 3.191 MB / 439.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.2245, allocations: 0.91 MB / 440 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.2247, allocations: 5.562 kB / 440 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.2248, allocations: 70.92 kB / 440.1 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002519/0.2251, allocations: 167.3 kB / 440.2 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003798/0.2255, allocations: 192 kB / 440.4 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000446/0.2259, allocations: 0.7392 MB / 441.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004174/0.2263, allocations: 445 kB / 441.6 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002229/0.2266, allocations: 309.6 kB / 441.9 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003368/0.2269, allocations: 400.7 kB / 442.3 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.438e-05/0.227, allocations: 75.62 kB / 442.4 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001101/0.2271, allocations: 77.75 kB / 442.4 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.2273, allocations: 208.2 kB / 442.6 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002202/0.2275, allocations: 335.2 kB / 443 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004506/0.228, allocations: 0.7915 MB / 443.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.228, allocations: 0 / 443.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.228, allocations: 0 / 443.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.228, allocations: 0 / 443.8 MB, free: 34.98 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001581/0.2296, allocations: 0.8939 MB / 444.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.974e-05/0.2296, allocations: 12.41 kB / 444.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.053e-05/0.2297, allocations: 110.2 kB / 444.8 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.2298, allocations: 60.62 kB / 444.8 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003996/0.2302, allocations: 386.4 kB / 445.2 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.2304, allocations: 113.5 kB / 445.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.914e-05/0.2305, allocations: 52.28 kB / 445.4 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.2318, allocations: 0.6874 MB / 446.1 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.2318, allocations: 0 / 446.1 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.148e-05/0.2319, allocations: 21.53 kB / 446.1 MB, free: 33.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.2319, allocations: 11.66 kB / 446.1 MB, free: 33.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.2332, allocations: 0.604 MB / 446.7 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004225/0.2375, allocations: 2.584 MB / 449.3 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.2385, allocations: 0.5562 MB / 449.8 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007853/0.2393, allocations: 412.5 kB / 450.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.2394, allocations: 6.781 kB / 450.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.497e-05/0.2394, allocations: 35 kB / 450.3 MB, free: 31.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.793e-06/0.2394, allocations: 0 / 450.3 MB, free: 31.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005168/0.2446, allocations: 2.194 MB / 452.5 MB, free: 30.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.677e-05/0.2446, allocations: 61.55 kB / 452.5 MB, free: 30.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.2449, allocations: 352.8 kB / 452.9 MB, free: 30.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.313e-05/0.245, allocations: 36.83 kB / 452.9 MB, free: 30.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.611e-05/0.2451, allocations: 227.5 kB / 453.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.2452, allocations: 201.5 kB / 453.3 MB, free: 30 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.2453, allocations: 91.7 kB / 453.4 MB, free: 29.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.79e-05/0.2454, allocations: 353.5 kB / 453.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007797/0.2462, allocations: 368.1 kB / 454.1 MB, free: 29.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007945/0.247, allocations: 416.5 kB / 454.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006443/0.2535, allocations: 1.992 MB / 456.5 MB, free: 28.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2535, allocations: 0 / 456.5 MB, free: 28.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001804/0.2553, allocations: 0.8535 MB / 457.4 MB, free: 28.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.2553, allocations: 4.5 kB / 457.4 MB, free: 28.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2553, allocations: 2.188 kB / 457.4 MB, free: 28.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.2553, allocations: 4.078 kB / 457.4 MB, free: 28.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006229/0.2616, allocations: 0.9093 MB / 458.3 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.2616, allocations: 5.734 kB / 458.3 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000529/0.2621, allocations: 62.73 kB / 458.4 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.072e-05/0.2622, allocations: 20.64 kB / 458.4 MB, free: 28.39 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: 6 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0002893/0.2625, allocations: 196.2 kB / 458.6 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.652e-05/0.2626, allocations: 53.3 kB / 458.6 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/0.2645, allocations: 0.8369 MB / 459.5 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2645, allocations: 9.5 kB / 459.5 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.2646, allocations: 0 / 459.5 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.2646, allocations: 7.844 kB / 459.5 MB, free: 27.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003096/0.2677, allocations: 1.747 MB / 461.2 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2677, allocations: 0 / 461.2 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006271/0.274, allocations: 0.8985 MB / 462.1 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.274, allocations: 2.562 kB / 462.1 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.507e-05/0.274, allocations: 17.75 kB / 462.1 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.274, allocations: 1.531 kB / 462.1 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2741, allocations: 5.188 kB / 462.2 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.2767, allocations: 1.269 MB / 463.4 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.692e-05/0.2768, allocations: 116.8 kB / 463.5 MB, free: 26.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.233e-05/0.2769, allocations: 12.3 kB / 463.5 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000531/0.2774, allocations: 55.58 kB / 463.6 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.2776, allocations: 73.2 kB / 463.7 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-05/0.2776, allocations: 20.73 kB / 463.7 MB, free: 26.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002285/0.2779, allocations: 260.9 kB / 463.9 MB, free: 26.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2779, allocations: 0 / 463.9 MB, free: 26.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004553/0.2783, allocations: 145.1 kB / 464.1 MB, free: 26.09 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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.002805/0.2811, allocations: 1.825 MB / 465.9 MB, free: 25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001905/0.2831, allocations: 0.8467 MB / 466.8 MB, free: 24.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2831, allocations: 1.375 kB / 466.8 MB, free: 24.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008886/0.284, allocations: 419.9 kB / 467.2 MB, free: 24.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005521/0.2845, allocations: 107.3 kB / 467.3 MB, free: 24.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009405/0.2939, allocations: 6.055 MB / 473.3 MB, free: 21.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.2942, allocations: 0.8488 MB / 474.2 MB, free: 20.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004363/0.2947, allocations: 99.23 kB / 474.3 MB, free: 20.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003467/0.295, allocations: 186.9 kB / 474.5 MB, free: 20.39 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.295, allocations: 1.375 kB / 474.5 MB, free: 20.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4685/0.7635, allocations: 12.63 MB / 487.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.497/8.261, allocations: 3.156 kB / 487.1 MB, free: 10.26 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)