Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Hcentral_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.Hcentral_control_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Hcentral_control_case_002") translateModel(AES.Coursework.ThermSys_Generation.Hcentral_control_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Hcentral_control_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.07453/0.07453, allocations: 17.69 MB / 33.63 MB, free: 1.746 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.0009763/0.0009762, allocations: 174.6 kB / 38.92 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.416/1.416, allocations: 205.4 MB / 249.5 MB, free: 2.355 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.0007985/0.0007987, allocations: 98.23 kB / 302.2 MB, free: 4.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003957, allocations: 12 kB / 366.9 MB, free: 3.605 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2207, allocations: 51.98 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1025/0.3233, allocations: 85.63 MB / 0.4927 GB, free: 2.621 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.3236, allocations: 83.95 kB / 0.4928 GB, free: 2.539 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2978/0.6214, allocations: 26.78 MB / 0.519 GB, free: 68.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.6215, allocations: 4 kB / 0.519 GB, free: 68.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001433/0.6216, allocations: 43.94 kB / 0.519 GB, free: 68.3 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: 366 * Number of variables: 366 Notification: Performance of Generate backend data structure: time 0.005467/0.6271, allocations: 1.973 MB / 0.5209 GB, free: 66.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.6271, allocations: 12.03 kB / 0.5209 GB, free: 66.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008051/0.628, allocations: 186.8 kB / 0.5211 GB, free: 66.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002965/0.6309, allocations: 1.274 MB / 0.5224 GB, free: 64.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.673e-05/0.6311, allocations: 107.2 kB / 0.5225 GB, free: 64.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005035/0.6316, allocations: 160.2 kB / 0.5226 GB, free: 64.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003725/0.6353, allocations: 2.136 MB / 0.5247 GB, free: 62.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.096e-05/0.6353, allocations: 11.88 kB / 0.5247 GB, free: 62.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001596/0.6355, allocations: 60 kB / 0.5248 GB, free: 62.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.032e-05/0.6355, allocations: 36 kB / 0.5248 GB, free: 62.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002807/0.6384, allocations: 1.753 MB / 0.5265 GB, free: 60.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008336/0.6467, allocations: 6.345 MB / 0.5327 GB, free: 53.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004656/0.6514, allocations: 2.273 MB / 0.5349 GB, free: 51.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.6526, allocations: 0.852 MB / 0.5358 GB, free: 50.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001837/0.6528, allocations: 106.4 kB / 0.5359 GB, free: 50.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.6529, allocations: 51.88 kB / 0.5359 GB, free: 50.42 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009364/0.6538, allocations: 159.1 kB / 0.5361 GB, free: 50.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=130): time 6.312e-06/0.6538, allocations: 4 kB / 0.5361 GB, free: 50.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.008685/0.6625, allocations: 4.417 MB / 0.5404 GB, free: 45.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.394e-05/0.6626, allocations: 145.8 kB / 0.5405 GB, free: 45.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001154/0.6638, allocations: 0.8505 MB / 0.5414 GB, free: 44.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001541/0.664, allocations: 45.7 kB / 0.5414 GB, free: 44.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/0.6643, allocations: 0.6169 MB / 0.542 GB, free: 43.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003606/0.6646, allocations: 0.493 MB / 0.5425 GB, free: 43.37 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.6647, allocations: 28 kB / 0.5425 GB, free: 43.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.547e-05/0.6648, allocations: 373.9 kB / 0.5429 GB, free: 42.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.6661, allocations: 0.8707 MB / 0.5437 GB, free: 42.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/0.6675, allocations: 1.097 MB / 0.5448 GB, free: 40.94 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02257/0.6901, allocations: 5.882 MB / 0.5505 GB, free: 35 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.6902, allocations: 7.938 kB / 0.5505 GB, free: 35 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.0101/0.7003, allocations: 2.893 MB / 0.5534 GB, free: 32.06 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.7005, allocations: 215.6 kB / 0.5536 GB, free: 31.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/0.7005, allocations: 4 kB / 0.5536 GB, free: 31.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005849/0.7064, allocations: 0.7546 MB / 0.5543 GB, free: 31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003709/0.7101, allocations: 463.4 kB / 0.5548 GB, free: 30.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/0.7219, allocations: 14.71 MB / 0.5691 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002546/0.7245, allocations: 111.9 kB / 0.5692 GB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002598/0.7248, allocations: 59.98 kB / 0.5693 GB, free: 14.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.428e-06/0.7249, allocations: 4 kB / 0.5693 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007306/0.7322, allocations: 2.578 MB / 0.5718 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.7322, allocations: 8.156 kB / 0.5718 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004227/0.7365, allocations: 0.7202 MB / 0.5725 GB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002711/0.7392, allocations: 451.4 kB / 0.573 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009429/0.7487, allocations: 14.66 MB / 0.5873 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/0.7507, allocations: 95.92 kB / 0.5874 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005361/0.7512, allocations: 59.97 kB / 0.5874 GB, free: 10.33 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: heater.T:VARIABLE(min = max(0.0, max(0.0, 0.0)) start = heater.Tstart unit = "K" fixed = true nominal = 300.0 ) "fluid T" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 164 * 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: 11 * 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: 1 {3 13} Notification: Performance of prepare postOptimizeDAE: time 0.002056/0.7533, allocations: 0.5006 MB / 0.5879 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006174/0.7539, allocations: 126.4 kB / 0.588 GB, free: 9.691 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007695/0.7616, allocations: 2.595 MB / 0.5906 GB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.971e-05/0.7617, allocations: 16 kB / 0.5906 GB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.748e-05/0.7617, allocations: 0 / 0.5906 GB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/0.7617, allocations: 7.969 kB / 0.5906 GB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01092/0.7726, allocations: 4.589 MB / 0.5951 GB, free: 2.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.7727, allocations: 3.938 kB / 0.5951 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002422/0.7751, allocations: 411.6 kB / 0.5955 GB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004241/0.7794, allocations: 0.7546 MB / 0.5962 GB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003998/0.7798, allocations: 67.97 kB / 0.5963 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01266/0.7925, allocations: 14.72 MB / 0.6106 GB, free: 1.008 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.7926, allocations: 0 / 0.6106 GB, free: 1.008 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008844/0.8014, allocations: 3.378 MB / 0.6139 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005672/0.802, allocations: 203.5 kB / 0.6141 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005089/0.8025, allocations: 67.98 kB / 0.6142 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00128/0.8038, allocations: 95.83 kB / 0.6143 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003811/0.8042, allocations: 108.9 kB / 0.6144 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/0.8044, allocations: 39.98 kB / 0.6144 GB, free: 13.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001086/0.8055, allocations: 0.5817 MB / 0.615 GB, free: 12.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.8055, allocations: 0 / 0.615 GB, free: 12.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003557/0.8091, allocations: 0.9274 MB / 0.6159 GB, free: 11.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 46 (FlowCtrl.y,PI_dpHC.FO.y,line.fluidStream.T[1],line.fluidStream.T[2],line.fluidStream.T[3],line.fluidStream.T[4],line.fluidStream.T[5],line.wall.wall.T[1,1],line.wall.wall.T[1,2],line.wall.wall.T[1,3],line.wall.wall.T[2,1],line.wall.wall.T[2,2],line.wall.wall.T[2,3],line.wall.wall.T[3,1],line.wall.wall.T[3,2],line.wall.wall.T[3,3],line.wall.wall.T[4,1],line.wall.wall.T[4,2],line.wall.wall.T[4,3],line.wall.wall.T[5,1],line.wall.wall.T[5,2],line.wall.wall.T[5,3],load.fluidStream.T[1],load.fluidStream.T[2],load.fluidStream.T[3],load.fluidStream.T[4],load.fluidStream.T[5],load.wall.wall.T[1,1],load.wall.wall.T[1,2],load.wall.wall.T[1,3],load.wall.wall.T[2,1],load.wall.wall.T[2,2],load.wall.wall.T[2,3],load.wall.wall.T[3,1],load.wall.wall.T[3,2],load.wall.wall.T[3,3],load.wall.wall.T[4,1],load.wall.wall.T[4,2],load.wall.wall.T[4,3],load.wall.wall.T[5,1],load.wall.wall.T[5,2],load.wall.wall.T[5,3],EV.lfrac,PI_To.FO.y,PI_wh.FO.y,heater.T) * 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 (117): * Single equations (assignments): 106 * 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: 11 * 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: 1 {3 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004249/0.8095, allocations: 201.9 kB / 0.6161 GB, free: 11.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00846/0.818, allocations: 5.45 MB / 0.6214 GB, free: 5.621 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/0.818, allocations: 0 / 0.6214 GB, free: 5.621 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003009/0.821, allocations: 2.125 MB / 0.6235 GB, free: 3.367 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/0.8233, allocations: 398.9 kB / 0.6239 GB, free: 2.977 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.8358, allocations: 7.25 MB / 0.6309 GB, free: 11.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001559/0.8374, allocations: 1.369 MB / 0.6323 GB, free: 10.29 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002939/0.8403, allocations: 0.6385 MB / 0.6329 GB, free: 9.645 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005856/0.8409, allocations: 103.4 kB / 0.633 GB, free: 9.543 MB / 426.7 MB Notification: Performance of SimCode: time 2.154e-06/0.8409, allocations: 0 / 0.633 GB, free: 9.543 MB / 426.7 MB Notification: Performance of Templates: time 0.2702/1.111, allocations: 28.64 MB / 0.661 GB, free: 129.4 MB / 442.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Hcentral_control_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Hcentral_control_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Hcentral_control_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Hcentral_control_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Hcentral_control_case_002.sim & ./AES_AES.Coursework.ThermSys_Generation.Hcentral_control_case_002 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Hcentral_control_case_002.pipe 2>&1)