Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",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.001527/0.001528, allocations: 109.4 kB / 15.69 MB, free: 128 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.001792/0.001792, allocations: 187.9 kB / 16.62 MB, free: 6.613 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.377/1.377, allocations: 222.9 MB / 240.3 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2237/0.2237, allocations: 22.36 MB / 312.8 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 59.91 kB / 381.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.276, allocations: 54.95 MB / 436 MB, free: 39.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003577/0.2796, allocations: 3.342 MB / 439.4 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.2811, allocations: 0.9364 MB / 440.3 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.2813, allocations: 9.406 kB / 440.3 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.2815, allocations: 104.8 kB / 440.4 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004397/0.2819, allocations: 251.4 kB / 440.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005812/0.2825, allocations: 192.6 kB / 440.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001159/0.2837, allocations: 1.229 MB / 442.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001018/0.2847, allocations: 0.8934 MB / 443 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004833/0.2852, allocations: 483.1 kB / 443.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005873/0.2858, allocations: 0.5649 MB / 444 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.286, allocations: 133.2 kB / 444.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.2862, allocations: 131.7 kB / 444.3 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000299/0.2865, allocations: 400.9 kB / 444.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004614/0.287, allocations: 0.5299 MB / 445.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009977/0.288, allocations: 1.465 MB / 446.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.288, allocations: 0 / 446.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.288, allocations: 0 / 446.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.03e-05/0.288, allocations: 2.906 kB / 446.7 MB, free: 33.82 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002163/0.2902, allocations: 1.287 MB / 448 MB, free: 33.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.2902, allocations: 11.06 kB / 448 MB, free: 33.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001358/0.2904, allocations: 118.4 kB / 448.1 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001675/0.2905, allocations: 96.67 kB / 448.2 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006989/0.2913, allocations: 0.558 MB / 448.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.521e-05/0.2913, allocations: 82.89 kB / 448.8 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.2915, allocations: 84.12 kB / 448.9 MB, free: 32.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.2928, allocations: 0.9321 MB / 449.8 MB, free: 32.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.2928, allocations: 0 / 449.8 MB, free: 32.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.448e-05/0.2929, allocations: 30.59 kB / 449.9 MB, free: 32.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.2929, allocations: 15.75 kB / 449.9 MB, free: 32.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.294, allocations: 0.8052 MB / 450.7 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00482/0.2988, allocations: 3.944 MB / 454.6 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/0.3014, allocations: 1.034 MB / 455.7 MB, free: 28.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005793/0.302, allocations: 418.5 kB / 456.1 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-05/0.302, allocations: 10.55 kB / 456.1 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.3021, allocations: 42.25 kB / 456.1 MB, free: 28.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.984e-06/0.3021, allocations: 0 / 456.1 MB, free: 28.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003628/0.3057, allocations: 2.356 MB / 458.5 MB, free: 27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.3057, allocations: 61.84 kB / 458.5 MB, free: 26.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004306/0.3062, allocations: 416.2 kB / 459 MB, free: 26.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.128e-05/0.3062, allocations: 35.8 kB / 459 MB, free: 26.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.3064, allocations: 330.3 kB / 459.3 MB, free: 26.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.3065, allocations: 227.4 kB / 459.5 MB, free: 26.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.3068, allocations: 122.3 kB / 459.6 MB, free: 26.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.435e-05/0.3069, allocations: 368 kB / 460 MB, free: 25.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00063/0.3075, allocations: 453.3 kB / 460.5 MB, free: 25.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006424/0.3081, allocations: 0.4903 MB / 460.9 MB, free: 25.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00663/0.3148, allocations: 2.359 MB / 463.3 MB, free: 24.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3148, allocations: 0 / 463.3 MB, free: 24.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002227/0.317, allocations: 1.346 MB / 464.6 MB, free: 24.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.3171, allocations: 5.969 kB / 464.7 MB, free: 24.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3171, allocations: 2.453 kB / 464.7 MB, free: 24.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.3181, allocations: 344 kB / 465 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00088/0.319, allocations: 185.8 kB / 465.2 MB, free: 23.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007824/0.3269, allocations: 15.15 MB / 480.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007319/0.3276, allocations: 76.98 kB / 480.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.496e-05/0.3277, allocations: 26 kB / 480.4 MB, free: 8.98 MB / 350.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: 7 * 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 (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005592/0.3283, allocations: 285.1 kB / 480.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.3284, allocations: 52.66 kB / 480.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002123/0.3305, allocations: 1.134 MB / 481.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.3305, allocations: 6.281 kB / 481.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3305, allocations: 3.266 kB / 481.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3306, allocations: 6.438 kB / 481.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/0.3336, allocations: 2.123 MB / 484 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.3336, allocations: 2.875 kB / 484 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.3346, allocations: 166.2 kB / 484.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007928/0.3355, allocations: 310.9 kB / 484.5 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.677e-05/0.3355, allocations: 30.98 kB / 484.5 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009267/0.3448, allocations: 14.71 MB / 499.2 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.3449, allocations: 5.375 kB / 499.2 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003013/0.3479, allocations: 1.593 MB / 0.4891 GB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002057/0.3481, allocations: 137.2 kB / 0.4892 GB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.3482, allocations: 37.17 kB / 0.4893 GB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000453/0.3487, allocations: 35.86 kB / 0.4893 GB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/0.3489, allocations: 54.55 kB / 0.4893 GB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.607e-05/0.349, allocations: 17.41 kB / 0.4894 GB, free: 7.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004471/0.3494, allocations: 295.2 kB / 0.4896 GB, free: 7.207 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3494, allocations: 0 / 0.4896 GB, free: 7.207 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001235/0.3507, allocations: 299.8 kB / 0.4899 GB, free: 7.148 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (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]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003046/0.3537, allocations: 2.176 MB / 0.4921 GB, free: 5.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002661/0.3564, allocations: 2.051 MB / 0.4941 GB, free: 3.727 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.3564, allocations: 0 / 0.4941 GB, free: 3.727 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.3581, allocations: 1.541 MB / 0.4956 GB, free: 2.141 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008214/0.3589, allocations: 171.9 kB / 0.4957 GB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/0.3719, allocations: 8.836 MB / 0.5044 GB, free: 9.004 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000662/0.3726, allocations: 1.012 MB / 0.5053 GB, free: 7.961 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000492/0.3731, allocations: 172.5 kB / 0.5055 GB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003871/0.3735, allocations: 251.4 kB / 0.5057 GB, free: 7.543 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3735, allocations: 0 / 0.5057 GB, free: 7.543 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08614/0.4597, allocations: 19.39 MB / 0.5247 GB, free: 4.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.74, allocations: 11.47 kB / 0.5247 GB, free: 4.414 MB / 398.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)