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.000896/0.0008961, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.00129/0.00129, allocations: 168.7 kB / 15.95 MB, free: 204 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.477/1.477, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2209/0.2209, allocations: 22.34 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004524/0.0004525, allocations: 12 kB / 381.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3939, allocations: 55.96 MB / 437.9 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001235/0.3952, allocations: 0.7494 MB / 438.7 MB, free: 38.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.3964, allocations: 1.218 MB / 439.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.727e-05/0.3965, allocations: 0 / 439.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003026/0.3968, allocations: 50.42 kB / 439.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.397, allocations: 56.38 kB / 440 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001748/0.3972, allocations: 88.34 kB / 440.1 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.3975, allocations: 244.1 kB / 440.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.3976, allocations: 41.06 kB / 440.3 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.3978, allocations: 130.1 kB / 440.5 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.398, allocations: 147.8 kB / 440.6 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.603e-05/0.398, allocations: 12.47 kB / 440.6 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.674e-05/0.3981, allocations: 8.438 kB / 440.6 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.3982, allocations: 81.12 kB / 440.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.498e-05/0.3982, allocations: 48.48 kB / 440.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001503/0.3984, allocations: 162.1 kB / 440.9 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.3984, allocations: 0 / 440.9 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.3984, allocations: 4 kB / 440.9 MB, free: 37.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.3984, allocations: 3.938 kB / 440.9 MB, free: 37.4 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.00136/0.3998, allocations: 0.6317 MB / 441.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3998, allocations: 15.34 kB / 441.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.37e-05/0.3999, allocations: 26.03 kB / 441.6 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000656/0.4006, allocations: 352.3 kB / 441.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.4006, allocations: 9.594 kB / 441.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.4006, allocations: 16.75 kB / 442 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002872/0.4009, allocations: 169.4 kB / 442.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.401, allocations: 2.938 kB / 442.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.401, allocations: 3.953 kB / 442.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.401, allocations: 2.531 kB / 442.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.4013, allocations: 173 kB / 442.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009542/0.4023, allocations: 0.6313 MB / 442.9 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003194/0.4026, allocations: 219.3 kB / 443.2 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.4028, allocations: 107 kB / 443.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.4028, allocations: 0 / 443.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.4028, allocations: 40.69 kB / 443.3 MB, free: 36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.132e-06/0.4028, allocations: 0 / 443.3 MB, free: 36 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001513/0.4044, allocations: 0.6416 MB / 443.9 MB, free: 35.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.4044, allocations: 55.34 kB / 444 MB, free: 35.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006143/0.405, allocations: 346.3 kB / 444.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.4051, allocations: 29.7 kB / 444.4 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.397e-05/0.4051, allocations: 138.6 kB / 444.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.433e-05/0.4052, allocations: 70.48 kB / 444.6 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.4052, allocations: 4 kB / 444.6 MB, free: 35.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.078e-05/0.4053, allocations: 340.7 kB / 444.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.4055, allocations: 88.06 kB / 445 MB, free: 34.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.4056, allocations: 100.7 kB / 445.1 MB, free: 34.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.4058, allocations: 108.4 kB / 445.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.4058, allocations: 3.938 kB / 445.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006495/0.4065, allocations: 390.4 kB / 445.6 MB, free: 34.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.4065, allocations: 9.953 kB / 445.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.4065, allocations: 4 kB / 445.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003173/0.4068, allocations: 90.89 kB / 445.7 MB, free: 34.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.407, allocations: 30.23 kB / 445.7 MB, free: 34.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.4084, allocations: 1.729 MB / 447.4 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.4087, allocations: 58.98 kB / 447.5 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.4087, allocations: 7.156 kB / 447.5 MB, free: 33.2 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.0001939/0.4089, allocations: 165.5 kB / 447.7 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.926e-05/0.409, allocations: 31.3 kB / 447.7 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.126e-05/0.4091, allocations: 35.48 kB / 447.7 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.4091, allocations: 3 kB / 447.7 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.4091, allocations: 3.969 kB / 447.7 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4091, allocations: 3.328 kB / 447.7 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003086/0.4094, allocations: 327.1 kB / 448.1 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4094, allocations: 0 / 448.1 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.4096, allocations: 25.03 kB / 448.1 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002383/0.4098, allocations: 99.42 kB / 448.2 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/0.4099, allocations: 10.22 kB / 448.2 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/0.4113, allocations: 1.728 MB / 449.9 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.4113, allocations: 4.125 kB / 449.9 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009668/0.4123, allocations: 0.5589 MB / 450.5 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.479e-05/0.4124, allocations: 105.2 kB / 450.6 MB, free: 30.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.4124, allocations: 6.688 kB / 450.6 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/0.4127, allocations: 49.61 kB / 450.6 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/0.4128, allocations: 15.81 kB / 450.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.4128, allocations: 2.719 kB / 450.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005702/0.4134, allocations: 276.9 kB / 450.9 MB, free: 30.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4134, allocations: 0 / 450.9 MB, free: 30.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003627/0.4138, allocations: 64.66 kB / 451 MB, free: 30.7 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.0001376/0.4139, allocations: 103.5 kB / 451.1 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006487/0.4146, allocations: 374.6 kB / 451.5 MB, free: 30.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4146, allocations: 0 / 451.5 MB, free: 30.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000314/0.4149, allocations: 249.5 kB / 451.7 MB, free: 30.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.4153, allocations: 48.75 kB / 451.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008163/0.4161, allocations: 0.6062 MB / 452.4 MB, free: 29.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.4164, allocations: 0.7765 MB / 453.1 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001214/0.4165, allocations: 49.42 kB / 453.2 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.549e-05/0.4165, allocations: 18.78 kB / 453.2 MB, free: 29.17 MB / 350.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4165, allocations: 4 kB / 453.2 MB, free: 29.17 MB / 350.1 MB Notification: Performance of Templates: time 0.005923/0.4225, allocations: 2.675 MB / 455.9 MB, free: 28.99 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)