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.001207/0.001207, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001422/0.001422, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.907/1.907, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1907/0.1907, allocations: 22.34 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003546, allocations: 12 kB / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2843, allocations: 55.98 MB / 437.9 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.003237/0.2876, allocations: 3.625 MB / 441.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.2902, allocations: 1.312 MB / 442.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004936/0.2907, allocations: 16.38 kB / 442.8 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003065/0.291, allocations: 128.8 kB / 443 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006034/0.2916, allocations: 290.6 kB / 443.3 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006882/0.2923, allocations: 201.3 kB / 443.5 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.2935, allocations: 1.134 MB / 444.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.2948, allocations: 1.112 MB / 445.7 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007538/0.2955, allocations: 0.5934 MB / 446.3 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008042/0.2963, allocations: 0.6517 MB / 446.9 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.2965, allocations: 92.95 kB / 447 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002055/0.2967, allocations: 94.19 kB / 447.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004491/0.2972, allocations: 490.4 kB / 447.6 MB, free: 33.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003312/0.2975, allocations: 305 kB / 447.9 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001385/0.2989, allocations: 2.035 MB / 449.9 MB, free: 33.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2989, allocations: 0 / 449.9 MB, free: 33.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2989, allocations: 0 / 449.9 MB, free: 33.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.815e-05/0.299, allocations: 0 / 449.9 MB, free: 33.07 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.003878/0.3029, allocations: 1.783 MB / 451.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.262e-05/0.3029, allocations: 8.562 kB / 451.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003182/0.3033, allocations: 193.1 kB / 451.9 MB, free: 32.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003521/0.3036, allocations: 145.6 kB / 452.1 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00161/0.3052, allocations: 0.84 MB / 452.9 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/0.3054, allocations: 128.8 kB / 453 MB, free: 31.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002434/0.3056, allocations: 137 kB / 453.2 MB, free: 31.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002928/0.3086, allocations: 1.565 MB / 454.7 MB, free: 30.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.083e-05/0.3086, allocations: 3.938 kB / 454.7 MB, free: 30.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.3088, allocations: 47.53 kB / 454.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/0.3088, allocations: 28.69 kB / 454.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002783/0.3116, allocations: 1.399 MB / 456.2 MB, free: 30.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/0.3256, allocations: 7.171 MB / 463.4 MB, free: 25.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005188/0.3308, allocations: 1.871 MB / 465.2 MB, free: 24.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.943e-05/0.331, allocations: 14.33 kB / 465.3 MB, free: 24.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.331, allocations: 48.64 kB / 465.3 MB, free: 24.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 6.071e-06/0.331, allocations: 3.938 kB / 465.3 MB, free: 24.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.008304/0.3394, allocations: 3.991 MB / 469.3 MB, free: 22.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.3394, allocations: 66.52 kB / 469.4 MB, free: 22.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.3407, allocations: 0.6692 MB / 470 MB, free: 21.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.3408, allocations: 41.23 kB / 470.1 MB, free: 21.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000374/0.3412, allocations: 0.5109 MB / 470.6 MB, free: 21.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004108/0.3416, allocations: 415.4 kB / 471 MB, free: 21.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.3417, allocations: 29.12 kB / 471 MB, free: 21.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.342, allocations: 412 kB / 471.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.3435, allocations: 0.8403 MB / 472.3 MB, free: 20.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001669/0.3452, allocations: 0.9989 MB / 473.3 MB, free: 19.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/0.3468, allocations: 0.9506 MB / 474.2 MB, free: 19.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.3468, allocations: 6.5 kB / 474.2 MB, free: 19.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004804/0.3516, allocations: 2.475 MB / 476.7 MB, free: 18.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/0.3516, allocations: 11.33 kB / 476.7 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.3517, allocations: 5.062 kB / 476.7 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001813/0.3535, allocations: 0.548 MB / 477.3 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001913/0.3554, allocations: 403.5 kB / 477.7 MB, free: 18.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/0.3694, allocations: 21.6 MB / 499.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/0.3712, allocations: 164.7 kB / 499.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001582/0.3713, allocations: 52.05 kB / 499.5 MB, free: 12.44 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.xpi:VARIABLE(start = 0.0 fixed = true protected = 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 (160): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001084/0.3724, allocations: 429.3 kB / 499.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002827/0.3727, allocations: 94.86 kB / 500 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003662/0.3764, allocations: 1.991 MB / 0.4902 GB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.3764, allocations: 15.95 kB / 0.4902 GB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.3764, allocations: 4 kB / 0.4902 GB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.3765, allocations: 3.984 kB / 0.4902 GB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006529/0.383, allocations: 3.692 MB / 0.4938 GB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.383, allocations: 4 kB / 0.4938 GB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001999/0.3851, allocations: 339.6 kB / 0.4942 GB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001332/0.3864, allocations: 488.5 kB / 0.4946 GB, free: 5.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00021/0.3866, allocations: 63.97 kB / 0.4947 GB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01409/0.4007, allocations: 20.74 MB / 0.5149 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.4008, allocations: 0 / 0.5149 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00523/0.406, allocations: 2.822 MB / 0.5177 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005498/0.4066, allocations: 191.8 kB / 0.5179 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.4068, allocations: 59.98 kB / 0.5179 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007837/0.4076, allocations: 67.77 kB / 0.518 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003354/0.408, allocations: 100.8 kB / 0.5181 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.4081, allocations: 35.92 kB / 0.5181 GB, free: 10.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006716/0.4088, allocations: 471 kB / 0.5186 GB, free: 10.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4088, allocations: 0 / 0.5186 GB, free: 10.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002163/0.4109, allocations: 0.5068 MB / 0.5191 GB, free: 10.01 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 (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005468/0.4164, allocations: 3.988 MB / 0.523 GB, free: 5.895 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004596/0.4211, allocations: 3.429 MB / 0.5263 GB, free: 2.273 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.4211, allocations: 0 / 0.5263 GB, free: 2.273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002876/0.424, allocations: 2.459 MB / 0.5287 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.4253, allocations: 295.5 kB / 0.529 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/0.4375, allocations: 10.77 MB / 0.5395 GB, free: 4.402 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009489/0.4385, allocations: 1.297 MB / 0.5408 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001205/0.4398, allocations: 367.8 kB / 0.5411 GB, free: 2.715 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006988/0.4405, allocations: 475.2 kB / 0.5416 GB, free: 2.25 MB / 414.1 MB Notification: Performance of SimCode: time 2.274e-06/0.4405, allocations: 0 / 0.5416 GB, free: 2.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07364/0.5141, allocations: 31.46 MB / 0.5723 GB, free: 3.16 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002643/0.5144, allocations: 204 kB / 0.5725 GB, free: 2.914 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.694/3.208, allocations: 0 / 0.5725 GB, free: 2.914 MB / 446.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/linux/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) Environment - environmentSimulation: