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.001055/0.001055, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008787/0.008787, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.408/1.408, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2713/0.2713, allocations: 22.36 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000446/0.000446, allocations: 15.98 kB / 382.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2862, allocations: 55.98 MB / 438.6 MB, free: 39.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.002091/0.2884, allocations: 1.818 MB / 440.4 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009741/0.2893, allocations: 0.7112 MB / 441.1 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.2895, allocations: 2.875 kB / 441.1 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002966/0.2898, allocations: 44.94 kB / 441.1 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001845/0.29, allocations: 52.94 kB / 441.2 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003534/0.2903, allocations: 197.6 kB / 441.4 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003362/0.2907, allocations: 384.1 kB / 441.8 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000213/0.2909, allocations: 106.2 kB / 441.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.2911, allocations: 119.9 kB / 442 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.2913, allocations: 153.7 kB / 442.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.832e-05/0.2913, allocations: 9.406 kB / 442.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.093e-05/0.2913, allocations: 9.938 kB / 442.2 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.918e-05/0.2914, allocations: 77.73 kB / 442.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.2916, allocations: 156.4 kB / 442.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.2919, allocations: 330.5 kB / 442.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2919, allocations: 0 / 442.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2919, allocations: 0 / 442.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.2919, allocations: 4 kB / 442.7 MB, free: 36.91 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.0014/0.2933, allocations: 0.6809 MB / 443.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.2934, allocations: 16.62 kB / 443.4 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.314e-05/0.2934, allocations: 40.22 kB / 443.4 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006625/0.2941, allocations: 385.2 kB / 443.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.2941, allocations: 17.44 kB / 443.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.725e-05/0.2942, allocations: 24.81 kB / 443.9 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005777/0.2948, allocations: 309.1 kB / 444.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.2948, allocations: 0 / 444.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.2948, allocations: 7.938 kB / 444.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.2949, allocations: 5.312 kB / 444.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005723/0.2954, allocations: 259.3 kB / 444.4 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.2967, allocations: 0.8499 MB / 445.3 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007701/0.2975, allocations: 335 kB / 445.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002572/0.2978, allocations: 146.5 kB / 445.8 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.2978, allocations: 6.875 kB / 445.8 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.2978, allocations: 36.69 kB / 445.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.292e-06/0.2978, allocations: 0 / 445.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002886/0.3007, allocations: 1.121 MB / 446.9 MB, free: 34.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.3008, allocations: 123.5 kB / 447 MB, free: 34.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005484/0.3013, allocations: 344.2 kB / 447.4 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.3014, allocations: 29.7 kB / 447.4 MB, free: 34.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.885e-05/0.3015, allocations: 176 kB / 447.6 MB, free: 34.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.203e-05/0.3015, allocations: 82 kB / 447.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.3016, allocations: 29.7 kB / 447.7 MB, free: 34.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.392e-05/0.3017, allocations: 345.4 kB / 448 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/0.3019, allocations: 127.3 kB / 448.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002618/0.3022, allocations: 170.7 kB / 448.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001904/0.3041, allocations: 0.6605 MB / 449 MB, free: 33.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.3041, allocations: 0 / 449 MB, free: 33.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001361/0.3055, allocations: 0.6419 MB / 449.6 MB, free: 33.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.371e-05/0.3055, allocations: 98.56 kB / 449.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3055, allocations: 0 / 449.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004392/0.306, allocations: 156 kB / 449.9 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.3061, allocations: 29.84 kB / 449.9 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003555/0.3097, allocations: 3.729 MB / 453.6 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.31, allocations: 65.41 kB / 453.7 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.3101, allocations: 10.62 kB / 453.7 MB, free: 30.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.023e-06/0.3101, allocations: 8.688 kB / 453.7 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006492/0.3107, allocations: 362.1 kB / 454.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-06/0.3107, allocations: 0 / 454.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002832/0.311, allocations: 122.8 kB / 454.2 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.3112, allocations: 31.67 kB / 454.2 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00204/0.3132, allocations: 3.332 MB / 457.5 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002926/0.3135, allocations: 53.62 kB / 457.6 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.3135, allocations: 9.781 kB / 457.6 MB, free: 26.91 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.0001941/0.3137, allocations: 249.7 kB / 457.8 MB, free: 26.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.496e-05/0.3138, allocations: 27.53 kB / 457.9 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.528e-05/0.3139, allocations: 47.3 kB / 457.9 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.3139, allocations: 3.219 kB / 457.9 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3139, allocations: 0 / 457.9 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.3139, allocations: 0 / 457.9 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003357/0.3143, allocations: 386.9 kB / 458.3 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3143, allocations: 4 kB / 458.3 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.3144, allocations: 24.98 kB / 458.3 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005006/0.3149, allocations: 193.6 kB / 458.5 MB, free: 26.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.315, allocations: 10.94 kB / 458.5 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003179/0.3182, allocations: 3.54 MB / 462.1 MB, free: 23.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3182, allocations: 0 / 462.1 MB, free: 23.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.3197, allocations: 0.7866 MB / 462.9 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.401e-05/0.3197, allocations: 110.7 kB / 463 MB, free: 22.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.78e-05/0.3198, allocations: 6.438 kB / 463 MB, free: 22.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003609/0.3201, allocations: 56.88 kB / 463 MB, free: 22.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.141e-05/0.3202, allocations: 28.8 kB / 463.1 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.3203, allocations: 11.86 kB / 463.1 MB, free: 22.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004873/0.3207, allocations: 264.7 kB / 463.3 MB, free: 22.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3208, allocations: 0 / 463.3 MB, free: 22.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006136/0.3214, allocations: 132.6 kB / 463.5 MB, free: 22.73 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.0001062/0.3215, allocations: 101.8 kB / 463.6 MB, free: 22.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.323, allocations: 1.017 MB / 464.6 MB, free: 22.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.323, allocations: 5.062 kB / 464.6 MB, free: 22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005056/0.3235, allocations: 426.7 kB / 465 MB, free: 21.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004257/0.3239, allocations: 54.28 kB / 465 MB, free: 21.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.325, allocations: 0.8399 MB / 465.9 MB, free: 21.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.3253, allocations: 0.801 MB / 466.7 MB, free: 20.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001665/0.3254, allocations: 59.41 kB / 466.7 MB, free: 20.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.016e-05/0.3255, allocations: 18.59 kB / 466.8 MB, free: 20.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3255, allocations: 0 / 466.8 MB, free: 20.48 MB / 350.1 MB Notification: Performance of Templates: time 0.01236/0.3379, allocations: 5.803 MB / 472.6 MB, free: 20.12 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)