Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_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.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_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.0007969/0.0007968, allocations: 91.69 kB / 15.36 MB, free: 0.7383 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.00514/0.00514, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.425/1.425, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2191/0.2191, allocations: 22.35 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003628/0.0003628, allocations: 12 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2965, allocations: 55.97 MB / 438.7 MB, free: 39.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001067/0.2976, allocations: 0.8391 MB / 439.5 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.299, allocations: 1.295 MB / 440.8 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.2991, allocations: 0 / 440.8 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002751/0.2994, allocations: 54.66 kB / 440.9 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.2996, allocations: 81.11 kB / 440.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.2998, allocations: 120.3 kB / 441.1 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000313/0.3002, allocations: 373.6 kB / 441.4 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.3003, allocations: 51.75 kB / 441.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.3005, allocations: 137.3 kB / 441.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.3007, allocations: 175 kB / 441.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.3007, allocations: 13.31 kB / 441.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.187e-05/0.3008, allocations: 11.12 kB / 441.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.874e-05/0.3009, allocations: 105.5 kB / 441.9 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.134e-05/0.301, allocations: 130.6 kB / 442 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.3011, allocations: 243 kB / 442.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3011, allocations: 2.875 kB / 442.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3011, allocations: 0 / 442.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.3012, allocations: 3.938 kB / 442.3 MB, free: 37.32 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001563/0.3027, allocations: 0.7198 MB / 443 MB, free: 36.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.3028, allocations: 12.78 kB / 443 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.918e-05/0.3028, allocations: 47.75 kB / 443.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.662e-05/0.3029, allocations: 35.09 kB / 443.1 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000815/0.3037, allocations: 411.9 kB / 443.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.3037, allocations: 18.28 kB / 443.5 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.3037, allocations: 16.34 kB / 443.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002766/0.304, allocations: 188.8 kB / 443.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.3041, allocations: 3.719 kB / 443.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.3041, allocations: 4 kB / 443.7 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.3041, allocations: 3.781 kB / 443.7 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000311/0.3044, allocations: 199.5 kB / 443.9 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009286/0.3053, allocations: 0.7053 MB / 444.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004455/0.3058, allocations: 269 kB / 444.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.306, allocations: 128.1 kB / 445 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.306, allocations: 2.969 kB / 445 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.216e-05/0.306, allocations: 34.56 kB / 445 MB, free: 35.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.422e-06/0.306, allocations: 0 / 445 MB, free: 35.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001595/0.3076, allocations: 0.691 MB / 445.7 MB, free: 35.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.06e-05/0.3077, allocations: 54.22 kB / 445.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007945/0.3085, allocations: 425.1 kB / 446.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.3085, allocations: 36.08 kB / 446.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.843e-05/0.3086, allocations: 142.8 kB / 446.4 MB, free: 35.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.485e-05/0.3086, allocations: 92.67 kB / 446.5 MB, free: 35.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.776e-05/0.3087, allocations: 29.41 kB / 446.5 MB, free: 34.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.032e-05/0.3087, allocations: 341.6 kB / 446.8 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.3089, allocations: 104.3 kB / 446.9 MB, free: 34.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.309, allocations: 109.5 kB / 447 MB, free: 34.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001986/0.311, allocations: 0.7182 MB / 447.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.311, allocations: 0 / 447.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006983/0.3117, allocations: 435.4 kB / 448.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.3118, allocations: 10.12 kB / 448.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3118, allocations: 0 / 448.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002752/0.312, allocations: 98.61 kB / 448.3 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.3122, allocations: 43.67 kB / 448.3 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.3135, allocations: 1.731 MB / 450.1 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003915/0.3139, allocations: 71.36 kB / 450.1 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.3139, allocations: 6.938 kB / 450.1 MB, free: 32.72 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001611/0.3141, allocations: 185.8 kB / 450.3 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/0.3141, allocations: 30.5 kB / 450.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.173e-05/0.3142, allocations: 48.83 kB / 450.4 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.3142, allocations: 0 / 450.4 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3142, allocations: 7.469 kB / 450.4 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3142, allocations: 3.328 kB / 450.4 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002872/0.3145, allocations: 351.6 kB / 450.8 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3145, allocations: 3.328 kB / 450.8 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.3147, allocations: 29.12 kB / 450.8 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002399/0.315, allocations: 91.31 kB / 450.9 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.315, allocations: 11.59 kB / 450.9 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.3162, allocations: 1.731 MB / 452.6 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3162, allocations: 0 / 452.6 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008347/0.3171, allocations: 0.6185 MB / 453.2 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.606e-05/0.3171, allocations: 114.2 kB / 453.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.688e-05/0.3172, allocations: 14.56 kB / 453.4 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/0.3176, allocations: 61.19 kB / 453.4 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.413e-05/0.3177, allocations: 22.59 kB / 453.4 MB, free: 30.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.3177, allocations: 6.625 kB / 453.5 MB, free: 30.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006964/0.3184, allocations: 327.7 kB / 453.8 MB, free: 30.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3184, allocations: 6.625 kB / 453.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003018/0.3187, allocations: 64 kB / 453.8 MB, free: 30.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001001/0.3197, allocations: 1.164 MB / 455 MB, free: 29.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005594/0.3203, allocations: 403.5 kB / 455.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3203, allocations: 0 / 455.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003164/0.3206, allocations: 275.3 kB / 455.7 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.321, allocations: 51.77 kB / 455.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005474/0.3265, allocations: 3.671 MB / 459.4 MB, free: 26.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.3267, allocations: 0.7925 MB / 460.2 MB, free: 26.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001462/0.3269, allocations: 64.44 kB / 460.2 MB, free: 26.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.327, allocations: 90.34 kB / 460.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.327, allocations: 0 / 460.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01705/0.3441, allocations: 5.974 MB / 466.3 MB, free: 25.74 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001275/0.3442, allocations: 210.4 kB / 466.5 MB, free: 25.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.228, allocations: 0 / 466.5 MB, free: 25.48 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)