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.001048/0.001048, allocations: 108 kB / 15.61 MB, free: 152 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.001033/0.001033, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.241/1.241, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1798/0.1798, allocations: 22.36 MB / 312.7 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 71.86 kB / 381 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2412, allocations: 54.94 MB / 435.9 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.003738/0.245, allocations: 4.404 MB / 440.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.2464, allocations: 1.28 MB / 441.6 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002157/0.2466, allocations: 17.56 kB / 441.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002436/0.2469, allocations: 162.2 kB / 441.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004737/0.2474, allocations: 436.2 kB / 442.2 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004884/0.2479, allocations: 312.1 kB / 442.5 MB, free: 35.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.249, allocations: 2.176 MB / 444.7 MB, free: 33.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001047/0.25, allocations: 1.6 MB / 446.3 MB, free: 33.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000523/0.2506, allocations: 0.8337 MB / 447.1 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000769/0.2513, allocations: 0.9762 MB / 448.1 MB, free: 32.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002216/0.2516, allocations: 230.2 kB / 448.3 MB, free: 32.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002732/0.2519, allocations: 228.5 kB / 448.5 MB, free: 32.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003543/0.2522, allocations: 0.6962 MB / 449.2 MB, free: 32.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005955/0.2528, allocations: 0.9156 MB / 450.1 MB, free: 31.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.254, allocations: 2.551 MB / 452.7 MB, free: 30.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.254, allocations: 4 kB / 452.7 MB, free: 30.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.254, allocations: 0 / 452.7 MB, free: 30.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.2541, allocations: 0 / 452.7 MB, free: 30.63 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.003527/0.2576, allocations: 2.013 MB / 454.7 MB, free: 29.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2576, allocations: 9.844 kB / 454.7 MB, free: 29.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000197/0.2578, allocations: 190.3 kB / 454.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/0.2581, allocations: 147.8 kB / 455 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.2591, allocations: 0.8651 MB / 455.9 MB, free: 28.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.465e-05/0.2592, allocations: 117.9 kB / 456 MB, free: 28.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002133/0.2594, allocations: 142.1 kB / 456.2 MB, free: 28.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002227/0.2617, allocations: 1.588 MB / 457.7 MB, free: 28.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.2617, allocations: 4.641 kB / 457.7 MB, free: 28.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/0.2618, allocations: 50.06 kB / 457.8 MB, free: 28.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.186e-05/0.2618, allocations: 28.16 kB / 457.8 MB, free: 28.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002083/0.2639, allocations: 1.403 MB / 459.2 MB, free: 27.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008183/0.2721, allocations: 7.136 MB / 466.4 MB, free: 22.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004415/0.2766, allocations: 1.875 MB / 468.2 MB, free: 22.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009996/0.2776, allocations: 0.7416 MB / 469 MB, free: 21.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.234e-05/0.2776, allocations: 11.8 kB / 469 MB, free: 21.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.2777, allocations: 44 kB / 469 MB, free: 21.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 3.156e-06/0.2777, allocations: 0 / 469 MB, free: 21.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006177/0.2839, allocations: 3.92 MB / 473 MB, free: 19.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/0.2839, allocations: 75.8 kB / 473 MB, free: 19.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007104/0.2846, allocations: 0.6795 MB / 473.7 MB, free: 18.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.676e-05/0.2847, allocations: 41.23 kB / 473.7 MB, free: 18.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.2849, allocations: 0.5101 MB / 474.3 MB, free: 18.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002727/0.2852, allocations: 415.1 kB / 474.7 MB, free: 18.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000387/0.2856, allocations: 241.2 kB / 474.9 MB, free: 18.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.2857, allocations: 410 kB / 475.3 MB, free: 17.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.287, allocations: 0.8518 MB / 476.2 MB, free: 17.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.2883, allocations: 1.003 MB / 477.2 MB, free: 16.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01247/0.3008, allocations: 4.481 MB / 481.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3008, allocations: 6.188 kB / 481.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003581/0.3044, allocations: 2.46 MB / 484.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.3044, allocations: 8 kB / 484.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.3044, allocations: 4 kB / 484.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001507/0.3059, allocations: 0.5473 MB / 484.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.3076, allocations: 395.5 kB / 485 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01335/0.3209, allocations: 23.05 MB / 0.4962 GB, free: 2.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009419/0.3219, allocations: 150.6 kB / 0.4963 GB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.322, allocations: 48 kB / 0.4964 GB, free: 1.992 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 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 CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) 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 (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.000704/0.3227, allocations: 442.7 kB / 0.4968 GB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.3229, allocations: 90.88 kB / 0.4969 GB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003525/0.3264, allocations: 1.979 MB / 0.4988 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.3264, allocations: 12 kB / 0.4988 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.3265, allocations: 8 kB / 0.4988 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.3265, allocations: 7.969 kB / 0.4988 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005532/0.332, allocations: 3.715 MB / 0.5025 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.332, allocations: 0 / 0.5025 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001963/0.334, allocations: 343.6 kB / 0.5028 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001269/0.3353, allocations: 484.7 kB / 0.5033 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.3354, allocations: 63.97 kB / 0.5033 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01415/0.3496, allocations: 22.17 MB / 0.525 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3496, allocations: 3.938 kB / 0.525 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004322/0.3539, allocations: 2.722 MB / 0.5276 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.3541, allocations: 191.7 kB / 0.5278 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000208/0.3543, allocations: 67.97 kB / 0.5279 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007126/0.3551, allocations: 55.92 kB / 0.5279 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002197/0.3553, allocations: 96.73 kB / 0.528 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-05/0.3554, allocations: 36 kB / 0.5281 GB, free: 15.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005512/0.3559, allocations: 483 kB / 0.5285 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.356, allocations: 0 / 0.5285 GB, free: 14.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001317/0.3573, allocations: 0.4952 MB / 0.529 GB, free: 14.12 MB / 414.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 (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.004639/0.3619, allocations: 3.351 MB / 0.5323 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005269/0.3672, allocations: 3.995 MB / 0.5362 GB, free: 6.477 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3672, allocations: 0 / 0.5362 GB, free: 6.477 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002519/0.3697, allocations: 2.46 MB / 0.5386 GB, free: 3.824 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.3709, allocations: 314.4 kB / 0.5389 GB, free: 3.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02244/0.3933, allocations: 16.01 MB / 0.5545 GB, free: 2.992 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008618/0.3942, allocations: 1.278 MB / 0.5558 GB, free: 1.684 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009879/0.3952, allocations: 367.8 kB / 0.5561 GB, free: 1.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006655/0.3959, allocations: 463.3 kB / 0.5566 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3959, allocations: 0 / 0.5566 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8685/1.264, allocations: 34.07 MB / 0.5898 GB, free: 132.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/13.61, allocations: 9.453 kB / 0.5898 GB, free: 132.7 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/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)