Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.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_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",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.001038/0.001043, 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.001046/0.001046, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2017/0.2017, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 55.91 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2456, allocations: 54.94 MB / 435.9 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.004224/0.2499, allocations: 4.419 MB / 440.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.2519, allocations: 1.283 MB / 441.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004087/0.2524, allocations: 16.78 kB / 441.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003137/0.2527, allocations: 161.1 kB / 441.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006015/0.2533, allocations: 441.9 kB / 442.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006352/0.254, allocations: 310.1 kB / 442.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001277/0.2552, allocations: 2.171 MB / 444.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001183/0.2564, allocations: 1.598 MB / 446.2 MB, free: 33.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005877/0.257, allocations: 0.8339 MB / 447.1 MB, free: 32.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008279/0.2579, allocations: 0.979 MB / 448.1 MB, free: 32.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000246/0.2581, allocations: 228.8 kB / 448.3 MB, free: 32.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002955/0.2584, allocations: 232.4 kB / 448.5 MB, free: 32.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000394/0.2588, allocations: 0.6925 MB / 449.2 MB, free: 31.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006367/0.2595, allocations: 0.9173 MB / 450.1 MB, free: 31.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001304/0.2608, allocations: 2.55 MB / 452.7 MB, free: 30.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2608, allocations: 4 kB / 452.7 MB, free: 30.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2608, allocations: 0 / 452.7 MB, free: 30.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.988e-05/0.2608, allocations: 0 / 452.7 MB, free: 30.52 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.003789/0.2646, allocations: 2.014 MB / 454.7 MB, free: 29.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2647, allocations: 10 kB / 454.7 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002086/0.2649, allocations: 181.9 kB / 454.9 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002599/0.2652, allocations: 150.5 kB / 455 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.2662, allocations: 0.8681 MB / 455.9 MB, free: 28.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.831e-05/0.2663, allocations: 118.6 kB / 456 MB, free: 28.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002177/0.2666, allocations: 136.4 kB / 456.1 MB, free: 28.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0024/0.269, allocations: 1.59 MB / 457.7 MB, free: 27.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.269, allocations: 3.938 kB / 457.7 MB, free: 27.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.2692, allocations: 50.75 kB / 457.8 MB, free: 27.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.2692, allocations: 28 kB / 457.8 MB, free: 27.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002162/0.2713, allocations: 1.407 MB / 459.2 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00899/0.2803, allocations: 7.139 MB / 466.4 MB, free: 22.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004769/0.2851, allocations: 1.876 MB / 468.2 MB, free: 22.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.2862, allocations: 0.7343 MB / 469 MB, free: 21.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.587e-05/0.2863, allocations: 10.62 kB / 469 MB, free: 21.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.2863, allocations: 48.34 kB / 469 MB, free: 21.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.986e-06/0.2863, allocations: 3.938 kB / 469 MB, free: 21.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006795/0.2931, allocations: 3.921 MB / 472.9 MB, free: 19.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.2932, allocations: 65.84 kB / 473 MB, free: 19.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009975/0.2942, allocations: 0.6791 MB / 473.7 MB, free: 18.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.756e-05/0.2943, allocations: 41.2 kB / 473.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002704/0.2945, allocations: 0.5175 MB / 474.2 MB, free: 18.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003269/0.2949, allocations: 413.8 kB / 474.7 MB, free: 18.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004149/0.2953, allocations: 240 kB / 474.9 MB, free: 17.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.2954, allocations: 410 kB / 475.3 MB, free: 17.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.2967, allocations: 0.8475 MB / 476.1 MB, free: 17.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001344/0.298, allocations: 1.003 MB / 477.1 MB, free: 16.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01318/0.3112, allocations: 4.485 MB / 481.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.3113, allocations: 1.344 kB / 481.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003821/0.3151, allocations: 2.465 MB / 484.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.3151, allocations: 9.25 kB / 484.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.3151, allocations: 4 kB / 484.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001572/0.3167, allocations: 0.5395 MB / 484.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001685/0.3184, allocations: 403.5 kB / 485 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01386/0.3323, allocations: 23.05 MB / 0.4962 GB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.3336, allocations: 158.7 kB / 0.4963 GB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.3337, allocations: 44 kB / 0.4964 GB, free: 1.867 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.0007665/0.3345, allocations: 441.7 kB / 0.4968 GB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/0.3347, allocations: 94.88 kB / 0.4969 GB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0036/0.3383, allocations: 1.983 MB / 0.4988 GB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/0.3383, allocations: 15.98 kB / 0.4988 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3383, allocations: 4 kB / 0.4988 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.3383, allocations: 3.984 kB / 0.4988 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005762/0.3441, allocations: 3.707 MB / 0.5025 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.3441, allocations: 0 / 0.5025 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002032/0.3462, allocations: 343.6 kB / 0.5028 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/0.3475, allocations: 484.7 kB / 0.5033 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/0.3477, allocations: 67.95 kB / 0.5033 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01559/0.3633, allocations: 22.17 MB / 0.525 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.3633, allocations: 7.938 kB / 0.525 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004931/0.3683, allocations: 2.726 MB / 0.5276 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000316/0.3686, allocations: 195.7 kB / 0.5278 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000243/0.3688, allocations: 51.98 kB / 0.5279 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008318/0.3697, allocations: 59.92 kB / 0.5279 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/0.37, allocations: 100.8 kB / 0.528 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.119e-05/0.3701, allocations: 31.98 kB / 0.5281 GB, free: 14.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006323/0.3707, allocations: 479 kB / 0.5285 GB, free: 14.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3707, allocations: 0 / 0.5285 GB, free: 14.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001618/0.3723, allocations: 0.4952 MB / 0.529 GB, free: 14 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.004957/0.3773, allocations: 3.348 MB / 0.5323 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005485/0.3828, allocations: 4 MB / 0.5362 GB, free: 6.359 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3828, allocations: 8 kB / 0.5362 GB, free: 6.352 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002678/0.3855, allocations: 2.455 MB / 0.5386 GB, free: 3.703 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.3869, allocations: 319.8 kB / 0.5389 GB, free: 3.395 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02646/0.4134, allocations: 16 MB / 0.5545 GB, free: 2.879 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.4145, allocations: 1.282 MB / 0.5558 GB, free: 1.566 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001178/0.4157, allocations: 367.8 kB / 0.5561 GB, free: 1.203 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007568/0.4164, allocations: 463.3 kB / 0.5566 GB, free: 0.75 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4165, allocations: 0 / 0.5566 GB, free: 0.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2427/0.6592, allocations: 34.08 MB / 0.5898 GB, free: 132.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/13.16, allocations: 10.09 kB / 0.5899 GB, free: 132.7 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)