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.0009675/0.0009674, allocations: 98.61 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.00095/0.0009504, allocations: 177.3 kB / 15.94 MB, free: 228 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.405/1.405, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2461/0.2461, allocations: 22.34 MB / 313.3 MB, free: 13.19 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003235/0.0003237, allocations: 12 kB / 381.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3191, allocations: 55.98 MB / 437.8 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001216/0.3204, allocations: 0.755 MB / 438.6 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.3216, allocations: 1.22 MB / 439.8 MB, free: 38.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.284e-05/0.3217, allocations: 0 / 439.8 MB, free: 38.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003243/0.322, allocations: 42.2 kB / 439.8 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.3222, allocations: 64.88 kB / 439.9 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001842/0.3223, allocations: 81.95 kB / 440 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001991/0.3226, allocations: 167.2 kB / 440.1 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.3227, allocations: 35.81 kB / 440.2 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.3229, allocations: 132.3 kB / 440.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001677/0.323, allocations: 133.8 kB / 440.4 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.244e-05/0.3231, allocations: 9.938 kB / 440.4 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.697e-05/0.3231, allocations: 8.531 kB / 440.4 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.164e-05/0.3232, allocations: 80.67 kB / 440.5 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.103e-05/0.3233, allocations: 49.8 kB / 440.6 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001405/0.3234, allocations: 154 kB / 440.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.3234, allocations: 2.5 kB / 440.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3234, allocations: 0 / 440.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.3234, allocations: 0 / 440.7 MB, free: 37.91 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.00141/0.3249, allocations: 0.6467 MB / 441.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3249, allocations: 9.688 kB / 441.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.807e-05/0.325, allocations: 29.59 kB / 441.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007114/0.3257, allocations: 355.8 kB / 441.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.3257, allocations: 14.09 kB / 441.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.595e-05/0.3258, allocations: 10.22 kB / 441.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002849/0.326, allocations: 166.6 kB / 441.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.3261, allocations: 2.781 kB / 441.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.3261, allocations: 3.953 kB / 441.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3261, allocations: 6.844 kB / 442 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002688/0.3264, allocations: 169.9 kB / 442.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009221/0.3273, allocations: 0.6278 MB / 442.7 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003077/0.3276, allocations: 218.7 kB / 443 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.3277, allocations: 2.875 kB / 443 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.3277, allocations: 34.56 kB / 443 MB, free: 36.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.252e-06/0.3277, allocations: 0 / 443 MB, free: 36.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001552/0.3293, allocations: 0.6353 MB / 443.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.3293, allocations: 54.31 kB / 443.7 MB, free: 36.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006833/0.33, allocations: 341.8 kB / 444 MB, free: 36.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.33, allocations: 29.7 kB / 444.1 MB, free: 36.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.775e-05/0.3301, allocations: 141.1 kB / 444.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.501e-05/0.3302, allocations: 74.22 kB / 444.3 MB, free: 35.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.256e-05/0.3302, allocations: 6.969 kB / 444.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.615e-05/0.3303, allocations: 335.7 kB / 444.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.3305, allocations: 84.38 kB / 444.7 MB, free: 35.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.3306, allocations: 94.73 kB / 444.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/0.3308, allocations: 112.1 kB / 444.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3308, allocations: 0 / 444.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007178/0.3315, allocations: 397.4 kB / 445.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3316, allocations: 5.906 kB / 445.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3316, allocations: 0 / 445.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003421/0.3319, allocations: 94.83 kB / 445.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.3321, allocations: 34.31 kB / 445.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/0.3335, allocations: 1.749 MB / 447.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003147/0.3339, allocations: 55.67 kB / 447.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.3339, allocations: 13.22 kB / 447.2 MB, free: 33.73 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] P.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] HF.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001757/0.3341, allocations: 162.2 kB / 447.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.257e-05/0.3341, allocations: 19.28 kB / 447.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.174e-05/0.3342, allocations: 43.52 kB / 447.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.3342, allocations: 6.812 kB / 447.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3342, allocations: 0 / 447.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.3342, allocations: 0 / 447.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002679/0.3345, allocations: 326.8 kB / 447.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3345, allocations: 0 / 447.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/0.3347, allocations: 33.02 kB / 447.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002295/0.3349, allocations: 93.36 kB / 447.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.335, allocations: 7.031 kB / 447.9 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/0.3362, allocations: 1.755 MB / 449.6 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3362, allocations: 0 / 449.6 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000785/0.337, allocations: 0.5601 MB / 450.2 MB, free: 31.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.158e-05/0.3371, allocations: 97.34 kB / 450.3 MB, free: 31.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/0.3371, allocations: 6.75 kB / 450.3 MB, free: 31.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/0.3375, allocations: 45.97 kB / 450.4 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.921e-05/0.3375, allocations: 18.06 kB / 450.4 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.3375, allocations: 6.562 kB / 450.4 MB, free: 31.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005529/0.3381, allocations: 268.1 kB / 450.6 MB, free: 31.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3381, allocations: 0 / 450.6 MB, free: 31.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003008/0.3384, allocations: 66 kB / 450.7 MB, free: 31.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001145/0.3385, allocations: 103.1 kB / 450.8 MB, free: 31.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000555/0.3391, allocations: 373.9 kB / 451.2 MB, free: 30.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3391, allocations: 0 / 451.2 MB, free: 30.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002919/0.3394, allocations: 258.2 kB / 451.4 MB, free: 30.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.3397, allocations: 34.52 kB / 451.5 MB, free: 30.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000754/0.3405, allocations: 0.6111 MB / 452.1 MB, free: 30.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.3406, allocations: 0.7791 MB / 452.8 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.3408, allocations: 57.72 kB / 452.9 MB, free: 29.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.079e-05/0.3408, allocations: 16.25 kB / 452.9 MB, free: 29.72 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.3408, allocations: 0 / 452.9 MB, free: 29.72 MB / 350.1 MB Notification: Performance of Templates: time 0.005375/0.3462, allocations: 2.676 MB / 455.6 MB, free: 29.54 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: