Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009745/0.0009744, allocations: 90.98 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.007885/0.007885, allocations: 170.9 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.593/1.593, 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.2292/0.2292, allocations: 22.34 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003077, allocations: 8 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3636, allocations: 55.98 MB / 438.6 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003021/0.3667, allocations: 3.112 MB / 441.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.3681, allocations: 0.943 MB / 442.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.3683, allocations: 8.938 kB / 442.6 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000197/0.3685, allocations: 77.95 kB / 442.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003461/0.3689, allocations: 245.3 kB / 442.9 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.3693, allocations: 166.6 kB / 443.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.3704, allocations: 1.499 MB / 444.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007081/0.3711, allocations: 0.709 MB / 445.3 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000363/0.3715, allocations: 362.4 kB / 445.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005815/0.3721, allocations: 0.5237 MB / 446.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.891e-05/0.3722, allocations: 61.12 kB / 446.3 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.3723, allocations: 57.41 kB / 446.3 MB, free: 34.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002283/0.3725, allocations: 307.3 kB / 446.6 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000404/0.3729, allocations: 475.7 kB / 447.1 MB, free: 34.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001001/0.374, allocations: 1.365 MB / 448.4 MB, free: 34.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.374, allocations: 3.156 kB / 448.4 MB, free: 34.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.374, allocations: 0 / 448.4 MB, free: 34.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.374, allocations: 0 / 448.4 MB, free: 34.06 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002383/0.3764, allocations: 1.14 MB / 449.6 MB, free: 33.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.3764, allocations: 14.56 kB / 449.6 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.3766, allocations: 93 kB / 449.7 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007445/0.3774, allocations: 0.5669 MB / 450.3 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.39e-05/0.3775, allocations: 82.48 kB / 450.3 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.3776, allocations: 81.31 kB / 450.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.3792, allocations: 0.9314 MB / 451.3 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.3792, allocations: 0 / 451.3 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.421e-05/0.3793, allocations: 29.41 kB / 451.4 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.3793, allocations: 22.11 kB / 451.4 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/0.3805, allocations: 0.807 MB / 452.2 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004903/0.3854, allocations: 4.001 MB / 456.2 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002622/0.3881, allocations: 1.022 MB / 457.2 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006316/0.3887, allocations: 416.7 kB / 457.6 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.524e-05/0.3888, allocations: 9.562 kB / 457.6 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.3888, allocations: 42.44 kB / 457.7 MB, free: 28.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.565e-06/0.3888, allocations: 0 / 457.7 MB, free: 28.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.00456/0.3934, allocations: 2.388 MB / 460.1 MB, free: 27.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.3934, allocations: 58.5 kB / 460.1 MB, free: 27.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006597/0.3941, allocations: 416 kB / 460.5 MB, free: 27.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.326e-05/0.3942, allocations: 41.2 kB / 460.6 MB, free: 27.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.3945, allocations: 324 kB / 460.9 MB, free: 26.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.3947, allocations: 231.6 kB / 461.1 MB, free: 26.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.3949, allocations: 66.05 kB / 461.2 MB, free: 26.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.395, allocations: 367.3 kB / 461.5 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007968/0.3958, allocations: 451.1 kB / 462 MB, free: 26.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006967/0.3965, allocations: 0.4983 MB / 462.5 MB, free: 25.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007502/0.4041, allocations: 2.441 MB / 464.9 MB, free: 25.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.4041, allocations: 9.594 kB / 464.9 MB, free: 25.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002627/0.4067, allocations: 1.353 MB / 466.3 MB, free: 24.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.4068, allocations: 13.09 kB / 466.3 MB, free: 24.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4068, allocations: 2.094 kB / 466.3 MB, free: 24.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/0.4079, allocations: 345.6 kB / 466.6 MB, free: 24.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009112/0.4088, allocations: 185.9 kB / 466.8 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00848/0.4173, allocations: 14.09 MB / 480.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007913/0.4181, allocations: 81.7 kB / 481 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.917e-05/0.4182, allocations: 25.2 kB / 481 MB, free: 10.42 MB / 350.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: 7 * 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 (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005467/0.4188, allocations: 282.4 kB / 481.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.4189, allocations: 52.75 kB / 481.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00227/0.4212, allocations: 1.138 MB / 482.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.629e-06/0.4212, allocations: 14.03 kB / 482.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.4212, allocations: 2.688 kB / 482.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.4212, allocations: 3.141 kB / 482.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003533/0.4248, allocations: 2.123 MB / 484.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.4248, allocations: 9.344 kB / 484.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009413/0.4257, allocations: 160.3 kB / 484.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008238/0.4266, allocations: 311.9 kB / 485.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.823e-05/0.4266, allocations: 34.16 kB / 485.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008508/0.4352, allocations: 13.67 MB / 498.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.4352, allocations: 5.984 kB / 498.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00304/0.4382, allocations: 1.596 MB / 0.4887 GB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002868/0.4386, allocations: 148.7 kB / 0.4888 GB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.4387, allocations: 29.62 kB / 0.4888 GB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004597/0.4391, allocations: 35.22 kB / 0.4889 GB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.4393, allocations: 56.94 kB / 0.4889 GB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-05/0.4394, allocations: 18.97 kB / 0.4889 GB, free: 9.801 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004839/0.4399, allocations: 294.4 kB / 0.4892 GB, free: 9.648 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4399, allocations: 0 / 0.4892 GB, free: 9.648 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001122/0.441, allocations: 300.1 kB / 0.4895 GB, free: 9.59 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (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]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00022/0.4413, allocations: 140.8 kB / 0.4896 GB, free: 9.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002968/0.4442, allocations: 2.043 MB / 0.4916 GB, free: 7.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.4442, allocations: 0 / 0.4916 GB, free: 7.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00198/0.4462, allocations: 1.556 MB / 0.4932 GB, free: 6.676 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009157/0.4472, allocations: 174 kB / 0.4933 GB, free: 6.531 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/0.4532, allocations: 3.659 MB / 0.4969 GB, free: 2.918 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007779/0.454, allocations: 1.013 MB / 0.4979 GB, free: 1.875 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005922/0.4546, allocations: 168.6 kB / 0.498 GB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/0.4548, allocations: 43.44 kB / 0.4981 GB, free: 1.672 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4548, allocations: 0 / 0.4981 GB, free: 1.672 MB / 366.1 MB Notification: Performance of Templates: time 0.02266/0.4775, allocations: 12.22 MB / 0.51 GB, free: 5.605 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)