Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_001") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1205/0.1205, allocations: 17.69 MB / 33.63 MB, free: 1.734 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.001411/0.001411, allocations: 177 kB / 38.92 MB, free: 0 / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.733/1.733, allocations: 205.4 MB / 249.5 MB, free: 2.422 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.0008501/0.0008499, allocations: 101.7 kB / 302.2 MB, free: 4.414 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000489/0.0004892, allocations: 12 kB / 366.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2756, allocations: 51.99 MB / 418.9 MB, free: 24.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1158/0.3914, allocations: 82.85 MB / 0.49 GB, free: 5.398 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.3917, allocations: 79.95 kB / 0.4901 GB, free: 5.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.286/0.6777, allocations: 13.1 MB / 0.5029 GB, free: 80.27 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.6778, allocations: 0 / 0.5029 GB, free: 80.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001341/0.6779, allocations: 24.69 kB / 0.5029 GB, free: 80.27 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.005115/0.683, allocations: 1.148 MB / 0.504 GB, free: 79.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.942e-05/0.6831, allocations: 9.406 kB / 0.504 GB, free: 79.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000937/0.6841, allocations: 96.44 kB / 0.5041 GB, free: 79.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00232/0.6864, allocations: 0.6462 MB / 0.5048 GB, free: 79.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001403/0.6866, allocations: 82.11 kB / 0.5048 GB, free: 79.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004839/0.6871, allocations: 84.97 kB / 0.5049 GB, free: 79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003106/0.6902, allocations: 1.108 MB / 0.506 GB, free: 78.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-05/0.6903, allocations: 7.094 kB / 0.506 GB, free: 78.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.6904, allocations: 30.75 kB / 0.506 GB, free: 78.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.012e-05/0.6904, allocations: 17.75 kB / 0.5061 GB, free: 78.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002229/0.6927, allocations: 0.9027 MB / 0.5069 GB, free: 78.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007806/0.7005, allocations: 4.249 MB / 0.5111 GB, free: 74.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003641/0.7042, allocations: 1.091 MB / 0.5122 GB, free: 74.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007869/0.705, allocations: 406.4 kB / 0.5125 GB, free: 73.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001997/0.7052, allocations: 93.64 kB / 0.5126 GB, free: 73.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.7052, allocations: 43.12 kB / 0.5127 GB, free: 73.64 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000689/0.7059, allocations: 67.52 kB / 0.5127 GB, free: 73.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 4.028e-06/0.706, allocations: 0 / 0.5127 GB, free: 73.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=63): time 0.004422/0.7104, allocations: 2.35 MB / 0.515 GB, free: 71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.7104, allocations: 59.97 kB / 0.5151 GB, free: 70.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008514/0.7113, allocations: 490 kB / 0.5156 GB, free: 70.44 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.253e-05/0.7114, allocations: 37.7 kB / 0.5156 GB, free: 70.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/0.7116, allocations: 358.5 kB / 0.5159 GB, free: 70.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/0.7119, allocations: 250 kB / 0.5162 GB, free: 69.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.71e-05/0.7119, allocations: 16 kB / 0.5162 GB, free: 69.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.7121, allocations: 374.8 kB / 0.5165 GB, free: 69.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008667/0.713, allocations: 466.6 kB / 0.517 GB, free: 68.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008715/0.7138, allocations: 0.5306 MB / 0.5175 GB, free: 68.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01398/0.7278, allocations: 2.803 MB / 0.5203 GB, free: 65.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.7279, allocations: 0 / 0.5203 GB, free: 65.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002808/0.7307, allocations: 1.372 MB / 0.5216 GB, free: 64.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.7308, allocations: 4 kB / 0.5216 GB, free: 64.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.7308, allocations: 4 kB / 0.5216 GB, free: 64.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008688/0.7317, allocations: 320.4 kB / 0.5219 GB, free: 63.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001989/0.7337, allocations: 315.6 kB / 0.5222 GB, free: 63.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008376/0.7421, allocations: 14.27 MB / 0.5361 GB, free: 47.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.7431, allocations: 39.95 kB / 0.5362 GB, free: 47.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/0.7433, allocations: 24 kB / 0.5362 GB, free: 47.8 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: 10 * Number of states: 0 () * Number of discrete variables: 1 (CH.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 79 * 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.0008331/0.7442, allocations: 297.5 kB / 0.5365 GB, free: 47.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003258/0.7445, allocations: 59.25 kB / 0.5365 GB, free: 47.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/0.7468, allocations: 1.174 MB / 0.5377 GB, free: 46.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.7468, allocations: 8 kB / 0.5377 GB, free: 46.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.7469, allocations: 0 / 0.5377 GB, free: 46.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.7469, allocations: 3.984 kB / 0.5377 GB, free: 46.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003771/0.7506, allocations: 2.284 MB / 0.5399 GB, free: 43.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.7507, allocations: 0 / 0.5399 GB, free: 43.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002165/0.7528, allocations: 279.8 kB / 0.5402 GB, free: 43.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007388/0.7536, allocations: 316.3 kB / 0.5405 GB, free: 43.24 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.7537, allocations: 31.98 kB / 0.5405 GB, free: 43.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007356/0.7611, allocations: 14.28 MB / 0.5545 GB, free: 27.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.7611, allocations: 4.031 kB / 0.5545 GB, free: 27.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/0.7637, allocations: 1.611 MB / 0.556 GB, free: 25.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002903/0.764, allocations: 148.5 kB / 0.5562 GB, free: 25.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.7642, allocations: 35.98 kB / 0.5562 GB, free: 25.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006861/0.7649, allocations: 35.91 kB / 0.5563 GB, free: 25.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/0.7651, allocations: 60.42 kB / 0.5563 GB, free: 25.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.096e-05/0.7651, allocations: 19.98 kB / 0.5563 GB, free: 25.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004198/0.7656, allocations: 346.9 kB / 0.5567 GB, free: 25.26 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7656, allocations: 0 / 0.5567 GB, free: 25.26 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001293/0.7669, allocations: 307.4 kB / 0.557 GB, free: 24.96 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: 1 (CH.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 43 * 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.0002805/0.7672, allocations: 149.4 kB / 0.5571 GB, free: 24.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003593/0.7708, allocations: 2.18 MB / 0.5592 GB, free: 22.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.7708, allocations: 0 / 0.5592 GB, free: 22.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00249/0.7733, allocations: 1.682 MB / 0.5609 GB, free: 20.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.7743, allocations: 183.2 kB / 0.561 GB, free: 20.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005414/0.7797, allocations: 3.675 MB / 0.5646 GB, free: 16.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000791/0.7805, allocations: 1.044 MB / 0.5657 GB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006506/0.7812, allocations: 177.1 kB / 0.5658 GB, free: 15.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.7814, allocations: 51.42 kB / 0.5659 GB, free: 15.49 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.7814, allocations: 0 / 0.5659 GB, free: 15.49 MB / 362.7 MB Notification: Performance of Templates: time 0.02224/0.8037, allocations: 13.29 MB / 0.5789 GB, free: 2.215 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_001.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_001 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_001.pipe 2>&1)