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.000882/0.0008821, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.0007987/0.0007988, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 223.2 MB / 240 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2156/0.2156, allocations: 22.35 MB / 313.4 MB, free: 13.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002949/0.000295, allocations: 8 kB / 382 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3022, allocations: 55.99 MB / 438 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.001743/0.304, allocations: 1.755 MB / 439.8 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009323/0.305, allocations: 0.6908 MB / 440.5 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.3051, allocations: 3.156 kB / 440.5 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.3054, allocations: 45.84 kB / 440.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.3056, allocations: 54.25 kB / 440.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000342/0.3059, allocations: 161.5 kB / 440.7 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003415/0.3063, allocations: 342.7 kB / 441.1 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.3065, allocations: 92.98 kB / 441.1 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.3066, allocations: 129.1 kB / 441.3 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.3068, allocations: 155 kB / 441.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.3069, allocations: 15.62 kB / 441.4 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.146e-05/0.3069, allocations: 11.03 kB / 441.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.665e-05/0.307, allocations: 80.52 kB / 441.5 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.786e-05/0.3071, allocations: 65.8 kB / 441.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002173/0.3073, allocations: 266.8 kB / 441.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3073, allocations: 0 / 441.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3073, allocations: 0 / 441.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.3073, allocations: 0 / 441.9 MB, free: 36.95 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.00124/0.3085, allocations: 0.6874 MB / 442.5 MB, free: 36.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.3086, allocations: 8.562 kB / 442.6 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.338e-05/0.3087, allocations: 51.55 kB / 442.6 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.925e-05/0.3087, allocations: 39.75 kB / 442.6 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005779/0.3093, allocations: 384.2 kB / 443 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.3093, allocations: 17.16 kB / 443 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.3094, allocations: 18.16 kB / 443.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004725/0.3099, allocations: 301.8 kB / 443.3 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.3099, allocations: 11.8 kB / 443.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.513e-05/0.3099, allocations: 10.81 kB / 443.4 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3099, allocations: 5.5 kB / 443.4 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004711/0.3104, allocations: 259.2 kB / 443.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.3116, allocations: 0.838 MB / 444.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007175/0.3123, allocations: 336.3 kB / 444.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002425/0.3126, allocations: 141.4 kB / 444.9 MB, free: 35.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.3126, allocations: 6.906 kB / 444.9 MB, free: 35.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.3127, allocations: 41.47 kB / 445 MB, free: 35.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.264e-06/0.3127, allocations: 3.984 kB / 445 MB, free: 35.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00258/0.3153, allocations: 1.127 MB / 446.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.3153, allocations: 105.9 kB / 446.2 MB, free: 34.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005132/0.3158, allocations: 355.4 kB / 446.6 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.3159, allocations: 29.7 kB / 446.6 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.225e-05/0.3159, allocations: 169.8 kB / 446.8 MB, free: 34.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.474e-05/0.316, allocations: 91.62 kB / 446.8 MB, free: 34.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.437e-05/0.316, allocations: 2.781 kB / 446.8 MB, free: 34.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.681e-05/0.3161, allocations: 343.5 kB / 447.2 MB, free: 33.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/0.3164, allocations: 126.7 kB / 447.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002574/0.3166, allocations: 162 kB / 447.5 MB, free: 33.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002974/0.3169, allocations: 135.9 kB / 447.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.317, allocations: 3.938 kB / 447.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001277/0.3182, allocations: 0.6334 MB / 448.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.3183, allocations: 103.5 kB / 448.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3183, allocations: 0 / 448.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005517/0.3189, allocations: 191.6 kB / 448.5 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.319, allocations: 30.09 kB / 448.6 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0036/0.3226, allocations: 3.875 MB / 452.4 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.3229, allocations: 66.88 kB / 452.5 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.323, allocations: 9.188 kB / 452.5 MB, free: 30.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.553e-06/0.323, allocations: 5.25 kB / 452.5 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006231/0.3236, allocations: 374.5 kB / 452.9 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-06/0.3236, allocations: 0 / 452.9 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002718/0.3239, allocations: 117.4 kB / 453 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.324, allocations: 37.33 kB / 453 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002036/0.3261, allocations: 3.331 MB / 456.4 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002864/0.3264, allocations: 46.75 kB / 456.4 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.3264, allocations: 6.281 kB / 456.4 MB, free: 26.97 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002466/0.3267, allocations: 241.5 kB / 456.6 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.723e-05/0.3267, allocations: 29.72 kB / 456.7 MB, free: 26.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.118e-05/0.3268, allocations: 49.97 kB / 456.7 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.3268, allocations: 2.906 kB / 456.7 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3269, allocations: 0 / 456.7 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3269, allocations: 0 / 456.7 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003853/0.3273, allocations: 394.3 kB / 457.1 MB, free: 26.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3273, allocations: 6.938 kB / 457.1 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.3274, allocations: 19.27 kB / 457.1 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004732/0.3279, allocations: 188.5 kB / 457.3 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.3279, allocations: 7.125 kB / 457.3 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003118/0.3311, allocations: 3.545 MB / 460.9 MB, free: 23.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3311, allocations: 1.062 kB / 460.9 MB, free: 23.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/0.3326, allocations: 0.7834 MB / 461.7 MB, free: 23.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.288e-05/0.3327, allocations: 107.1 kB / 461.8 MB, free: 22.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.798e-05/0.3328, allocations: 14.72 kB / 461.8 MB, free: 22.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003391/0.3331, allocations: 43.03 kB / 461.8 MB, free: 22.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.521e-05/0.3332, allocations: 24.77 kB / 461.8 MB, free: 22.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.3333, allocations: 8.219 kB / 461.8 MB, free: 22.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005291/0.3338, allocations: 268.7 kB / 462.1 MB, free: 22.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3338, allocations: 1.281 kB / 462.1 MB, free: 22.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008135/0.3346, allocations: 139.1 kB / 462.2 MB, free: 22.79 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001867/0.3365, allocations: 1.322 MB / 463.6 MB, free: 21.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.3383, allocations: 1.057 MB / 464.6 MB, free: 21.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3383, allocations: 0 / 464.6 MB, free: 21.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005579/0.3389, allocations: 426.1 kB / 465 MB, free: 21.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/0.3394, allocations: 49.67 kB / 465.1 MB, free: 21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005149/0.3445, allocations: 2.515 MB / 467.6 MB, free: 19.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.3449, allocations: 0.8047 MB / 468.4 MB, free: 19.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002037/0.3451, allocations: 67.59 kB / 468.5 MB, free: 19.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.3453, allocations: 99.58 kB / 468.6 MB, free: 19.07 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3453, allocations: 0 / 468.6 MB, free: 19.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.3718, allocations: 8.64 MB / 477.2 MB, free: 18.01 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001252/0.3719, allocations: 222.1 kB / 477.4 MB, free: 17.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.947/2.319, allocations: 1.031 kB / 477.4 MB, free: 17.76 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/linux/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) Environment - environmentSimulation: