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.0007933/0.0007931, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.006354/0.006354, allocations: 172.6 kB / 16.26 MB, free: 6.613 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.345/1.345, allocations: 223.3 MB / 240.3 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2414/0.2414, allocations: 22.34 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.000444, allocations: 12 kB / 382.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3571, allocations: 55.98 MB / 438.6 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001212/0.3584, allocations: 0.8315 MB / 439.4 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.3597, allocations: 1.292 MB / 440.7 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.551e-05/0.3598, allocations: 6.562 kB / 440.7 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003336/0.3602, allocations: 56.48 kB / 440.8 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.3604, allocations: 73.28 kB / 440.8 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.3606, allocations: 123.3 kB / 441 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003142/0.361, allocations: 367.2 kB / 441.3 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.3611, allocations: 53 kB / 441.4 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001495/0.3613, allocations: 135.4 kB / 441.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.3615, allocations: 180.8 kB / 441.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.883e-05/0.3615, allocations: 12.61 kB / 441.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.184e-05/0.3616, allocations: 12.09 kB / 441.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.3617, allocations: 97.11 kB / 441.8 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.3618, allocations: 126.5 kB / 441.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001993/0.362, allocations: 251.6 kB / 442.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.362, allocations: 0 / 442.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.362, allocations: 0 / 442.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.362, allocations: 0 / 442.2 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.001711/0.3638, allocations: 0.7221 MB / 442.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.3638, allocations: 16.94 kB / 442.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.566e-05/0.3639, allocations: 31.53 kB / 442.9 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008714/0.3648, allocations: 425.9 kB / 443.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.3648, allocations: 11.72 kB / 443.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.3648, allocations: 12.97 kB / 443.4 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.3651, allocations: 186.7 kB / 443.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.3652, allocations: 7.375 kB / 443.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/0.3652, allocations: 4 kB / 443.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3652, allocations: 6.75 kB / 443.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003215/0.3655, allocations: 202.4 kB / 443.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009983/0.3665, allocations: 0.6947 MB / 444.5 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004754/0.367, allocations: 268.3 kB / 444.7 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.3672, allocations: 128.9 kB / 444.9 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.3672, allocations: 3 kB / 444.9 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.3673, allocations: 37.41 kB / 444.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.763e-06/0.3673, allocations: 0 / 444.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001677/0.369, allocations: 0.6928 MB / 445.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/0.369, allocations: 51.41 kB / 445.6 MB, free: 35.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008243/0.3698, allocations: 424.2 kB / 446 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.3699, allocations: 33.64 kB / 446.1 MB, free: 35.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.83e-05/0.3699, allocations: 143.8 kB / 446.2 MB, free: 35.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.003e-05/0.37, allocations: 93.11 kB / 446.3 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.908e-05/0.3701, allocations: 30.16 kB / 446.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.387e-05/0.3701, allocations: 347.6 kB / 446.7 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.3703, allocations: 105.8 kB / 446.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.3704, allocations: 106.6 kB / 446.9 MB, free: 34.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002058/0.3725, allocations: 0.715 MB / 447.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3725, allocations: 0 / 447.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000769/0.3733, allocations: 441.8 kB / 448 MB, free: 34.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.3733, allocations: 11.03 kB / 448 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.3734, allocations: 0 / 448 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003191/0.3737, allocations: 94.86 kB / 448.1 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.3739, allocations: 42.34 kB / 448.2 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.3754, allocations: 1.739 MB / 449.9 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000443/0.3758, allocations: 75.73 kB / 450 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.3759, allocations: 5.125 kB / 450 MB, free: 32.65 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.0002241/0.3761, allocations: 184.6 kB / 450.2 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.404e-05/0.3761, allocations: 25 kB / 450.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.686e-05/0.3762, allocations: 42.77 kB / 450.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3763, allocations: 1.719 kB / 450.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.3763, allocations: 0 / 450.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3763, allocations: 3.656 kB / 450.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003527/0.3766, allocations: 356.6 kB / 450.6 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3766, allocations: 3.281 kB / 450.6 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.3768, allocations: 32 kB / 450.6 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002502/0.3771, allocations: 94.89 kB / 450.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.3771, allocations: 10.89 kB / 450.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/0.3784, allocations: 1.737 MB / 452.5 MB, free: 30.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3784, allocations: 0 / 452.5 MB, free: 30.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008524/0.3793, allocations: 0.6236 MB / 453.1 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.695e-05/0.3793, allocations: 111.3 kB / 453.2 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.437e-05/0.3794, allocations: 7 kB / 453.2 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004291/0.3798, allocations: 64.73 kB / 453.3 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.426e-05/0.3799, allocations: 18.42 kB / 453.3 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.3799, allocations: 11.12 kB / 453.3 MB, free: 30.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007125/0.3806, allocations: 328.9 kB / 453.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3806, allocations: 0 / 453.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003288/0.381, allocations: 68.94 kB / 453.7 MB, free: 30.09 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 0.0001052/0.3811, allocations: 102.6 kB / 453.8 MB, free: 30 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006415/0.3817, allocations: 408.2 kB / 454.2 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3817, allocations: 2.625 kB / 454.2 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003165/0.382, allocations: 275.3 kB / 454.5 MB, free: 29.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005216/0.3826, allocations: 50.61 kB / 454.5 MB, free: 29.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.3838, allocations: 0.7682 MB / 455.3 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002005/0.384, allocations: 0.7981 MB / 456.1 MB, free: 28.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.3841, allocations: 62.33 kB / 456.1 MB, free: 28.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.356e-05/0.3842, allocations: 23.94 kB / 456.2 MB, free: 28.46 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3842, allocations: 0 / 456.2 MB, free: 28.46 MB / 350.1 MB Notification: Performance of Templates: time 0.007552/0.3918, allocations: 3.154 MB / 459.3 MB, free: 28.26 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)