Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.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_004,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_004,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004",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.001196/0.001196, 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.001237/0.001237, allocations: 199.4 kB / 16.14 MB, free: 6.648 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.202/1.202, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1812/0.1812, allocations: 22.35 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 64.05 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2293, allocations: 54.94 MB / 435.2 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.004938/0.2343, allocations: 4.587 MB / 439.7 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002324/0.2367, allocations: 1.29 MB / 441 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006228/0.2373, allocations: 18.38 kB / 441.1 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004385/0.2378, allocations: 125.5 kB / 441.2 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007644/0.2386, allocations: 418 kB / 441.6 MB, free: 35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006355/0.2392, allocations: 278.1 kB / 441.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001532/0.2408, allocations: 2.655 MB / 444.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001124/0.2419, allocations: 1.348 MB / 445.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006588/0.2426, allocations: 0.7007 MB / 446.6 MB, free: 33.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008638/0.2434, allocations: 0.9707 MB / 447.5 MB, free: 32.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00019/0.2436, allocations: 117.2 kB / 447.6 MB, free: 32.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002482/0.2439, allocations: 116.6 kB / 447.8 MB, free: 32.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003466/0.2442, allocations: 0.5775 MB / 448.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006109/0.2449, allocations: 0.7978 MB / 449.1 MB, free: 32.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.2461, allocations: 2.467 MB / 451.6 MB, free: 31.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2461, allocations: 0 / 451.6 MB, free: 31.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.2461, allocations: 3.938 kB / 451.6 MB, free: 31.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.2461, allocations: 0 / 451.6 MB, free: 31.22 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003504/0.2496, allocations: 2.008 MB / 453.6 MB, free: 30.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.2497, allocations: 13.41 kB / 453.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002073/0.2499, allocations: 191.1 kB / 453.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002621/0.2501, allocations: 152.1 kB / 454 MB, free: 29.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.2512, allocations: 0.8656 MB / 454.8 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-05/0.2513, allocations: 115.5 kB / 454.9 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002074/0.2515, allocations: 138.8 kB / 455.1 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002409/0.2539, allocations: 1.587 MB / 456.7 MB, free: 28.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.254, allocations: 1.25 kB / 456.7 MB, free: 28.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/0.2541, allocations: 45.31 kB / 456.7 MB, free: 28.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.2541, allocations: 29.31 kB / 456.7 MB, free: 28.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002056/0.2562, allocations: 1.416 MB / 458.2 MB, free: 28.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008782/0.265, allocations: 7.125 MB / 465.3 MB, free: 23.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004608/0.2696, allocations: 1.87 MB / 467.1 MB, free: 22.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.2707, allocations: 0.738 MB / 467.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.416e-05/0.2708, allocations: 10.62 kB / 467.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.2708, allocations: 44.39 kB / 467.9 MB, free: 22.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.375e-06/0.2708, allocations: 0 / 467.9 MB, free: 22.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006274/0.2771, allocations: 3.924 MB / 471.9 MB, free: 19.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.2771, allocations: 71.16 kB / 471.9 MB, free: 19.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008582/0.278, allocations: 0.6829 MB / 472.6 MB, free: 19.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.527e-05/0.2781, allocations: 41.52 kB / 472.7 MB, free: 19.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/0.2783, allocations: 0.5109 MB / 473.2 MB, free: 19.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003371/0.2787, allocations: 416.3 kB / 473.6 MB, free: 18.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003919/0.2791, allocations: 239.6 kB / 473.8 MB, free: 18.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.2792, allocations: 410.5 kB / 474.2 MB, free: 18.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.2804, allocations: 0.8474 MB / 475.1 MB, free: 17.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.2816, allocations: 1.006 MB / 476.1 MB, free: 17.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0126/0.2943, allocations: 4.466 MB / 480.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.2943, allocations: 6.312 kB / 480.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003676/0.298, allocations: 2.465 MB / 483 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.298, allocations: 8 kB / 483 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.298, allocations: 4 kB / 483 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001475/0.2995, allocations: 0.5356 MB / 483.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.3011, allocations: 399.5 kB / 483.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.3131, allocations: 21.43 MB / 0.4935 GB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/0.3144, allocations: 166.7 kB / 0.4937 GB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.3145, allocations: 47.94 kB / 0.4937 GB, free: 4.328 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 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 CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) 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 (160): * Single equations (assignments): 145 * 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.0007321/0.3153, allocations: 429.4 kB / 0.4941 GB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.3155, allocations: 94.86 kB / 0.4942 GB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003309/0.3188, allocations: 1.983 MB / 0.4962 GB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.3188, allocations: 12 kB / 0.4962 GB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.3188, allocations: 7.938 kB / 0.4962 GB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.769e-06/0.3188, allocations: 7.969 kB / 0.4962 GB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005452/0.3243, allocations: 3.708 MB / 0.4998 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.3243, allocations: 4 kB / 0.4998 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001885/0.3262, allocations: 343.6 kB / 0.5001 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/0.3275, allocations: 476.8 kB / 0.5006 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001381/0.3276, allocations: 63.97 kB / 0.5007 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01246/0.3401, allocations: 20.59 MB / 0.5208 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3401, allocations: 4 kB / 0.5208 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004396/0.3445, allocations: 2.723 MB / 0.5234 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.3449, allocations: 191.8 kB / 0.5236 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.3451, allocations: 63.98 kB / 0.5237 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007235/0.3458, allocations: 71.77 kB / 0.5237 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/0.3461, allocations: 100.7 kB / 0.5238 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.173e-05/0.3461, allocations: 28 kB / 0.5239 GB, free: 3.113 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005469/0.3467, allocations: 483 kB / 0.5243 GB, free: 2.645 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3467, allocations: 0 / 0.5243 GB, free: 2.645 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001415/0.3481, allocations: 0.5029 MB / 0.5248 GB, free: 2.141 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,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 (92): * Single equations (assignments): 77 * 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.004429/0.3526, allocations: 3.351 MB / 0.5281 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003947/0.3565, allocations: 3.41 MB / 0.5314 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3565, allocations: 0 / 0.5314 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00241/0.359, allocations: 2.467 MB / 0.5338 GB, free: 8.426 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/0.3602, allocations: 313.4 kB / 0.5341 GB, free: 8.125 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02304/0.3833, allocations: 16.47 MB / 0.5502 GB, free: 7.156 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008729/0.3842, allocations: 1.272 MB / 0.5514 GB, free: 5.852 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001077/0.3853, allocations: 371.8 kB / 0.5518 GB, free: 5.484 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006448/0.3859, allocations: 463.3 kB / 0.5522 GB, free: 5.031 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3859, allocations: 8 kB / 0.5522 GB, free: 5.023 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.543/1.929, allocations: 33.08 MB / 0.5846 GB, free: 4.281 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002614/1.929, allocations: 228.4 kB / 0.5848 GB, free: 4.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.509/4.438, allocations: 0 / 0.5848 GB, free: 4.02 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1)