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/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.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/AES main/package.mo): time 0.07565/0.07565, allocations: 17.68 MB / 33.63 MB, free: 1.75 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.001067/0.001068, allocations: 181.6 kB / 38.92 MB, free: 12 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.59/1.59, 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.0007855/0.0007854, allocations: 88.86 kB / 302.2 MB, free: 4.426 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006465/0.0006471, allocations: 12 kB / 366.9 MB, free: 3.621 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2616, allocations: 51.99 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.001305/0.2629, allocations: 0.9366 MB / 419.9 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.2644, allocations: 1.409 MB / 421.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.2645, allocations: 8 kB / 421.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003616/0.2649, allocations: 83.58 kB / 421.4 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002491/0.2652, allocations: 99.56 kB / 421.5 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002976/0.2655, allocations: 167.8 kB / 421.6 MB, free: 21.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003743/0.2658, allocations: 438.8 kB / 422.1 MB, free: 21.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.266, allocations: 64.66 kB / 422.1 MB, free: 21.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001975/0.2662, allocations: 191.2 kB / 422.3 MB, free: 20.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002543/0.2665, allocations: 211.2 kB / 422.5 MB, free: 20.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.032e-05/0.2666, allocations: 12 kB / 422.5 MB, free: 20.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.736e-05/0.2666, allocations: 12 kB / 422.5 MB, free: 20.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.2667, allocations: 107.7 kB / 422.6 MB, free: 20.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.939e-05/0.2668, allocations: 140.9 kB / 422.8 MB, free: 20.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.2671, allocations: 302.8 kB / 423.1 MB, free: 20.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.2671, allocations: 0 / 423.1 MB, free: 20.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2671, allocations: 0 / 423.1 MB, free: 20.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.353e-06/0.2671, allocations: 0 / 423.1 MB, free: 20.21 MB / 298.7 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.001846/0.2689, allocations: 0.8221 MB / 423.9 MB, free: 19.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.269, allocations: 8.031 kB / 423.9 MB, free: 19.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.397e-05/0.2691, allocations: 40.47 kB / 423.9 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009416/0.27, allocations: 0.4902 MB / 424.4 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.27, allocations: 8.703 kB / 424.4 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.2701, allocations: 20.38 kB / 424.5 MB, free: 18.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.2704, allocations: 220.3 kB / 424.7 MB, free: 18.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.2704, allocations: 3.906 kB / 424.7 MB, free: 18.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.2705, allocations: 8 kB / 424.7 MB, free: 18.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.2705, allocations: 4 kB / 424.7 MB, free: 18.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003512/0.2708, allocations: 228.4 kB / 424.9 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.2719, allocations: 0.7578 MB / 425.7 MB, free: 17.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005645/0.2724, allocations: 334.3 kB / 426 MB, free: 17.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/0.2726, allocations: 136.8 kB / 426.1 MB, free: 16.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.2727, allocations: 4 kB / 426.1 MB, free: 16.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.478e-05/0.2727, allocations: 34.56 kB / 426.2 MB, free: 16.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.674e-06/0.2727, allocations: 0 / 426.2 MB, free: 16.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001517/0.2742, allocations: 0.7937 MB / 427 MB, free: 16.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.586e-05/0.2743, allocations: 55.41 kB / 427 MB, free: 16.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008958/0.2752, allocations: 0.5092 MB / 427.5 MB, free: 15.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.2752, allocations: 29.7 kB / 427.6 MB, free: 15.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.734e-05/0.2753, allocations: 180.4 kB / 427.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.909e-05/0.2753, allocations: 90.66 kB / 427.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.27e-05/0.2754, allocations: 8 kB / 427.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.895e-05/0.2754, allocations: 346.8 kB / 428.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.2756, allocations: 108.2 kB / 428.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.2759, allocations: 112.5 kB / 428.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/0.2778, allocations: 0.7217 MB / 429.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2778, allocations: 0 / 429.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007068/0.2786, allocations: 482.3 kB / 429.6 MB, free: 13.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.2786, allocations: 4 kB / 429.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.2786, allocations: 3.938 kB / 429.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003101/0.2789, allocations: 109.6 kB / 429.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.2791, allocations: 43.98 kB / 429.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/0.2809, allocations: 2.999 MB / 432.7 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004398/0.2813, allocations: 87.89 kB / 432.8 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.2814, allocations: 11.98 kB / 432.8 MB, free: 9.91 MB / 298.7 MB Warning: Assuming fixed start value for the following 7 variables: Process_1.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_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Cff_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] Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002023/0.2816, allocations: 181.5 kB / 433 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.338e-05/0.2816, allocations: 39.47 kB / 433 MB, free: 9.688 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.05e-05/0.2817, allocations: 55.3 kB / 433.1 MB, free: 9.629 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2817, allocations: 0 / 433.1 MB, free: 9.629 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.2817, allocations: 4 kB / 433.1 MB, free: 9.625 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2818, allocations: 4 kB / 433.1 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003484/0.2821, allocations: 397.2 kB / 433.5 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.2821, allocations: 0 / 433.5 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.2823, allocations: 31.98 kB / 433.5 MB, free: 9.152 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002619/0.2826, allocations: 113.5 kB / 433.6 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.2826, allocations: 4 kB / 433.6 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001686/0.2843, allocations: 2.987 MB / 436.6 MB, free: 5.777 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2843, allocations: 0 / 436.6 MB, free: 5.777 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008958/0.2852, allocations: 0.6758 MB / 437.3 MB, free: 5.078 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.161e-05/0.2853, allocations: 120.7 kB / 437.4 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.2854, allocations: 8 kB / 437.4 MB, free: 4.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004437/0.2858, allocations: 71.89 kB / 437.5 MB, free: 4.863 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.391e-05/0.2859, allocations: 19.97 kB / 437.5 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.2859, allocations: 8 kB / 437.5 MB, free: 4.836 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008129/0.2867, allocations: 410.9 kB / 437.9 MB, free: 4.434 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2867, allocations: 0 / 437.9 MB, free: 4.434 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003381/0.2871, allocations: 79.84 kB / 438 MB, free: 4.355 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001067/0.2872, allocations: 103.2 kB / 438.1 MB, free: 4.242 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007459/0.2879, allocations: 0.5208 MB / 438.6 MB, free: 3.695 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.288, allocations: 7.938 kB / 438.6 MB, free: 3.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004062/0.2884, allocations: 409 kB / 439 MB, free: 3.262 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.2888, allocations: 57.34 kB / 439.1 MB, free: 3.207 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.29, allocations: 0.8534 MB / 439.9 MB, free: 2.332 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.2903, allocations: 0.8185 MB / 440.8 MB, free: 1.484 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001651/0.2904, allocations: 78.91 kB / 440.8 MB, free: 1.402 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.952e-05/0.2905, allocations: 23.44 kB / 440.9 MB, free: 1.379 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2905, allocations: 0 / 440.9 MB, free: 1.379 MB / 298.7 MB Notification: Performance of Templates: time 0.00691/0.2974, allocations: 3.728 MB / 444.6 MB, free: 13.66 MB / 314.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)