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.001335/0.001335, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001509/0.001509, allocations: 188.8 kB / 16.25 MB, free: 6.633 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.408/1.408, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1943/0.1943, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 68.03 kB / 380.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2576, allocations: 54.94 MB / 435.2 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002093/0.2597, allocations: 1.117 MB / 436.3 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.2609, allocations: 1.255 MB / 437.6 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.779e-05/0.261, allocations: 0 / 437.6 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002929/0.2613, allocations: 46.67 kB / 437.6 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001523/0.2615, allocations: 60.3 kB / 437.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001736/0.2617, allocations: 91.09 kB / 437.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.2619, allocations: 296.7 kB / 438.1 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.262, allocations: 48.92 kB / 438.1 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.2622, allocations: 122.4 kB / 438.3 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.2624, allocations: 163.6 kB / 438.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.2624, allocations: 18.5 kB / 438.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.814e-05/0.2624, allocations: 17.91 kB / 438.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.2625, allocations: 86.69 kB / 438.5 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.151e-05/0.2626, allocations: 96.83 kB / 438.6 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.2628, allocations: 219.4 kB / 438.8 MB, free: 37.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.2628, allocations: 0 / 438.8 MB, free: 37.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2628, allocations: 0 / 438.8 MB, free: 37.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.8e-06/0.2628, allocations: 0 / 438.8 MB, free: 37.43 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.001521/0.2644, allocations: 0.6759 MB / 439.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2644, allocations: 12.62 kB / 439.5 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.851e-05/0.2645, allocations: 27.48 kB / 439.6 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00071/0.2652, allocations: 353.7 kB / 439.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.2652, allocations: 11.88 kB / 439.9 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.2652, allocations: 16.34 kB / 439.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002687/0.2655, allocations: 169.1 kB / 440.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.2655, allocations: 2.625 kB / 440.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.2656, allocations: 4 kB / 440.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.2656, allocations: 6.672 kB / 440.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002761/0.2659, allocations: 176.1 kB / 440.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008639/0.2667, allocations: 0.6214 MB / 440.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.267, allocations: 219.7 kB / 441.1 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.2672, allocations: 111.3 kB / 441.2 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.2672, allocations: 2.906 kB / 441.2 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.2672, allocations: 37.38 kB / 441.3 MB, free: 35.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.423e-06/0.2672, allocations: 0 / 441.3 MB, free: 35.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001608/0.2689, allocations: 0.6458 MB / 441.9 MB, free: 35.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.2689, allocations: 54.38 kB / 442 MB, free: 35.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006568/0.2696, allocations: 343.8 kB / 442.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.2696, allocations: 29.7 kB / 442.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.52e-05/0.2697, allocations: 138.1 kB / 442.5 MB, free: 35.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.651e-05/0.2697, allocations: 70.52 kB / 442.5 MB, free: 35.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.585e-05/0.2698, allocations: 39.45 kB / 442.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.986e-05/0.2699, allocations: 342.8 kB / 442.9 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.27, allocations: 90.78 kB / 443 MB, free: 34.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.2701, allocations: 86.22 kB / 443.1 MB, free: 34.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001857/0.272, allocations: 0.6272 MB / 443.7 MB, free: 34.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.272, allocations: 4 kB / 443.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006545/0.2727, allocations: 401.5 kB / 444.1 MB, free: 34.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.2727, allocations: 10.91 kB / 444.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2727, allocations: 0 / 444.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002962/0.273, allocations: 94.8 kB / 444.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.2732, allocations: 34.77 kB / 444.2 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/0.2746, allocations: 1.837 MB / 446.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.275, allocations: 53.31 kB / 446.1 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.275, allocations: 13.41 kB / 446.1 MB, free: 32.94 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.0001802/0.2752, allocations: 163.2 kB / 446.3 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.965e-05/0.2752, allocations: 24.45 kB / 446.3 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.312e-05/0.2753, allocations: 46.09 kB / 446.4 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2753, allocations: 2.812 kB / 446.4 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2753, allocations: 192 / 446.4 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2754, allocations: 0 / 446.4 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002829/0.2756, allocations: 341.9 kB / 446.7 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2757, allocations: 0 / 446.7 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.2758, allocations: 27.91 kB / 446.7 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002527/0.2761, allocations: 96.7 kB / 446.8 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.2761, allocations: 6.75 kB / 446.8 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.2774, allocations: 1.843 MB / 448.7 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2774, allocations: 3.875 kB / 448.7 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007934/0.2782, allocations: 0.5499 MB / 449.2 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.2782, allocations: 105.8 kB / 449.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.2783, allocations: 11.52 kB / 449.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003757/0.2787, allocations: 44.09 kB / 449.4 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/0.2787, allocations: 24.58 kB / 449.4 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.2787, allocations: 5.719 kB / 449.4 MB, free: 30.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005836/0.2793, allocations: 271 kB / 449.7 MB, free: 30.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2793, allocations: 0 / 449.7 MB, free: 30.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003118/0.2797, allocations: 60.22 kB / 449.7 MB, free: 30.34 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 9.433e-05/0.2798, allocations: 104.3 kB / 449.8 MB, free: 30.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006016/0.2804, allocations: 389 kB / 450.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2804, allocations: 0 / 450.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002974/0.2807, allocations: 247.8 kB / 450.5 MB, free: 29.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.2811, allocations: 44.33 kB / 450.5 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007547/0.2818, allocations: 0.6314 MB / 451.1 MB, free: 29.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001577/0.282, allocations: 0.7733 MB / 451.9 MB, free: 28.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.2821, allocations: 47 kB / 452 MB, free: 28.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.111e-05/0.2822, allocations: 21.22 kB / 452 MB, free: 28.78 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2822, allocations: 4 kB / 452 MB, free: 28.77 MB / 350.1 MB Notification: Performance of Templates: time 0.005243/0.2874, allocations: 2.97 MB / 455 MB, free: 28.57 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)