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.001191/0.001191, allocations: 104 kB / 15.61 MB, free: 148 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.001373/0.001373, allocations: 195.9 kB / 16.53 MB, free: 6.684 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1951/0.1951, allocations: 22.35 MB / 312.7 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 59.89 kB / 380.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.215, allocations: 54.95 MB / 435.9 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.003851/0.2189, allocations: 4.382 MB / 440.3 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.2204, allocations: 1.275 MB / 441.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002073/0.2207, allocations: 11.88 kB / 441.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002545/0.2209, allocations: 160.1 kB / 441.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004958/0.2214, allocations: 434.2 kB / 442.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005402/0.222, allocations: 305.6 kB / 442.4 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.2231, allocations: 2.151 MB / 444.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001238/0.2244, allocations: 1.594 MB / 446.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006135/0.225, allocations: 0.8163 MB / 447 MB, free: 33.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008864/0.2259, allocations: 0.9898 MB / 448 MB, free: 32.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002514/0.2262, allocations: 238.2 kB / 448.2 MB, free: 32.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003043/0.2265, allocations: 236.1 kB / 448.4 MB, free: 32.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003812/0.2269, allocations: 0.6923 MB / 449.1 MB, free: 32.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006405/0.2275, allocations: 0.9251 MB / 450.1 MB, free: 31.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001321/0.2288, allocations: 2.573 MB / 452.6 MB, free: 30.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2288, allocations: 3.25 kB / 452.6 MB, free: 30.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2289, allocations: 0 / 452.6 MB, free: 30.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.149e-05/0.2289, allocations: 0 / 452.6 MB, free: 30.87 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.003824/0.2327, allocations: 2.023 MB / 454.7 MB, free: 29.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2328, allocations: 9 kB / 454.7 MB, free: 29.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002034/0.233, allocations: 187.6 kB / 454.9 MB, free: 29.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002604/0.2332, allocations: 150.2 kB / 455 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.2343, allocations: 0.8612 MB / 455.9 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.458e-05/0.2344, allocations: 114.2 kB / 456 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002166/0.2346, allocations: 143.2 kB / 456.1 MB, free: 28.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.237, allocations: 1.587 MB / 457.7 MB, free: 28.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.2371, allocations: 1.844 kB / 457.7 MB, free: 28.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000129/0.2372, allocations: 49.19 kB / 457.8 MB, free: 28.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.2372, allocations: 29.28 kB / 457.8 MB, free: 28.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002183/0.2394, allocations: 1.424 MB / 459.2 MB, free: 27.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008753/0.2482, allocations: 7.155 MB / 466.4 MB, free: 23.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004619/0.2528, allocations: 1.892 MB / 468.3 MB, free: 22.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.2539, allocations: 0.7289 MB / 469 MB, free: 22.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.976e-05/0.254, allocations: 10.62 kB / 469 MB, free: 22.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.254, allocations: 48.25 kB / 469 MB, free: 22.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.605e-06/0.254, allocations: 0 / 469 MB, free: 22.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006466/0.2605, allocations: 3.934 MB / 473 MB, free: 19.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.633e-05/0.2605, allocations: 63.11 kB / 473 MB, free: 19.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007731/0.2613, allocations: 0.6882 MB / 473.7 MB, free: 19.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.232e-05/0.2614, allocations: 40.95 kB / 473.8 MB, free: 19.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.2616, allocations: 0.5036 MB / 474.3 MB, free: 18.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003031/0.2619, allocations: 409.4 kB / 474.7 MB, free: 18.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00041/0.2624, allocations: 242 kB / 474.9 MB, free: 18.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.2625, allocations: 411.2 kB / 475.3 MB, free: 17.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.2637, allocations: 0.8462 MB / 476.2 MB, free: 17.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/0.265, allocations: 1.003 MB / 477.2 MB, free: 17.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01242/0.2774, allocations: 4.458 MB / 481.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.2774, allocations: 4 kB / 481.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003739/0.2812, allocations: 2.472 MB / 484.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2812, allocations: 10.19 kB / 484.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.2812, allocations: 4 kB / 484.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001556/0.2828, allocations: 0.5395 MB / 484.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.2844, allocations: 391.5 kB / 485 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/0.2978, allocations: 23.05 MB / 0.4962 GB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001192/0.299, allocations: 142.7 kB / 0.4963 GB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.2991, allocations: 44 kB / 0.4963 GB, free: 1.984 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.0007155/0.2998, allocations: 434.8 kB / 0.4968 GB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.3, allocations: 90.88 kB / 0.4968 GB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003595/0.3036, allocations: 1.979 MB / 0.4988 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.3036, allocations: 16 kB / 0.4988 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.3036, allocations: 4 kB / 0.4988 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.3037, allocations: 7.969 kB / 0.4988 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005239/0.3089, allocations: 3.554 MB / 0.5023 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3089, allocations: 0 / 0.5023 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001995/0.3109, allocations: 335.6 kB / 0.5026 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00128/0.3122, allocations: 484.7 kB / 0.5031 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.3124, allocations: 63.97 kB / 0.5031 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01396/0.3263, allocations: 22.17 MB / 0.5248 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3264, allocations: 0 / 0.5248 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004546/0.3309, allocations: 2.74 MB / 0.5275 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002323/0.3312, allocations: 191.7 kB / 0.5276 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.3314, allocations: 55.98 kB / 0.5277 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007556/0.3321, allocations: 59.92 kB / 0.5277 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002446/0.3324, allocations: 104.8 kB / 0.5278 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.605e-05/0.3325, allocations: 27.98 kB / 0.5279 GB, free: 15.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005641/0.333, allocations: 483 kB / 0.5283 GB, free: 14.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3331, allocations: 0 / 0.5283 GB, free: 14.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001393/0.3345, allocations: 0.4991 MB / 0.5288 GB, free: 14.28 MB / 414.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.004793/0.3393, allocations: 3.357 MB / 0.5321 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00509/0.3444, allocations: 3.968 MB / 0.536 GB, free: 6.664 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.3444, allocations: 8.062 kB / 0.536 GB, free: 6.656 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00251/0.3469, allocations: 2.451 MB / 0.5384 GB, free: 4.008 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.3481, allocations: 314.8 kB / 0.5387 GB, free: 3.707 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02293/0.3711, allocations: 16.01 MB / 0.5543 GB, free: 3.191 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008709/0.372, allocations: 1.264 MB / 0.5555 GB, free: 1.898 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001011/0.373, allocations: 355.6 kB / 0.5559 GB, free: 1.547 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006796/0.3737, allocations: 459.3 kB / 0.5563 GB, free: 1.098 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3737, allocations: 0 / 0.5563 GB, free: 1.098 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2447/0.6184, allocations: 33.87 MB / 0.5894 GB, free: 132.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.31, allocations: 7.938 kB / 0.5894 GB, free: 132.9 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)