Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.IMC_scheme_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009396/0.009396, allocations: 169.1 kB / 16.26 MB, free: 6.328 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.416/1.416, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2697/0.2697, allocations: 22.35 MB / 313.8 MB, free: 13.04 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003187/0.0003188, allocations: 8 kB / 382.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3276, allocations: 55.99 MB / 438.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001237/0.3288, allocations: 0.7714 MB / 439.3 MB, free: 38.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.3302, allocations: 1.236 MB / 440.6 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.363e-05/0.3303, allocations: 6.875 kB / 440.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002874/0.3306, allocations: 39.53 kB / 440.6 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.3308, allocations: 67.48 kB / 440.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000188/0.331, allocations: 92.98 kB / 440.8 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002632/0.3312, allocations: 283.9 kB / 441.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.3314, allocations: 37.7 kB / 441.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.3315, allocations: 107.1 kB / 441.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.3317, allocations: 143.5 kB / 441.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/0.3317, allocations: 10.09 kB / 441.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.49e-05/0.3318, allocations: 7.625 kB / 441.4 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.3319, allocations: 76.7 kB / 441.4 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.812e-05/0.332, allocations: 119.5 kB / 441.5 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.3322, allocations: 208.9 kB / 441.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3322, allocations: 0 / 441.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3322, allocations: 0 / 441.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.3322, allocations: 0 / 441.7 MB, free: 37.46 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001467/0.3337, allocations: 0.6474 MB / 442.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3337, allocations: 13 kB / 442.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.193e-05/0.3338, allocations: 28.47 kB / 442.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007424/0.3346, allocations: 363.8 kB / 442.8 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.3346, allocations: 9.469 kB / 442.8 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.176e-05/0.3346, allocations: 13.66 kB / 442.8 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.3349, allocations: 171.2 kB / 443 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.335, allocations: 0 / 443 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.335, allocations: 10.78 kB / 443 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.335, allocations: 2.5 kB / 443 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002904/0.3353, allocations: 169.6 kB / 443.2 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009442/0.3363, allocations: 0.6338 MB / 443.8 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003036/0.3366, allocations: 206.1 kB / 444 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.3367, allocations: 111.8 kB / 444.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.3368, allocations: 2.688 kB / 444.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.3368, allocations: 37.38 kB / 444.1 MB, free: 36.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.443e-06/0.3368, allocations: 4 kB / 444.1 MB, free: 36.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001607/0.3384, allocations: 0.6454 MB / 444.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.3385, allocations: 59.41 kB / 444.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006664/0.3391, allocations: 340.3 kB / 445.2 MB, free: 35.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.3392, allocations: 29.7 kB / 445.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.573e-05/0.3392, allocations: 142.6 kB / 445.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.19e-05/0.3393, allocations: 70.8 kB / 445.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.3393, allocations: 29.39 kB / 445.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.119e-05/0.3394, allocations: 333.8 kB / 445.8 MB, free: 35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.3395, allocations: 86.83 kB / 445.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.3397, allocations: 96.94 kB / 446 MB, free: 34.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001777/0.3415, allocations: 0.6234 MB / 446.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3415, allocations: 0 / 446.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007008/0.3422, allocations: 402.8 kB / 447 MB, free: 34.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3422, allocations: 9.312 kB / 447 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3422, allocations: 0 / 447 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002834/0.3425, allocations: 88.72 kB / 447.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.3427, allocations: 41.98 kB / 447.1 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.344, allocations: 1.738 MB / 448.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003353/0.3444, allocations: 60.08 kB / 448.9 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.3444, allocations: 9.469 kB / 448.9 MB, free: 33.09 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: M.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001745/0.3446, allocations: 172.3 kB / 449.1 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/0.3446, allocations: 30.62 kB / 449.1 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.949e-05/0.3447, allocations: 39.98 kB / 449.2 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3447, allocations: 1.719 kB / 449.2 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.3447, allocations: 2.156 kB / 449.2 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.3447, allocations: 0 / 449.2 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.345, allocations: 327.3 kB / 449.5 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.345, allocations: 0 / 449.5 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.3452, allocations: 28.19 kB / 449.5 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002377/0.3455, allocations: 92.89 kB / 449.6 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.3455, allocations: 10.12 kB / 449.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.3467, allocations: 1.733 MB / 451.3 MB, free: 31.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3467, allocations: 0 / 451.3 MB, free: 31.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008022/0.3475, allocations: 0.5592 MB / 451.9 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.177e-05/0.3476, allocations: 107 kB / 452 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.096e-05/0.3476, allocations: 6.75 kB / 452 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003433/0.348, allocations: 43.06 kB / 452 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.3481, allocations: 15.38 kB / 452.1 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.3481, allocations: 10.47 kB / 452.1 MB, free: 30.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005844/0.3487, allocations: 275.7 kB / 452.3 MB, free: 30.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3487, allocations: 2.75 kB / 452.3 MB, free: 30.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003002/0.349, allocations: 62.5 kB / 452.4 MB, free: 30.6 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001016/0.3491, allocations: 96.28 kB / 452.5 MB, free: 30.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005651/0.3497, allocations: 383 kB / 452.9 MB, free: 30.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3497, allocations: 0 / 452.9 MB, free: 30.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003098/0.35, allocations: 250.3 kB / 453.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.3504, allocations: 39.17 kB / 453.2 MB, free: 30.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007657/0.3512, allocations: 0.6378 MB / 453.8 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001846/0.3514, allocations: 0.7723 MB / 454.6 MB, free: 29.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001091/0.3515, allocations: 60.3 kB / 454.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.088e-05/0.3515, allocations: 15.31 kB / 454.6 MB, free: 29.04 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3515, allocations: 0 / 454.6 MB, free: 29.04 MB / 350.1 MB Notification: Performance of Templates: time 0.005443/0.357, allocations: 2.748 MB / 457.4 MB, free: 28.87 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)