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.001025/0.001025, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001236/0.001236, allocations: 168.7 kB / 15.95 MB, free: 200 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.406/1.406, allocations: 223.2 MB / 240 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2349/0.2349, allocations: 22.36 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002991, allocations: 8 kB / 382.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3045, allocations: 55.98 MB / 438 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001207/0.3057, allocations: 0.7986 MB / 438.8 MB, free: 38.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.3073, allocations: 1.27 MB / 440.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.3074, allocations: 0 / 440.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003458/0.3077, allocations: 53.23 kB / 440.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.308, allocations: 77.72 kB / 440.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.3082, allocations: 111.7 kB / 440.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003636/0.3086, allocations: 324.3 kB / 440.7 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.3087, allocations: 40.38 kB / 440.7 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001975/0.3089, allocations: 175.2 kB / 440.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.3092, allocations: 181.1 kB / 441 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.439e-05/0.3093, allocations: 13.72 kB / 441.1 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.251e-05/0.3093, allocations: 11.38 kB / 441.1 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.3094, allocations: 91.08 kB / 441.2 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.693e-05/0.3095, allocations: 58.17 kB / 441.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.3096, allocations: 194.6 kB / 441.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3096, allocations: 3.938 kB / 441.4 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3097, allocations: 0 / 441.4 MB, free: 37.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.3097, allocations: 0 / 441.4 MB, free: 37.28 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.00153/0.3112, allocations: 0.7171 MB / 442.1 MB, free: 36.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.3113, allocations: 11.25 kB / 442.1 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.566e-05/0.3113, allocations: 48.88 kB / 442.2 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.3114, allocations: 29.69 kB / 442.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007462/0.3121, allocations: 412 kB / 442.6 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.3121, allocations: 11.72 kB / 442.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.3122, allocations: 10.06 kB / 442.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.3125, allocations: 193.9 kB / 442.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.3125, allocations: 10.92 kB / 442.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.3125, allocations: 4 kB / 442.8 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.3125, allocations: 2.781 kB / 442.8 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003147/0.3129, allocations: 201.3 kB / 443 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009474/0.3138, allocations: 0.7063 MB / 443.7 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004807/0.3143, allocations: 262.3 kB / 444 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.3145, allocations: 128.1 kB / 444.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.3145, allocations: 2.688 kB / 444.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.527e-05/0.3146, allocations: 45 kB / 444.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.415e-06/0.3146, allocations: 0 / 444.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001559/0.3161, allocations: 0.6958 MB / 444.9 MB, free: 35.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.485e-05/0.3162, allocations: 54.06 kB / 444.9 MB, free: 35.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007268/0.3169, allocations: 420.3 kB / 445.3 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.3169, allocations: 25.7 kB / 445.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.102e-05/0.317, allocations: 149.6 kB / 445.5 MB, free: 35.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.15e-05/0.3171, allocations: 86.3 kB / 445.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.155e-05/0.3171, allocations: 0 / 445.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.067e-05/0.3172, allocations: 346 kB / 445.9 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.3173, allocations: 101.5 kB / 446 MB, free: 34.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.3175, allocations: 106.4 kB / 446.1 MB, free: 34.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.3177, allocations: 125 kB / 446.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3177, allocations: 0 / 446.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006894/0.3184, allocations: 447.2 kB / 446.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.3184, allocations: 5.094 kB / 446.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.3184, allocations: 0 / 446.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003082/0.3187, allocations: 97.06 kB / 446.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.3189, allocations: 40.5 kB / 446.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/0.3202, allocations: 1.733 MB / 448.6 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.3206, allocations: 71.12 kB / 448.6 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.3206, allocations: 6.438 kB / 448.6 MB, free: 32.84 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] P.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] HF.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001876/0.3208, allocations: 177.7 kB / 448.8 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.854e-05/0.3209, allocations: 26.16 kB / 448.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.341e-05/0.321, allocations: 47.53 kB / 448.9 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.321, allocations: 2.531 kB / 448.9 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.321, allocations: 2.594 kB / 448.9 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.321, allocations: 0 / 448.9 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003237/0.3213, allocations: 367 kB / 449.2 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3213, allocations: 2.875 kB / 449.2 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.3215, allocations: 29.94 kB / 449.3 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002296/0.3218, allocations: 89.25 kB / 449.4 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.3218, allocations: 15.2 kB / 449.4 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.3231, allocations: 1.729 MB / 451.1 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3231, allocations: 2.625 kB / 451.1 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008199/0.3239, allocations: 0.6134 MB / 451.7 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.724e-05/0.324, allocations: 125.9 kB / 451.8 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.825e-05/0.324, allocations: 10.81 kB / 451.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003623/0.3244, allocations: 59.03 kB / 451.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.016e-05/0.3245, allocations: 18.91 kB / 451.9 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.3245, allocations: 9.375 kB / 451.9 MB, free: 30.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006272/0.3251, allocations: 331.4 kB / 452.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3251, allocations: 0 / 452.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003099/0.3254, allocations: 60.62 kB / 452.3 MB, free: 30.29 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001039/0.3265, allocations: 1.16 MB / 453.5 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005961/0.3271, allocations: 411.6 kB / 453.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3271, allocations: 0 / 453.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003143/0.3274, allocations: 271.7 kB / 454.2 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.3278, allocations: 47.41 kB / 454.2 MB, free: 29.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.3319, allocations: 2.425 MB / 456.6 MB, free: 28.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.3322, allocations: 0.7881 MB / 457.4 MB, free: 27.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001584/0.3323, allocations: 64.89 kB / 457.5 MB, free: 27.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.3325, allocations: 88.14 kB / 457.6 MB, free: 27.27 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3325, allocations: 3.938 kB / 457.6 MB, free: 27.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.3537, allocations: 6.047 MB / 463.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000279/0.3541, allocations: 195 kB / 463.8 MB, free: 26.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/2.174, allocations: 0 / 463.8 MB, free: 26.61 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/linux/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) Environment - environmentSimulation: