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.001023/0.001023, 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.007358/0.007358, allocations: 169.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.418/1.418, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2089/0.2089, allocations: 22.35 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003742/0.0003742, allocations: 12 kB / 382.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3081, allocations: 55.97 MB / 438.6 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.002558/0.3107, allocations: 3.118 MB / 441.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.312, allocations: 0.9348 MB / 442.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.3122, allocations: 13.06 kB / 442.6 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.3123, allocations: 82.44 kB / 442.7 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003249/0.3127, allocations: 239.8 kB / 442.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004328/0.3131, allocations: 168.2 kB / 443.1 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009682/0.3141, allocations: 1.501 MB / 444.6 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006979/0.3148, allocations: 0.7112 MB / 445.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003424/0.3151, allocations: 363.2 kB / 445.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005186/0.3157, allocations: 0.5194 MB / 446.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.02e-05/0.3158, allocations: 52.69 kB / 446.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.3159, allocations: 56.75 kB / 446.3 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.3161, allocations: 314.8 kB / 446.6 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003469/0.3165, allocations: 477.7 kB / 447.1 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008268/0.3173, allocations: 1.36 MB / 448.4 MB, free: 34.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3173, allocations: 4 kB / 448.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3173, allocations: 0 / 448.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.037e-05/0.3173, allocations: 0 / 448.4 MB, free: 34.23 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.002098/0.3194, allocations: 1.151 MB / 449.6 MB, free: 33.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3195, allocations: 15.12 kB / 449.6 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.3197, allocations: 87.81 kB / 449.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000628/0.3203, allocations: 0.5675 MB / 450.3 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.668e-05/0.3204, allocations: 76.45 kB / 450.3 MB, free: 33.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.3205, allocations: 89.41 kB / 450.4 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.3218, allocations: 0.9251 MB / 451.3 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.3219, allocations: 0 / 451.3 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.69e-05/0.322, allocations: 31.88 kB / 451.4 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.322, allocations: 15.75 kB / 451.4 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.323, allocations: 0.8125 MB / 452.2 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004719/0.3278, allocations: 3.993 MB / 456.2 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.3303, allocations: 1.035 MB / 457.2 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005762/0.3309, allocations: 418 kB / 457.6 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.589e-05/0.331, allocations: 7.219 kB / 457.6 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.331, allocations: 37.31 kB / 457.7 MB, free: 29.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.705e-06/0.331, allocations: 0 / 457.7 MB, free: 29.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003929/0.335, allocations: 2.393 MB / 460.1 MB, free: 27.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.52e-05/0.335, allocations: 58.44 kB / 460.1 MB, free: 27.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005285/0.3356, allocations: 420.3 kB / 460.5 MB, free: 27.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.829e-05/0.3356, allocations: 32.36 kB / 460.6 MB, free: 27.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.3358, allocations: 329 kB / 460.9 MB, free: 27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.336, allocations: 226.8 kB / 461.1 MB, free: 26.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.3361, allocations: 61.97 kB / 461.2 MB, free: 26.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.623e-05/0.3362, allocations: 371.8 kB / 461.5 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007062/0.3369, allocations: 451.4 kB / 462 MB, free: 26.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006665/0.3376, allocations: 0.5019 MB / 462.5 MB, free: 26.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00722/0.3448, allocations: 2.449 MB / 464.9 MB, free: 25.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.3449, allocations: 1.094 kB / 464.9 MB, free: 25.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00246/0.3473, allocations: 1.349 MB / 466.3 MB, free: 24.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.3474, allocations: 9.875 kB / 466.3 MB, free: 24.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3474, allocations: 1.875 kB / 466.3 MB, free: 24.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.3485, allocations: 353.8 kB / 466.6 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009087/0.3494, allocations: 187.1 kB / 466.8 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008471/0.3579, allocations: 14.08 MB / 480.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.359, allocations: 81.64 kB / 481 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.48e-05/0.3591, allocations: 25.61 kB / 481 MB, free: 10.6 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.0007064/0.3598, allocations: 286.7 kB / 481.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.36, allocations: 52.09 kB / 481.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/0.3623, allocations: 1.131 MB / 482.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.3623, allocations: 10.22 kB / 482.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3623, allocations: 2.312 kB / 482.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3623, allocations: 7.5 kB / 482.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003206/0.3656, allocations: 2.129 MB / 484.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.3656, allocations: 3.938 kB / 484.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000943/0.3665, allocations: 166.5 kB / 484.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000806/0.3673, allocations: 310.8 kB / 485.1 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.349e-05/0.3674, allocations: 35.39 kB / 485.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00791/0.3754, allocations: 13.67 MB / 498.8 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3754, allocations: 1.594 kB / 498.8 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002829/0.3782, allocations: 1.592 MB / 0.4887 GB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002115/0.3785, allocations: 153.4 kB / 0.4888 GB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.3786, allocations: 34.06 kB / 0.4888 GB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004441/0.379, allocations: 29.88 kB / 0.4889 GB, free: 10 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/0.3792, allocations: 53.8 kB / 0.4889 GB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.3793, allocations: 22.23 kB / 0.4889 GB, free: 9.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003818/0.3797, allocations: 295.8 kB / 0.4892 GB, free: 9.828 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3797, allocations: 0 / 0.4892 GB, free: 9.828 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001082/0.3808, allocations: 298.8 kB / 0.4895 GB, free: 9.77 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.0001964/0.381, allocations: 143.5 kB / 0.4896 GB, free: 9.656 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002787/0.3838, allocations: 2.042 MB / 0.4916 GB, free: 8.172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3838, allocations: 0 / 0.4916 GB, free: 8.172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001946/0.3857, allocations: 1.557 MB / 0.4932 GB, free: 6.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008885/0.3866, allocations: 177.2 kB / 0.4933 GB, free: 6.605 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005362/0.392, allocations: 3.65 MB / 0.4969 GB, free: 2.922 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006807/0.3927, allocations: 1.013 MB / 0.4979 GB, free: 1.879 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005292/0.3932, allocations: 164.5 kB / 0.498 GB, free: 1.719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.3934, allocations: 47.42 kB / 0.4981 GB, free: 1.676 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3935, allocations: 4 kB / 0.4981 GB, free: 1.672 MB / 366.1 MB Notification: Performance of Templates: time 0.02026/0.4137, allocations: 12.23 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)