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.0009603/0.0009603, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.309/1.309, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2119/0.2119, allocations: 22.34 MB / 314.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003539, allocations: 8 kB / 383.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.259, allocations: 55.98 MB / 439.2 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.002407/0.2615, allocations: 3.109 MB / 442.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.2627, allocations: 0.9488 MB / 443.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.2629, allocations: 9.5 kB / 443.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.263, allocations: 72.78 kB / 443.4 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003169/0.2634, allocations: 240.7 kB / 443.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.2638, allocations: 170.4 kB / 443.8 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009103/0.2647, allocations: 1.495 MB / 445.3 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006367/0.2653, allocations: 0.7042 MB / 446 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003184/0.2657, allocations: 367.7 kB / 446.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005101/0.2662, allocations: 0.5209 MB / 446.9 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.41e-05/0.2663, allocations: 59.19 kB / 446.9 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.2664, allocations: 54.81 kB / 447 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.2666, allocations: 312.8 kB / 447.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003201/0.2669, allocations: 475.8 kB / 447.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000627/0.2676, allocations: 1.145 MB / 448.9 MB, free: 34.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2676, allocations: 4 kB / 448.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2676, allocations: 3.375 kB / 448.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.2676, allocations: 0 / 448.9 MB, free: 34.43 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.001938/0.2695, allocations: 1.154 MB / 450 MB, free: 33.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2696, allocations: 15.16 kB / 450.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/0.2697, allocations: 87.75 kB / 450.1 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006009/0.2703, allocations: 0.5608 MB / 450.7 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.882e-05/0.2704, allocations: 82.94 kB / 450.8 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/0.2706, allocations: 82.56 kB / 450.9 MB, free: 33.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.2719, allocations: 0.9355 MB / 451.8 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.2719, allocations: 0 / 451.8 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.977e-05/0.272, allocations: 24.88 kB / 451.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.272, allocations: 23.41 kB / 451.8 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.2731, allocations: 0.8095 MB / 452.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004435/0.2775, allocations: 3.99 MB / 456.6 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002494/0.28, allocations: 1.028 MB / 457.7 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005499/0.2806, allocations: 413.3 kB / 458.1 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.241e-05/0.2806, allocations: 6.969 kB / 458.1 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.755e-05/0.2807, allocations: 37.47 kB / 458.1 MB, free: 29.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.984e-06/0.2807, allocations: 1.312 kB / 458.1 MB, free: 29.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003774/0.2845, allocations: 2.395 MB / 460.5 MB, free: 27.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.2845, allocations: 58.05 kB / 460.6 MB, free: 27.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000475/0.285, allocations: 417.7 kB / 461 MB, free: 27.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.303e-05/0.285, allocations: 35.17 kB / 461 MB, free: 27.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.2852, allocations: 328.5 kB / 461.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.2854, allocations: 227.7 kB / 461.6 MB, free: 27.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.2855, allocations: 66.02 kB / 461.6 MB, free: 26.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.784e-05/0.2856, allocations: 371 kB / 462 MB, free: 26.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006453/0.2862, allocations: 452.3 kB / 462.4 MB, free: 26.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006734/0.2869, allocations: 0.494 MB / 462.9 MB, free: 26.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006943/0.2939, allocations: 2.445 MB / 465.4 MB, free: 25.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.2939, allocations: 3.938 kB / 465.4 MB, free: 25.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002466/0.2963, allocations: 1.35 MB / 466.7 MB, free: 24.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.2964, allocations: 10.64 kB / 466.7 MB, free: 24.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.2964, allocations: 2.281 kB / 466.7 MB, free: 24.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/0.2974, allocations: 357.5 kB / 467.1 MB, free: 24.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008636/0.2983, allocations: 185.5 kB / 467.3 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007298/0.3056, allocations: 14.09 MB / 481.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007137/0.3064, allocations: 77.02 kB / 481.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.914e-05/0.3064, allocations: 26.28 kB / 481.5 MB, free: 10.8 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.0004957/0.3069, allocations: 289 kB / 481.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.3071, allocations: 52.5 kB / 481.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/0.3091, allocations: 1.131 MB / 482.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.3091, allocations: 9.625 kB / 482.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.902e-06/0.3091, allocations: 2.688 kB / 482.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3091, allocations: 5.062 kB / 482.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003056/0.3122, allocations: 2.12 MB / 485.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3122, allocations: 9 kB / 485.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009563/0.3132, allocations: 166.2 kB / 485.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000774/0.3139, allocations: 310.7 kB / 485.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.5e-05/0.314, allocations: 40.31 kB / 485.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00758/0.3216, allocations: 13.67 MB / 499.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3216, allocations: 2.312 kB / 499.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002779/0.3244, allocations: 1.587 MB / 0.4891 GB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.3246, allocations: 156.8 kB / 0.4892 GB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/0.3248, allocations: 38.44 kB / 0.4893 GB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004458/0.3252, allocations: 33.75 kB / 0.4893 GB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.3254, allocations: 54.22 kB / 0.4894 GB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.017e-05/0.3254, allocations: 22.06 kB / 0.4894 GB, free: 10.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003596/0.3258, allocations: 291.4 kB / 0.4897 GB, free: 10.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3258, allocations: 0 / 0.4897 GB, free: 10.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001036/0.3269, allocations: 299.5 kB / 0.49 GB, free: 9.961 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.0001957/0.3271, allocations: 141.1 kB / 0.4901 GB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002571/0.3296, allocations: 2.039 MB / 0.4921 GB, free: 8.371 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3297, allocations: 1.094 kB / 0.4921 GB, free: 8.371 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001666/0.3313, allocations: 1.561 MB / 0.4936 GB, free: 6.891 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008292/0.3322, allocations: 165.8 kB / 0.4938 GB, free: 6.742 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005299/0.3375, allocations: 3.726 MB / 0.4974 GB, free: 2.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006199/0.3381, allocations: 1.016 MB / 0.4984 GB, free: 1.934 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/0.3384, allocations: 43.44 kB / 0.4984 GB, free: 1.895 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3384, allocations: 0 / 0.4984 GB, free: 1.895 MB / 366.1 MB Notification: Performance of Templates: time 0.03626/0.3747, allocations: 35.73 MB / 0.5333 GB, free: 14.16 MB / 414.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)