Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.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_compare2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2") translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001215, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.433/1.433, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2168/0.2168, allocations: 22.36 MB / 312.7 MB, free: 12.56 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 68.03 kB / 380.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3036, allocations: 54.94 MB / 435.8 MB, free: 40.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.003015/0.3066, allocations: 2.125 MB / 437.9 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.3077, allocations: 0.7324 MB / 438.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.3078, allocations: 5.062 kB / 438.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.3081, allocations: 55.75 kB / 438.7 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.3082, allocations: 74.5 kB / 438.8 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003258/0.3086, allocations: 211.6 kB / 439 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002906/0.3089, allocations: 400.6 kB / 439.4 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.309, allocations: 121.3 kB / 439.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.3092, allocations: 153.6 kB / 439.6 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.3094, allocations: 181.2 kB / 439.8 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.3095, allocations: 30.72 kB / 439.8 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.917e-05/0.3095, allocations: 34.19 kB / 439.9 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.3096, allocations: 99.48 kB / 440 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.3098, allocations: 164.6 kB / 440.1 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.31, allocations: 353.2 kB / 440.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.31, allocations: 0 / 440.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.31, allocations: 0 / 440.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.3101, allocations: 0 / 440.5 MB, free: 37.16 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001363/0.3114, allocations: 0.7299 MB / 441.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.699e-05/0.3115, allocations: 8.562 kB / 441.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.003e-05/0.3115, allocations: 48.38 kB / 441.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005966/0.3121, allocations: 375.5 kB / 441.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.3122, allocations: 19.88 kB / 441.6 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.724e-05/0.3122, allocations: 22.94 kB / 441.7 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004425/0.3127, allocations: 302.5 kB / 442 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.3127, allocations: 0 / 442 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.737e-05/0.3127, allocations: 11.66 kB / 442 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.3127, allocations: 3.969 kB / 442 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004654/0.3132, allocations: 242.2 kB / 442.2 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.3143, allocations: 0.8291 MB / 443 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007413/0.3151, allocations: 319.2 kB / 443.4 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002391/0.3153, allocations: 145.8 kB / 443.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.3153, allocations: 3.375 kB / 443.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.3154, allocations: 37.47 kB / 443.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.442e-06/0.3154, allocations: 0 / 443.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002626/0.318, allocations: 1.014 MB / 444.6 MB, free: 35.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.318, allocations: 113.7 kB / 444.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005263/0.3186, allocations: 347.4 kB / 445 MB, free: 34.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.3186, allocations: 32.86 kB / 445 MB, free: 34.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/0.3187, allocations: 173.5 kB / 445.2 MB, free: 34.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.331e-05/0.3188, allocations: 90.08 kB / 445.3 MB, free: 34.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.256e-05/0.3188, allocations: 51.47 kB / 445.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.936e-05/0.3189, allocations: 347.4 kB / 445.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.3191, allocations: 121.2 kB / 445.8 MB, free: 34.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002403/0.3194, allocations: 156 kB / 446 MB, free: 33.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001827/0.3212, allocations: 0.6405 MB / 446.6 MB, free: 33.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3212, allocations: 3.938 kB / 446.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001264/0.3225, allocations: 0.5714 MB / 447.2 MB, free: 33.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.3225, allocations: 6.125 kB / 447.2 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.3225, allocations: 3.938 kB / 447.2 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004395/0.323, allocations: 154.9 kB / 447.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.3231, allocations: 31.94 kB / 447.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003519/0.3266, allocations: 3.905 MB / 451.3 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003407/0.327, allocations: 56.92 kB / 451.3 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.327, allocations: 9.25 kB / 451.3 MB, free: 30.23 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002501/0.3273, allocations: 217.8 kB / 451.5 MB, free: 30.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001623/0.3275, allocations: 132 kB / 451.7 MB, free: 30.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001522/0.329, allocations: 0.5698 MB / 452.2 MB, free: 29.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.042e-06/0.329, allocations: 6.906 kB / 452.2 MB, free: 29.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0006883/0.3297, allocations: 428.7 kB / 452.7 MB, free: 29.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.387e-06/0.3297, allocations: 7.938 kB / 452.7 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.224e-06/0.3297, allocations: 3.984 kB / 452.7 MB, free: 29.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002796/0.33, allocations: 126.5 kB / 452.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.3301, allocations: 30.83 kB / 452.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.3322, allocations: 3.693 MB / 456.5 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.3325, allocations: 44.17 kB / 456.6 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.3326, allocations: 6.406 kB / 456.6 MB, free: 26.2 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.3327, allocations: 212.8 kB / 456.8 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.015e-05/0.3328, allocations: 35.59 kB / 456.8 MB, free: 25.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.675e-05/0.3328, allocations: 39.53 kB / 456.9 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.3328, allocations: 3.156 kB / 456.9 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.3329, allocations: 3.938 kB / 456.9 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.3329, allocations: 0 / 456.9 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000335/0.3332, allocations: 386.6 kB / 457.2 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3332, allocations: 3.219 kB / 457.2 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.3334, allocations: 22.88 kB / 457.3 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004782/0.3339, allocations: 179 kB / 457.4 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.3339, allocations: 6.188 kB / 457.4 MB, free: 25.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003311/0.3372, allocations: 3.673 MB / 461.1 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3372, allocations: 1.125 kB / 461.1 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.3386, allocations: 0.7345 MB / 461.9 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.798e-05/0.3387, allocations: 107.5 kB / 462 MB, free: 22.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/0.3388, allocations: 13.89 kB / 462 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003574/0.3391, allocations: 43.58 kB / 462 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.681e-05/0.3392, allocations: 28.22 kB / 462 MB, free: 22.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.3392, allocations: 4.125 kB / 462 MB, free: 22.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005292/0.3398, allocations: 268 kB / 462.3 MB, free: 21.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3398, allocations: 0 / 462.3 MB, free: 21.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006836/0.3405, allocations: 135.7 kB / 462.4 MB, free: 21.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Process_1.x_scaled[1],Process_1.x_scaled[2],PI_1.FO.y,Process_2.x_scaled[1],Process_2.x_scaled[2],PI_2.FO.y) * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000102/0.3406, allocations: 102.2 kB / 462.5 MB, free: 21.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.342, allocations: 0.9931 MB / 463.5 MB, free: 21.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.342, allocations: 0 / 463.5 MB, free: 21.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004992/0.3425, allocations: 416.2 kB / 463.9 MB, free: 20.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.343, allocations: 60.44 kB / 464 MB, free: 20.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.3441, allocations: 0.7015 MB / 464.7 MB, free: 20.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002055/0.3443, allocations: 0.7979 MB / 465.5 MB, free: 19.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001565/0.3445, allocations: 71.67 kB / 465.6 MB, free: 19.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.3445, allocations: 27.41 kB / 465.6 MB, free: 19.71 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3445, allocations: 0 / 465.6 MB, free: 19.71 MB / 350.1 MB Notification: Performance of Templates: time 0.01185/0.3564, allocations: 6.381 MB / 472 MB, free: 19.31 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.makefile (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.sim & ./AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe 2>&1)