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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008186/0.0008186, allocations: 97.48 kB / 15.36 MB, free: 0.7344 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.005464/0.005464, allocations: 169.4 kB / 16.26 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.462/1.462, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2216/0.2216, allocations: 22.35 MB / 313.8 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005194/0.0005188, allocations: 8 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2937, allocations: 55.98 MB / 438.7 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.001963/0.2957, allocations: 1.818 MB / 440.5 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000917/0.2966, allocations: 0.7162 MB / 441.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.2968, allocations: 2.75 kB / 441.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002844/0.2971, allocations: 48.36 kB / 441.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.2972, allocations: 53.47 kB / 441.3 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003412/0.2976, allocations: 200.9 kB / 441.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003066/0.2979, allocations: 375.2 kB / 441.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.2981, allocations: 108.2 kB / 442 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.2982, allocations: 119.2 kB / 442.1 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001986/0.2984, allocations: 156.3 kB / 442.3 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.091e-05/0.2985, allocations: 8.656 kB / 442.3 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.035e-05/0.2985, allocations: 11.94 kB / 442.3 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.586e-05/0.2986, allocations: 79.3 kB / 442.4 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.2987, allocations: 152.5 kB / 442.5 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.299, allocations: 328.8 kB / 442.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.299, allocations: 0 / 442.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.299, allocations: 4 kB / 442.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.299, allocations: 0 / 442.8 MB, free: 36.82 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.001349/0.3004, allocations: 0.6792 MB / 443.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3004, allocations: 16.38 kB / 443.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.185e-05/0.3005, allocations: 61.72 kB / 443.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.993e-05/0.3005, allocations: 37.81 kB / 443.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006056/0.3011, allocations: 378.7 kB / 444 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.3012, allocations: 17.38 kB / 444 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.179e-05/0.3012, allocations: 32.77 kB / 444 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.3017, allocations: 301.6 kB / 444.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.3017, allocations: 7.281 kB / 444.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.3018, allocations: 4 kB / 444.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.3018, allocations: 10.03 kB / 444.4 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000498/0.3023, allocations: 251.9 kB / 444.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.3035, allocations: 0.8517 MB / 445.4 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007853/0.3043, allocations: 335.4 kB / 445.8 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002603/0.3045, allocations: 145.7 kB / 445.9 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.3046, allocations: 2.688 kB / 445.9 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.3046, allocations: 40.52 kB / 446 MB, free: 35.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.3046, allocations: 0 / 446 MB, free: 35.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.002895/0.3075, allocations: 1.131 MB / 447.1 MB, free: 34.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.3076, allocations: 106.7 kB / 447.2 MB, free: 34.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005535/0.3081, allocations: 348.3 kB / 447.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.3082, allocations: 32.39 kB / 447.6 MB, free: 34.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.69e-05/0.3083, allocations: 176.3 kB / 447.7 MB, free: 34.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.3083, allocations: 84.8 kB / 447.8 MB, free: 34.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/0.3084, allocations: 33.84 kB / 447.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.387e-05/0.3084, allocations: 340.2 kB / 448.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002479/0.3087, allocations: 129.3 kB / 448.3 MB, free: 33.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/0.309, allocations: 165.5 kB / 448.5 MB, free: 33.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001909/0.3109, allocations: 0.664 MB / 449.1 MB, free: 33.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3109, allocations: 2.625 kB / 449.1 MB, free: 33.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001386/0.3123, allocations: 0.6384 MB / 449.8 MB, free: 33.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.544e-05/0.3124, allocations: 100.9 kB / 449.9 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3124, allocations: 0 / 449.9 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004681/0.3129, allocations: 155 kB / 450 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.313, allocations: 32.09 kB / 450.1 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003729/0.3167, allocations: 3.73 MB / 453.8 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.3171, allocations: 65.77 kB / 453.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.3171, allocations: 5.25 kB / 453.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.079e-06/0.3171, allocations: 2.625 kB / 453.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006687/0.3178, allocations: 368 kB / 454.2 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.534e-06/0.3178, allocations: 3.422 kB / 454.2 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002847/0.3181, allocations: 123.2 kB / 454.3 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.3183, allocations: 27.08 kB / 454.4 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/0.3203, allocations: 3.331 MB / 457.7 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002969/0.3206, allocations: 54.42 kB / 457.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.3206, allocations: 9.031 kB / 457.8 MB, free: 26.78 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.0001992/0.3208, allocations: 247.8 kB / 458 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/0.3209, allocations: 31.31 kB / 458 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.532e-05/0.321, allocations: 46.91 kB / 458.1 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.321, allocations: 3 kB / 458.1 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.321, allocations: 0 / 458.1 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.321, allocations: 4 kB / 458.1 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/0.3214, allocations: 383.9 kB / 458.5 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3214, allocations: 192 / 458.5 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.3216, allocations: 30.41 kB / 458.5 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005004/0.3221, allocations: 192.8 kB / 458.7 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.3221, allocations: 7.406 kB / 458.7 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003223/0.3253, allocations: 3.538 MB / 462.2 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3254, allocations: 5.375 kB / 462.2 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.3269, allocations: 0.7832 MB / 463 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.3e-05/0.3269, allocations: 119 kB / 463.1 MB, free: 22.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.126e-05/0.327, allocations: 6.5 kB / 463.1 MB, free: 22.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003681/0.3274, allocations: 50.75 kB / 463.2 MB, free: 22.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.205e-05/0.3274, allocations: 27.48 kB / 463.2 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.3275, allocations: 5.031 kB / 463.2 MB, free: 22.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004848/0.328, allocations: 269 kB / 463.5 MB, free: 22.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.328, allocations: 0 / 463.5 MB, free: 22.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007092/0.3287, allocations: 133 kB / 463.6 MB, free: 22.6 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.001726/0.3304, allocations: 1.329 MB / 464.9 MB, free: 21.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.3319, allocations: 1.008 MB / 466 MB, free: 21.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3319, allocations: 4 kB / 466 MB, free: 21.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005482/0.3325, allocations: 425.8 kB / 466.4 MB, free: 20.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.3329, allocations: 59.75 kB / 466.4 MB, free: 20.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006711/0.3397, allocations: 4.061 MB / 470.5 MB, free: 18.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.3399, allocations: 0.8027 MB / 471.3 MB, free: 17.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.3401, allocations: 68.75 kB / 471.4 MB, free: 17.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.3403, allocations: 99.55 kB / 471.5 MB, free: 17.81 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3403, allocations: 0 / 471.5 MB, free: 17.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02161/0.3619, allocations: 8.803 MB / 480.3 MB, free: 16.25 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001421/0.362, allocations: 233.6 kB / 480.5 MB, free: 16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/2.386, allocations: 6.938 kB / 480.5 MB, free: 15.99 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2.fmu > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe 2>&1)