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.0009572/0.0009571, allocations: 92.39 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.00128/0.00128, 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.422/1.422, allocations: 223.2 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2252/0.2252, allocations: 22.35 MB / 313.4 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003357, allocations: 8 kB / 382 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3058, allocations: 55.97 MB / 438 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.001269/0.3071, allocations: 0.9401 MB / 439 MB, free: 38.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.3085, allocations: 1.376 MB / 440.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.572e-05/0.3086, allocations: 3.062 kB / 440.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003184/0.3089, allocations: 84.25 kB / 440.4 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.3092, allocations: 109.5 kB / 440.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.3094, allocations: 157.6 kB / 440.7 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003802/0.3098, allocations: 443 kB / 441.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.31, allocations: 56.88 kB / 441.2 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.3102, allocations: 227.1 kB / 441.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002654/0.3104, allocations: 224.3 kB / 441.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.3105, allocations: 16.47 kB / 441.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.42e-05/0.3105, allocations: 13.97 kB / 441.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.3106, allocations: 105.9 kB / 441.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.723e-05/0.3107, allocations: 68.64 kB / 441.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.3109, allocations: 231.8 kB / 442 MB, free: 36.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3109, allocations: 0 / 442 MB, free: 36.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3109, allocations: 0 / 442 MB, free: 36.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.3109, allocations: 0 / 442 MB, free: 36.99 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.001818/0.3128, allocations: 0.8313 MB / 442.9 MB, free: 36.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.3128, allocations: 11.91 kB / 442.9 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.924e-05/0.3129, allocations: 51.81 kB / 442.9 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.7e-05/0.3129, allocations: 36.94 kB / 443 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009299/0.3139, allocations: 482.6 kB / 443.4 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.3139, allocations: 21.28 kB / 443.5 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.3139, allocations: 16.78 kB / 443.5 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003495/0.3143, allocations: 210.5 kB / 443.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3143, allocations: 0 / 443.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.3143, allocations: 10.72 kB / 443.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.3144, allocations: 2.844 kB / 443.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003706/0.3147, allocations: 229 kB / 443.9 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.3158, allocations: 0.7747 MB / 444.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000598/0.3164, allocations: 320.8 kB / 445 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/0.3166, allocations: 139.1 kB / 445.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.3166, allocations: 0 / 445.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.3167, allocations: 41.09 kB / 445.2 MB, free: 35.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.152e-06/0.3167, allocations: 0 / 445.2 MB, free: 35.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001575/0.3182, allocations: 0.7917 MB / 446 MB, free: 34.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.3183, allocations: 57.64 kB / 446 MB, free: 34.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008997/0.3192, allocations: 0.5069 MB / 446.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.3192, allocations: 29.7 kB / 446.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.985e-05/0.3193, allocations: 170 kB / 446.7 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.305e-05/0.3194, allocations: 96.62 kB / 446.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.322e-05/0.3194, allocations: 10 kB / 446.8 MB, free: 34.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.594e-05/0.3195, allocations: 351 kB / 447.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.3197, allocations: 109.5 kB / 447.3 MB, free: 34.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.3199, allocations: 121.3 kB / 447.4 MB, free: 33.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.3201, allocations: 123.2 kB / 447.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3201, allocations: 0 / 447.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007483/0.3208, allocations: 478.7 kB / 448 MB, free: 33.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3209, allocations: 4.969 kB / 448 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.3209, allocations: 7.875 kB / 448 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003574/0.3212, allocations: 104 kB / 448.1 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.3214, allocations: 38.77 kB / 448.1 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/0.3235, allocations: 2.989 MB / 451.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004038/0.3239, allocations: 85.97 kB / 451.2 MB, free: 30.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.3239, allocations: 10.47 kB / 451.2 MB, free: 30.91 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[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] 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 (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: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002332/0.3242, allocations: 185.1 kB / 451.4 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.061e-05/0.3242, allocations: 35.97 kB / 451.4 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.3243, allocations: 50.89 kB / 451.5 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3243, allocations: 6.875 kB / 451.5 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3243, allocations: 2.875 kB / 451.5 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3244, allocations: 0 / 451.5 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000364/0.3247, allocations: 397 kB / 451.9 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3247, allocations: 10.58 kB / 451.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.3249, allocations: 34.73 kB / 451.9 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002541/0.3252, allocations: 107.3 kB / 452 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.3252, allocations: 6.781 kB / 452 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001778/0.327, allocations: 2.989 MB / 455 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.327, allocations: 0 / 455 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009621/0.328, allocations: 0.6641 MB / 455.7 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.424e-05/0.3281, allocations: 123.7 kB / 455.8 MB, free: 27.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.5e-05/0.3282, allocations: 11.45 kB / 455.8 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000425/0.3286, allocations: 74.97 kB / 455.9 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.363e-05/0.3287, allocations: 17.2 kB / 455.9 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.3287, allocations: 9.25 kB / 455.9 MB, free: 27.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008164/0.3295, allocations: 406.8 kB / 456.3 MB, free: 26.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3295, allocations: 0 / 456.3 MB, free: 26.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003441/0.3299, allocations: 75.91 kB / 456.4 MB, free: 26.98 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 (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: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001122/0.331, allocations: 1.22 MB / 457.6 MB, free: 26.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007592/0.3318, allocations: 0.5344 MB / 458.1 MB, free: 25.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3318, allocations: 0 / 458.1 MB, free: 25.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000426/0.3322, allocations: 403.5 kB / 458.5 MB, free: 25.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.3327, allocations: 61.67 kB / 458.6 MB, free: 25.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00568/0.3384, allocations: 2.84 MB / 461.4 MB, free: 24.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.3387, allocations: 0.8213 MB / 462.3 MB, free: 23.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001875/0.3388, allocations: 67.75 kB / 462.3 MB, free: 23.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.339, allocations: 112.3 kB / 462.4 MB, free: 23.5 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.339, allocations: 0 / 462.4 MB, free: 23.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.3624, allocations: 7.237 MB / 469.7 MB, free: 23 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001503/0.3626, allocations: 192.5 kB / 469.9 MB, free: 22.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/2.238, allocations: 7.062 kB / 469.9 MB, free: 22.76 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/linux/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) Environment - environmentSimulation: