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: translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000837/0.0008371, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005816/0.005816, allocations: 170 kB / 16.26 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.402/1.402, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2341/0.2341, allocations: 22.35 MB / 313.8 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.0003104, allocations: 15.94 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2825, allocations: 55.98 MB / 438.6 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.003631/0.2861, allocations: 4.184 MB / 442.8 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002267/0.2885, allocations: 1.276 MB / 444 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005237/0.289, allocations: 16.41 kB / 444 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003493/0.2894, allocations: 125.1 kB / 444.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008072/0.2902, allocations: 423 kB / 444.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009348/0.2911, allocations: 283.3 kB / 444.9 MB, free: 34.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002682/0.2938, allocations: 2.663 MB / 447.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001748/0.2956, allocations: 1.281 MB / 448.8 MB, free: 33.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001188/0.2968, allocations: 0.629 MB / 449.4 MB, free: 33.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001619/0.2985, allocations: 0.9084 MB / 450.3 MB, free: 32.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003955/0.2989, allocations: 88.94 kB / 450.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003923/0.2993, allocations: 91.06 kB / 450.5 MB, free: 32.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004896/0.2998, allocations: 0.5391 MB / 451.1 MB, free: 32.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008815/0.3007, allocations: 0.7797 MB / 451.8 MB, free: 32.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001763/0.3024, allocations: 2.397 MB / 454.2 MB, free: 31.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3025, allocations: 5.938 kB / 454.2 MB, free: 31.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3025, allocations: 0 / 454.2 MB, free: 31.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.476e-05/0.3026, allocations: 0 / 454.2 MB, free: 31.57 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.00424/0.3068, allocations: 1.775 MB / 456 MB, free: 30.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.3069, allocations: 13.59 kB / 456 MB, free: 30.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005032/0.3074, allocations: 146.3 kB / 456.2 MB, free: 30.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.3089, allocations: 0.8707 MB / 457 MB, free: 30.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.309, allocations: 114.8 kB / 457.1 MB, free: 29.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003964/0.3094, allocations: 136 kB / 457.3 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003761/0.3132, allocations: 1.593 MB / 458.9 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.71e-05/0.3133, allocations: 1.562 kB / 458.9 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001626/0.3134, allocations: 48.69 kB / 458.9 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.551e-05/0.3135, allocations: 28.84 kB / 459 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002779/0.3163, allocations: 1.401 MB / 460.4 MB, free: 28.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01254/0.3288, allocations: 7.173 MB / 467.5 MB, free: 24.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005909/0.3348, allocations: 1.874 MB / 469.4 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001547/0.3364, allocations: 0.7373 MB / 470.1 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/0.3365, allocations: 15.61 kB / 470.2 MB, free: 23.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/0.3366, allocations: 48.06 kB / 470.2 MB, free: 23.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 4.959e-06/0.3366, allocations: 0 / 470.2 MB, free: 23.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.008332/0.3449, allocations: 3.985 MB / 474.2 MB, free: 20.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.843e-05/0.345, allocations: 62.78 kB / 474.2 MB, free: 20.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/0.3467, allocations: 0.6842 MB / 474.9 MB, free: 20.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001696/0.3469, allocations: 41.08 kB / 475 MB, free: 20.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005396/0.3474, allocations: 0.51 MB / 475.5 MB, free: 19.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006301/0.3481, allocations: 415.8 kB / 475.9 MB, free: 19.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003689/0.3485, allocations: 115.5 kB / 476 MB, free: 19.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002568/0.3487, allocations: 414.5 kB / 476.4 MB, free: 18.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001796/0.3505, allocations: 0.8457 MB / 477.3 MB, free: 18.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001728/0.3523, allocations: 1.003 MB / 478.3 MB, free: 18.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01489/0.3672, allocations: 4.672 MB / 482.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.484e-05/0.3672, allocations: 0 / 482.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004787/0.372, allocations: 2.488 MB / 485.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.3721, allocations: 8 kB / 485.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.3721, allocations: 4 kB / 485.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001698/0.3738, allocations: 0.559 MB / 486 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.3757, allocations: 395.5 kB / 486.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01444/0.3901, allocations: 21.46 MB / 0.4959 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.3918, allocations: 158.7 kB / 0.4961 GB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000343/0.3921, allocations: 52.09 kB / 0.4961 GB, free: 4.344 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.001321/0.3935, allocations: 434.7 kB / 0.4965 GB, free: 3.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004402/0.3939, allocations: 86.97 kB / 0.4966 GB, free: 3.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004601/0.3985, allocations: 1.979 MB / 0.4986 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.3986, allocations: 12 kB / 0.4986 GB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.89e-05/0.3986, allocations: 11.94 kB / 0.4986 GB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/0.3987, allocations: 7.969 kB / 0.4986 GB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007874/0.4065, allocations: 3.704 MB / 0.5022 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.4066, allocations: 4.25 kB / 0.5022 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002117/0.4087, allocations: 347.6 kB / 0.5025 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001432/0.4102, allocations: 484.5 kB / 0.503 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002005/0.4104, allocations: 67.97 kB / 0.5031 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01699/0.4274, allocations: 20.59 MB / 0.5232 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.832e-06/0.4275, allocations: 4 kB / 0.5232 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00745/0.4349, allocations: 2.73 MB / 0.5258 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000713/0.4357, allocations: 191.8 kB / 0.526 GB, free: 3.363 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004383/0.4361, allocations: 55.98 kB / 0.5261 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.4374, allocations: 71.77 kB / 0.5262 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004644/0.4379, allocations: 104.7 kB / 0.5263 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/0.4381, allocations: 31.94 kB / 0.5263 GB, free: 3.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008844/0.439, allocations: 479 kB / 0.5267 GB, free: 2.641 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.439, allocations: 0 / 0.5267 GB, free: 2.641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002437/0.4414, allocations: 0.4991 MB / 0.5272 GB, free: 2.141 MB / 398.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.0004233/0.4419, allocations: 182.6 kB / 0.5274 GB, free: 1.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005188/0.4471, allocations: 3.432 MB / 0.5308 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.4471, allocations: 0 / 0.5308 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003037/0.4501, allocations: 2.464 MB / 0.5332 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/0.4518, allocations: 310.8 kB / 0.5335 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01122/0.4631, allocations: 6.649 MB / 0.5399 GB, free: 4.676 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001293/0.4644, allocations: 1.276 MB / 0.5412 GB, free: 3.371 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001474/0.4659, allocations: 371.8 kB / 0.5415 GB, free: 3.004 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004293/0.4664, allocations: 75.42 kB / 0.5416 GB, free: 2.93 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4664, allocations: 4 kB / 0.5416 GB, free: 2.926 MB / 414.1 MB Notification: Performance of Templates: time 0.03901/0.5054, allocations: 21.52 MB / 0.5626 GB, free: 13.64 MB / 446.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.makefile (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 & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1)