Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",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.000754/0.000754, allocations: 91.61 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.000827/0.0008271, 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.393/1.393, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2194/0.2194, allocations: 22.34 MB / 313.4 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004172/0.0004173, allocations: 8 kB / 382 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3163, allocations: 55.98 MB / 438 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001078/0.3174, allocations: 0.7513 MB / 438.8 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.3186, allocations: 1.217 MB / 440 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.579e-05/0.3187, allocations: 3.062 kB / 440 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002697/0.3189, allocations: 44.59 kB / 440 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.3191, allocations: 52.92 kB / 440.1 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001634/0.3193, allocations: 85.38 kB / 440.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.3195, allocations: 259.8 kB / 440.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.3196, allocations: 28.75 kB / 440.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.3198, allocations: 130.8 kB / 440.6 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.32, allocations: 149.5 kB / 440.7 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.003e-05/0.32, allocations: 5.5 kB / 440.7 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.584e-05/0.3201, allocations: 11.12 kB / 440.7 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.099e-05/0.3202, allocations: 82.38 kB / 440.8 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.625e-05/0.3202, allocations: 45.39 kB / 440.9 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.3203, allocations: 169.2 kB / 441 MB, free: 37.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3203, allocations: 0 / 441 MB, free: 37.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3203, allocations: 0 / 441 MB, free: 37.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.3204, allocations: 0 / 441 MB, free: 37.55 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001273/0.3216, allocations: 0.6416 MB / 441.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.3217, allocations: 8.438 kB / 441.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.121e-05/0.3217, allocations: 47.53 kB / 441.7 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.474e-05/0.3218, allocations: 22.97 kB / 441.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006242/0.3224, allocations: 354.8 kB / 442.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.3224, allocations: 9.219 kB / 442.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.927e-05/0.3225, allocations: 12.88 kB / 442.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.3227, allocations: 172.3 kB / 442.3 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.3228, allocations: 3.953 kB / 442.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.3228, allocations: 4 kB / 442.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.3228, allocations: 2.938 kB / 442.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002732/0.3231, allocations: 176.5 kB / 442.5 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008694/0.324, allocations: 0.623 MB / 443.1 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.3243, allocations: 218 kB / 443.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.3244, allocations: 110.5 kB / 443.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.3245, allocations: 2.688 kB / 443.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/0.3245, allocations: 41.5 kB / 443.5 MB, free: 36.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.433e-06/0.3245, allocations: 0 / 443.5 MB, free: 36.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001503/0.326, allocations: 0.6347 MB / 444.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.3261, allocations: 54.38 kB / 444.1 MB, free: 35.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006015/0.3267, allocations: 351.1 kB / 444.5 MB, free: 35.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.3267, allocations: 32.8 kB / 444.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.3268, allocations: 139.8 kB / 444.7 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.522e-05/0.3268, allocations: 71.17 kB / 444.7 MB, free: 35.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/0.3269, allocations: 7 kB / 444.7 MB, free: 35.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.935e-05/0.3269, allocations: 334.8 kB / 445.1 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.3271, allocations: 88.97 kB / 445.1 MB, free: 35.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.3272, allocations: 102 kB / 445.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.3274, allocations: 103.4 kB / 445.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3274, allocations: 0 / 445.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006528/0.3281, allocations: 397.6 kB / 445.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.3281, allocations: 7.938 kB / 445.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.3281, allocations: 0 / 445.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/0.3285, allocations: 93.97 kB / 445.8 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.3286, allocations: 35.66 kB / 445.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.3301, allocations: 1.726 MB / 447.6 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.3304, allocations: 58.73 kB / 447.6 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.3304, allocations: 9.172 kB / 447.7 MB, free: 33.3 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: 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 (21): * Single equations (assignments): 20 * 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.000226/0.3307, allocations: 170.5 kB / 447.8 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.595e-05/0.3307, allocations: 19.48 kB / 447.8 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.296e-05/0.3308, allocations: 40.38 kB / 447.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3308, allocations: 7.594 kB / 447.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.3308, allocations: 0 / 447.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.3308, allocations: 0 / 447.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003561/0.3312, allocations: 332.4 kB / 448.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3312, allocations: 4 kB / 448.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.3314, allocations: 27.83 kB / 448.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002426/0.3316, allocations: 94.77 kB / 448.3 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.3317, allocations: 7.062 kB / 448.3 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/0.3331, allocations: 1.735 MB / 450.1 MB, free: 31.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3331, allocations: 0 / 450.1 MB, free: 31.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000838/0.3339, allocations: 0.5544 MB / 450.6 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.241e-05/0.334, allocations: 98.98 kB / 450.7 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.3341, allocations: 11 kB / 450.7 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/0.3344, allocations: 48.98 kB / 450.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.351e-05/0.3345, allocations: 12.3 kB / 450.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.3345, allocations: 19.77 kB / 450.8 MB, free: 30.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005737/0.3351, allocations: 274.6 kB / 451.1 MB, free: 30.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3351, allocations: 0 / 451.1 MB, free: 30.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003473/0.3354, allocations: 58.78 kB / 451.1 MB, free: 30.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * 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.001157/0.3366, allocations: 1.096 MB / 452.2 MB, free: 30 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006685/0.3373, allocations: 380.7 kB / 452.6 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3373, allocations: 7.938 kB / 452.6 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003577/0.3376, allocations: 243.1 kB / 452.9 MB, free: 29.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004535/0.3381, allocations: 37.59 kB / 452.9 MB, free: 29.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004454/0.3426, allocations: 2.005 MB / 454.9 MB, free: 28.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.3429, allocations: 0.7719 MB / 455.7 MB, free: 28.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001602/0.3431, allocations: 48.2 kB / 455.7 MB, free: 28.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.3432, allocations: 70.02 kB / 455.8 MB, free: 27.96 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3432, allocations: 4 kB / 455.8 MB, free: 27.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.3652, allocations: 5.229 MB / 461 MB, free: 27.6 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/0.3654, allocations: 197.7 kB / 461.2 MB, free: 27.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/2.169, allocations: 5.188 kB / 461.2 MB, free: 27.35 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1) Environment - environmentSimulation: