Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.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: translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 100.1 kB / 15.88 MB, free: 8 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.002041/0.002041, allocations: 197.8 kB / 16.79 MB, free: 6.828 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.345/1.345, allocations: 222.9 MB / 240.5 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2056/0.2056, allocations: 22.35 MB / 313 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 68.02 kB / 380.8 MB, free: 11.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3066, allocations: 54.94 MB / 435.7 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.00416/0.3108, allocations: 4.578 MB / 440.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.3124, allocations: 1.285 MB / 441.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002152/0.3127, allocations: 12.38 kB / 441.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.3129, allocations: 130.5 kB / 441.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004902/0.3135, allocations: 413.7 kB / 442.1 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005277/0.314, allocations: 277.1 kB / 442.4 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001542/0.3155, allocations: 2.638 MB / 445 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.3167, allocations: 1.341 MB / 446.4 MB, free: 33.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005785/0.3173, allocations: 0.6696 MB / 447 MB, free: 33.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000886/0.3182, allocations: 0.98 MB / 448 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001961/0.3184, allocations: 117.8 kB / 448.1 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002599/0.3186, allocations: 116 kB / 448.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003963/0.319, allocations: 0.5839 MB / 448.8 MB, free: 32.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006489/0.3197, allocations: 0.795 MB / 449.6 MB, free: 32.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.3209, allocations: 2.111 MB / 451.7 MB, free: 31.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3209, allocations: 6.719 kB / 451.7 MB, free: 31.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3209, allocations: 0 / 451.7 MB, free: 31.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.198e-05/0.3209, allocations: 3.938 kB / 451.7 MB, free: 31.48 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003762/0.3247, allocations: 2.012 MB / 453.7 MB, free: 30.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.3247, allocations: 12.72 kB / 453.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002594/0.325, allocations: 147 kB / 453.9 MB, free: 30.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.3261, allocations: 0.8588 MB / 454.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.522e-05/0.3262, allocations: 121.7 kB / 454.9 MB, free: 29.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002326/0.3264, allocations: 138.1 kB / 455 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002697/0.3291, allocations: 1.59 MB / 456.6 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.676e-05/0.3292, allocations: 0.6562 kB / 456.6 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/0.3293, allocations: 45.62 kB / 456.6 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.986e-05/0.3293, allocations: 29.03 kB / 456.7 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002293/0.3316, allocations: 1.423 MB / 458.1 MB, free: 28.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009621/0.3413, allocations: 7.149 MB / 465.2 MB, free: 23.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00495/0.3463, allocations: 1.895 MB / 467.1 MB, free: 23.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.3474, allocations: 0.7268 MB / 467.9 MB, free: 22.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.729e-05/0.3475, allocations: 14.98 kB / 467.9 MB, free: 22.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.3475, allocations: 43.47 kB / 467.9 MB, free: 22.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.717e-06/0.3475, allocations: 0 / 467.9 MB, free: 22.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006825/0.3543, allocations: 3.939 MB / 471.9 MB, free: 20.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.3544, allocations: 62.88 kB / 471.9 MB, free: 20.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/0.3554, allocations: 0.6879 MB / 472.6 MB, free: 19.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.866e-05/0.3555, allocations: 46.98 kB / 472.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003077/0.3558, allocations: 0.4969 MB / 473.2 MB, free: 19.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003644/0.3562, allocations: 410 kB / 473.6 MB, free: 19.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004331/0.3566, allocations: 242.6 kB / 473.8 MB, free: 19.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3568, allocations: 409.6 kB / 474.2 MB, free: 18.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.3581, allocations: 0.8469 MB / 475 MB, free: 18.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.3595, allocations: 1.003 MB / 476 MB, free: 17.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01288/0.3724, allocations: 4.449 MB / 480.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.288e-05/0.3725, allocations: 2.562 kB / 480.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004498/0.377, allocations: 2.468 MB / 483 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.377, allocations: 9.719 kB / 483 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.3771, allocations: 4 kB / 483 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001615/0.3787, allocations: 0.5356 MB / 483.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/0.3803, allocations: 399.5 kB / 483.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01487/0.3952, allocations: 21.43 MB / 0.4935 GB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001717/0.3969, allocations: 154.9 kB / 0.4936 GB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003912/0.3974, allocations: 44 kB / 0.4937 GB, free: 4.969 MB / 366.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: 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 (157): * Single equations (assignments): 142 * 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.00146/0.3988, allocations: 421.3 kB / 0.4941 GB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005074/0.3993, allocations: 94.88 kB / 0.4942 GB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004382/0.4037, allocations: 1.979 MB / 0.4961 GB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.4038, allocations: 15.98 kB / 0.4961 GB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.878e-05/0.4038, allocations: 4 kB / 0.4961 GB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.4038, allocations: 7.922 kB / 0.4961 GB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006866/0.4107, allocations: 3.547 MB / 0.4996 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.4107, allocations: 8 kB / 0.4996 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002057/0.4128, allocations: 331.6 kB / 0.4999 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/0.4143, allocations: 480.5 kB / 0.5004 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002114/0.4145, allocations: 67.95 kB / 0.5004 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01725/0.4318, allocations: 20.57 MB / 0.5205 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.286e-05/0.4318, allocations: 8.016 kB / 0.5205 GB, free: 7.207 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005973/0.4378, allocations: 2.737 MB / 0.5232 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005359/0.4384, allocations: 195.7 kB / 0.5234 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003404/0.4387, allocations: 63.97 kB / 0.5235 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009958/0.4397, allocations: 75.77 kB / 0.5235 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003663/0.4401, allocations: 96.75 kB / 0.5236 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.4402, allocations: 31.98 kB / 0.5236 GB, free: 3.918 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007251/0.4409, allocations: 483 kB / 0.5241 GB, free: 3.449 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.954e-06/0.441, allocations: 0 / 0.5241 GB, free: 3.449 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001858/0.4428, allocations: 0.5067 MB / 0.5246 GB, free: 2.941 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 42 (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],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 (89): * Single equations (assignments): 74 * 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.0003439/0.4432, allocations: 176.3 kB / 0.5248 GB, free: 2.758 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004902/0.4481, allocations: 3.409 MB / 0.5281 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.4481, allocations: 0 / 0.5281 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003023/0.4511, allocations: 2.46 MB / 0.5305 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.4528, allocations: 309.5 kB / 0.5308 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.4631, allocations: 6.134 MB / 0.5368 GB, free: 6.023 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.4643, allocations: 1.264 MB / 0.538 GB, free: 4.727 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006234/0.465, allocations: 87.36 kB / 0.5381 GB, free: 4.641 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.465, allocations: 0 / 0.5381 GB, free: 4.641 MB / 414.1 MB Notification: Performance of Templates: time 0.2412/0.7061, allocations: 81.01 MB / 0.6172 GB, free: 126 MB / 462.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)