Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.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_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005528/0.005528, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.00132/0.00132, allocations: 195.5 kB / 16.79 MB, free: 5.809 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.319/1.319, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1837/0.1837, allocations: 22.35 MB / 313 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 67.91 kB / 380.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.233, allocations: 54.94 MB / 435.7 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001886/0.235, allocations: 1.187 MB / 436.9 MB, free: 38.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.2361, allocations: 1.297 MB / 438.2 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.275e-05/0.2362, allocations: 6.812 kB / 438.2 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002668/0.2364, allocations: 53.25 kB / 438.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001639/0.2366, allocations: 75.97 kB / 438.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001905/0.2368, allocations: 118.8 kB / 438.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002528/0.2371, allocations: 373.2 kB / 438.8 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.2372, allocations: 62.55 kB / 438.9 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.2373, allocations: 132.6 kB / 439 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.2375, allocations: 189.5 kB / 439.2 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.274e-05/0.2376, allocations: 13.28 kB / 439.2 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.517e-05/0.2376, allocations: 11.56 kB / 439.2 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.2377, allocations: 101.2 kB / 439.3 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.017e-05/0.2378, allocations: 113.9 kB / 439.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.238, allocations: 203 kB / 439.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.238, allocations: 0 / 439.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.238, allocations: 0 / 439.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.238, allocations: 3.938 kB / 439.6 MB, free: 37.22 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001717/0.2397, allocations: 0.7514 MB / 440.4 MB, free: 36.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.2397, allocations: 15.22 kB / 440.4 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.703e-05/0.2398, allocations: 27.91 kB / 440.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008427/0.2407, allocations: 415 kB / 440.8 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.2407, allocations: 10.47 kB / 440.8 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.618e-05/0.2407, allocations: 19.69 kB / 440.8 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002858/0.241, allocations: 195.3 kB / 441 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.241, allocations: 6.812 kB / 441 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.2411, allocations: 4 kB / 441 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.2411, allocations: 6.812 kB / 441 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.2414, allocations: 199 kB / 441.2 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009792/0.2424, allocations: 0.6909 MB / 441.9 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004711/0.2429, allocations: 262.8 kB / 442.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.2431, allocations: 133.9 kB / 442.3 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.2431, allocations: 0 / 442.3 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.3e-05/0.2431, allocations: 41.81 kB / 442.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.102e-06/0.2431, allocations: 0 / 442.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001654/0.2448, allocations: 0.6949 MB / 443.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.95e-05/0.2448, allocations: 54.28 kB / 443.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007996/0.2456, allocations: 414.6 kB / 443.5 MB, free: 35.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.2456, allocations: 29.64 kB / 443.5 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.573e-05/0.2457, allocations: 152.7 kB / 443.7 MB, free: 35.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.631e-05/0.2458, allocations: 82.02 kB / 443.8 MB, free: 34.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.621e-05/0.2458, allocations: 42.5 kB / 443.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.276e-05/0.2459, allocations: 349.5 kB / 444.2 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.2461, allocations: 109.2 kB / 444.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.2462, allocations: 103.5 kB / 444.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002021/0.2483, allocations: 0.7068 MB / 445.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2483, allocations: 0 / 445.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006991/0.249, allocations: 441.7 kB / 445.5 MB, free: 34.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.249, allocations: 11 kB / 445.5 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.249, allocations: 2.875 kB / 445.5 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002839/0.2493, allocations: 92.12 kB / 445.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.2495, allocations: 42.75 kB / 445.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.2508, allocations: 1.731 MB / 447.4 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.2512, allocations: 70.88 kB / 447.4 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.2512, allocations: 6.031 kB / 447.5 MB, free: 32.64 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (25): * Single equations (assignments): 24 * 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.0001644/0.2514, allocations: 190.1 kB / 447.6 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.298e-05/0.2514, allocations: 22.56 kB / 447.7 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.662e-05/0.2515, allocations: 44.7 kB / 447.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.2515, allocations: 0 / 447.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2515, allocations: 2.719 kB / 447.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2515, allocations: 3.938 kB / 447.7 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002921/0.2518, allocations: 364.7 kB / 448.1 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2518, allocations: 0 / 448.1 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001997/0.252, allocations: 32.52 kB / 448.1 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002542/0.2523, allocations: 96.5 kB / 448.2 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.2523, allocations: 10.59 kB / 448.2 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.2535, allocations: 1.736 MB / 449.9 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2535, allocations: 0 / 449.9 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008395/0.2544, allocations: 0.6138 MB / 450.6 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.2544, allocations: 115.3 kB / 450.7 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.2545, allocations: 9.906 kB / 450.7 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004181/0.2549, allocations: 60.16 kB / 450.7 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.255, allocations: 20.45 kB / 450.8 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.255, allocations: 7.969 kB / 450.8 MB, free: 30.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006941/0.2557, allocations: 326 kB / 451.1 MB, free: 30.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2557, allocations: 0 / 451.1 MB, free: 30.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000305/0.256, allocations: 62.19 kB / 451.1 MB, free: 30.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.x_scaled[1]) * 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 (18): * Single equations (assignments): 17 * 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.09e-05/0.2561, allocations: 106.7 kB / 451.2 MB, free: 29.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005653/0.2567, allocations: 408.1 kB / 451.6 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.2567, allocations: 0 / 451.6 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003066/0.257, allocations: 264.1 kB / 451.9 MB, free: 29.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003597/0.2574, allocations: 54.03 kB / 452 MB, free: 29.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.2584, allocations: 0.7985 MB / 452.8 MB, free: 29.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001701/0.2586, allocations: 0.8006 MB / 453.6 MB, free: 28.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.873e-05/0.2587, allocations: 24.59 kB / 453.6 MB, free: 28.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2587, allocations: 0 / 453.6 MB, free: 28.41 MB / 350.1 MB Notification: Performance of Templates: time 0.00545/0.2642, allocations: 4.403 MB / 458 MB, free: 28.1 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)