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.001485/0.001485, allocations: 108 kB / 15.6 MB, free: 132 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.001221/0.001221, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.418/1.418, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2184/0.2184, allocations: 22.36 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001508, allocations: 63.91 kB / 380.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3213, allocations: 54.94 MB / 435.9 MB, free: 39.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002413/0.3238, allocations: 1.069 MB / 437 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.3254, allocations: 1.243 MB / 438.2 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.3255, allocations: 2.75 kB / 438.2 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003862/0.3259, allocations: 44.67 kB / 438.2 MB, free: 38.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001863/0.3261, allocations: 71.33 kB / 438.3 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.3264, allocations: 104.9 kB / 438.4 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003578/0.3267, allocations: 298.7 kB / 438.7 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.3269, allocations: 38.97 kB / 438.7 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001735/0.3271, allocations: 122.2 kB / 438.9 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.3273, allocations: 163.7 kB / 439 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.084e-05/0.3274, allocations: 17.69 kB / 439 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.015e-05/0.3275, allocations: 17.91 kB / 439.1 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.3276, allocations: 90.41 kB / 439.1 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.3277, allocations: 98.72 kB / 439.2 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.328, allocations: 222 kB / 439.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.835e-05/0.328, allocations: 0 / 439.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.328, allocations: 0 / 439.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.328, allocations: 0 / 439.5 MB, free: 37.71 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.001559/0.3296, allocations: 0.6767 MB / 440.1 MB, free: 37.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.3296, allocations: 7.781 kB / 440.1 MB, free: 37.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.077e-05/0.3297, allocations: 46.06 kB / 440.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.905e-05/0.3297, allocations: 24.28 kB / 440.2 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007123/0.3305, allocations: 363.3 kB / 440.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.3305, allocations: 10.28 kB / 440.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.3305, allocations: 13.22 kB / 440.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.3308, allocations: 167.8 kB / 440.8 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.3308, allocations: 6.812 kB / 440.8 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.3309, allocations: 4 kB / 440.8 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.3309, allocations: 3.594 kB / 440.8 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002725/0.3311, allocations: 173.6 kB / 440.9 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008798/0.332, allocations: 0.623 MB / 441.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002957/0.3323, allocations: 214 kB / 441.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.3325, allocations: 114.6 kB / 441.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.3325, allocations: 3.719 kB / 441.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.177e-05/0.3325, allocations: 30.56 kB / 441.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.322e-06/0.3326, allocations: 0 / 441.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001658/0.3342, allocations: 0.641 MB / 442.6 MB, free: 35.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.723e-05/0.3343, allocations: 58.19 kB / 442.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006639/0.3349, allocations: 340.8 kB / 442.9 MB, free: 35.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.335, allocations: 25.7 kB / 443 MB, free: 35.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.98e-05/0.335, allocations: 137.6 kB / 443.1 MB, free: 35.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.541e-05/0.3351, allocations: 77.91 kB / 443.2 MB, free: 35.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-05/0.3352, allocations: 41.41 kB / 443.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.705e-05/0.3352, allocations: 342.2 kB / 443.6 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.3354, allocations: 83.31 kB / 443.6 MB, free: 35.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.3355, allocations: 101.8 kB / 443.7 MB, free: 35.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001803/0.3373, allocations: 0.6131 MB / 444.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3373, allocations: 2.562 kB / 444.4 MB, free: 34.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00066/0.338, allocations: 402.7 kB / 444.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.338, allocations: 9.188 kB / 444.8 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.338, allocations: 0 / 444.8 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002926/0.3383, allocations: 94.34 kB / 444.8 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.3385, allocations: 36.44 kB / 444.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.3399, allocations: 1.853 MB / 446.7 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003482/0.3403, allocations: 60.2 kB / 446.8 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.3403, allocations: 9.219 kB / 446.8 MB, free: 33.17 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.0001716/0.3405, allocations: 160.8 kB / 447 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.3406, allocations: 25.62 kB / 447 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.964e-05/0.3406, allocations: 32.84 kB / 447 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.3406, allocations: 2.094 kB / 447 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.3406, allocations: 2.094 kB / 447 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.3407, allocations: 7.266 kB / 447 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002917/0.341, allocations: 329.8 kB / 447.3 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.341, allocations: 0 / 447.3 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.3411, allocations: 26.45 kB / 447.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002449/0.3414, allocations: 94.25 kB / 447.5 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.3414, allocations: 10 kB / 447.5 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00128/0.3427, allocations: 1.852 MB / 449.3 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3427, allocations: 2.719 kB / 449.3 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007843/0.3435, allocations: 0.5554 MB / 449.9 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-05/0.3436, allocations: 106.3 kB / 450 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.3436, allocations: 6.438 kB / 450 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003532/0.344, allocations: 44.22 kB / 450 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.113e-05/0.3441, allocations: 28.17 kB / 450.1 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.3441, allocations: 5.594 kB / 450.1 MB, free: 30.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005906/0.3447, allocations: 266.2 kB / 450.3 MB, free: 30.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3447, allocations: 0 / 450.3 MB, free: 30.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003154/0.345, allocations: 60.22 kB / 450.4 MB, free: 30.58 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.0009895/0.346, allocations: 1.101 MB / 451.5 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005964/0.3466, allocations: 386.4 kB / 451.9 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3466, allocations: 0 / 451.9 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003137/0.347, allocations: 251.6 kB / 452.1 MB, free: 29.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003722/0.3473, allocations: 37.84 kB / 452.2 MB, free: 29.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004499/0.3518, allocations: 3.134 MB / 455.3 MB, free: 27.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/0.3521, allocations: 0.7772 MB / 456.1 MB, free: 26.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.3522, allocations: 46.36 kB / 456.1 MB, free: 26.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.3524, allocations: 70.8 kB / 456.2 MB, free: 26.83 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3524, allocations: 4 kB / 456.2 MB, free: 26.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.3804, allocations: 5.579 MB / 461.8 MB, free: 26.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.316/9.697, allocations: 23.36 kB / 461.8 MB, free: 26.22 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof_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_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)