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.004793/0.004793, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.00118/0.001181, allocations: 195.5 kB / 16.79 MB, free: 6.254 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.323/1.323, allocations: 222.9 MB / 240.5 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1931/0.1931, allocations: 22.35 MB / 313 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.88 kB / 380.8 MB, free: 11.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2379, allocations: 54.94 MB / 435.7 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001982/0.2399, allocations: 1.119 MB / 436.8 MB, free: 38.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.241, allocations: 1.253 MB / 438.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.87e-05/0.2411, allocations: 2.906 kB / 438.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002719/0.2414, allocations: 41.33 kB / 438.1 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.2415, allocations: 61.55 kB / 438.2 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001613/0.2417, allocations: 96.03 kB / 438.3 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002177/0.2419, allocations: 291.2 kB / 438.6 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.2421, allocations: 41.56 kB / 438.6 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.2422, allocations: 108.7 kB / 438.7 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.2424, allocations: 148.9 kB / 438.8 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.757e-05/0.2424, allocations: 11.25 kB / 438.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.227e-05/0.2424, allocations: 11.47 kB / 438.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.422e-05/0.2425, allocations: 84.19 kB / 438.9 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.948e-05/0.2426, allocations: 89.02 kB / 439 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001247/0.2428, allocations: 158 kB / 439.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2428, allocations: 2.531 kB / 439.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.2428, allocations: 4 kB / 439.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.2428, allocations: 0 / 439.2 MB, free: 37.5 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.001464/0.2442, allocations: 0.6737 MB / 439.9 MB, free: 37.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.2443, allocations: 16.25 kB / 439.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.339e-05/0.2443, allocations: 25.31 kB / 439.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007038/0.2451, allocations: 350.5 kB / 440.3 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.2451, allocations: 9.594 kB / 440.3 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.336e-05/0.2451, allocations: 12.09 kB / 440.3 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.2454, allocations: 175.7 kB / 440.4 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.2454, allocations: 4 kB / 440.4 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.2454, allocations: 6.781 kB / 440.5 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-06/0.2455, allocations: 2.719 kB / 440.5 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002757/0.2457, allocations: 168.9 kB / 440.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008589/0.2466, allocations: 0.6282 MB / 441.3 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.2469, allocations: 213.2 kB / 441.5 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.2471, allocations: 117.5 kB / 441.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.2471, allocations: 2.594 kB / 441.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.561e-05/0.2471, allocations: 38.5 kB / 441.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.263e-06/0.2471, allocations: 0 / 441.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001614/0.2488, allocations: 0.6491 MB / 442.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.001e-05/0.2488, allocations: 59.19 kB / 442.3 MB, free: 35.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006388/0.2494, allocations: 342.2 kB / 442.7 MB, free: 35.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.2495, allocations: 29.7 kB / 442.7 MB, free: 35.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.38e-05/0.2495, allocations: 138.5 kB / 442.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.367e-05/0.2496, allocations: 70.56 kB / 442.9 MB, free: 35.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.243e-05/0.2497, allocations: 40.47 kB / 442.9 MB, free: 35.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.055e-05/0.2497, allocations: 337.8 kB / 443.3 MB, free: 35.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.2499, allocations: 92.69 kB / 443.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.25, allocations: 88.42 kB / 443.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001819/0.2518, allocations: 0.6194 MB / 444.1 MB, free: 34.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2518, allocations: 4 kB / 444.1 MB, free: 34.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006639/0.2525, allocations: 405.2 kB / 444.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.2525, allocations: 8.344 kB / 444.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2526, allocations: 3 kB / 444.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002969/0.2529, allocations: 92.62 kB / 444.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.253, allocations: 35.17 kB / 444.6 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.2543, allocations: 1.729 MB / 446.3 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003382/0.2547, allocations: 55.97 kB / 446.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.2547, allocations: 5.906 kB / 446.4 MB, free: 33.12 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.0001629/0.2549, allocations: 165.6 kB / 446.5 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.844e-05/0.2549, allocations: 20.41 kB / 446.6 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.074e-05/0.255, allocations: 38.09 kB / 446.6 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.255, allocations: 3.062 kB / 446.6 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.255, allocations: 0 / 446.6 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.255, allocations: 3.234 kB / 446.6 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.2553, allocations: 331.2 kB / 446.9 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2553, allocations: 10.97 kB / 446.9 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.2555, allocations: 23.58 kB / 447 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002571/0.2558, allocations: 91.95 kB / 447.1 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.2558, allocations: 13.95 kB / 447.1 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.257, allocations: 1.732 MB / 448.8 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.257, allocations: 3.984 kB / 448.8 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008063/0.2579, allocations: 0.5621 MB / 449.4 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.802e-05/0.2579, allocations: 102.2 kB / 449.5 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.258, allocations: 13.34 kB / 449.5 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003559/0.2583, allocations: 47.64 kB / 449.5 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.68e-05/0.2584, allocations: 21.34 kB / 449.5 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.2584, allocations: 6.531 kB / 449.6 MB, free: 30.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005596/0.259, allocations: 265.6 kB / 449.8 MB, free: 30.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.259, allocations: 3.25 kB / 449.8 MB, free: 30.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.2593, allocations: 56.16 kB / 449.9 MB, free: 30.62 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 8.896e-05/0.2594, allocations: 105.2 kB / 450 MB, free: 30.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000565/0.26, allocations: 371.9 kB / 450.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.26, allocations: 0 / 450.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003018/0.2603, allocations: 251.7 kB / 450.6 MB, free: 30.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.2607, allocations: 38.22 kB / 450.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007991/0.2615, allocations: 0.6653 MB / 451.3 MB, free: 29.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001523/0.2616, allocations: 0.7686 MB / 452.1 MB, free: 29.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.542e-05/0.2617, allocations: 21.27 kB / 452.1 MB, free: 29.03 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2617, allocations: 0 / 452.1 MB, free: 29.03 MB / 350.1 MB Notification: Performance of Templates: time 0.004948/0.2667, allocations: 3.695 MB / 455.8 MB, free: 28.77 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)