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.00133/0.00133, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.399/1.399, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2436/0.2436, allocations: 22.35 MB / 312.7 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001833, allocations: 63.91 kB / 380.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3326, allocations: 54.96 MB / 435.8 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002066/0.3347, allocations: 1.127 MB / 436.9 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.336, allocations: 1.301 MB / 438.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.063e-05/0.336, allocations: 5 kB / 438.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002601/0.3363, allocations: 60.16 kB / 438.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.3365, allocations: 80.78 kB / 438.3 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.3367, allocations: 139 kB / 438.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002872/0.337, allocations: 386.8 kB / 438.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.3371, allocations: 50.23 kB / 438.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.3373, allocations: 165.5 kB / 439.1 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002119/0.3375, allocations: 188 kB / 439.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.709e-05/0.3376, allocations: 19.47 kB / 439.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.851e-05/0.3376, allocations: 23.38 kB / 439.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.3377, allocations: 105 kB / 439.4 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.711e-05/0.3378, allocations: 121.3 kB / 439.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002127/0.3381, allocations: 268.2 kB / 439.8 MB, free: 37.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3381, allocations: 0 / 439.8 MB, free: 37.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3381, allocations: 0 / 439.8 MB, free: 37.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.3381, allocations: 0 / 439.8 MB, free: 37.32 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.001781/0.3399, allocations: 0.7605 MB / 440.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.3399, allocations: 10.25 kB / 440.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.717e-05/0.34, allocations: 34.44 kB / 440.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008918/0.3409, allocations: 414.9 kB / 441 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.3409, allocations: 10.66 kB / 441 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/0.341, allocations: 17.56 kB / 441 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.3413, allocations: 199.8 kB / 441.2 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.3413, allocations: 0 / 441.2 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.3413, allocations: 6.906 kB / 441.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3413, allocations: 2.938 kB / 441.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003262/0.3417, allocations: 203.5 kB / 441.4 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009619/0.3426, allocations: 0.6949 MB / 442.1 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005062/0.3432, allocations: 272 kB / 442.4 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.3433, allocations: 128 kB / 442.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.889e-05/0.3434, allocations: 6.812 kB / 442.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.047e-05/0.3434, allocations: 34.44 kB / 442.5 MB, free: 35.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.3434, allocations: 0 / 442.5 MB, free: 35.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001688/0.3451, allocations: 0.6912 MB / 443.2 MB, free: 35.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.3451, allocations: 56 kB / 443.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008308/0.346, allocations: 414.2 kB / 443.7 MB, free: 35.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.346, allocations: 29.7 kB / 443.7 MB, free: 35.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.615e-05/0.3461, allocations: 148 kB / 443.9 MB, free: 35.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.943e-05/0.3461, allocations: 84.22 kB / 443.9 MB, free: 35.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.867e-05/0.3462, allocations: 46.02 kB / 444 MB, free: 35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.163e-05/0.3463, allocations: 345 kB / 444.3 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.3465, allocations: 117.4 kB / 444.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.3466, allocations: 105.7 kB / 444.5 MB, free: 34.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001917/0.3485, allocations: 0.7044 MB / 445.3 MB, free: 34.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3485, allocations: 0 / 445.3 MB, free: 34.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006877/0.3492, allocations: 438.2 kB / 445.7 MB, free: 34.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.3493, allocations: 9.562 kB / 445.7 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.3493, allocations: 0 / 445.7 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002731/0.3495, allocations: 94.08 kB / 445.8 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.3497, allocations: 46.91 kB / 445.8 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.3511, allocations: 1.848 MB / 447.7 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.3515, allocations: 71.5 kB / 447.7 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.3515, allocations: 4.219 kB / 447.7 MB, free: 32.61 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.0001743/0.3517, allocations: 179.6 kB / 447.9 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.444e-05/0.3517, allocations: 30.67 kB / 448 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.708e-05/0.3518, allocations: 42.36 kB / 448 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3518, allocations: 6.156 kB / 448 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3518, allocations: 7.406 kB / 448 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.3519, allocations: 3.422 kB / 448 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003033/0.3522, allocations: 359.3 kB / 448.4 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3522, allocations: 0 / 448.4 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001937/0.3524, allocations: 27.5 kB / 448.4 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002378/0.3526, allocations: 96.12 kB / 448.5 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.3526, allocations: 9.25 kB / 448.5 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.3539, allocations: 1.846 MB / 450.3 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3539, allocations: 0 / 450.3 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008137/0.3547, allocations: 0.6147 MB / 451 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.704e-05/0.3548, allocations: 113.3 kB / 451.1 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.384e-05/0.3548, allocations: 7.031 kB / 451.1 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000427/0.3553, allocations: 58.22 kB / 451.1 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.244e-05/0.3553, allocations: 36.17 kB / 451.2 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.3553, allocations: 7.406 kB / 451.2 MB, free: 30.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007208/0.3561, allocations: 328.2 kB / 451.5 MB, free: 29.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3561, allocations: 0 / 451.5 MB, free: 29.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.3564, allocations: 60.09 kB / 451.5 MB, free: 29.95 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.499e-05/0.3565, allocations: 101.2 kB / 451.6 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006444/0.3572, allocations: 434.7 kB / 452.1 MB, free: 29.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3572, allocations: 0 / 452.1 MB, free: 29.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003194/0.3575, allocations: 267 kB / 452.3 MB, free: 29.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.3579, allocations: 45.56 kB / 452.4 MB, free: 29.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.359, allocations: 0.6994 MB / 453.1 MB, free: 29.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001909/0.3592, allocations: 0.7928 MB / 453.9 MB, free: 28.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.3594, allocations: 65.92 kB / 453.9 MB, free: 28.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.478e-05/0.3594, allocations: 23.22 kB / 454 MB, free: 28.38 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3594, allocations: 0 / 454 MB, free: 28.38 MB / 350.1 MB Notification: Performance of Templates: time 0.006703/0.3662, allocations: 3.423 MB / 457.4 MB, free: 28.16 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)