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.001016/0.001017, allocations: 100 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 239.9 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2774/0.2774, allocations: 22.34 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003515, allocations: 12 kB / 381.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3292, allocations: 55.98 MB / 437.8 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.001144/0.3304, allocations: 0.956 MB / 438.8 MB, free: 38.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.3316, allocations: 1.371 MB / 440.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.41e-05/0.3317, allocations: 3.031 kB / 440.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003159/0.3321, allocations: 84.72 kB / 440.2 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002115/0.3323, allocations: 110.5 kB / 440.3 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002589/0.3326, allocations: 160.6 kB / 440.5 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002714/0.3328, allocations: 287.8 kB / 440.8 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.333, allocations: 57.45 kB / 440.8 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.3332, allocations: 236.9 kB / 441.1 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.3335, allocations: 211.5 kB / 441.3 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.708e-05/0.3335, allocations: 11.25 kB / 441.3 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.602e-05/0.3335, allocations: 11.91 kB / 441.3 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.3337, allocations: 105.9 kB / 441.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.371e-05/0.3337, allocations: 68.86 kB / 441.5 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.3339, allocations: 229.7 kB / 441.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.3339, allocations: 0 / 441.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.3339, allocations: 0 / 441.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.3339, allocations: 0 / 441.7 MB, free: 37.1 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.001936/0.3359, allocations: 0.8328 MB / 442.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.3359, allocations: 12.09 kB / 442.5 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.271e-05/0.336, allocations: 38.09 kB / 442.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.3371, allocations: 484.6 kB / 443 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.3371, allocations: 15.72 kB / 443.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.3371, allocations: 16.78 kB / 443.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/0.3375, allocations: 207.5 kB / 443.3 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.3376, allocations: 7.234 kB / 443.3 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.3376, allocations: 6.812 kB / 443.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.3376, allocations: 6.625 kB / 443.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003649/0.338, allocations: 229.8 kB / 443.5 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.3391, allocations: 0.7706 MB / 444.3 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005569/0.3397, allocations: 321 kB / 444.6 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.3397, allocations: 3.938 kB / 444.6 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.374e-05/0.3397, allocations: 37.62 kB / 444.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.613e-06/0.3397, allocations: 0 / 444.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001598/0.3413, allocations: 0.791 MB / 445.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.295e-05/0.3414, allocations: 54.34 kB / 445.5 MB, free: 35.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.3424, allocations: 0.5075 MB / 446 MB, free: 34.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.3424, allocations: 32.7 kB / 446 MB, free: 34.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.187e-05/0.3425, allocations: 177.5 kB / 446.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.866e-05/0.3426, allocations: 92.17 kB / 446.3 MB, free: 34.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.3426, allocations: 6.969 kB / 446.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.777e-05/0.3427, allocations: 351.8 kB / 446.6 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.3429, allocations: 108.2 kB / 446.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.343, allocations: 114 kB / 446.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.3432, allocations: 131.1 kB / 447 MB, free: 34.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3432, allocations: 0 / 447 MB, free: 34.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007118/0.3439, allocations: 476.2 kB / 447.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.344, allocations: 11.14 kB / 447.5 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.344, allocations: 0 / 447.5 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003326/0.3443, allocations: 109.6 kB / 447.6 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.3445, allocations: 39.38 kB / 447.6 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/0.3463, allocations: 3.02 MB / 450.6 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.3468, allocations: 80.94 kB / 450.7 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.3469, allocations: 5.875 kB / 450.7 MB, free: 31.11 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[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] 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.0001892/0.347, allocations: 181.7 kB / 450.9 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.526e-05/0.3471, allocations: 37.77 kB / 450.9 MB, free: 30.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.873e-05/0.3472, allocations: 51.7 kB / 451 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3472, allocations: 0 / 451 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.3472, allocations: 2.969 kB / 451 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3472, allocations: 7.375 kB / 451 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003421/0.3476, allocations: 393.2 kB / 451.4 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3476, allocations: 0 / 451.4 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.3478, allocations: 32.53 kB / 451.4 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002717/0.3481, allocations: 111 kB / 451.5 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.3481, allocations: 12.08 kB / 451.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/0.3498, allocations: 3.01 MB / 454.5 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3499, allocations: 0 / 454.5 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008768/0.3507, allocations: 0.6653 MB / 455.2 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.333e-05/0.3508, allocations: 120.9 kB / 455.3 MB, free: 27.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.315e-05/0.3509, allocations: 9.25 kB / 455.3 MB, free: 27.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00048/0.3514, allocations: 79.19 kB / 455.4 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.505e-05/0.3515, allocations: 17.62 kB / 455.4 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.3515, allocations: 9.25 kB / 455.4 MB, free: 27.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000854/0.3523, allocations: 411.1 kB / 455.8 MB, free: 27.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3523, allocations: 0 / 455.8 MB, free: 27.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003604/0.3527, allocations: 76.62 kB / 455.9 MB, free: 27.16 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 (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 9.138e-05/0.3528, allocations: 110.4 kB / 456 MB, free: 27.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007033/0.3535, allocations: 0.5366 MB / 456.5 MB, free: 26.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3535, allocations: 4 kB / 456.6 MB, free: 26.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004112/0.3539, allocations: 404.1 kB / 456.9 MB, free: 26.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.3543, allocations: 55.5 kB / 457 MB, free: 26.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.3554, allocations: 0.8531 MB / 457.9 MB, free: 25.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/0.3556, allocations: 0.8336 MB / 458.7 MB, free: 25.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000146/0.3558, allocations: 67.98 kB / 458.8 MB, free: 25.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.87e-05/0.3559, allocations: 22.97 kB / 458.8 MB, free: 25.24 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3559, allocations: 0 / 458.8 MB, free: 25.24 MB / 350.1 MB Notification: Performance of Templates: time 0.007633/0.3635, allocations: 3.719 MB / 462.5 MB, free: 24.98 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: