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.001047/0.001047, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001254/0.001254, allocations: 172.7 kB / 15.95 MB, free: 208 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.463/1.463, allocations: 223.3 MB / 240 MB, free: 5.215 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2879/0.2879, allocations: 22.35 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004714/0.0004717, allocations: 19.98 kB / 381.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3533, allocations: 55.96 MB / 437.9 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.001862/0.3552, allocations: 1.661 MB / 439.6 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.3563, allocations: 0.6607 MB / 440.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.3565, allocations: 6.969 kB / 440.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.3568, allocations: 37.77 kB / 440.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.357, allocations: 47.5 kB / 440.3 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003279/0.3573, allocations: 130.6 kB / 440.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003258/0.3577, allocations: 290.3 kB / 440.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.3578, allocations: 61.08 kB / 440.8 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.358, allocations: 126 kB / 440.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.3582, allocations: 142.7 kB / 441 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.709e-05/0.3583, allocations: 11.09 kB / 441.1 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.939e-05/0.3583, allocations: 9.094 kB / 441.1 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.3584, allocations: 69.2 kB / 441.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.301e-05/0.3585, allocations: 62.67 kB / 441.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002158/0.3587, allocations: 203.7 kB / 441.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.3587, allocations: 7.875 kB / 441.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.3587, allocations: 0 / 441.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.3587, allocations: 0 / 441.4 MB, free: 37.09 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.001347/0.3601, allocations: 0.6888 MB / 442.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.3601, allocations: 8.688 kB / 442.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.668e-05/0.3602, allocations: 32.03 kB / 442.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.3608, allocations: 345 kB / 442.5 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.3608, allocations: 13.55 kB / 442.5 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.964e-05/0.3609, allocations: 17.88 kB / 442.5 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/0.3613, allocations: 259.4 kB / 442.8 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3613, allocations: 11.86 kB / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/0.3613, allocations: 6.625 kB / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3613, allocations: 3 kB / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003771/0.3617, allocations: 201.8 kB / 443 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.3627, allocations: 0.7173 MB / 443.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006523/0.3634, allocations: 275.7 kB / 444 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002605/0.3637, allocations: 131.1 kB / 444.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.3637, allocations: 2.938 kB / 444.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003759/0.3641, allocations: 209.8 kB / 444.3 MB, free: 35.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.953e-06/0.3641, allocations: 0 / 444.3 MB, free: 35.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002083/0.3662, allocations: 0.9546 MB / 445.2 MB, free: 34.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.3663, allocations: 138.2 kB / 445.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004729/0.3667, allocations: 314.7 kB / 445.7 MB, free: 34.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.3668, allocations: 32.64 kB / 445.7 MB, free: 34.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.836e-05/0.3669, allocations: 162.3 kB / 445.9 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.406e-05/0.367, allocations: 77.53 kB / 446 MB, free: 34.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.367, allocations: 0 / 446 MB, free: 34.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.153e-05/0.3671, allocations: 345.7 kB / 446.3 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.3673, allocations: 111 kB / 446.4 MB, free: 34.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002304/0.3675, allocations: 141.3 kB / 446.5 MB, free: 33.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.3678, allocations: 187.1 kB / 446.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3678, allocations: 0 / 446.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009366/0.3687, allocations: 0.5304 MB / 447.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.3689, allocations: 163.5 kB / 447.4 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/0.3689, allocations: 0 / 447.4 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003854/0.3693, allocations: 98.39 kB / 447.5 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.3694, allocations: 33.27 kB / 447.5 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002118/0.3716, allocations: 1.943 MB / 449.5 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/0.3718, allocations: 56.12 kB / 449.5 MB, free: 31.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.3719, allocations: 15.47 kB / 449.6 MB, free: 31.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.972e-06/0.3719, allocations: 2.531 kB / 449.6 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006441/0.3725, allocations: 407.3 kB / 450 MB, free: 31.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-06/0.3726, allocations: 0 / 450 MB, free: 31.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001499/0.3727, allocations: 64.58 kB / 450 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.3729, allocations: 34.31 kB / 450.1 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.3741, allocations: 1.669 MB / 451.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.3743, allocations: 47.59 kB / 451.8 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.3743, allocations: 5.719 kB / 451.8 MB, free: 30.06 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.0002503/0.3746, allocations: 273.1 kB / 452 MB, free: 29.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.3746, allocations: 27 kB / 452.1 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.059e-05/0.3747, allocations: 35.84 kB / 452.1 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.3747, allocations: 2.969 kB / 452.1 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.3747, allocations: 3.953 kB / 452.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3747, allocations: 0 / 452.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.375, allocations: 361.9 kB / 452.5 MB, free: 29.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.375, allocations: 0 / 452.5 MB, free: 29.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.3752, allocations: 19.31 kB / 452.5 MB, free: 29.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004205/0.3756, allocations: 201.5 kB / 452.7 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.566e-05/0.3757, allocations: 6.969 kB / 452.7 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002132/0.3778, allocations: 2.496 MB / 455.2 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3778, allocations: 0 / 455.2 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.379, allocations: 0.7071 MB / 455.9 MB, free: 27.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.918e-05/0.3791, allocations: 108.6 kB / 456 MB, free: 26.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.416e-05/0.3791, allocations: 10.97 kB / 456 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.3794, allocations: 36.75 kB / 456 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.267e-05/0.3795, allocations: 20.06 kB / 456.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.3795, allocations: 5.25 kB / 456.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003954/0.3799, allocations: 242.8 kB / 456.3 MB, free: 26.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3799, allocations: 0 / 456.3 MB, free: 26.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005174/0.3805, allocations: 111.2 kB / 456.4 MB, free: 26.75 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.0001556/0.3806, allocations: 115.7 kB / 456.5 MB, free: 26.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.3819, allocations: 0.9462 MB / 457.5 MB, free: 26.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3819, allocations: 0 / 457.5 MB, free: 26.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005058/0.3825, allocations: 384 kB / 457.8 MB, free: 25.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.3828, allocations: 37.06 kB / 457.9 MB, free: 25.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009746/0.3837, allocations: 0.7032 MB / 458.6 MB, free: 25.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.384, allocations: 0.7711 MB / 459.4 MB, free: 24.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001632/0.3841, allocations: 68.06 kB / 459.4 MB, free: 24.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.753e-05/0.3842, allocations: 17.34 kB / 459.4 MB, free: 24.63 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3842, allocations: 0 / 459.4 MB, free: 24.63 MB / 350.1 MB Notification: Performance of Templates: time 0.009678/0.3939, allocations: 4.209 MB / 463.6 MB, free: 24.32 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.makefile (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)