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.001077/0.001077, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.0009496/0.0009496, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 223.2 MB / 239.9 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.2099/0.2099, allocations: 22.34 MB / 313.3 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003452/0.0003453, allocations: 12 kB / 381.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4413/0.4417, allocations: 55.98 MB / 437.8 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.002783/0.4445, allocations: 2.758 MB / 440.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.4461, allocations: 0.9511 MB / 441.5 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002404/0.4463, allocations: 9.156 kB / 441.5 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.4466, allocations: 79 kB / 441.6 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003184/0.4469, allocations: 177.4 kB / 441.8 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005369/0.4475, allocations: 128.1 kB / 441.9 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000742/0.4482, allocations: 0.6544 MB / 442.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007697/0.449, allocations: 0.6292 MB / 443.2 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003995/0.4494, allocations: 335.4 kB / 443.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004782/0.4499, allocations: 394.4 kB / 443.9 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.45, allocations: 54.03 kB / 444 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.4501, allocations: 56.81 kB / 444 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000243/0.4504, allocations: 278.5 kB / 444.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.4505, allocations: 195.9 kB / 444.5 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008269/0.4514, allocations: 1.141 MB / 445.6 MB, free: 35.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.4514, allocations: 3.938 kB / 445.6 MB, free: 35.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4514, allocations: 0 / 445.6 MB, free: 35.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.4514, allocations: 0 / 445.6 MB, free: 35.12 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.002134/0.4535, allocations: 1.154 MB / 446.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.4536, allocations: 8.594 kB / 446.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.4538, allocations: 88.97 kB / 446.9 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000754/0.4545, allocations: 0.5518 MB / 447.4 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.435e-05/0.4546, allocations: 81.77 kB / 447.5 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.4547, allocations: 90.52 kB / 447.6 MB, free: 33.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.4561, allocations: 0.9122 MB / 448.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.4561, allocations: 0 / 448.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.25e-05/0.4562, allocations: 30.44 kB / 448.5 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.4562, allocations: 16.12 kB / 448.5 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.4573, allocations: 0.8042 MB / 449.4 MB, free: 33.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005174/0.4625, allocations: 3.989 MB / 453.3 MB, free: 30.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002403/0.465, allocations: 1.04 MB / 454.4 MB, free: 30.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.631e-05/0.465, allocations: 6.062 kB / 454.4 MB, free: 30.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.4651, allocations: 41.77 kB / 454.4 MB, free: 30.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 3.486e-06/0.4651, allocations: 0 / 454.4 MB, free: 30.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003874/0.4689, allocations: 2.386 MB / 456.8 MB, free: 28.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.469, allocations: 66.08 kB / 456.9 MB, free: 28.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005219/0.4695, allocations: 410.2 kB / 457.3 MB, free: 28.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.47e-05/0.4696, allocations: 35.61 kB / 457.3 MB, free: 28.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.4698, allocations: 343.5 kB / 457.6 MB, free: 28.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001885/0.47, allocations: 226.5 kB / 457.9 MB, free: 27.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.47, allocations: 14.75 kB / 457.9 MB, free: 27.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.997e-05/0.4701, allocations: 366.3 kB / 458.2 MB, free: 27.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006361/0.4708, allocations: 449.5 kB / 458.7 MB, free: 27.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000654/0.4714, allocations: 499.9 kB / 459.2 MB, free: 27.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006878/0.4721, allocations: 0.4891 MB / 459.7 MB, free: 26.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4722, allocations: 4 kB / 459.7 MB, free: 26.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002378/0.4745, allocations: 1.335 MB / 461 MB, free: 26.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.4746, allocations: 10.19 kB / 461 MB, free: 26.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.4746, allocations: 1.281 kB / 461 MB, free: 26.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.4757, allocations: 345.1 kB / 461.3 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008708/0.4766, allocations: 187 kB / 461.5 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008361/0.485, allocations: 14.2 MB / 475.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007641/0.4858, allocations: 71.67 kB / 475.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.18e-05/0.4858, allocations: 22.8 kB / 475.8 MB, free: 12.24 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(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} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006066/0.4864, allocations: 284.6 kB / 476.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.4866, allocations: 52.78 kB / 476.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002093/0.4887, allocations: 1.134 MB / 477.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.4887, allocations: 6.734 kB / 477.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.4887, allocations: 3.5 kB / 477.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.4887, allocations: 2.391 kB / 477.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003825/0.4925, allocations: 2.12 MB / 479.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.4926, allocations: 6.016 kB / 479.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009933/0.4936, allocations: 165.9 kB / 479.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009007/0.4945, allocations: 310.4 kB / 479.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.206e-05/0.4946, allocations: 40.3 kB / 479.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/0.5047, allocations: 13.75 MB / 493.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.5048, allocations: 3.312 kB / 493.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003785/0.5086, allocations: 1.64 MB / 495.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/0.509, allocations: 149.6 kB / 495.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/0.5091, allocations: 30.33 kB / 495.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005004/0.5096, allocations: 38.27 kB / 495.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002685/0.5099, allocations: 58.11 kB / 495.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.684e-05/0.51, allocations: 18.78 kB / 495.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005372/0.5105, allocations: 291.9 kB / 495.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5105, allocations: 0 / 495.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001726/0.5123, allocations: 299.2 kB / 496.2 MB, free: 11.32 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(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} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003021/0.5126, allocations: 137.1 kB / 496.3 MB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003125/0.5157, allocations: 2.047 MB / 498.4 MB, free: 9.719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.5157, allocations: 320 / 498.4 MB, free: 9.719 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.5176, allocations: 1.556 MB / 499.9 MB, free: 8.414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006787/0.5183, allocations: 154.9 kB / 0.4884 GB, free: 8.363 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007183/0.5255, allocations: 3.608 MB / 0.4919 GB, free: 6.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009013/0.5264, allocations: 1.027 MB / 0.4929 GB, free: 5.426 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006064/0.527, allocations: 167.3 kB / 0.493 GB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/0.5272, allocations: 43.22 kB / 0.4931 GB, free: 5.406 MB / 366.1 MB Notification: Performance of SimCode: time 1.943e-06/0.5272, allocations: 5.281 kB / 0.4931 GB, free: 5.402 MB / 366.1 MB Notification: Performance of Templates: time 0.0204/0.5476, allocations: 11.88 MB / 0.5047 GB, free: 10.47 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: