Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_002") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1127/0.1127, allocations: 17.69 MB / 33.63 MB, free: 1.781 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001102/0.001101, allocations: 179 kB / 38.91 MB, free: 8 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.4 MB / 249.5 MB, free: 2.41 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008203/0.0008204, allocations: 87.44 kB / 302.2 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003916/0.000392, allocations: 16 kB / 366.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2705, allocations: 51.98 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.383, allocations: 82.43 MB / 0.4896 GB, free: 5.828 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/0.3833, allocations: 75.97 kB / 0.4897 GB, free: 5.754 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2439/0.6272, allocations: 12.14 MB / 0.5015 GB, free: 80.4 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6273, allocations: 0 / 0.5015 GB, free: 80.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.023e-05/0.6274, allocations: 20.34 kB / 0.5016 GB, free: 80.4 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 181 * Number of variables: 181 Notification: Performance of Generate backend data structure: time 0.00362/0.631, allocations: 1.081 MB / 0.5026 GB, free: 79.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.959e-05/0.6311, allocations: 9.031 kB / 0.5026 GB, free: 79.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008991/0.632, allocations: 85.97 kB / 0.5027 GB, free: 79.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002352/0.6343, allocations: 0.6105 MB / 0.5033 GB, free: 79.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002138/0.6346, allocations: 86.42 kB / 0.5034 GB, free: 79.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006501/0.6353, allocations: 78.31 kB / 0.5035 GB, free: 79.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003258/0.6385, allocations: 1.026 MB / 0.5045 GB, free: 78.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.049e-05/0.6386, allocations: 6.422 kB / 0.5045 GB, free: 78.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001806/0.6388, allocations: 32.59 kB / 0.5045 GB, free: 78.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.267e-05/0.6388, allocations: 21.28 kB / 0.5045 GB, free: 78.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.6406, allocations: 0.7893 MB / 0.5053 GB, free: 78.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006468/0.6471, allocations: 3.945 MB / 0.5091 GB, free: 75.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002472/0.6496, allocations: 1.019 MB / 0.5101 GB, free: 75.39 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005168/0.6501, allocations: 383 kB / 0.5105 GB, free: 75.19 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001519/0.6503, allocations: 97.38 kB / 0.5106 GB, free: 75.08 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.6503, allocations: 39.09 kB / 0.5106 GB, free: 75.04 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 2.695e-06/0.6504, allocations: 0 / 0.5106 GB, free: 75.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.003354/0.6537, allocations: 2.28 MB / 0.5129 GB, free: 73.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.6538, allocations: 59.97 kB / 0.5129 GB, free: 73.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004871/0.6543, allocations: 397.7 kB / 0.5133 GB, free: 72.71 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.86e-05/0.6543, allocations: 37.7 kB / 0.5133 GB, free: 72.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.6545, allocations: 320 kB / 0.5136 GB, free: 72.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001946/0.6547, allocations: 240.1 kB / 0.5139 GB, free: 72.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.6547, allocations: 16 kB / 0.5139 GB, free: 72.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.6549, allocations: 366.9 kB / 0.5142 GB, free: 71.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005972/0.6555, allocations: 430.7 kB / 0.5146 GB, free: 71.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005867/0.6561, allocations: 496.5 kB / 0.5151 GB, free: 70.81 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007514/0.6636, allocations: 2.354 MB / 0.5174 GB, free: 68.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.6636, allocations: 7.984 kB / 0.5174 GB, free: 68.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002036/0.6657, allocations: 1.262 MB / 0.5187 GB, free: 67.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.6657, allocations: 8 kB / 0.5187 GB, free: 67.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.6657, allocations: 3.938 kB / 0.5187 GB, free: 67.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008052/0.6665, allocations: 320.4 kB / 0.519 GB, free: 66.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/0.6683, allocations: 283.6 kB / 0.5192 GB, free: 66.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007129/0.6755, allocations: 14.28 MB / 0.5332 GB, free: 50.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000847/0.6764, allocations: 79.56 kB / 0.5333 GB, free: 50.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/0.6765, allocations: 24 kB / 0.5333 GB, free: 50.76 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(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 (78): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.0007336/0.6773, allocations: 273.6 kB / 0.5335 GB, free: 50.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002067/0.6775, allocations: 51.38 kB / 0.5336 GB, free: 50.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001964/0.6794, allocations: 1.107 MB / 0.5347 GB, free: 49.28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.6795, allocations: 8 kB / 0.5347 GB, free: 49.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.6795, allocations: 8 kB / 0.5347 GB, free: 49.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.6795, allocations: 3.984 kB / 0.5347 GB, free: 49.26 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003142/0.6826, allocations: 2.076 MB / 0.5367 GB, free: 47.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.6827, allocations: 3.984 kB / 0.5367 GB, free: 47.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001852/0.6845, allocations: 263.8 kB / 0.537 GB, free: 46.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007227/0.6853, allocations: 316.3 kB / 0.5373 GB, free: 46.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.833e-05/0.6854, allocations: 27.98 kB / 0.5373 GB, free: 46.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007591/0.693, allocations: 14.29 MB / 0.5513 GB, free: 30.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.693, allocations: 0 / 0.5513 GB, free: 30.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003156/0.6962, allocations: 1.539 MB / 0.5528 GB, free: 29.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004613/0.6967, allocations: 140.4 kB / 0.5529 GB, free: 29.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003057/0.697, allocations: 32 kB / 0.5529 GB, free: 29.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007649/0.6978, allocations: 40.05 kB / 0.553 GB, free: 29.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002973/0.6981, allocations: 60.23 kB / 0.553 GB, free: 28.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.584e-05/0.6982, allocations: 16 kB / 0.553 GB, free: 28.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005363/0.6987, allocations: 291.2 kB / 0.5533 GB, free: 28.65 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6987, allocations: 0 / 0.5533 GB, free: 28.65 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001711/0.7005, allocations: 295.4 kB / 0.5536 GB, free: 28.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (47): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.00033/0.7008, allocations: 145 kB / 0.5537 GB, free: 28.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003712/0.7045, allocations: 2.119 MB / 0.5558 GB, free: 25.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.7046, allocations: 3.938 kB / 0.5558 GB, free: 25.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002427/0.707, allocations: 1.67 MB / 0.5574 GB, free: 24.17 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.708, allocations: 158.9 kB / 0.5576 GB, free: 24.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005045/0.7131, allocations: 3.57 MB / 0.5611 GB, free: 20.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005491/0.7136, allocations: 1.012 MB / 0.5621 GB, free: 19.37 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005747/0.7142, allocations: 164.5 kB / 0.5622 GB, free: 19.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.7144, allocations: 43.42 kB / 0.5623 GB, free: 19.16 MB / 362.7 MB Notification: Performance of SimCode: time 9.71e-07/0.7144, allocations: 0 / 0.5623 GB, free: 19.16 MB / 362.7 MB Notification: Performance of Templates: time 0.01925/0.7337, allocations: 11.94 MB / 0.5739 GB, free: 7.234 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_002.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_002 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_002.pipe 2>&1)