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.0009626/0.0009628, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001215/0.001215, allocations: 168.7 kB / 15.95 MB, free: 204 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.508/1.508, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2635/0.2635, allocations: 22.34 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004162/0.0004166, allocations: 12 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.369, allocations: 55.97 MB / 437.9 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.001828/0.3709, allocations: 1.757 MB / 439.7 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.372, allocations: 0.6813 MB / 440.4 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.3721, allocations: 2.531 kB / 440.4 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003815/0.3725, allocations: 43.8 kB / 440.4 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002051/0.3727, allocations: 58.27 kB / 440.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000431/0.3732, allocations: 160.8 kB / 440.6 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003693/0.3736, allocations: 345.9 kB / 440.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.3738, allocations: 96.28 kB / 441 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.3739, allocations: 134 kB / 441.2 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.3741, allocations: 150 kB / 441.3 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.733e-05/0.3742, allocations: 12.03 kB / 441.3 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.481e-05/0.3742, allocations: 11.69 kB / 441.3 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.3743, allocations: 75.73 kB / 441.4 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.907e-05/0.3744, allocations: 75.2 kB / 441.5 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00023/0.3746, allocations: 260.5 kB / 441.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.3747, allocations: 2.688 kB / 441.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3747, allocations: 0 / 441.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.3747, allocations: 3.938 kB / 441.8 MB, free: 36.79 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.001336/0.376, allocations: 0.6829 MB / 442.4 MB, free: 36.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3761, allocations: 9.5 kB / 442.4 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.3761, allocations: 37.22 kB / 442.5 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005572/0.3767, allocations: 378.3 kB / 442.8 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.3767, allocations: 22.55 kB / 442.9 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.235e-05/0.3768, allocations: 20.12 kB / 442.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004857/0.3773, allocations: 300.8 kB / 443.2 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.3773, allocations: 10.97 kB / 443.2 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.783e-05/0.3773, allocations: 15.95 kB / 443.2 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3773, allocations: 5.719 kB / 443.2 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004763/0.3778, allocations: 257.5 kB / 443.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.3791, allocations: 0.8329 MB / 444.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007658/0.3798, allocations: 336.9 kB / 444.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.3801, allocations: 145.9 kB / 444.8 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.3802, allocations: 10.83 kB / 444.8 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.3802, allocations: 37.62 kB / 444.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.3802, allocations: 0 / 444.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002544/0.3827, allocations: 1.122 MB / 445.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.3828, allocations: 112.3 kB / 446.1 MB, free: 34.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004879/0.3833, allocations: 350.1 kB / 446.4 MB, free: 34.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.3833, allocations: 29.7 kB / 446.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.147e-05/0.3834, allocations: 171 kB / 446.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.233e-05/0.3835, allocations: 91.44 kB / 446.7 MB, free: 34.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.49e-05/0.3835, allocations: 8 kB / 446.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.275e-05/0.3836, allocations: 344.7 kB / 447 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002256/0.3838, allocations: 122.6 kB / 447.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.3841, allocations: 162.2 kB / 447.3 MB, free: 33.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/0.3843, allocations: 138.6 kB / 447.4 MB, free: 33.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3843, allocations: 4.031 kB / 447.4 MB, free: 33.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001235/0.3856, allocations: 0.6324 MB / 448.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.239e-05/0.3856, allocations: 104.9 kB / 448.2 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3857, allocations: 0 / 448.2 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005514/0.3862, allocations: 186.7 kB / 448.4 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.3864, allocations: 31.59 kB / 448.4 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003798/0.3902, allocations: 3.879 MB / 452.3 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/0.3905, allocations: 64.56 kB / 452.3 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.3905, allocations: 9.484 kB / 452.3 MB, free: 30.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.957e-06/0.3906, allocations: 2.219 kB / 452.3 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006829/0.3912, allocations: 377.8 kB / 452.7 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-06/0.3913, allocations: 0 / 452.7 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002899/0.3916, allocations: 118.2 kB / 452.8 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.3917, allocations: 42.55 kB / 452.9 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/0.394, allocations: 3.324 MB / 456.2 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.3942, allocations: 46.92 kB / 456.2 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.3943, allocations: 5.906 kB / 456.2 MB, free: 26.86 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 (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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002571/0.3945, allocations: 242.7 kB / 456.5 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.381e-05/0.3946, allocations: 29.59 kB / 456.5 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.129e-05/0.3947, allocations: 41.72 kB / 456.5 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.3947, allocations: 2.625 kB / 456.6 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3947, allocations: 0 / 456.6 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.3947, allocations: 5.719 kB / 456.6 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003749/0.3951, allocations: 399.2 kB / 456.9 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3951, allocations: 0 / 456.9 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.3952, allocations: 19.31 kB / 457 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004507/0.3957, allocations: 194.7 kB / 457.2 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.3957, allocations: 4 kB / 457.2 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003177/0.3989, allocations: 3.547 MB / 460.7 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3989, allocations: 0 / 460.7 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.4006, allocations: 0.7845 MB / 461.5 MB, free: 22.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.226e-05/0.4008, allocations: 111.5 kB / 461.6 MB, free: 22.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.704e-05/0.4008, allocations: 4.062 kB / 461.6 MB, free: 22.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003586/0.4012, allocations: 53.5 kB / 461.7 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.4013, allocations: 27.86 kB / 461.7 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.4013, allocations: 8.094 kB / 461.7 MB, free: 22.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005396/0.4019, allocations: 263 kB / 461.9 MB, free: 22.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4019, allocations: 0 / 461.9 MB, free: 22.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008447/0.4027, allocations: 136 kB / 462.1 MB, free: 22.68 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 (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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000166/0.4029, allocations: 107.7 kB / 462.2 MB, free: 22.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001941/0.4048, allocations: 1.057 MB / 463.2 MB, free: 21.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4049, allocations: 1.406 kB / 463.2 MB, free: 21.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005399/0.4054, allocations: 420.4 kB / 463.7 MB, free: 21.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.4059, allocations: 52.22 kB / 463.7 MB, free: 21.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.4072, allocations: 0.8003 MB / 464.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005046/0.4078, allocations: 0.8042 MB / 465.3 MB, free: 20.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002378/0.408, allocations: 62.34 kB / 465.4 MB, free: 20.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.772e-05/0.4081, allocations: 21.92 kB / 465.4 MB, free: 20.46 MB / 350.1 MB Notification: Performance of SimCode: time 1.442e-06/0.4081, allocations: 0 / 465.4 MB, free: 20.46 MB / 350.1 MB Notification: Performance of Templates: time 0.01404/0.4221, allocations: 5.572 MB / 471 MB, free: 20.1 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)