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.0009967/0.0009967, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.001419/0.001419, allocations: 173.5 kB / 16.27 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.424/1.424, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2021/0.2021, allocations: 22.35 MB / 313.8 MB, free: 13.05 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003665/0.0003665, allocations: 7.984 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.2984, allocations: 55.99 MB / 438.6 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.003566/0.302, allocations: 4.16 MB / 442.7 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002265/0.3043, allocations: 1.266 MB / 444 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003385/0.3046, allocations: 11.72 kB / 444 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.3049, allocations: 129.1 kB / 444.1 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005881/0.3055, allocations: 420.2 kB / 444.5 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005942/0.3061, allocations: 273.7 kB / 444.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001816/0.3079, allocations: 2.64 MB / 447.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001312/0.3092, allocations: 1.27 MB / 448.7 MB, free: 33.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000704/0.31, allocations: 0.6131 MB / 449.3 MB, free: 33.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.311, allocations: 0.912 MB / 450.2 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001742/0.3112, allocations: 96.16 kB / 450.3 MB, free: 32.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002176/0.3114, allocations: 95.69 kB / 450.4 MB, free: 32.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003615/0.3118, allocations: 0.5365 MB / 451 MB, free: 32.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006463/0.3124, allocations: 0.7698 MB / 451.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.3139, allocations: 2.427 MB / 454.2 MB, free: 31.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3139, allocations: 0 / 454.2 MB, free: 31.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3139, allocations: 0 / 454.2 MB, free: 31.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.046e-05/0.3139, allocations: 3.688 kB / 454.2 MB, free: 31.7 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.003757/0.3177, allocations: 1.778 MB / 456 MB, free: 30.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3177, allocations: 12.5 kB / 456 MB, free: 30.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003562/0.3181, allocations: 147.6 kB / 456.1 MB, free: 30.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.3194, allocations: 0.8609 MB / 457 MB, free: 30.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.3195, allocations: 121.5 kB / 457.1 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002636/0.3198, allocations: 139.3 kB / 457.2 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002896/0.3227, allocations: 1.596 MB / 458.8 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.027e-05/0.3227, allocations: 0 / 458.8 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.3229, allocations: 50.06 kB / 458.9 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/0.3229, allocations: 27.41 kB / 458.9 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002367/0.3253, allocations: 1.417 MB / 460.3 MB, free: 28.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01092/0.3362, allocations: 7.2 MB / 467.5 MB, free: 24.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004885/0.3411, allocations: 1.893 MB / 469.4 MB, free: 23.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001151/0.3423, allocations: 0.7216 MB / 470.1 MB, free: 23.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.553e-05/0.3424, allocations: 20.44 kB / 470.1 MB, free: 23.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.3424, allocations: 44.34 kB / 470.2 MB, free: 23.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.875e-06/0.3424, allocations: 0 / 470.2 MB, free: 23.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007225/0.3497, allocations: 4.002 MB / 474.2 MB, free: 20.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.3497, allocations: 62.41 kB / 474.3 MB, free: 20.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.3509, allocations: 0.6888 MB / 474.9 MB, free: 20.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001411/0.351, allocations: 44.36 kB / 475 MB, free: 20.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003026/0.3513, allocations: 0.5117 MB / 475.5 MB, free: 19.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003875/0.3517, allocations: 409.9 kB / 475.9 MB, free: 19.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/0.3519, allocations: 114.5 kB / 476 MB, free: 19.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.3521, allocations: 414.8 kB / 476.4 MB, free: 19.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.3535, allocations: 0.8456 MB / 477.3 MB, free: 18.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.3549, allocations: 0.9991 MB / 478.3 MB, free: 18.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01289/0.3678, allocations: 4.615 MB / 482.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/0.3679, allocations: 0 / 482.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003937/0.3718, allocations: 2.484 MB / 485.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.3718, allocations: 12.03 kB / 485.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.3719, allocations: 4 kB / 485.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.3734, allocations: 0.5511 MB / 485.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001614/0.375, allocations: 391.5 kB / 486.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0135/0.3885, allocations: 21.47 MB / 0.4959 GB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00159/0.3902, allocations: 150.9 kB / 0.496 GB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.3903, allocations: 51.98 kB / 0.4961 GB, free: 4.395 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.000884/0.3912, allocations: 418.9 kB / 0.4965 GB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001868/0.3914, allocations: 90.88 kB / 0.4966 GB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003692/0.3951, allocations: 1.983 MB / 0.4985 GB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.3951, allocations: 8 kB / 0.4985 GB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.3951, allocations: 4 kB / 0.4985 GB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.3951, allocations: 11.92 kB / 0.4985 GB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005747/0.4009, allocations: 3.551 MB / 0.502 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.4009, allocations: 7.938 kB / 0.502 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001985/0.4029, allocations: 331.7 kB / 0.5023 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001308/0.4042, allocations: 472.6 kB / 0.5028 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/0.4044, allocations: 67.95 kB / 0.5028 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01515/0.4195, allocations: 20.6 MB / 0.5229 GB, free: 6.617 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.4196, allocations: 0 / 0.5229 GB, free: 6.617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005089/0.4247, allocations: 2.726 MB / 0.5256 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003659/0.4251, allocations: 199.8 kB / 0.5258 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/0.4253, allocations: 55.98 kB / 0.5258 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007953/0.4261, allocations: 75.77 kB / 0.5259 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002898/0.4264, allocations: 96.75 kB / 0.526 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.617e-05/0.4265, allocations: 31.98 kB / 0.526 GB, free: 3.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000631/0.4271, allocations: 479 kB / 0.5265 GB, free: 2.875 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4271, allocations: 0 / 0.5265 GB, free: 2.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001624/0.4288, allocations: 0.5107 MB / 0.527 GB, free: 2.363 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.000285/0.4291, allocations: 182.6 kB / 0.5272 GB, free: 2.176 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004464/0.4335, allocations: 3.424 MB / 0.5305 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.4336, allocations: 0 / 0.5305 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0028/0.4364, allocations: 2.472 MB / 0.5329 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.4379, allocations: 302.7 kB / 0.5332 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009908/0.4478, allocations: 6.591 MB / 0.5397 GB, free: 4.965 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009945/0.4489, allocations: 1.26 MB / 0.5409 GB, free: 3.668 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001242/0.4501, allocations: 367.6 kB / 0.5412 GB, free: 3.305 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003185/0.4505, allocations: 71.44 kB / 0.5413 GB, free: 3.234 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4505, allocations: 0 / 0.5413 GB, free: 3.234 MB / 414.1 MB Notification: Performance of Templates: time 0.03725/0.4877, allocations: 21.49 MB / 0.5623 GB, free: 13.98 MB / 446.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)