Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.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.Tuning_brushup.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") translateModel(AES.Coursework.Tuning_brushup.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009935/0.0009935, allocations: 92.78 kB / 16.02 MB, free: 76 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.00111/0.00111, allocations: 179.6 kB / 16.92 MB, free: 6.656 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.324/1.324, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2014/0.2014, allocations: 22.36 MB / 314.4 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003398, allocations: 12.27 kB / 383.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2656, allocations: 55.97 MB / 439.2 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.001192/0.2668, allocations: 0.9964 MB / 440.2 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.2682, allocations: 1.391 MB / 441.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.949e-05/0.2683, allocations: 2.562 kB / 441.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.2686, allocations: 73.89 kB / 441.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000224/0.2689, allocations: 113.6 kB / 441.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.2692, allocations: 189.8 kB / 442 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003557/0.2695, allocations: 0.489 MB / 442.5 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.2697, allocations: 63.64 kB / 442.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.2698, allocations: 186.8 kB / 442.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.2701, allocations: 222.4 kB / 442.9 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.423e-05/0.2701, allocations: 13.78 kB / 443 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.292e-05/0.2702, allocations: 14.34 kB / 443 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.2703, allocations: 112.8 kB / 443.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.652e-05/0.2704, allocations: 146 kB / 443.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.2706, allocations: 239.3 kB / 443.5 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2706, allocations: 2.969 kB / 443.5 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2706, allocations: 0 / 443.5 MB, free: 36.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.2706, allocations: 3.938 kB / 443.5 MB, free: 36.96 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001918/0.2725, allocations: 0.8227 MB / 444.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.2725, allocations: 12.09 kB / 444.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.576e-05/0.2726, allocations: 39.09 kB / 444.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.2737, allocations: 0.4946 MB / 444.8 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.2737, allocations: 14.59 kB / 444.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.2737, allocations: 24.19 kB / 444.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003154/0.2741, allocations: 212.9 kB / 445.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.2741, allocations: 0 / 445.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.2741, allocations: 10.56 kB / 445.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.2741, allocations: 7.25 kB / 445.1 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003542/0.2745, allocations: 238.6 kB / 445.3 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.2755, allocations: 0.7504 MB / 446.1 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005917/0.2761, allocations: 332.2 kB / 446.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.2763, allocations: 141.3 kB / 446.5 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.2764, allocations: 3.094 kB / 446.5 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.2764, allocations: 37.92 kB / 446.6 MB, free: 35.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.363e-06/0.2764, allocations: 2.75 kB / 446.6 MB, free: 35.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001618/0.278, allocations: 0.7832 MB / 447.4 MB, free: 34.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.382e-05/0.278, allocations: 54.34 kB / 447.4 MB, free: 34.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.2791, allocations: 0.5147 MB / 447.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.2791, allocations: 32.67 kB / 448 MB, free: 34.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.414e-05/0.2792, allocations: 176.8 kB / 448.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.622e-05/0.2793, allocations: 91.81 kB / 448.2 MB, free: 34.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.102e-05/0.2793, allocations: 31.8 kB / 448.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.862e-05/0.2794, allocations: 350.9 kB / 448.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.2796, allocations: 109.4 kB / 448.7 MB, free: 34.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.2797, allocations: 114.4 kB / 448.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001989/0.2817, allocations: 0.7264 MB / 449.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.2818, allocations: 7.141 kB / 449.6 MB, free: 33.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007577/0.2825, allocations: 474.9 kB / 450 MB, free: 33.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.2826, allocations: 5.625 kB / 450 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.2826, allocations: 0 / 450 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/0.2829, allocations: 107.9 kB / 450.1 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.2831, allocations: 43.81 kB / 450.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001849/0.2849, allocations: 2.988 MB / 453.2 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004806/0.2854, allocations: 87.95 kB / 453.2 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.2854, allocations: 7.812 kB / 453.2 MB, free: 30.75 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001869/0.2856, allocations: 189.1 kB / 453.4 MB, free: 30.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.778e-05/0.2857, allocations: 33.97 kB / 453.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.2858, allocations: 49.48 kB / 453.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2858, allocations: 2.75 kB / 453.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.2858, allocations: 7.188 kB / 453.5 MB, free: 30.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2858, allocations: 3.234 kB / 453.5 MB, free: 30.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003436/0.2862, allocations: 402.7 kB / 453.9 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2862, allocations: 2.75 kB / 453.9 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.2864, allocations: 29.52 kB / 454 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002724/0.2867, allocations: 115.3 kB / 454.1 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.2867, allocations: 10.22 kB / 454.1 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001666/0.2884, allocations: 2.992 MB / 457.1 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2884, allocations: 0 / 457.1 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008951/0.2893, allocations: 0.6589 MB / 457.7 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.552e-05/0.2894, allocations: 121.7 kB / 457.8 MB, free: 26.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.209e-05/0.2894, allocations: 9.719 kB / 457.9 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004989/0.2899, allocations: 76.81 kB / 457.9 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.735e-05/0.29, allocations: 23.33 kB / 458 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.29, allocations: 3.125 kB / 458 MB, free: 26.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009112/0.2909, allocations: 417.4 kB / 458.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.291, allocations: 0 / 458.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003407/0.2913, allocations: 75.16 kB / 458.4 MB, free: 26.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.x_scaled[1]) * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001029/0.2914, allocations: 112.3 kB / 458.5 MB, free: 26.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007361/0.2922, allocations: 0.5418 MB / 459.1 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2922, allocations: 0 / 459.1 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004205/0.2926, allocations: 391.7 kB / 459.5 MB, free: 26.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.2931, allocations: 67.84 kB / 459.5 MB, free: 26.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.2944, allocations: 0.9341 MB / 460.5 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.2946, allocations: 0.8236 MB / 461.3 MB, free: 24.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.378e-05/0.2947, allocations: 23.19 kB / 461.3 MB, free: 24.83 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2947, allocations: 0 / 461.3 MB, free: 24.83 MB / 350.1 MB Notification: Performance of Templates: time 0.00961/0.3043, allocations: 6.534 MB / 467.9 MB, free: 24.38 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.Exploiting_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)