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.001078/0.001077, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001404/0.001404, allocations: 196.2 kB / 16.14 MB, free: 6.652 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.3/1.3, allocations: 222.9 MB / 239.8 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.199/0.199, allocations: 22.34 MB / 312.3 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.91 kB / 380.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2792, allocations: 54.95 MB / 435 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.002841/0.2821, allocations: 2.179 MB / 437.2 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.2831, allocations: 0.7168 MB / 437.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.2833, allocations: 6.531 kB / 437.9 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003133/0.2836, allocations: 47.27 kB / 438 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.2838, allocations: 56.56 kB / 438.1 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.2841, allocations: 195.2 kB / 438.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000295/0.2845, allocations: 378.1 kB / 438.6 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.2846, allocations: 115.5 kB / 438.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.2848, allocations: 134.6 kB / 438.9 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.285, allocations: 173.2 kB / 439 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.775e-05/0.2851, allocations: 15.34 kB / 439 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.373e-05/0.2851, allocations: 16.78 kB / 439.1 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.2852, allocations: 88.3 kB / 439.1 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.2854, allocations: 144.4 kB / 439.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002619/0.2856, allocations: 335.4 kB / 439.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.2856, allocations: 0 / 439.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2857, allocations: 0 / 439.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2857, allocations: 4 kB / 439.6 MB, free: 36.71 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.001501/0.2872, allocations: 0.7258 MB / 440.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.2872, allocations: 18.19 kB / 440.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.989e-05/0.2873, allocations: 41.86 kB / 440.4 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006428/0.288, allocations: 383.4 kB / 440.8 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.288, allocations: 13.53 kB / 440.8 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.59e-05/0.288, allocations: 24.22 kB / 440.8 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004885/0.2885, allocations: 299.6 kB / 441.1 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.2886, allocations: 0 / 441.1 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.744e-05/0.2886, allocations: 14.97 kB / 441.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.2886, allocations: 3.938 kB / 441.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004775/0.2891, allocations: 243.8 kB / 441.4 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.2903, allocations: 0.8288 MB / 442.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007568/0.2911, allocations: 325.1 kB / 442.5 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002365/0.2914, allocations: 136.3 kB / 442.6 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.258e-05/0.2914, allocations: 3.984 kB / 442.6 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.2914, allocations: 42.34 kB / 442.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.2914, allocations: 0 / 442.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002541/0.294, allocations: 1.012 MB / 443.7 MB, free: 34.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.294, allocations: 113.5 kB / 443.8 MB, free: 34.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005427/0.2946, allocations: 348.3 kB / 444.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.2946, allocations: 29.7 kB / 444.2 MB, free: 34.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.588e-05/0.2947, allocations: 172.4 kB / 444.3 MB, free: 34.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.872e-05/0.2948, allocations: 89.22 kB / 444.4 MB, free: 34.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.05e-05/0.2949, allocations: 52.91 kB / 444.5 MB, free: 33.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.2949, allocations: 338.9 kB / 444.8 MB, free: 33.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002338/0.2952, allocations: 121.8 kB / 444.9 MB, free: 33.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.2954, allocations: 163.3 kB / 445.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001858/0.2973, allocations: 0.6382 MB / 445.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2973, allocations: 0 / 445.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001223/0.2985, allocations: 0.5753 MB / 446.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.2986, allocations: 5.125 kB / 446.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2986, allocations: 3.938 kB / 446.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004382/0.299, allocations: 146.4 kB / 446.5 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.2992, allocations: 35.94 kB / 446.5 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003334/0.3025, allocations: 3.591 MB / 450.1 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/0.3029, allocations: 55.06 kB / 450.1 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.052e-05/0.3029, allocations: 9.25 kB / 450.1 MB, free: 30.07 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.0003026/0.3032, allocations: 217.4 kB / 450.4 MB, free: 29.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001698/0.3034, allocations: 123.8 kB / 450.5 MB, free: 29.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001573/0.305, allocations: 0.5739 MB / 451.1 MB, free: 29.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.332e-06/0.305, allocations: 0 / 451.1 MB, free: 29.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007042/0.3057, allocations: 422.7 kB / 451.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-06/0.3057, allocations: 5.594 kB / 451.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.565e-06/0.3057, allocations: 0 / 451.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000294/0.306, allocations: 120.2 kB / 451.6 MB, free: 29.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.3062, allocations: 37.36 kB / 451.6 MB, free: 29.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.3083, allocations: 3.338 MB / 455 MB, free: 26.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.3086, allocations: 55.14 kB / 455 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.3087, allocations: 5.25 kB / 455 MB, free: 26.4 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.0001465/0.3088, allocations: 202.7 kB / 455.2 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.042e-05/0.3089, allocations: 31.72 kB / 455.2 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.172e-05/0.309, allocations: 47.14 kB / 455.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.309, allocations: 3.219 kB / 455.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.237e-06/0.309, allocations: 0 / 455.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.309, allocations: 0 / 455.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003686/0.3094, allocations: 388.2 kB / 455.7 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3094, allocations: 0 / 455.7 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.3095, allocations: 30.94 kB / 455.7 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004737/0.31, allocations: 177 kB / 455.9 MB, free: 25.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.3101, allocations: 6.062 kB / 455.9 MB, free: 25.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00281/0.3129, allocations: 3.43 MB / 459.3 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3129, allocations: 1.094 kB / 459.3 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.3143, allocations: 0.732 MB / 460 MB, free: 22.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.049e-05/0.3144, allocations: 113.5 kB / 460.2 MB, free: 22.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.412e-05/0.3144, allocations: 7.781 kB / 460.2 MB, free: 22.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003491/0.3148, allocations: 46.17 kB / 460.2 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.969e-05/0.3149, allocations: 27.36 kB / 460.2 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.3149, allocations: 6.75 kB / 460.2 MB, free: 22.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004748/0.3154, allocations: 263.1 kB / 460.5 MB, free: 22.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3154, allocations: 0 / 460.5 MB, free: 22.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006856/0.3161, allocations: 132.6 kB / 460.6 MB, free: 22.27 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.000112/0.3162, allocations: 102.5 kB / 460.7 MB, free: 22.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.3177, allocations: 0.9787 MB / 461.7 MB, free: 21.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3177, allocations: 1.406 kB / 461.7 MB, free: 21.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.3182, allocations: 413.5 kB / 462.1 MB, free: 21.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00045/0.3186, allocations: 53.61 kB / 462.2 MB, free: 21.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.3199, allocations: 0.8183 MB / 463 MB, free: 20.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.3201, allocations: 0.8013 MB / 463.8 MB, free: 20.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001757/0.3203, allocations: 68.95 kB / 463.9 MB, free: 20.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.611e-05/0.3204, allocations: 17.81 kB / 463.9 MB, free: 20.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3204, allocations: 0 / 463.9 MB, free: 20.02 MB / 350.1 MB Notification: Performance of Templates: time 0.01172/0.3321, allocations: 5.898 MB / 469.8 MB, free: 19.64 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)