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.001047/0.001052, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009703/0.009703, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.412/1.412, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2265/0.2265, allocations: 22.35 MB / 313.8 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005419/0.0005418, allocations: 8 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3406, allocations: 55.98 MB / 438.6 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001197/0.3419, allocations: 0.8382 MB / 439.4 MB, free: 38.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.3432, allocations: 1.29 MB / 440.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.607e-05/0.3433, allocations: 2.906 kB / 440.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003533/0.3437, allocations: 53.59 kB / 440.7 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.3439, allocations: 78.31 kB / 440.8 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.3442, allocations: 120.3 kB / 440.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00035/0.3445, allocations: 370.9 kB / 441.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.3447, allocations: 50.98 kB / 441.4 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.3449, allocations: 136.5 kB / 441.5 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.3451, allocations: 184.7 kB / 441.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.599e-05/0.3452, allocations: 9.062 kB / 441.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.099e-05/0.3452, allocations: 12.72 kB / 441.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.3454, allocations: 98.09 kB / 441.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.702e-05/0.3455, allocations: 125 kB / 441.9 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002103/0.3457, allocations: 258 kB / 442.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3457, allocations: 0 / 442.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3457, allocations: 0 / 442.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.3457, allocations: 3.938 kB / 442.2 MB, free: 37.23 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.001885/0.3476, allocations: 0.7175 MB / 442.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.3477, allocations: 14.34 kB / 442.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/0.3477, allocations: 30.28 kB / 442.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008879/0.3486, allocations: 422.7 kB / 443.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.3487, allocations: 13.84 kB / 443.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.3487, allocations: 19.94 kB / 443.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.349, allocations: 190.4 kB / 443.6 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.349, allocations: 7.312 kB / 443.6 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.43e-05/0.3491, allocations: 6.844 kB / 443.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.3491, allocations: 2.688 kB / 443.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003302/0.3494, allocations: 202.7 kB / 443.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.3505, allocations: 0.6937 MB / 444.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006094/0.3511, allocations: 271.8 kB / 444.7 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002962/0.3514, allocations: 124.8 kB / 444.9 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.3515, allocations: 2.594 kB / 444.9 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.3515, allocations: 34.5 kB / 444.9 MB, free: 35.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.204e-06/0.3515, allocations: 4 kB / 444.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00188/0.3534, allocations: 0.6918 MB / 445.6 MB, free: 35.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.911e-05/0.3535, allocations: 58.03 kB / 445.6 MB, free: 35.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008998/0.3544, allocations: 417.1 kB / 446 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.3544, allocations: 37.58 kB / 446.1 MB, free: 35.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.3545, allocations: 146.1 kB / 446.2 MB, free: 35.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.075e-05/0.3546, allocations: 82.61 kB / 446.3 MB, free: 34.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.873e-05/0.3546, allocations: 29.73 kB / 446.3 MB, free: 34.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.005e-05/0.3547, allocations: 345 kB / 446.7 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.3549, allocations: 102.6 kB / 446.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.355, allocations: 111.2 kB / 446.9 MB, free: 34.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002013/0.3571, allocations: 0.7156 MB / 447.6 MB, free: 34.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3571, allocations: 2.25 kB / 447.6 MB, free: 34.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000743/0.3578, allocations: 439.8 kB / 448 MB, free: 34.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3578, allocations: 8.938 kB / 448 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3579, allocations: 3.984 kB / 448 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003003/0.3582, allocations: 92.72 kB / 448.1 MB, free: 34.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.3583, allocations: 43.84 kB / 448.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001523/0.3599, allocations: 1.731 MB / 449.9 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000406/0.3603, allocations: 76.8 kB / 450 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.3603, allocations: 9.25 kB / 450 MB, free: 32.67 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.0002151/0.3605, allocations: 183.9 kB / 450.2 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.353e-05/0.3606, allocations: 29.78 kB / 450.2 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.255e-05/0.3607, allocations: 45.56 kB / 450.2 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3607, allocations: 2.625 kB / 450.2 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3607, allocations: 0 / 450.2 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3607, allocations: 2.625 kB / 450.2 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003364/0.3611, allocations: 361 kB / 450.6 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3611, allocations: 3.234 kB / 450.6 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001973/0.3613, allocations: 27.84 kB / 450.6 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002466/0.3615, allocations: 93.16 kB / 450.7 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.3616, allocations: 11.25 kB / 450.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.3628, allocations: 1.736 MB / 452.5 MB, free: 30.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3628, allocations: 0 / 452.5 MB, free: 30.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008829/0.3637, allocations: 0.6152 MB / 453.1 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.888e-05/0.3638, allocations: 114.7 kB / 453.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.3638, allocations: 8.875 kB / 453.2 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004225/0.3643, allocations: 62.3 kB / 453.3 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.3643, allocations: 20.38 kB / 453.3 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.3644, allocations: 6.625 kB / 453.3 MB, free: 30.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007608/0.3651, allocations: 335.1 kB / 453.6 MB, free: 30.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3651, allocations: 0 / 453.6 MB, free: 30.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003371/0.3655, allocations: 70.03 kB / 453.7 MB, free: 30.11 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.0001127/0.3656, allocations: 100.1 kB / 453.8 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006431/0.3663, allocations: 408.7 kB / 454.2 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3663, allocations: 0 / 454.2 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003313/0.3666, allocations: 277.2 kB / 454.5 MB, free: 29.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.367, allocations: 52.36 kB / 454.5 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.3682, allocations: 0.7715 MB / 455.3 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.3684, allocations: 0.8022 MB / 456.1 MB, free: 28.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001351/0.3686, allocations: 60.84 kB / 456.1 MB, free: 28.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.427e-05/0.3687, allocations: 25.88 kB / 456.2 MB, free: 28.47 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3687, allocations: 0 / 456.2 MB, free: 28.47 MB / 350.1 MB Notification: Performance of Templates: time 0.006567/0.3752, allocations: 3.149 MB / 459.3 MB, free: 28.27 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)