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.0008916/0.0008915, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.0008103/0.0008103, allocations: 168.7 kB / 15.95 MB, free: 204 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.319/1.319, allocations: 223.2 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2079/0.2079, allocations: 22.34 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.0003331, allocations: 12 kB / 382 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2837, allocations: 55.97 MB / 438 MB, free: 39.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.003698/0.2875, allocations: 3.965 MB / 442 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002424/0.29, allocations: 1.261 MB / 443.2 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003035/0.2903, allocations: 16.56 kB / 443.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.2905, allocations: 114 kB / 443.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005106/0.291, allocations: 420.7 kB / 443.8 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000537/0.2916, allocations: 193.6 kB / 444 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001572/0.2932, allocations: 2.272 MB / 446.2 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.2944, allocations: 1.117 MB / 447.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006941/0.2951, allocations: 0.6356 MB / 448 MB, free: 33.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009903/0.2961, allocations: 0.9019 MB / 448.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001474/0.2962, allocations: 90.16 kB / 449 MB, free: 33.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002049/0.2964, allocations: 89.97 kB / 449.1 MB, free: 33.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003847/0.2968, allocations: 0.555 MB / 449.6 MB, free: 33.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002424/0.2971, allocations: 307.7 kB / 449.9 MB, free: 33.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001194/0.2983, allocations: 2.037 MB / 452 MB, free: 32.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.2983, allocations: 0 / 452 MB, free: 32.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2983, allocations: 3 kB / 452 MB, free: 32.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.165e-05/0.2983, allocations: 0 / 452 MB, free: 32.71 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.003199/0.3015, allocations: 1.787 MB / 453.8 MB, free: 31.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3016, allocations: 10.5 kB / 453.8 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002094/0.3018, allocations: 181.6 kB / 453.9 MB, free: 31.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002312/0.302, allocations: 149 kB / 454.1 MB, free: 31.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.3031, allocations: 0.8487 MB / 454.9 MB, free: 31.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.355e-05/0.3032, allocations: 122.9 kB / 455.1 MB, free: 31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001938/0.3034, allocations: 135.4 kB / 455.2 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002692/0.3061, allocations: 1.573 MB / 456.8 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.3061, allocations: 0 / 456.8 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.3063, allocations: 49.66 kB / 456.8 MB, free: 30.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.438e-05/0.3063, allocations: 29.03 kB / 456.8 MB, free: 30.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.3086, allocations: 1.403 MB / 458.2 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00975/0.3183, allocations: 7.178 MB / 465.4 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004608/0.323, allocations: 1.87 MB / 467.3 MB, free: 24.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.3242, allocations: 0.734 MB / 468 MB, free: 24.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.35e-05/0.3243, allocations: 18.36 kB / 468 MB, free: 24.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.3244, allocations: 44.56 kB / 468.1 MB, free: 24.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.935e-06/0.3244, allocations: 0 / 468.1 MB, free: 24.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006661/0.331, allocations: 3.99 MB / 472.1 MB, free: 21.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.3311, allocations: 63.42 kB / 472.1 MB, free: 21.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.3322, allocations: 0.6685 MB / 472.8 MB, free: 21.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.3323, allocations: 46.19 kB / 472.9 MB, free: 21.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003088/0.3326, allocations: 0.5117 MB / 473.4 MB, free: 20.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000392/0.333, allocations: 414.3 kB / 473.8 MB, free: 20.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.05e-05/0.3331, allocations: 25.34 kB / 473.8 MB, free: 20.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3333, allocations: 423.8 kB / 474.2 MB, free: 20.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.3345, allocations: 0.8362 MB / 475 MB, free: 19.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/0.3358, allocations: 0.997 MB / 476 MB, free: 19.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.3372, allocations: 0.9538 MB / 477 MB, free: 18.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.3372, allocations: 2.156 kB / 477 MB, free: 18.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004213/0.3414, allocations: 2.476 MB / 479.5 MB, free: 17.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.3415, allocations: 7.938 kB / 479.5 MB, free: 17.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.3415, allocations: 4.938 kB / 479.5 MB, free: 17.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/0.3431, allocations: 0.5491 MB / 480 MB, free: 17.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/0.3449, allocations: 401.2 kB / 480.4 MB, free: 17.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01235/0.3573, allocations: 21.44 MB / 0.4901 GB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001549/0.3589, allocations: 162.7 kB / 0.4903 GB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.359, allocations: 52 kB / 0.4903 GB, free: 10.12 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.0009205/0.3599, allocations: 421.3 kB / 0.4907 GB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.3601, allocations: 98.88 kB / 0.4908 GB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/0.3636, allocations: 1.99 MB / 0.4927 GB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.3636, allocations: 12 kB / 0.4928 GB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.3637, allocations: 7.938 kB / 0.4928 GB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.3637, allocations: 7.969 kB / 0.4928 GB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005769/0.3694, allocations: 3.692 MB / 0.4964 GB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/0.3695, allocations: 4 kB / 0.4964 GB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001936/0.3714, allocations: 343.6 kB / 0.4967 GB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/0.3727, allocations: 480.7 kB / 0.4972 GB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/0.3729, allocations: 63.97 kB / 0.4972 GB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01368/0.3866, allocations: 20.58 MB / 0.5173 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.3866, allocations: 7.969 kB / 0.5173 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005016/0.3917, allocations: 2.723 MB / 0.52 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00053/0.3922, allocations: 191.8 kB / 0.5202 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002147/0.3925, allocations: 59.98 kB / 0.5202 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007708/0.3932, allocations: 83.66 kB / 0.5203 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003399/0.3936, allocations: 92.8 kB / 0.5204 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.992e-05/0.3937, allocations: 31.98 kB / 0.5204 GB, free: 8.918 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007354/0.3944, allocations: 475 kB / 0.5209 GB, free: 8.453 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3944, allocations: 0 / 0.5209 GB, free: 8.453 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001927/0.3964, allocations: 0.5029 MB / 0.5214 GB, free: 7.949 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.004678/0.4011, allocations: 3.339 MB / 0.5246 GB, free: 4.512 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004307/0.4054, allocations: 3.424 MB / 0.528 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.4054, allocations: 5.312 kB / 0.528 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002508/0.4079, allocations: 2.463 MB / 0.5304 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.4092, allocations: 319.9 kB / 0.5307 GB, free: 13.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01893/0.4281, allocations: 12.6 MB / 0.543 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009266/0.4291, allocations: 1.272 MB / 0.5442 GB, free: 15.67 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001093/0.4302, allocations: 367.8 kB / 0.5446 GB, free: 15.31 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006871/0.4309, allocations: 467.3 kB / 0.545 GB, free: 14.85 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4309, allocations: 0 / 0.545 GB, free: 14.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05091/0.4818, allocations: 32.13 MB / 0.5764 GB, free: 15.09 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.482, allocations: 202.9 kB / 0.5766 GB, free: 14.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.51/2.992, allocations: 4 kB / 0.5766 GB, free: 14.85 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/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: