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.0008459/0.0008458, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.00632/0.00632, allocations: 169.8 kB / 16.27 MB, free: 6.648 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.427/1.427, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2067/0.2067, allocations: 22.35 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003184, allocations: 16 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2962, allocations: 55.97 MB / 438.7 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001149/0.2974, allocations: 0.7785 MB / 439.5 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.2986, allocations: 1.242 MB / 440.7 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.2987, allocations: 3.938 kB / 440.7 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.299, allocations: 35.88 kB / 440.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.2991, allocations: 67.3 kB / 440.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001741/0.2993, allocations: 95.06 kB / 440.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002411/0.2996, allocations: 280.5 kB / 441.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.2997, allocations: 42.69 kB / 441.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.2998, allocations: 103.5 kB / 441.3 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001774/0.3, allocations: 148.5 kB / 441.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.323e-05/0.3, allocations: 8.281 kB / 441.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.363e-05/0.3001, allocations: 7.438 kB / 441.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.274e-05/0.3002, allocations: 82.52 kB / 441.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.479e-05/0.3003, allocations: 110.7 kB / 441.7 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.3004, allocations: 203.1 kB / 441.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3004, allocations: 7.375 kB / 441.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3004, allocations: 0 / 441.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3005, allocations: 3.5 kB / 441.9 MB, free: 37.46 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.001378/0.3018, allocations: 0.6401 MB / 442.5 MB, free: 37.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.3019, allocations: 12.53 kB / 442.5 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.906e-05/0.3019, allocations: 47.81 kB / 442.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.302, allocations: 24.19 kB / 442.6 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007255/0.3027, allocations: 363 kB / 442.9 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.3027, allocations: 9.812 kB / 443 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.332e-05/0.3028, allocations: 13.03 kB / 443 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.303, allocations: 173.9 kB / 443.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.3031, allocations: 3.938 kB / 443.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.3031, allocations: 4 kB / 443.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.3031, allocations: 2.812 kB / 443.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002661/0.3034, allocations: 170 kB / 443.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000843/0.3042, allocations: 0.6335 MB / 443.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.3045, allocations: 210.4 kB / 444.2 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.3047, allocations: 109.8 kB / 444.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.3047, allocations: 2.312 kB / 444.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.3047, allocations: 34.56 kB / 444.3 MB, free: 36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.282e-06/0.3047, allocations: 4 kB / 444.3 MB, free: 35.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001615/0.3064, allocations: 0.6391 MB / 444.9 MB, free: 35.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.143e-05/0.3064, allocations: 58.38 kB / 445 MB, free: 35.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000679/0.3071, allocations: 344 kB / 445.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.3071, allocations: 29.7 kB / 445.4 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.958e-05/0.3072, allocations: 143.5 kB / 445.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.446e-05/0.3072, allocations: 75.5 kB / 445.6 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.652e-05/0.3073, allocations: 27.33 kB / 445.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.573e-05/0.3073, allocations: 335.8 kB / 445.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.3075, allocations: 90.42 kB / 446 MB, free: 34.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.3076, allocations: 97.31 kB / 446.1 MB, free: 34.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001782/0.3094, allocations: 0.6215 MB / 446.7 MB, free: 34.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3094, allocations: 0 / 446.7 MB, free: 34.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000657/0.3101, allocations: 402.7 kB / 447.1 MB, free: 34.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.3101, allocations: 7.031 kB / 447.1 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.3101, allocations: 4 kB / 447.1 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002777/0.3104, allocations: 99.83 kB / 447.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.3106, allocations: 33.62 kB / 447.3 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.3119, allocations: 1.731 MB / 449 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.3123, allocations: 66.2 kB / 449.1 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.3123, allocations: 9.469 kB / 449.1 MB, free: 33.04 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] 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 (21): * Single equations (assignments): 20 * 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.0001552/0.3124, allocations: 171.5 kB / 449.2 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.667e-05/0.3125, allocations: 22.69 kB / 449.3 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.739e-05/0.3126, allocations: 40.14 kB / 449.3 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3126, allocations: 2.188 kB / 449.3 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3126, allocations: 0 / 449.3 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.3126, allocations: 2.219 kB / 449.3 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002713/0.3129, allocations: 323.9 kB / 449.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.3129, allocations: 192 / 449.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.3131, allocations: 31.48 kB / 449.7 MB, free: 32.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002458/0.3133, allocations: 96.42 kB / 449.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.3134, allocations: 2.875 kB / 449.8 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/0.3146, allocations: 1.735 MB / 451.5 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3146, allocations: 0 / 451.5 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008045/0.3154, allocations: 0.568 MB / 452.1 MB, free: 30.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.3154, allocations: 101 kB / 452.2 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.3155, allocations: 11.83 kB / 452.2 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000358/0.3158, allocations: 42.02 kB / 452.2 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.151e-05/0.3159, allocations: 17.56 kB / 452.2 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.3159, allocations: 10.66 kB / 452.2 MB, free: 30.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005893/0.3165, allocations: 275.3 kB / 452.5 MB, free: 30.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3165, allocations: 0 / 452.5 MB, free: 30.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002973/0.3168, allocations: 54.09 kB / 452.6 MB, free: 30.56 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 (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.0009578/0.3178, allocations: 1.093 MB / 453.6 MB, free: 29.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005046/0.3183, allocations: 382.3 kB / 454 MB, free: 29.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3183, allocations: 0 / 454 MB, free: 29.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002981/0.3186, allocations: 254.5 kB / 454.3 MB, free: 29.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.319, allocations: 42.14 kB / 454.3 MB, free: 29.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004317/0.3233, allocations: 3.209 MB / 457.5 MB, free: 27.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000165/0.3235, allocations: 0.7652 MB / 458.3 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.3236, allocations: 54.25 kB / 458.3 MB, free: 26.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.843e-05/0.3237, allocations: 74.11 kB / 458.4 MB, free: 26.74 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3237, allocations: 0 / 458.4 MB, free: 26.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.34, allocations: 5.17 MB / 463.6 MB, free: 26.38 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/0.3402, allocations: 200.4 kB / 463.8 MB, free: 26.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.908/2.249, allocations: 0 / 463.8 MB, free: 26.13 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/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)