Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.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_component_models.Controlled_heater_case_003_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.01143/0.01143, allocations: 170 kB / 16.27 MB, free: 6.648 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.438/1.438, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2289/0.2289, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003416/0.0003415, allocations: 8 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.309, allocations: 55.98 MB / 438.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.003864/0.3129, allocations: 4.17 MB / 442.7 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002646/0.3156, allocations: 1.264 MB / 444 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007571/0.3164, allocations: 12.47 kB / 444 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004968/0.3169, allocations: 127.3 kB / 444.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001316/0.3183, allocations: 423.2 kB / 444.6 MB, free: 35.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.3193, allocations: 273 kB / 444.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00273/0.322, allocations: 2.637 MB / 447.5 MB, free: 33.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001839/0.3239, allocations: 1.272 MB / 448.7 MB, free: 33.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001347/0.3253, allocations: 0.6187 MB / 449.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001556/0.3268, allocations: 0.9123 MB / 450.3 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004735/0.3273, allocations: 96.06 kB / 450.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00033/0.3276, allocations: 92.28 kB / 450.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004193/0.3281, allocations: 0.5452 MB / 451 MB, free: 32.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007373/0.3288, allocations: 0.7756 MB / 451.8 MB, free: 32.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001485/0.3303, allocations: 2.418 MB / 454.2 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3303, allocations: 0 / 454.2 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3303, allocations: 0 / 454.2 MB, free: 31.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.708e-05/0.3304, allocations: 0 / 454.2 MB, free: 31.64 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.00349/0.3339, allocations: 1.78 MB / 456 MB, free: 30.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.3339, allocations: 9.375 kB / 456 MB, free: 30.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003121/0.3342, allocations: 147.1 kB / 456.1 MB, free: 30.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.3354, allocations: 0.8616 MB / 457 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.3356, allocations: 120.9 kB / 457.1 MB, free: 30.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002469/0.3358, allocations: 139.7 kB / 457.2 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00269/0.3385, allocations: 1.589 MB / 458.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/0.3385, allocations: 0.5625 kB / 458.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001396/0.3387, allocations: 50.09 kB / 458.9 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.3387, allocations: 28.66 kB / 458.9 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002263/0.341, allocations: 1.419 MB / 460.3 MB, free: 28.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009664/0.3507, allocations: 7.21 MB / 467.5 MB, free: 24.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00469/0.3554, allocations: 1.887 MB / 469.4 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.3565, allocations: 0.724 MB / 470.1 MB, free: 23.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.869e-05/0.3565, allocations: 14.62 kB / 470.2 MB, free: 23.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.3566, allocations: 45 kB / 470.2 MB, free: 23.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.766e-06/0.3566, allocations: 1.375 kB / 470.2 MB, free: 23.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006677/0.3633, allocations: 3.997 MB / 474.2 MB, free: 20.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.3633, allocations: 62.86 kB / 474.3 MB, free: 20.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009095/0.3642, allocations: 0.6922 MB / 475 MB, free: 20.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.903e-05/0.3643, allocations: 45.42 kB / 475 MB, free: 20.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000266/0.3646, allocations: 0.5072 MB / 475.5 MB, free: 19.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003185/0.3649, allocations: 409.9 kB / 475.9 MB, free: 19.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.3651, allocations: 111.1 kB / 476 MB, free: 19.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3653, allocations: 414.1 kB / 476.4 MB, free: 19.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.3666, allocations: 0.8416 MB / 477.3 MB, free: 18.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.3679, allocations: 1.01 MB / 478.3 MB, free: 18.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/0.3806, allocations: 4.612 MB / 482.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.91e-05/0.3807, allocations: 4 kB / 482.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00427/0.3849, allocations: 2.48 MB / 485.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.385, allocations: 12.03 kB / 485.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.385, allocations: 4 kB / 485.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/0.3866, allocations: 0.5511 MB / 485.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0017/0.3883, allocations: 395.5 kB / 486.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/0.402, allocations: 21.47 MB / 0.4959 GB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001647/0.4037, allocations: 158.8 kB / 0.496 GB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/0.4039, allocations: 48 kB / 0.4961 GB, free: 4.402 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.0009684/0.4049, allocations: 415.3 kB / 0.4965 GB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002579/0.4051, allocations: 94.88 kB / 0.4966 GB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00378/0.4089, allocations: 1.979 MB / 0.4985 GB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.4089, allocations: 19.97 kB / 0.4985 GB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.409, allocations: 4 kB / 0.4985 GB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.409, allocations: 7.922 kB / 0.4985 GB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005966/0.415, allocations: 3.547 MB / 0.502 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/0.415, allocations: 7.938 kB / 0.502 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002011/0.417, allocations: 335.6 kB / 0.5023 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.4184, allocations: 472.6 kB / 0.5028 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001967/0.4187, allocations: 63.97 kB / 0.5028 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01484/0.4335, allocations: 20.6 MB / 0.523 GB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.4335, allocations: 7.938 kB / 0.523 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004987/0.4385, allocations: 2.73 MB / 0.5256 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000447/0.439, allocations: 191.8 kB / 0.5258 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/0.4392, allocations: 63.97 kB / 0.5259 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008243/0.4401, allocations: 71.77 kB / 0.5259 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003069/0.4404, allocations: 92.75 kB / 0.526 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.739e-05/0.4405, allocations: 35.98 kB / 0.5261 GB, free: 3.344 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006515/0.4411, allocations: 483 kB / 0.5265 GB, free: 2.875 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.4411, allocations: 0 / 0.5265 GB, free: 2.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001746/0.4429, allocations: 0.5029 MB / 0.527 GB, free: 2.371 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.0002928/0.4432, allocations: 177.8 kB / 0.5272 GB, free: 2.188 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0046/0.4478, allocations: 3.432 MB / 0.5305 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4478, allocations: 0 / 0.5305 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003047/0.4509, allocations: 2.464 MB / 0.5329 GB, free: 11.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.4527, allocations: 304.5 kB / 0.5332 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/0.463, allocations: 6.59 MB / 0.5397 GB, free: 4.973 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.464, allocations: 1.26 MB / 0.5409 GB, free: 3.676 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001219/0.4652, allocations: 359.6 kB / 0.5412 GB, free: 3.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003242/0.4656, allocations: 79.42 kB / 0.5413 GB, free: 3.242 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4656, allocations: 0 / 0.5413 GB, free: 3.242 MB / 414.1 MB Notification: Performance of Templates: time 0.03805/0.5036, allocations: 21.5 MB / 0.5623 GB, free: 13.98 MB / 446.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)