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.00137/0.00137, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001154/0.001154, allocations: 191 kB / 16.25 MB, free: 6.637 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.321/1.321, allocations: 222.9 MB / 239.9 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1938/0.1938, allocations: 22.35 MB / 312.4 MB, free: 12.64 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 71.89 kB / 380.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2522, allocations: 54.94 MB / 435.2 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.002885/0.2551, allocations: 2.186 MB / 437.4 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.2562, allocations: 0.7154 MB / 438.1 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.2563, allocations: 9.844 kB / 438.1 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002886/0.2566, allocations: 41.48 kB / 438.2 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.2568, allocations: 52.8 kB / 438.2 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.2572, allocations: 190.7 kB / 438.4 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000316/0.2575, allocations: 412.2 kB / 438.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.2577, allocations: 110.7 kB / 438.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.2578, allocations: 155.7 kB / 439.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.258, allocations: 186.6 kB / 439.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.065e-05/0.2581, allocations: 32.88 kB / 439.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.122e-05/0.2581, allocations: 34.72 kB / 439.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.841e-05/0.2582, allocations: 103.6 kB / 439.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.593e-05/0.2583, allocations: 159.7 kB / 439.6 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.2586, allocations: 353.6 kB / 439.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2586, allocations: 3.328 kB / 439.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2586, allocations: 0 / 439.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.2586, allocations: 0 / 439.9 MB, free: 36.64 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.001421/0.26, allocations: 0.7301 MB / 440.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.2601, allocations: 10.69 kB / 440.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.428e-05/0.2601, allocations: 42.97 kB / 440.7 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006107/0.2608, allocations: 383.7 kB / 441.1 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.2608, allocations: 16.59 kB / 441.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.351e-05/0.2608, allocations: 24.22 kB / 441.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004788/0.2613, allocations: 297.2 kB / 441.4 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.2613, allocations: 2.844 kB / 441.4 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.2614, allocations: 4 kB / 441.4 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2614, allocations: 13.14 kB / 441.4 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004925/0.2619, allocations: 242.7 kB / 441.7 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.2631, allocations: 0.8312 MB / 442.5 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007567/0.2638, allocations: 323.9 kB / 442.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002435/0.2641, allocations: 143.9 kB / 443 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.2641, allocations: 2.719 kB / 443 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.463e-05/0.2642, allocations: 30.56 kB / 443 MB, free: 34.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.2642, allocations: 4 kB / 443 MB, free: 34.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002681/0.2669, allocations: 1.013 MB / 444 MB, free: 34.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.2669, allocations: 122 kB / 444.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005545/0.2675, allocations: 341.6 kB / 444.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.2675, allocations: 29.7 kB / 444.5 MB, free: 34.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.501e-05/0.2676, allocations: 173.1 kB / 444.7 MB, free: 34.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.446e-05/0.2677, allocations: 88.78 kB / 444.8 MB, free: 33.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.018e-05/0.2677, allocations: 55.16 kB / 444.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.742e-05/0.2678, allocations: 339.7 kB / 445.1 MB, free: 33.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002357/0.2681, allocations: 125.5 kB / 445.3 MB, free: 33.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.2683, allocations: 152.3 kB / 445.4 MB, free: 33.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001953/0.2703, allocations: 0.6402 MB / 446.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2703, allocations: 0 / 446.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001282/0.2716, allocations: 0.5724 MB / 446.6 MB, free: 33.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2716, allocations: 5.781 kB / 446.6 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.2716, allocations: 7.938 kB / 446.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000448/0.2721, allocations: 148.2 kB / 446.8 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.2722, allocations: 32.75 kB / 446.8 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003632/0.2759, allocations: 3.905 MB / 450.7 MB, free: 29.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003482/0.2762, allocations: 55.83 kB / 450.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.2763, allocations: 13.31 kB / 450.8 MB, free: 29.71 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.0002701/0.2765, allocations: 212.3 kB / 451 MB, free: 29.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001692/0.2767, allocations: 128.1 kB / 451.1 MB, free: 29.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001601/0.2783, allocations: 0.5755 MB / 451.7 MB, free: 29.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.293e-06/0.2783, allocations: 0 / 451.7 MB, free: 29.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007131/0.2791, allocations: 428.1 kB / 452.1 MB, free: 29.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.2791, allocations: 8.375 kB / 452.1 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.795e-06/0.2791, allocations: 0 / 452.1 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000295/0.2794, allocations: 120.8 kB / 452.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.2795, allocations: 34.56 kB / 452.3 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/0.2817, allocations: 3.696 MB / 456 MB, free: 25.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.282, allocations: 47.28 kB / 456 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.2821, allocations: 9.562 kB / 456 MB, free: 25.7 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.0001263/0.2822, allocations: 199.2 kB / 456.2 MB, free: 25.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.993e-05/0.2823, allocations: 33.28 kB / 456.3 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.725e-05/0.2823, allocations: 42.19 kB / 456.3 MB, free: 25.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2823, allocations: 2.656 kB / 456.3 MB, free: 25.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2824, allocations: 7.281 kB / 456.3 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2824, allocations: 0 / 456.3 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003377/0.2827, allocations: 389.2 kB / 456.7 MB, free: 25.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.2827, allocations: 0 / 456.7 MB, free: 25.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.2829, allocations: 26.41 kB / 456.7 MB, free: 25.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004773/0.2834, allocations: 180 kB / 456.9 MB, free: 25.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.2834, allocations: 7.281 kB / 456.9 MB, free: 25.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003113/0.2865, allocations: 3.674 MB / 460.6 MB, free: 21.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2866, allocations: 8.906 kB / 460.6 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.288, allocations: 0.7305 MB / 461.3 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.2881, allocations: 106.4 kB / 461.4 MB, free: 21.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.701e-05/0.2882, allocations: 6.594 kB / 461.4 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003773/0.2885, allocations: 48.77 kB / 461.5 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.135e-05/0.2886, allocations: 24.05 kB / 461.5 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.2886, allocations: 4 kB / 461.5 MB, free: 21.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000501/0.2892, allocations: 262.3 kB / 461.8 MB, free: 21.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2892, allocations: 4 kB / 461.8 MB, free: 21.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006861/0.2899, allocations: 136.4 kB / 461.9 MB, free: 21.36 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.0001119/0.29, allocations: 103.9 kB / 462 MB, free: 21.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.2915, allocations: 0.9886 MB / 463 MB, free: 20.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.2915, allocations: 0 / 463 MB, free: 20.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.292, allocations: 424.5 kB / 463.4 MB, free: 20.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.2924, allocations: 59.48 kB / 463.5 MB, free: 20.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.2936, allocations: 0.8176 MB / 464.3 MB, free: 19.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/0.2939, allocations: 0.7978 MB / 465.1 MB, free: 19.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001783/0.2941, allocations: 76.64 kB / 465.1 MB, free: 19.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.8e-05/0.2942, allocations: 21.16 kB / 465.2 MB, free: 19.09 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2942, allocations: 0 / 465.2 MB, free: 19.09 MB / 350.1 MB Notification: Performance of Templates: time 0.01149/0.3057, allocations: 6.257 MB / 471.4 MB, free: 18.71 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)