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.001259/0.001259, allocations: 108 kB / 15.6 MB, free: 132 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.001332/0.001332, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.407/1.407, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2477/0.2477, allocations: 22.34 MB / 312.7 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 63.91 kB / 380.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3235, allocations: 54.95 MB / 435.8 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002289/0.3258, allocations: 1.291 MB / 437.1 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.3273, allocations: 1.403 MB / 438.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.3274, allocations: 6.562 kB / 438.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003539/0.3278, allocations: 96.22 kB / 438.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002241/0.3281, allocations: 119 kB / 438.7 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002793/0.3283, allocations: 200.8 kB / 438.9 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003563/0.3287, allocations: 0.5073 MB / 439.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.3289, allocations: 69.02 kB / 439.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.329, allocations: 211.7 kB / 439.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002437/0.3293, allocations: 250.9 kB / 439.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.88e-05/0.3294, allocations: 27.06 kB / 439.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.426e-05/0.3294, allocations: 27.25 kB / 440 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.3295, allocations: 124.5 kB / 440.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.3297, allocations: 143.9 kB / 440.2 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.3299, allocations: 323.8 kB / 440.5 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.3299, allocations: 2.719 kB / 440.5 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3299, allocations: 0 / 440.5 MB, free: 36.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.3299, allocations: 0 / 440.5 MB, free: 36.95 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.002126/0.332, allocations: 0.8714 MB / 441.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.3321, allocations: 8.531 kB / 441.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.091e-05/0.3322, allocations: 37.88 kB / 441.5 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.3333, allocations: 493.9 kB / 441.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.3333, allocations: 10.86 kB / 442 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.072e-05/0.3334, allocations: 25.12 kB / 442 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003344/0.3337, allocations: 224.7 kB / 442.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.3337, allocations: 0 / 442.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.3337, allocations: 4 kB / 442.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.3338, allocations: 5.562 kB / 442.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003682/0.3341, allocations: 226.3 kB / 442.4 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.3353, allocations: 0.7608 MB / 443.2 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006024/0.3359, allocations: 326.1 kB / 443.5 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.3361, allocations: 136.2 kB / 443.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.3361, allocations: 6.828 kB / 443.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.3361, allocations: 44.91 kB / 443.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.513e-06/0.3361, allocations: 0 / 443.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.00173/0.3379, allocations: 0.7845 MB / 444.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.773e-05/0.3379, allocations: 62.25 kB / 444.5 MB, free: 34.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.339, allocations: 0.5046 MB / 445 MB, free: 34.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.339, allocations: 28.61 kB / 445.1 MB, free: 34.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.783e-05/0.3391, allocations: 175.1 kB / 445.2 MB, free: 34.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.945e-05/0.3392, allocations: 99.05 kB / 445.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.999e-05/0.3393, allocations: 49.22 kB / 445.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.682e-05/0.3394, allocations: 346.4 kB / 445.7 MB, free: 34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.3395, allocations: 116.7 kB / 445.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.3397, allocations: 114.8 kB / 445.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001978/0.3417, allocations: 0.7106 MB / 446.7 MB, free: 33.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3417, allocations: 0 / 446.7 MB, free: 33.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007927/0.3425, allocations: 486.4 kB / 447.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.3425, allocations: 5.25 kB / 447.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3425, allocations: 7.719 kB / 447.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003219/0.3429, allocations: 104.8 kB / 447.2 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.343, allocations: 39.56 kB / 447.3 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.345, allocations: 3.201 MB / 450.5 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000494/0.3455, allocations: 83.67 kB / 450.6 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.3455, allocations: 5.25 kB / 450.6 MB, free: 30.5 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.0001977/0.3457, allocations: 176.3 kB / 450.7 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.237e-05/0.3458, allocations: 42.86 kB / 450.8 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.876e-05/0.3459, allocations: 54.83 kB / 450.8 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3459, allocations: 2.844 kB / 450.8 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.3459, allocations: 0 / 450.8 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3459, allocations: 0 / 450.8 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003458/0.3463, allocations: 401.2 kB / 451.2 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3463, allocations: 0 / 451.2 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001974/0.3465, allocations: 33.45 kB / 451.3 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002702/0.3468, allocations: 114.7 kB / 451.4 MB, free: 29.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.3468, allocations: 10.86 kB / 451.4 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/0.3487, allocations: 3.19 MB / 454.6 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3487, allocations: 3.938 kB / 454.6 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009191/0.3497, allocations: 0.6799 MB / 455.3 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.015e-05/0.3497, allocations: 119.5 kB / 455.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/0.3498, allocations: 7.938 kB / 455.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005017/0.3503, allocations: 71.75 kB / 455.5 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.434e-05/0.3504, allocations: 19.62 kB / 455.5 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.3504, allocations: 6.906 kB / 455.5 MB, free: 26.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009618/0.3514, allocations: 405.3 kB / 455.9 MB, free: 26.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3514, allocations: 3.406 kB / 455.9 MB, free: 26.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003724/0.3517, allocations: 77 kB / 456 MB, free: 26.34 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.0001109/0.3519, allocations: 110.1 kB / 456.1 MB, free: 26.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008113/0.3527, allocations: 0.5507 MB / 456.6 MB, free: 25.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.3527, allocations: 4 kB / 456.6 MB, free: 25.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004145/0.3531, allocations: 397.2 kB / 457 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.3536, allocations: 67.77 kB / 457.1 MB, free: 25.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.3549, allocations: 0.7883 MB / 457.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.3552, allocations: 0.8236 MB / 458.7 MB, free: 24.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.3554, allocations: 68.23 kB / 458.8 MB, free: 24.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.939e-05/0.3555, allocations: 26.81 kB / 458.8 MB, free: 24.47 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3555, allocations: 0 / 458.8 MB, free: 24.47 MB / 350.1 MB Notification: Performance of Templates: time 0.009689/0.3652, allocations: 4.121 MB / 462.9 MB, free: 24.2 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)