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.001125/0.001125, allocations: 108 kB / 15.6 MB, free: 132 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.001177/0.001177, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.401/1.401, 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.2086/0.2086, allocations: 22.37 MB / 312.8 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002272/0.002272, allocations: 59.91 kB / 380.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2934, allocations: 54.94 MB / 435.9 MB, free: 39.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004406/0.2978, allocations: 3.337 MB / 439.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.2993, allocations: 0.9391 MB / 440.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.2995, allocations: 9.625 kB / 440.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002204/0.2998, allocations: 101.9 kB / 440.3 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003352/0.3001, allocations: 252.9 kB / 440.5 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004698/0.3006, allocations: 192.8 kB / 440.7 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008988/0.3015, allocations: 1.225 MB / 441.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000867/0.3024, allocations: 0.8841 MB / 442.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004466/0.3028, allocations: 487.9 kB / 443.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006181/0.3035, allocations: 0.566 MB / 443.9 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001688/0.3036, allocations: 132.1 kB / 444 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.3038, allocations: 131.6 kB / 444.1 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002819/0.3041, allocations: 405.9 kB / 444.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004508/0.3046, allocations: 0.5332 MB / 445 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009543/0.3055, allocations: 1.45 MB / 446.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.3056, allocations: 0 / 446.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3056, allocations: 0 / 446.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.3056, allocations: 0 / 446.5 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.00238/0.308, allocations: 1.293 MB / 447.8 MB, free: 33.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.308, allocations: 8.5 kB / 447.8 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.3082, allocations: 124.7 kB / 447.9 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.3083, allocations: 86.62 kB / 448 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006561/0.309, allocations: 0.5577 MB / 448.6 MB, free: 32.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.165e-05/0.3091, allocations: 82.7 kB / 448.6 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.3092, allocations: 83.81 kB / 448.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.3104, allocations: 0.9286 MB / 449.6 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.3104, allocations: 0 / 449.6 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.165e-05/0.3105, allocations: 26.84 kB / 449.7 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.3105, allocations: 15.84 kB / 449.7 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.3116, allocations: 0.8146 MB / 450.5 MB, free: 31.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004503/0.3161, allocations: 3.974 MB / 454.5 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002502/0.3186, allocations: 1.03 MB / 455.5 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005506/0.3192, allocations: 417.4 kB / 455.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.501e-05/0.3193, allocations: 6.375 kB / 455.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.3193, allocations: 38.66 kB / 456 MB, free: 28.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.963e-06/0.3193, allocations: 0 / 456 MB, free: 28.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003652/0.3229, allocations: 2.361 MB / 458.3 MB, free: 26.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/0.323, allocations: 58.25 kB / 458.4 MB, free: 26.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004813/0.3235, allocations: 416.3 kB / 458.8 MB, free: 26.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.47e-05/0.3235, allocations: 36.78 kB / 458.8 MB, free: 26.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.3237, allocations: 328 kB / 459.1 MB, free: 26.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.3239, allocations: 231.6 kB / 459.4 MB, free: 26.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/0.3241, allocations: 123 kB / 459.5 MB, free: 26.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.562e-05/0.3242, allocations: 366.7 kB / 459.8 MB, free: 25.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006387/0.3248, allocations: 452.2 kB / 460.3 MB, free: 25.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006566/0.3255, allocations: 0.503 MB / 460.8 MB, free: 25.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006899/0.3324, allocations: 2.367 MB / 463.2 MB, free: 24.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.3324, allocations: 0 / 463.2 MB, free: 24.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002392/0.3348, allocations: 1.341 MB / 464.5 MB, free: 24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3349, allocations: 5.219 kB / 464.5 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3349, allocations: 6.375 kB / 464.5 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.336, allocations: 340.6 kB / 464.8 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008866/0.3369, allocations: 190.4 kB / 465 MB, free: 23.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008617/0.3455, allocations: 15.15 MB / 480.2 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006177/0.3462, allocations: 73.14 kB / 480.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.722e-05/0.3463, allocations: 25.58 kB / 480.3 MB, free: 8.945 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.0005238/0.3468, allocations: 294.9 kB / 480.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.3469, allocations: 53.17 kB / 480.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/0.3489, allocations: 1.134 MB / 481.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.349, allocations: 6 kB / 481.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.498e-05/0.349, allocations: 3.188 kB / 481.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.349, allocations: 4 kB / 481.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/0.3521, allocations: 2.121 MB / 483.9 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.3522, allocations: 4.547 kB / 483.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009531/0.3531, allocations: 165.8 kB / 484 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008243/0.354, allocations: 310.8 kB / 484.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.039e-05/0.3541, allocations: 30.88 kB / 484.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008838/0.3629, allocations: 14.72 MB / 499.1 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3629, allocations: 1.734 kB / 499.1 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003209/0.3661, allocations: 1.599 MB / 0.489 GB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003055/0.3665, allocations: 141.8 kB / 0.4891 GB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.3667, allocations: 32.69 kB / 0.4891 GB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004794/0.3671, allocations: 33.53 kB / 0.4892 GB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.3674, allocations: 49.84 kB / 0.4892 GB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.427e-05/0.3674, allocations: 18.31 kB / 0.4892 GB, free: 7.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004141/0.3678, allocations: 294.6 kB / 0.4895 GB, free: 7.168 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3678, allocations: 0 / 0.4895 GB, free: 7.168 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00116/0.369, allocations: 298.8 kB / 0.4898 GB, free: 7.109 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.00339/0.3724, allocations: 2.184 MB / 0.4919 GB, free: 5.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003274/0.3757, allocations: 2.21 MB / 0.4941 GB, free: 3.676 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.3757, allocations: 0 / 0.4941 GB, free: 3.676 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001959/0.3777, allocations: 1.553 MB / 0.4956 GB, free: 2.078 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008665/0.3786, allocations: 172.6 kB / 0.4958 GB, free: 1.914 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.3918, allocations: 8.975 MB / 0.5045 GB, free: 8.742 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006233/0.3924, allocations: 1.016 MB / 0.5055 GB, free: 7.695 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004794/0.3929, allocations: 168.6 kB / 0.5057 GB, free: 7.527 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003753/0.3933, allocations: 255.3 kB / 0.5059 GB, free: 7.277 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3933, allocations: 4 kB / 0.5059 GB, free: 7.273 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05783/0.4512, allocations: 19.34 MB / 0.5248 GB, free: 4.188 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.753/10.2, allocations: 8.344 kB / 0.5248 GB, free: 4.18 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)