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.001078/0.001078, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001279/0.001279, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2275/0.2275, allocations: 22.33 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004791/0.0004793, allocations: 11.94 kB / 381.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3678, allocations: 55.98 MB / 437.8 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001402/0.3692, allocations: 0.8084 MB / 438.6 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.3707, allocations: 1.278 MB / 439.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.3708, allocations: 3 kB / 439.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003484/0.3712, allocations: 58.16 kB / 440 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001874/0.3714, allocations: 75.77 kB / 440 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002302/0.3716, allocations: 111.2 kB / 440.1 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002555/0.3719, allocations: 208.4 kB / 440.3 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.372, allocations: 42.69 kB / 440.4 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.3723, allocations: 174.8 kB / 440.6 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.3725, allocations: 165.3 kB / 440.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.505e-05/0.3726, allocations: 9.438 kB / 440.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.107e-05/0.3726, allocations: 8.812 kB / 440.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.3727, allocations: 99.98 kB / 440.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.651e-05/0.3728, allocations: 56.61 kB / 440.9 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001693/0.3729, allocations: 193.2 kB / 441.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.3729, allocations: 4 kB / 441.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.373, allocations: 0 / 441.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.373, allocations: 0 / 441.1 MB, free: 37.49 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.001709/0.3747, allocations: 0.7208 MB / 441.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3747, allocations: 11.5 kB / 441.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.506e-05/0.3748, allocations: 29.97 kB / 441.8 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008816/0.3757, allocations: 407.6 kB / 442.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.3757, allocations: 10.22 kB / 442.2 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.875e-05/0.3758, allocations: 13.19 kB / 442.3 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.3761, allocations: 191.2 kB / 442.4 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3761, allocations: 0 / 442.4 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.295e-05/0.3761, allocations: 14.67 kB / 442.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3761, allocations: 2.969 kB / 442.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003496/0.3765, allocations: 201.5 kB / 442.7 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.3776, allocations: 0.7087 MB / 443.4 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004812/0.3781, allocations: 274.5 kB / 443.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.3782, allocations: 2.719 kB / 443.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.51e-05/0.3782, allocations: 33.19 kB / 443.7 MB, free: 36.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.333e-06/0.3782, allocations: 0 / 443.7 MB, free: 36.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001674/0.3799, allocations: 0.6839 MB / 444.4 MB, free: 35.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/0.3799, allocations: 54.31 kB / 444.4 MB, free: 35.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008033/0.3807, allocations: 418.9 kB / 444.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.3807, allocations: 32.08 kB / 444.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3809, allocations: 142.5 kB / 445 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.606e-05/0.381, allocations: 88.7 kB / 445.1 MB, free: 35.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.325e-05/0.381, allocations: 4 kB / 445.1 MB, free: 35.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.122e-05/0.3811, allocations: 341.8 kB / 445.4 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.3812, allocations: 105.5 kB / 445.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.3814, allocations: 104.6 kB / 445.6 MB, free: 34.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.3816, allocations: 122.8 kB / 445.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.3816, allocations: 0 / 445.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007035/0.3823, allocations: 444.2 kB / 446.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3824, allocations: 2.938 kB / 446.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3824, allocations: 0 / 446.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003479/0.3827, allocations: 101.9 kB / 446.3 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.3829, allocations: 40.77 kB / 446.3 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.3843, allocations: 1.751 MB / 448.1 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003755/0.3847, allocations: 70.39 kB / 448.1 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.3847, allocations: 13.58 kB / 448.1 MB, free: 33.14 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] P.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] HF.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001939/0.3849, allocations: 164.9 kB / 448.3 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.436e-05/0.385, allocations: 36.31 kB / 448.3 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.56e-05/0.3851, allocations: 42.66 kB / 448.4 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3851, allocations: 2.844 kB / 448.4 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3851, allocations: 0 / 448.4 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3851, allocations: 3.469 kB / 448.4 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003428/0.3855, allocations: 363.5 kB / 448.7 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3855, allocations: 0 / 448.7 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001963/0.3857, allocations: 36.06 kB / 448.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002424/0.3859, allocations: 100.3 kB / 448.9 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.386, allocations: 6.5 kB / 448.9 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001304/0.3873, allocations: 1.748 MB / 450.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.165e-06/0.3873, allocations: 3.469 kB / 450.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008595/0.3881, allocations: 0.611 MB / 451.2 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.276e-05/0.3882, allocations: 111.7 kB / 451.4 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.155e-05/0.3883, allocations: 15.3 kB / 451.4 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004027/0.3887, allocations: 55.25 kB / 451.4 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.807e-05/0.3888, allocations: 22.77 kB / 451.4 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.3888, allocations: 5.031 kB / 451.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007152/0.3895, allocations: 332.8 kB / 451.8 MB, free: 30.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3895, allocations: 4 kB / 451.8 MB, free: 30.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000328/0.3899, allocations: 62.06 kB / 451.8 MB, free: 30.59 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001095/0.39, allocations: 110.2 kB / 451.9 MB, free: 30.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006418/0.3906, allocations: 406.9 kB / 452.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3906, allocations: 3.938 kB / 452.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003273/0.391, allocations: 276.6 kB / 452.6 MB, free: 30.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.3913, allocations: 38.16 kB / 452.7 MB, free: 30.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.3924, allocations: 0.7492 MB / 453.4 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.3926, allocations: 0.8054 MB / 454.2 MB, free: 28.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.3927, allocations: 68.78 kB / 454.3 MB, free: 28.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.413e-05/0.3928, allocations: 20.56 kB / 454.3 MB, free: 28.97 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3928, allocations: 0 / 454.3 MB, free: 28.97 MB / 350.1 MB Notification: Performance of Templates: time 0.006463/0.3993, allocations: 3.051 MB / 457.3 MB, free: 28.77 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: