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.001592/0.001592, 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.001942/0.001942, allocations: 197 kB / 16.53 MB, free: 6.664 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.411/1.411, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.251/0.251, allocations: 22.36 MB / 312.8 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 63.89 kB / 380.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3575, allocations: 54.93 MB / 435.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002422/0.36, allocations: 1.144 MB / 437 MB, free: 38.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.3615, allocations: 1.297 MB / 438.3 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.3616, allocations: 0 / 438.3 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003556/0.362, allocations: 68.8 kB / 438.4 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000228/0.3622, allocations: 77.25 kB / 438.5 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002334/0.3625, allocations: 138.2 kB / 438.6 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000324/0.3628, allocations: 384.4 kB / 439 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.363, allocations: 54.52 kB / 439 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.3631, allocations: 158.2 kB / 439.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.3634, allocations: 189.4 kB / 439.4 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.321e-05/0.3634, allocations: 21.34 kB / 439.4 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.186e-05/0.3635, allocations: 27.97 kB / 439.4 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.3636, allocations: 113.5 kB / 439.5 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.945e-05/0.3637, allocations: 112.7 kB / 439.6 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.364, allocations: 263.2 kB / 439.9 MB, free: 37.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.364, allocations: 3.234 kB / 439.9 MB, free: 37.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.364, allocations: 3.938 kB / 439.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.364, allocations: 3.938 kB / 439.9 MB, free: 37.3 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.001843/0.3658, allocations: 0.7542 MB / 440.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.3659, allocations: 10.06 kB / 440.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.05e-05/0.3659, allocations: 44.67 kB / 440.7 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.419e-05/0.366, allocations: 30.97 kB / 440.7 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000891/0.3669, allocations: 416.1 kB / 441.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.3669, allocations: 10.59 kB / 441.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.367, allocations: 19.25 kB / 441.2 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003941/0.3674, allocations: 202.4 kB / 441.4 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.3674, allocations: 0 / 441.4 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.25e-05/0.3674, allocations: 7.719 kB / 441.4 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.3675, allocations: 7.922 kB / 441.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003879/0.3679, allocations: 199.4 kB / 441.6 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.369, allocations: 0.6893 MB / 442.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000534/0.3696, allocations: 272.5 kB / 442.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.3698, allocations: 126.7 kB / 442.7 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.3698, allocations: 6.812 kB / 442.7 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.3698, allocations: 37.47 kB / 442.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.473e-06/0.3698, allocations: 0 / 442.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001738/0.3716, allocations: 0.6903 MB / 443.4 MB, free: 35.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.3716, allocations: 58.28 kB / 443.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008278/0.3724, allocations: 417.9 kB / 443.9 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.3725, allocations: 25.7 kB / 443.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.98e-05/0.3726, allocations: 156.7 kB / 444 MB, free: 35.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.292e-05/0.3726, allocations: 86.19 kB / 444.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.164e-05/0.3727, allocations: 44.77 kB / 444.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.956e-05/0.3728, allocations: 343.5 kB / 444.5 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.373, allocations: 106 kB / 444.6 MB, free: 34.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.3731, allocations: 106.5 kB / 444.7 MB, free: 34.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002053/0.3752, allocations: 0.7071 MB / 445.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3752, allocations: 0 / 445.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007602/0.376, allocations: 441 kB / 445.8 MB, free: 34.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.376, allocations: 9.562 kB / 445.9 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.376, allocations: 0 / 445.9 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003099/0.3763, allocations: 94.12 kB / 445.9 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.3765, allocations: 42.77 kB / 446 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.378, allocations: 1.841 MB / 447.8 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003929/0.3784, allocations: 68.45 kB / 447.9 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.3785, allocations: 11.88 kB / 447.9 MB, free: 32.56 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.0001992/0.3787, allocations: 182.7 kB / 448.1 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.36e-05/0.3787, allocations: 26.89 kB / 448.1 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.952e-05/0.3788, allocations: 44.19 kB / 448.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.3788, allocations: 2.625 kB / 448.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3788, allocations: 4 kB / 448.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3788, allocations: 2.625 kB / 448.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000331/0.3792, allocations: 359.2 kB / 448.5 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3792, allocations: 0 / 448.5 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.3794, allocations: 30.14 kB / 448.5 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002393/0.3796, allocations: 96.67 kB / 448.6 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.3797, allocations: 3.188 kB / 448.6 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.381, allocations: 1.851 MB / 450.5 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.381, allocations: 10.36 kB / 450.5 MB, free: 30.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009195/0.3819, allocations: 0.6154 MB / 451.1 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.542e-05/0.382, allocations: 116.7 kB / 451.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.856e-05/0.382, allocations: 10.84 kB / 451.2 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000419/0.3825, allocations: 58.56 kB / 451.3 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.878e-05/0.3825, allocations: 26.58 kB / 451.3 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.3826, allocations: 3.656 kB / 451.3 MB, free: 30.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007167/0.3833, allocations: 328.2 kB / 451.7 MB, free: 29.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3833, allocations: 0 / 451.7 MB, free: 29.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.3836, allocations: 61.16 kB / 451.7 MB, free: 29.89 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.001064/0.3847, allocations: 1.159 MB / 452.9 MB, free: 29.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006828/0.3854, allocations: 440.6 kB / 453.3 MB, free: 28.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3854, allocations: 0 / 453.3 MB, free: 28.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003478/0.3857, allocations: 275.2 kB / 453.6 MB, free: 28.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004028/0.3862, allocations: 49.59 kB / 453.6 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00581/0.392, allocations: 3.571 MB / 457.2 MB, free: 26.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.3923, allocations: 0.7937 MB / 458 MB, free: 26.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001661/0.3925, allocations: 59.25 kB / 458 MB, free: 26.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.3926, allocations: 90.06 kB / 458.1 MB, free: 25.96 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3926, allocations: 0 / 458.1 MB, free: 25.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.4223, allocations: 6.413 MB / 464.5 MB, free: 25.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.246/9.668, allocations: 14.95 kB / 464.6 MB, free: 25.3 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)