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.001147/0.001147, 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.001104/0.001104, allocations: 191.4 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.157/1.157, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1658/0.1658, allocations: 22.34 MB / 312.4 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 63.91 kB / 380.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2046, allocations: 54.94 MB / 435.3 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.00277/0.2074, allocations: 3.433 MB / 438.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009771/0.2084, allocations: 0.9324 MB / 439.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.2085, allocations: 3.844 kB / 439.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.2086, allocations: 50.77 kB / 439.8 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.2089, allocations: 151.2 kB / 439.9 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.2092, allocations: 168.5 kB / 440.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003865/0.2096, allocations: 0.7388 MB / 440.8 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003377/0.21, allocations: 442 kB / 441.3 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001885/0.2101, allocations: 310.8 kB / 441.6 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002775/0.2104, allocations: 401.3 kB / 441.9 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.011e-05/0.2105, allocations: 76 kB / 442 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.957e-05/0.2106, allocations: 77.69 kB / 442.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.2107, allocations: 209 kB / 442.3 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001848/0.2109, allocations: 348.2 kB / 442.6 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003696/0.2113, allocations: 0.7866 MB / 443.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.2113, allocations: 2.688 kB / 443.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2113, allocations: 0 / 443.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.2113, allocations: 0 / 443.4 MB, free: 34.79 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.001349/0.2126, allocations: 0.8939 MB / 444.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.841e-05/0.2127, allocations: 15.38 kB / 444.3 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.457e-05/0.2128, allocations: 93.36 kB / 444.4 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.886e-05/0.2129, allocations: 59.84 kB / 444.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003382/0.2132, allocations: 391.4 kB / 444.9 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.154e-05/0.2133, allocations: 107.9 kB / 445 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.649e-05/0.2134, allocations: 55.55 kB / 445 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.2146, allocations: 0.685 MB / 445.7 MB, free: 33.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.2146, allocations: 3.938 kB / 445.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.104e-05/0.2147, allocations: 25.88 kB / 445.7 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.2147, allocations: 16.14 kB / 445.8 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.2158, allocations: 0.6067 MB / 446.4 MB, free: 33.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003616/0.2194, allocations: 2.583 MB / 449 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008988/0.2203, allocations: 0.5512 MB / 449.5 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006702/0.221, allocations: 408.3 kB / 449.9 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.335e-05/0.221, allocations: 9.891 kB / 449.9 MB, free: 31.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.32e-05/0.2211, allocations: 37.59 kB / 449.9 MB, free: 31.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.483e-06/0.2211, allocations: 0 / 449.9 MB, free: 31.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004325/0.2254, allocations: 2.198 MB / 452.1 MB, free: 30.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.759e-05/0.2254, allocations: 55.03 kB / 452.2 MB, free: 30.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002413/0.2257, allocations: 355.7 kB / 452.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.2257, allocations: 36.61 kB / 452.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.585e-05/0.2258, allocations: 230.9 kB / 452.8 MB, free: 29.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.107e-05/0.2259, allocations: 190.6 kB / 453 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.226, allocations: 92.45 kB / 453.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.848e-05/0.2261, allocations: 356.8 kB / 453.4 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006736/0.2268, allocations: 365.9 kB / 453.8 MB, free: 29.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007042/0.2275, allocations: 412.8 kB / 454.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005565/0.2331, allocations: 2.003 MB / 456.2 MB, free: 28.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2331, allocations: 0 / 456.2 MB, free: 28.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001552/0.2346, allocations: 0.8539 MB / 457 MB, free: 28.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.2347, allocations: 6.438 kB / 457.1 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2347, allocations: 1.094 kB / 457.1 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.2347, allocations: 3.656 kB / 457.1 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00524/0.2399, allocations: 0.9041 MB / 458 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.2399, allocations: 8.344 kB / 458 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004566/0.2404, allocations: 63.59 kB / 458 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.2405, allocations: 21 kB / 458.1 MB, free: 28.2 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.0002313/0.2407, allocations: 204 kB / 458.3 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.313e-05/0.2408, allocations: 45.16 kB / 458.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001688/0.2425, allocations: 0.8394 MB / 459.1 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.2425, allocations: 5.406 kB / 459.1 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2425, allocations: 3.938 kB / 459.1 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.2425, allocations: 2.625 kB / 459.1 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002705/0.2452, allocations: 1.744 MB / 460.9 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2452, allocations: 5.156 kB / 460.9 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005396/0.2506, allocations: 0.9018 MB / 461.8 MB, free: 26.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.2507, allocations: 10.83 kB / 461.8 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.245e-05/0.2507, allocations: 16.77 kB / 461.8 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.2507, allocations: 8.094 kB / 461.8 MB, free: 26.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.2507, allocations: 0 / 461.8 MB, free: 26.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002309/0.253, allocations: 1.266 MB / 463.1 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.131e-05/0.2531, allocations: 119.2 kB / 463.2 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.36e-05/0.2532, allocations: 17.06 kB / 463.2 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004828/0.2537, allocations: 54.77 kB / 463.3 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.2539, allocations: 77.61 kB / 463.4 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.269e-05/0.2539, allocations: 17.92 kB / 463.4 MB, free: 26.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002038/0.2541, allocations: 261.2 kB / 463.6 MB, free: 25.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2541, allocations: 0 / 463.6 MB, free: 25.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004012/0.2545, allocations: 145.2 kB / 463.8 MB, free: 25.88 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.002437/0.257, allocations: 1.817 MB / 465.6 MB, free: 24.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.2587, allocations: 0.8395 MB / 466.4 MB, free: 24.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2587, allocations: 1.156 kB / 466.4 MB, free: 24.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007805/0.2595, allocations: 420.5 kB / 466.8 MB, free: 24.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004924/0.26, allocations: 103.6 kB / 466.9 MB, free: 24.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008437/0.2684, allocations: 6.242 MB / 473.2 MB, free: 20.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.2687, allocations: 0.849 MB / 474 MB, free: 20.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003902/0.2691, allocations: 99.48 kB / 474.1 MB, free: 20.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003191/0.2694, allocations: 187.7 kB / 474.3 MB, free: 20.01 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2694, allocations: 0 / 474.3 MB, free: 20.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.32/3.59, allocations: 12.27 MB / 486.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/3.59, allocations: 208.8 kB / 486.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/5.424, allocations: 64 / 486.8 MB, free: 10.21 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)