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.001056/0.001055, allocations: 92.47 kB / 16.02 MB, free: 80 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.001319/0.001319, allocations: 176.8 kB / 16.92 MB, free: 6.652 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.388/1.388, allocations: 223.3 MB / 241 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2041/0.2041, allocations: 22.34 MB / 314.4 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.00036, allocations: 8 kB / 383.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2647, allocations: 55.96 MB / 439.2 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.003225/0.268, allocations: 4.19 MB / 443.4 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001896/0.2699, allocations: 1.276 MB / 444.7 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000315/0.2702, allocations: 18.94 kB / 444.7 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002421/0.2705, allocations: 126.8 kB / 444.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005741/0.2711, allocations: 417.1 kB / 445.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005764/0.2716, allocations: 283 kB / 445.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001742/0.2734, allocations: 2.667 MB / 448.2 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001249/0.2747, allocations: 1.273 MB / 449.5 MB, free: 33.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000743/0.2754, allocations: 0.6368 MB / 450.1 MB, free: 33.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001038/0.2765, allocations: 0.8974 MB / 451 MB, free: 33.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001969/0.2767, allocations: 93.67 kB / 451.1 MB, free: 33.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002346/0.2769, allocations: 91.81 kB / 451.2 MB, free: 33.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004328/0.2773, allocations: 0.5411 MB / 451.7 MB, free: 32.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007367/0.2781, allocations: 0.7731 MB / 452.5 MB, free: 32.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001347/0.2794, allocations: 2.036 MB / 454.5 MB, free: 32.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2795, allocations: 4 kB / 454.5 MB, free: 32.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.2795, allocations: 3.938 kB / 454.5 MB, free: 32.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.082e-05/0.2795, allocations: 0 / 454.5 MB, free: 32.04 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.003659/0.2832, allocations: 1.773 MB / 456.3 MB, free: 31.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2832, allocations: 12.66 kB / 456.3 MB, free: 31.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002625/0.2835, allocations: 153 kB / 456.5 MB, free: 31.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.2846, allocations: 0.8663 MB / 457.3 MB, free: 30.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.2848, allocations: 118.8 kB / 457.4 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002551/0.285, allocations: 130.7 kB / 457.6 MB, free: 30.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002671/0.2877, allocations: 1.59 MB / 459.2 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.2877, allocations: 0 / 459.2 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.2879, allocations: 57.84 kB / 459.2 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.414e-05/0.2879, allocations: 28.62 kB / 459.3 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002333/0.2902, allocations: 1.411 MB / 460.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0104/0.3007, allocations: 7.172 MB / 467.8 MB, free: 24.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00482/0.3055, allocations: 1.87 MB / 469.7 MB, free: 23.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001134/0.3067, allocations: 0.7328 MB / 470.4 MB, free: 23.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.743e-05/0.3068, allocations: 14.61 kB / 470.5 MB, free: 23.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.3068, allocations: 48.44 kB / 470.5 MB, free: 23.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.915e-06/0.3068, allocations: 1.375 kB / 470.5 MB, free: 23.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007096/0.3139, allocations: 3.991 MB / 474.5 MB, free: 21.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.314, allocations: 63.3 kB / 474.6 MB, free: 20.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.315, allocations: 0.678 MB / 475.2 MB, free: 20.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.3152, allocations: 42.25 kB / 475.3 MB, free: 20.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003046/0.3155, allocations: 0.5113 MB / 475.8 MB, free: 20.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003941/0.3159, allocations: 415.5 kB / 476.2 MB, free: 19.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.3161, allocations: 117 kB / 476.3 MB, free: 19.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.3163, allocations: 417.3 kB / 476.7 MB, free: 19.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.3176, allocations: 0.839 MB / 477.6 MB, free: 19.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.3191, allocations: 1.002 MB / 478.6 MB, free: 18.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01423/0.3333, allocations: 4.671 MB / 483.2 MB, free: 16.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.3334, allocations: 3.938 kB / 483.2 MB, free: 16.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004364/0.3377, allocations: 2.496 MB / 485.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.3378, allocations: 4 kB / 485.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.3378, allocations: 12.03 kB / 485.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/0.3395, allocations: 0.5394 MB / 486.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001981/0.3415, allocations: 407.5 kB / 486.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01354/0.3551, allocations: 21.45 MB / 0.4962 GB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.3567, allocations: 154.8 kB / 0.4964 GB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/0.3569, allocations: 51.98 kB / 0.4964 GB, free: 4.754 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.0008728/0.3577, allocations: 433.3 kB / 0.4968 GB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.358, allocations: 90.91 kB / 0.4969 GB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003802/0.3618, allocations: 1.99 MB / 0.4989 GB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.3618, allocations: 12 kB / 0.4989 GB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.3618, allocations: 7.938 kB / 0.4989 GB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.3619, allocations: 8.062 kB / 0.4989 GB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006534/0.3684, allocations: 3.704 MB / 0.5025 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.3684, allocations: 0 / 0.5025 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002072/0.3705, allocations: 347.6 kB / 0.5028 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001358/0.3719, allocations: 480.8 kB / 0.5033 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000212/0.3721, allocations: 63.97 kB / 0.5033 GB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/0.3865, allocations: 20.6 MB / 0.5235 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3866, allocations: 0 / 0.5235 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004946/0.3915, allocations: 2.726 MB / 0.5261 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004387/0.392, allocations: 195.8 kB / 0.5263 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002278/0.3922, allocations: 63.97 kB / 0.5264 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007986/0.393, allocations: 75.77 kB / 0.5265 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003063/0.3934, allocations: 96.75 kB / 0.5265 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.639e-05/0.3935, allocations: 31.98 kB / 0.5266 GB, free: 3.504 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006116/0.3941, allocations: 475 kB / 0.527 GB, free: 3.043 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3941, allocations: 4 kB / 0.527 GB, free: 3.039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001632/0.3957, allocations: 0.4952 MB / 0.5275 GB, free: 2.543 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.0002841/0.396, allocations: 187.5 kB / 0.5277 GB, free: 2.355 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004446/0.4005, allocations: 3.429 MB / 0.531 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.4005, allocations: 4.25 kB / 0.531 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002734/0.4032, allocations: 2.471 MB / 0.5335 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.4048, allocations: 302.6 kB / 0.5337 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009555/0.4144, allocations: 6.755 MB / 0.5403 GB, free: 4.961 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008951/0.4153, allocations: 1.278 MB / 0.5416 GB, free: 3.656 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006165/0.416, allocations: 87.41 kB / 0.5417 GB, free: 3.57 MB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.416, allocations: 0 / 0.5417 GB, free: 3.57 MB / 414.1 MB Notification: Performance of Templates: time 0.2475/0.6635, allocations: 81.56 MB / 0.6213 GB, free: 99.4 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)