Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_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_Generation.Heater_control_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_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.000968/0.0009679, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009706/0.0009706, allocations: 191 kB / 16.13 MB, free: 6.645 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.207/1.207, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1814/0.1814, allocations: 22.35 MB / 312.3 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 59.84 kB / 380.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2324, allocations: 54.94 MB / 435.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.003861/0.2363, allocations: 4.567 MB / 439.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.238, allocations: 1.283 MB / 441 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.2382, allocations: 14.62 kB / 441 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002558/0.2385, allocations: 132.2 kB / 441.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000467/0.239, allocations: 407.9 kB / 441.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005293/0.2395, allocations: 274.5 kB / 441.8 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001451/0.241, allocations: 2.644 MB / 444.5 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.242, allocations: 1.345 MB / 445.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005449/0.2426, allocations: 0.6792 MB / 446.5 MB, free: 33.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008379/0.2434, allocations: 0.9813 MB / 447.5 MB, free: 32.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001811/0.2436, allocations: 114.2 kB / 447.6 MB, free: 32.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002474/0.2438, allocations: 117.8 kB / 447.7 MB, free: 32.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003454/0.2442, allocations: 0.5823 MB / 448.3 MB, free: 32.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005627/0.2448, allocations: 0.7964 MB / 449.1 MB, free: 32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.246, allocations: 2.491 MB / 451.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.246, allocations: 0 / 451.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.246, allocations: 0 / 451.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.652e-05/0.2461, allocations: 0 / 451.6 MB, free: 31.16 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003562/0.2496, allocations: 2.01 MB / 453.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.2497, allocations: 13.59 kB / 453.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001843/0.2499, allocations: 189.6 kB / 453.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002491/0.2501, allocations: 145.1 kB / 453.9 MB, free: 29.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.2512, allocations: 0.8593 MB / 454.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.86e-05/0.2513, allocations: 114 kB / 454.9 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002165/0.2515, allocations: 142.4 kB / 455 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002412/0.2539, allocations: 1.591 MB / 456.6 MB, free: 28.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.254, allocations: 0 / 456.6 MB, free: 28.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.2541, allocations: 45.06 kB / 456.7 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.2541, allocations: 28.38 kB / 456.7 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002047/0.2562, allocations: 1.423 MB / 458.1 MB, free: 27.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009006/0.2652, allocations: 7.151 MB / 465.3 MB, free: 23.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004627/0.2698, allocations: 1.885 MB / 467.1 MB, free: 22.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.2709, allocations: 0.7265 MB / 467.9 MB, free: 22.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.175e-05/0.271, allocations: 18.55 kB / 467.9 MB, free: 22.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.271, allocations: 52.42 kB / 467.9 MB, free: 22.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.655e-06/0.2711, allocations: 0 / 467.9 MB, free: 22.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006272/0.2773, allocations: 3.927 MB / 471.9 MB, free: 19.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.2774, allocations: 62.44 kB / 471.9 MB, free: 19.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008608/0.2782, allocations: 0.689 MB / 472.6 MB, free: 19.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.466e-05/0.2783, allocations: 45.23 kB / 472.7 MB, free: 19.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002302/0.2786, allocations: 0.5119 MB / 473.2 MB, free: 19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003094/0.2789, allocations: 409.2 kB / 473.6 MB, free: 18.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003865/0.2793, allocations: 237.7 kB / 473.8 MB, free: 18.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.2794, allocations: 409.3 kB / 474.2 MB, free: 18.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.2806, allocations: 0.8518 MB / 475 MB, free: 17.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.2818, allocations: 0.9978 MB / 476 MB, free: 17.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01211/0.2939, allocations: 4.445 MB / 480.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.2939, allocations: 1.031 kB / 480.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003739/0.2977, allocations: 2.475 MB / 483 MB, free: 13.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.2977, allocations: 9.344 kB / 483 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.2977, allocations: 8 kB / 483 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001467/0.2992, allocations: 0.5395 MB / 483.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/0.3007, allocations: 395.5 kB / 483.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/0.3128, allocations: 21.42 MB / 0.4935 GB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.3142, allocations: 159 kB / 0.4936 GB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.3143, allocations: 47.98 kB / 0.4937 GB, free: 4.359 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.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: 23 * 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 (157): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007694/0.3151, allocations: 429.3 kB / 0.4941 GB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.3153, allocations: 90.88 kB / 0.4942 GB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003344/0.3186, allocations: 1.971 MB / 0.4961 GB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-06/0.3186, allocations: 8 kB / 0.4961 GB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.3186, allocations: 8 kB / 0.4961 GB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.3187, allocations: 7.922 kB / 0.4961 GB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005303/0.324, allocations: 3.554 MB / 0.4996 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.324, allocations: 7.938 kB / 0.4996 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001864/0.3259, allocations: 335.6 kB / 0.4999 GB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.3271, allocations: 480.8 kB / 0.5004 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/0.3272, allocations: 63.97 kB / 0.5004 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01257/0.3398, allocations: 20.57 MB / 0.5205 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.3398, allocations: 4 kB / 0.5205 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004477/0.3443, allocations: 2.733 MB / 0.5232 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003119/0.3447, allocations: 191.8 kB / 0.5234 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/0.3449, allocations: 59.98 kB / 0.5235 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007526/0.3456, allocations: 71.77 kB / 0.5235 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002702/0.3459, allocations: 100.8 kB / 0.5236 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.177e-05/0.346, allocations: 31.98 kB / 0.5236 GB, free: 3.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005514/0.3465, allocations: 487 kB / 0.5241 GB, free: 2.848 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3466, allocations: 0 / 0.5241 GB, free: 2.848 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001436/0.348, allocations: 0.5068 MB / 0.5246 GB, free: 2.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 42 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.wall.wall.T[5,3]) * 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 (89): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00444/0.3524, allocations: 3.357 MB / 0.5279 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003961/0.3564, allocations: 3.414 MB / 0.5312 GB, free: 11.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3564, allocations: 0 / 0.5312 GB, free: 11.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002327/0.3588, allocations: 2.463 MB / 0.5336 GB, free: 8.621 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00125/0.36, allocations: 311.3 kB / 0.5339 GB, free: 8.324 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0236/0.3837, allocations: 16.44 MB / 0.55 GB, free: 7.387 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008743/0.3846, allocations: 1.264 MB / 0.5512 GB, free: 6.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009645/0.3855, allocations: 363.6 kB / 0.5516 GB, free: 5.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006376/0.3862, allocations: 451.3 kB / 0.552 GB, free: 5.289 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3862, allocations: 4 kB / 0.552 GB, free: 5.285 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.902/2.288, allocations: 32.9 MB / 0.5841 GB, free: 4.734 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002159/2.288, allocations: 219 kB / 0.5843 GB, free: 4.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.657/4.945, allocations: 0 / 0.5843 GB, free: 4.48 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)