Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.07634/0.07634, allocations: 17.69 MB / 33.64 MB, free: 1.742 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.001334/0.001334, allocations: 179.4 kB / 38.92 MB, free: 16 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.704/1.704, allocations: 205.4 MB / 249.5 MB, free: 2.352 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.0008043/0.0008045, allocations: 103.5 kB / 302.2 MB, free: 4.414 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004193/0.0004196, allocations: 16 kB / 367 MB, free: 3.605 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2644, allocations: 51.97 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1095/0.3739, allocations: 82.63 MB / 0.4898 GB, free: 5.633 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.3742, allocations: 79.95 kB / 0.4899 GB, free: 5.555 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2962/0.6704, allocations: 20.45 MB / 0.5098 GB, free: 77.03 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6704, allocations: 3.844 kB / 0.5099 GB, free: 77.03 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.151e-05/0.6705, allocations: 30.66 kB / 0.5099 GB, free: 77.02 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: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.003491/0.674, allocations: 1.654 MB / 0.5115 GB, free: 75.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.6741, allocations: 12.03 kB / 0.5115 GB, free: 75.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002839/0.6744, allocations: 147.3 kB / 0.5116 GB, free: 75.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/0.6758, allocations: 0.9688 MB / 0.5126 GB, free: 74.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.524e-05/0.6759, allocations: 120.6 kB / 0.5127 GB, free: 74.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002338/0.6761, allocations: 140.2 kB / 0.5128 GB, free: 74.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002589/0.6787, allocations: 1.737 MB / 0.5145 GB, free: 72.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.407e-05/0.6788, allocations: 3.938 kB / 0.5145 GB, free: 72.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001365/0.6789, allocations: 52 kB / 0.5146 GB, free: 72.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.679, allocations: 28 kB / 0.5146 GB, free: 72.15 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002108/0.6811, allocations: 1.379 MB / 0.516 GB, free: 70.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009174/0.6903, allocations: 7.106 MB / 0.5229 GB, free: 63.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00423/0.6945, allocations: 1.853 MB / 0.5247 GB, free: 61.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.6956, allocations: 0.6559 MB / 0.5254 GB, free: 60.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002542/0.6959, allocations: 101.7 kB / 0.5255 GB, free: 60.58 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.386e-05/0.6959, allocations: 47.5 kB / 0.5255 GB, free: 60.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=100): time 6.052e-06/0.696, allocations: 7.875 kB / 0.5255 GB, free: 60.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=100): time 0.005815/0.7018, allocations: 3.757 MB / 0.5292 GB, free: 56.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.7019, allocations: 60.41 kB / 0.5292 GB, free: 56.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.7029, allocations: 0.629 MB / 0.5298 GB, free: 55.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.703, allocations: 41.7 kB / 0.5299 GB, free: 55.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/0.7033, allocations: 494.9 kB / 0.5304 GB, free: 55.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003539/0.7036, allocations: 399.5 kB / 0.5307 GB, free: 54.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.236e-05/0.7037, allocations: 24 kB / 0.5308 GB, free: 54.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.7039, allocations: 414.7 kB / 0.5312 GB, free: 54.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.705, allocations: 0.792 MB / 0.5319 GB, free: 53.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.7061, allocations: 0.8918 MB / 0.5328 GB, free: 52.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01478/0.7209, allocations: 4.326 MB / 0.537 GB, free: 48.26 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.335e-05/0.721, allocations: 4 kB / 0.537 GB, free: 48.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.003742/0.7247, allocations: 2.254 MB / 0.5392 GB, free: 45.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.7248, allocations: 7.938 kB / 0.5392 GB, free: 45.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.7248, allocations: 4 kB / 0.5392 GB, free: 45.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001196/0.726, allocations: 492.5 kB / 0.5397 GB, free: 45.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003477/0.7295, allocations: 0.5501 MB / 0.5402 GB, free: 44.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01061/0.7401, allocations: 21.83 MB / 0.5616 GB, free: 20.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.7419, allocations: 147.1 kB / 0.5617 GB, free: 20.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.7421, allocations: 43.98 kB / 0.5617 GB, free: 20.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: 13 * 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 (145): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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,(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.001158/0.7432, allocations: 405.4 kB / 0.5621 GB, free: 20.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003501/0.7436, allocations: 86.97 kB / 0.5622 GB, free: 20.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003228/0.7468, allocations: 1.916 MB / 0.5641 GB, free: 18.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.7469, allocations: 15.98 kB / 0.5641 GB, free: 18.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.7469, allocations: 4 kB / 0.5641 GB, free: 18.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.7469, allocations: 3.984 kB / 0.5641 GB, free: 18.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005016/0.7519, allocations: 3.493 MB / 0.5675 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.7519, allocations: 4 kB / 0.5675 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003762/0.7557, allocations: 0.5034 MB / 0.568 GB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001668/0.7574, allocations: 492.5 kB / 0.5685 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003064/0.7578, allocations: 63.97 kB / 0.5686 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01891/0.7767, allocations: 21.82 MB / 0.5899 GB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-05/0.7767, allocations: 12.19 kB / 0.5899 GB, free: 5.738 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008565/0.7853, allocations: 2.609 MB / 0.5924 GB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007259/0.7861, allocations: 191.8 kB / 0.5926 GB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003661/0.7865, allocations: 59.97 kB / 0.5927 GB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.788, allocations: 75.77 kB / 0.5927 GB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004924/0.7885, allocations: 92.75 kB / 0.5928 GB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001628/0.7887, allocations: 31.98 kB / 0.5929 GB, free: 2.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001051/0.7898, allocations: 447 kB / 0.5933 GB, free: 2.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7898, allocations: 0 / 0.5933 GB, free: 2.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002968/0.7928, allocations: 499.1 kB / 0.5938 GB, free: 1.672 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 42 (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],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.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 (85): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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,(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.000511/0.7933, allocations: 184.9 kB / 0.5939 GB, free: 1.488 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01159/0.8049, allocations: 3.549 MB / 0.5974 GB, free: 13.74 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-05/0.805, allocations: 4 kB / 0.5974 GB, free: 13.74 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009414/0.8144, allocations: 2.667 MB / 0.6 GB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003217/0.8177, allocations: 298.7 kB / 0.6003 GB, free: 10.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02201/0.8398, allocations: 6.426 MB / 0.6066 GB, free: 4.113 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00232/0.8422, allocations: 1.264 MB / 0.6078 GB, free: 2.816 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002862/0.8451, allocations: 331.1 kB / 0.6081 GB, free: 2.488 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007463/0.8459, allocations: 67.42 kB / 0.6082 GB, free: 2.422 MB / 394.7 MB Notification: Performance of SimCode: time 5.04e-06/0.8459, allocations: 0 / 0.6082 GB, free: 2.422 MB / 394.7 MB Notification: Performance of Templates: time 0.06791/0.9138, allocations: 20.78 MB / 0.6285 GB, free: 13.64 MB / 426.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)