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.0009631/0.000963, allocations: 99.27 kB / 16.02 MB, free: 76 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.001115/0.001115, allocations: 185.3 kB / 16.92 MB, free: 6.75 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.315/1.315, allocations: 223.3 MB / 241 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1981/0.1981, allocations: 22.35 MB / 314.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003031, allocations: 8 kB / 383.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.263, allocations: 55.98 MB / 439.2 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.001712/0.2648, allocations: 1.819 MB / 441 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009465/0.2658, allocations: 0.7033 MB / 441.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.2659, allocations: 5.688 kB / 441.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002751/0.2662, allocations: 52.25 kB / 441.8 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.2664, allocations: 51.58 kB / 441.9 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.2667, allocations: 193.2 kB / 442 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.2671, allocations: 385.2 kB / 442.4 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.2672, allocations: 111.5 kB / 442.5 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.2674, allocations: 121.5 kB / 442.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.2676, allocations: 151.8 kB / 442.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.122e-05/0.2676, allocations: 12.5 kB / 442.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.875e-05/0.2676, allocations: 9.656 kB / 442.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.646e-05/0.2677, allocations: 75.73 kB / 442.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.191e-05/0.2678, allocations: 158.9 kB / 443 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.268, allocations: 258.1 kB / 443.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.268, allocations: 0 / 443.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.268, allocations: 0 / 443.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.268, allocations: 0 / 443.3 MB, free: 36.86 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.00128/0.2693, allocations: 0.6847 MB / 444 MB, free: 36.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.2694, allocations: 13.09 kB / 444 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.113e-05/0.2694, allocations: 45.34 kB / 444 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006287/0.2701, allocations: 381.9 kB / 444.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.2701, allocations: 17.34 kB / 444.4 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.2702, allocations: 23 kB / 444.5 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004797/0.2706, allocations: 311.2 kB / 444.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.2707, allocations: 0 / 444.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.2707, allocations: 6.906 kB / 444.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2707, allocations: 5.406 kB / 444.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000495/0.2712, allocations: 259.3 kB / 445 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.2724, allocations: 0.8512 MB / 445.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007668/0.2732, allocations: 335.3 kB / 446.2 MB, free: 35.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002587/0.2735, allocations: 146.4 kB / 446.3 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.2735, allocations: 10.88 kB / 446.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.517e-05/0.2735, allocations: 30.56 kB / 446.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.2735, allocations: 0 / 446.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002818/0.2764, allocations: 1.121 MB / 447.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.2764, allocations: 121.6 kB / 447.6 MB, free: 34.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005578/0.277, allocations: 349.6 kB / 448 MB, free: 34.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.277, allocations: 29.7 kB / 448 MB, free: 34.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.933e-05/0.2771, allocations: 175.1 kB / 448.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.777e-05/0.2772, allocations: 83.83 kB / 448.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.971e-05/0.2772, allocations: 29.88 kB / 448.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.814e-05/0.2773, allocations: 338.5 kB / 448.6 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.2775, allocations: 138.4 kB / 448.7 MB, free: 33.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.2778, allocations: 162.7 kB / 448.9 MB, free: 33.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0019/0.2797, allocations: 0.6674 MB / 449.6 MB, free: 33.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2797, allocations: 0 / 449.6 MB, free: 33.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001386/0.2811, allocations: 0.644 MB / 450.2 MB, free: 33.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.718e-05/0.2812, allocations: 96.88 kB / 450.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.2812, allocations: 0 / 450.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004731/0.2817, allocations: 156.6 kB / 450.5 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.2818, allocations: 30.55 kB / 450.5 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003715/0.2855, allocations: 3.723 MB / 454.2 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/0.2859, allocations: 58.72 kB / 454.3 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.286, allocations: 17.94 kB / 454.3 MB, free: 30.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.183e-06/0.286, allocations: 6.688 kB / 454.3 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006714/0.2867, allocations: 362.1 kB / 454.7 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-06/0.2867, allocations: 2.625 kB / 454.7 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000288/0.287, allocations: 121.8 kB / 454.8 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.2871, allocations: 31.59 kB / 454.8 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002018/0.2891, allocations: 3.335 MB / 458.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/0.2895, allocations: 52.02 kB / 458.2 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.2895, allocations: 9.781 kB / 458.2 MB, free: 26.87 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.0002116/0.2897, allocations: 242.4 kB / 458.4 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.558e-05/0.2898, allocations: 29.98 kB / 458.5 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.934e-05/0.2899, allocations: 44.78 kB / 458.5 MB, free: 26.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2899, allocations: 2.188 kB / 458.5 MB, free: 26.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2899, allocations: 3.938 kB / 458.5 MB, free: 26.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2899, allocations: 0 / 458.5 MB, free: 26.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003321/0.2902, allocations: 387.6 kB / 458.9 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2902, allocations: 0 / 458.9 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.2904, allocations: 26.17 kB / 458.9 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004909/0.2909, allocations: 190 kB / 459.1 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.2909, allocations: 18.34 kB / 459.1 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003232/0.2942, allocations: 3.539 MB / 462.7 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2942, allocations: 0 / 462.7 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.2958, allocations: 0.7845 MB / 463.4 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.541e-05/0.2958, allocations: 110.6 kB / 463.6 MB, free: 22.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.135e-05/0.2959, allocations: 10.59 kB / 463.6 MB, free: 22.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003629/0.2962, allocations: 56.64 kB / 463.6 MB, free: 22.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.496e-05/0.2964, allocations: 29.69 kB / 463.6 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.2964, allocations: 9.125 kB / 463.7 MB, free: 22.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005043/0.2969, allocations: 264.9 kB / 463.9 MB, free: 22.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2969, allocations: 0 / 463.9 MB, free: 22.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006797/0.2976, allocations: 131.6 kB / 464 MB, free: 22.69 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.0001088/0.2977, allocations: 101.7 kB / 464.1 MB, free: 22.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.2992, allocations: 1.019 MB / 465.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2992, allocations: 0 / 465.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005284/0.2997, allocations: 427.6 kB / 465.6 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.0004558/0.3002, allocations: 54.73 kB / 465.6 MB, free: 21.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.3013, allocations: 0.8752 MB / 466.5 MB, free: 21.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.3016, allocations: 0.7919 MB / 467.3 MB, free: 20.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.544e-05/0.3017, allocations: 23.19 kB / 467.3 MB, free: 20.41 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3017, allocations: 5.094 kB / 467.3 MB, free: 20.4 MB / 350.1 MB Notification: Performance of Templates: time 0.009461/0.3111, allocations: 6.298 MB / 473.6 MB, free: 19.93 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)