Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",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.001124/0.001124, allocations: 108 kB / 15.61 MB, free: 152 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.001213/0.001213, allocations: 194.1 kB / 16.53 MB, free: 6.699 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2122/0.2122, allocations: 22.36 MB / 312.7 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 71.88 kB / 380.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2785, allocations: 54.93 MB / 435.9 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002482/0.281, allocations: 1.303 MB / 437.2 MB, free: 38.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.2827, allocations: 1.394 MB / 438.6 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.2828, allocations: 5.062 kB / 438.6 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003469/0.2832, allocations: 102.2 kB / 438.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002397/0.2834, allocations: 122.7 kB / 438.8 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003097/0.2838, allocations: 198.9 kB / 439 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003953/0.2842, allocations: 0.5019 MB / 439.5 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.2843, allocations: 76.77 kB / 439.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.2846, allocations: 211.5 kB / 439.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002723/0.2848, allocations: 242.9 kB / 440 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.835e-05/0.2849, allocations: 26.47 kB / 440 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.69e-05/0.285, allocations: 31 kB / 440.1 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.2851, allocations: 125.3 kB / 440.2 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.2852, allocations: 150.2 kB / 440.3 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.2855, allocations: 320.1 kB / 440.6 MB, free: 36.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2855, allocations: 4 kB / 440.7 MB, free: 36.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2855, allocations: 0 / 440.7 MB, free: 36.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.2855, allocations: 0 / 440.7 MB, free: 36.85 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002269/0.2878, allocations: 0.8751 MB / 441.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.2879, allocations: 13.09 kB / 441.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.833e-05/0.2879, allocations: 47.89 kB / 441.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.517e-05/0.288, allocations: 37.88 kB / 441.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.2891, allocations: 488.8 kB / 442.1 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.644e-05/0.2892, allocations: 11.73 kB / 442.1 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.48e-05/0.2892, allocations: 13.84 kB / 442.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004393/0.2897, allocations: 224.5 kB / 442.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.2897, allocations: 0 / 442.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/0.2897, allocations: 6.906 kB / 442.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.2898, allocations: 7.922 kB / 442.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004012/0.2902, allocations: 232.4 kB / 442.6 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.2914, allocations: 0.758 MB / 443.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007271/0.2922, allocations: 328.8 kB / 443.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002332/0.2924, allocations: 137.2 kB / 443.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.2925, allocations: 2.969 kB / 443.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.2925, allocations: 40.95 kB / 443.8 MB, free: 35.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.164e-06/0.2925, allocations: 0 / 443.8 MB, free: 35.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001749/0.2943, allocations: 0.7843 MB / 444.6 MB, free: 34.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.2943, allocations: 58.25 kB / 444.7 MB, free: 34.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.2954, allocations: 0.502 MB / 445.2 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.2954, allocations: 29.7 kB / 445.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.2955, allocations: 179.4 kB / 445.4 MB, free: 34.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.551e-05/0.2956, allocations: 99.88 kB / 445.5 MB, free: 34.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.566e-05/0.2957, allocations: 45.12 kB / 445.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2959, allocations: 349.1 kB / 445.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.296, allocations: 113.2 kB / 446 MB, free: 33.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.2962, allocations: 119.9 kB / 446.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/0.2983, allocations: 0.7137 MB / 446.8 MB, free: 33.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2983, allocations: 0 / 446.8 MB, free: 33.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007495/0.2991, allocations: 482.4 kB / 447.3 MB, free: 33.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.2991, allocations: 5.25 kB / 447.3 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2991, allocations: 3.406 kB / 447.3 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003163/0.2994, allocations: 111.4 kB / 447.4 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.2996, allocations: 42.83 kB / 447.4 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001992/0.3016, allocations: 3.196 MB / 450.6 MB, free: 30.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/0.3021, allocations: 81.34 kB / 450.7 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.3022, allocations: 13.75 kB / 450.7 MB, free: 30.35 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (27): * Single equations (assignments): 25 * 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): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002076/0.3024, allocations: 185.8 kB / 450.9 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.268e-05/0.3024, allocations: 39.25 kB / 451 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.682e-05/0.3025, allocations: 49.36 kB / 451 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3025, allocations: 2.781 kB / 451 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.3026, allocations: 2.625 kB / 451 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3026, allocations: 7.281 kB / 451 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003507/0.3029, allocations: 392.5 kB / 451.4 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3029, allocations: 3.328 kB / 451.4 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.3031, allocations: 29.06 kB / 451.4 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002746/0.3034, allocations: 105.4 kB / 451.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.3035, allocations: 14 kB / 451.5 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.3052, allocations: 3.204 MB / 454.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3053, allocations: 0 / 454.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009514/0.3062, allocations: 0.6772 MB / 455.4 MB, free: 26.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.947e-05/0.3063, allocations: 119.2 kB / 455.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.337e-05/0.3064, allocations: 11.28 kB / 455.6 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000495/0.3069, allocations: 69.83 kB / 455.6 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.191e-05/0.3069, allocations: 22.78 kB / 455.6 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.307, allocations: 6.438 kB / 455.7 MB, free: 26.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009487/0.3079, allocations: 404.4 kB / 456 MB, free: 26.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3079, allocations: 0 / 456 MB, free: 26.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00038/0.3083, allocations: 76.34 kB / 456.1 MB, free: 26.2 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.x_scaled[1]) * 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 (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): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001145/0.3095, allocations: 1.206 MB / 457.3 MB, free: 25.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008417/0.3103, allocations: 0.5638 MB / 457.9 MB, free: 25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3103, allocations: 0.7812 kB / 457.9 MB, free: 25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004444/0.3108, allocations: 391.3 kB / 458.3 MB, free: 24.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004319/0.3112, allocations: 63.09 kB / 458.3 MB, free: 24.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006728/0.318, allocations: 4.032 MB / 462.4 MB, free: 22.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.3183, allocations: 0.8204 MB / 463.2 MB, free: 21.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001787/0.3185, allocations: 71.91 kB / 463.3 MB, free: 21.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.3186, allocations: 109.2 kB / 463.4 MB, free: 21.81 MB / 350.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3186, allocations: 4 kB / 463.4 MB, free: 21.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03186/0.3505, allocations: 7.572 MB / 470.9 MB, free: 21.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.154/9.505, allocations: 17.09 kB / 471 MB, free: 21.07 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Exploiting_2dof_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)