Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.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.PI_loop_analogue_digital,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital") translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 99.62 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.001096/0.001096, 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.442/1.442, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2665/0.2665, allocations: 22.33 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005998/0.0005999, allocations: 12 kB / 381.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3403, allocations: 55.98 MB / 437.8 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.002295/0.3426, allocations: 1.665 MB / 439.5 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.3438, allocations: 0.6593 MB / 440.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.344, allocations: 6.906 kB / 440.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000367/0.3443, allocations: 38.78 kB / 440.2 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.3445, allocations: 52.97 kB / 440.2 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.3449, allocations: 123.3 kB / 440.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002335/0.3451, allocations: 189.9 kB / 440.5 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.3453, allocations: 68.08 kB / 440.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.3455, allocations: 124.8 kB / 440.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.3456, allocations: 130.8 kB / 440.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.311e-05/0.3457, allocations: 12.03 kB / 440.9 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.125e-05/0.3457, allocations: 7.75 kB / 440.9 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.14e-05/0.3458, allocations: 72.7 kB / 440.9 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.488e-05/0.3459, allocations: 57.58 kB / 441 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001897/0.3461, allocations: 205.5 kB / 441.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.3461, allocations: 0 / 441.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3461, allocations: 4 kB / 441.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.3461, allocations: 3.906 kB / 441.2 MB, free: 37.05 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001326/0.3474, allocations: 0.6899 MB / 441.9 MB, free: 36.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.3475, allocations: 8.688 kB / 441.9 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.239e-05/0.3476, allocations: 34.78 kB / 441.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006947/0.3483, allocations: 342.9 kB / 442.3 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.3483, allocations: 12.33 kB / 442.3 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.682e-05/0.3484, allocations: 26.58 kB / 442.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004216/0.3488, allocations: 258.6 kB / 442.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.3488, allocations: 7.859 kB / 442.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.3489, allocations: 6.781 kB / 442.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3489, allocations: 9.531 kB / 442.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003929/0.3493, allocations: 197.5 kB / 442.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.3503, allocations: 0.7115 MB / 443.5 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/0.3509, allocations: 279.2 kB / 443.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.3509, allocations: 6.75 kB / 443.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002983/0.3512, allocations: 200.8 kB / 444 MB, free: 35.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.552e-06/0.3513, allocations: 0 / 444 MB, free: 35.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00217/0.3534, allocations: 0.9641 MB / 444.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.3535, allocations: 134.4 kB / 445.1 MB, free: 34.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004988/0.354, allocations: 319.7 kB / 445.4 MB, free: 34.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.354, allocations: 32.8 kB / 445.4 MB, free: 34.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.233e-05/0.3541, allocations: 156.1 kB / 445.5 MB, free: 34.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.134e-05/0.3542, allocations: 83.02 kB / 445.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.345e-05/0.3542, allocations: 7.031 kB / 445.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.325e-05/0.3543, allocations: 335.9 kB / 446 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.3545, allocations: 108.3 kB / 446.1 MB, free: 34.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.3547, allocations: 141 kB / 446.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.355, allocations: 177.8 kB / 446.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.355, allocations: 10.83 kB / 446.4 MB, free: 33.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009037/0.3559, allocations: 0.5268 MB / 446.9 MB, free: 33.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.994e-05/0.356, allocations: 245.1 kB / 447.2 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.356, allocations: 2.812 kB / 447.2 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000364/0.3563, allocations: 98.81 kB / 447.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.3565, allocations: 29.23 kB / 447.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/0.3585, allocations: 1.965 MB / 449.3 MB, free: 31.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.3588, allocations: 60.73 kB / 449.3 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.3589, allocations: 9.5 kB / 449.3 MB, free: 31.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.206e-06/0.3589, allocations: 4.844 kB / 449.3 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000587/0.3595, allocations: 409.7 kB / 449.7 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.916e-06/0.3595, allocations: 6.875 kB / 449.7 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001528/0.3596, allocations: 60.86 kB / 449.8 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.3598, allocations: 30.16 kB / 449.8 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.3609, allocations: 1.686 MB / 451.5 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.3612, allocations: 45.97 kB / 451.6 MB, free: 29.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.3612, allocations: 12.41 kB / 451.6 MB, free: 29.97 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: Process_d.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_d.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.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: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.PI_d.xfb,PI_d.xfb,$PRE.PI_d.ulin,PI_d.ulin,$PRE.PI_d.ulino,PI_d.ulino,$PRE.PI_d.u,PI_d.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 2 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002408/0.3615, allocations: 267.8 kB / 451.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.883e-05/0.3615, allocations: 24.28 kB / 451.8 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.784e-05/0.3616, allocations: 38.17 kB / 451.9 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.3616, allocations: 3.953 kB / 451.9 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3616, allocations: 4 kB / 451.9 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3616, allocations: 7.25 kB / 451.9 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002678/0.3619, allocations: 353.5 kB / 452.2 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3619, allocations: 0 / 452.2 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.362, allocations: 25.3 kB / 452.3 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004131/0.3625, allocations: 189.4 kB / 452.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.3625, allocations: 17.55 kB / 452.5 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002033/0.3645, allocations: 2.519 MB / 455 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3646, allocations: 0 / 455 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.3657, allocations: 0.7067 MB / 455.7 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.532e-05/0.3658, allocations: 104.6 kB / 455.8 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.41e-05/0.3659, allocations: 9.438 kB / 455.8 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002867/0.3661, allocations: 50.25 kB / 455.9 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.491e-05/0.3662, allocations: 21.72 kB / 455.9 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.3663, allocations: 10.44 kB / 455.9 MB, free: 26.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004289/0.3667, allocations: 236.9 kB / 456.1 MB, free: 26.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3667, allocations: 0 / 456.1 MB, free: 26.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005023/0.3672, allocations: 111.2 kB / 456.2 MB, free: 26.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Process_a.x_scaled[1],Process_a.x_scaled[2],PI_a.FO.y,Process_d.x_scaled[1],Process_d.x_scaled[2]) * Number of discrete variables: 5 ($whenCondition1,PI_d.xfb,PI_d.ulin,PI_d.ulino,PI_d.u) * Number of discrete states: 5 (PI_d.u,PI_d.ulino,PI_d.ulin,PI_d.xfb,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001396/0.3674, allocations: 114.2 kB / 456.3 MB, free: 26.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.3687, allocations: 0.9521 MB / 457.3 MB, free: 25.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3687, allocations: 0 / 457.3 MB, free: 25.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005149/0.3692, allocations: 373.3 kB / 457.7 MB, free: 25.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.3695, allocations: 36.25 kB / 457.7 MB, free: 25.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009567/0.3704, allocations: 0.7012 MB / 458.4 MB, free: 25.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000177/0.3706, allocations: 0.7806 MB / 459.2 MB, free: 24.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.3708, allocations: 64.5 kB / 459.2 MB, free: 24.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.955e-05/0.3708, allocations: 16.97 kB / 459.3 MB, free: 24.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3708, allocations: 0 / 459.3 MB, free: 24.54 MB / 350.1 MB Notification: Performance of Templates: time 0.008328/0.3792, allocations: 4.193 MB / 463.4 MB, free: 24.23 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.makefile Environment - environmentSimulation: (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.sim & ./AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe 2>&1) Environment - environmentSimulation: