Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_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.001604/0.001604, 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.001911/0.001912, allocations: 194.6 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.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2172/0.2172, allocations: 22.35 MB / 312.7 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 67.91 kB / 380.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2889, allocations: 54.93 MB / 435.9 MB, free: 39.51 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002501/0.2914, allocations: 1.301 MB / 437.2 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.2929, allocations: 1.403 MB / 438.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.293, allocations: 2.938 kB / 438.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003652/0.2934, allocations: 96.38 kB / 438.7 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003061/0.2937, allocations: 127.6 kB / 438.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00041/0.2942, allocations: 197.6 kB / 439 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00059/0.2948, allocations: 0.511 MB / 439.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002277/0.295, allocations: 65.88 kB / 439.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000286/0.2953, allocations: 215.4 kB / 439.8 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003027/0.2956, allocations: 245.4 kB / 440 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.758e-05/0.2957, allocations: 25.75 kB / 440 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.947e-05/0.2957, allocations: 32.19 kB / 440.1 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.2959, allocations: 122 kB / 440.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.296, allocations: 141.4 kB / 440.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.2963, allocations: 319.9 kB / 440.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.2963, allocations: 4 kB / 440.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2963, allocations: 0 / 440.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.2963, allocations: 3.938 kB / 440.6 MB, free: 36.75 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002114/0.2984, allocations: 0.8658 MB / 441.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.2985, allocations: 10.28 kB / 441.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.894e-05/0.2985, allocations: 56 kB / 441.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.275e-05/0.2986, allocations: 38.06 kB / 441.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.2996, allocations: 492.9 kB / 442.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.2997, allocations: 14.36 kB / 442.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.308e-05/0.2997, allocations: 24.91 kB / 442.1 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.3001, allocations: 215 kB / 442.3 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.3001, allocations: 0 / 442.3 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.2e-05/0.3001, allocations: 4 kB / 442.4 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.3001, allocations: 3.969 kB / 442.4 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003669/0.3005, allocations: 237.7 kB / 442.6 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.3016, allocations: 0.7557 MB / 443.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006166/0.3022, allocations: 334.3 kB / 443.7 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.3024, allocations: 137.3 kB / 443.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.3025, allocations: 6.969 kB / 443.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.605e-05/0.3025, allocations: 37.44 kB / 443.8 MB, free: 35.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.553e-06/0.3025, allocations: 0 / 443.8 MB, free: 35.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001688/0.3042, allocations: 0.7828 MB / 444.6 MB, free: 34.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.3042, allocations: 66 kB / 444.7 MB, free: 34.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.3052, allocations: 0.5026 MB / 445.2 MB, free: 34.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.3053, allocations: 33.03 kB / 445.2 MB, free: 34.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.537e-05/0.3054, allocations: 172 kB / 445.4 MB, free: 34.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.487e-05/0.3055, allocations: 93.02 kB / 445.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.398e-05/0.3055, allocations: 49.39 kB / 445.5 MB, free: 34.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.079e-05/0.3056, allocations: 348.9 kB / 445.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.3058, allocations: 118.2 kB / 446 MB, free: 33.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.306, allocations: 109.1 kB / 446.1 MB, free: 33.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001963/0.3079, allocations: 0.714 MB / 446.8 MB, free: 33.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.308, allocations: 0 / 446.8 MB, free: 33.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007514/0.3087, allocations: 491 kB / 447.3 MB, free: 33.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.3087, allocations: 5.812 kB / 447.3 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3087, allocations: 0 / 447.3 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003151/0.3091, allocations: 113.1 kB / 447.4 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.3092, allocations: 36.64 kB / 447.4 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001917/0.3112, allocations: 3.199 MB / 450.6 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004704/0.3117, allocations: 79.02 kB / 450.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.3117, allocations: 13.25 kB / 450.7 MB, free: 30.24 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000197/0.3119, allocations: 176.3 kB / 450.9 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.985e-05/0.312, allocations: 39.28 kB / 450.9 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.609e-05/0.312, allocations: 52.3 kB / 451 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3121, allocations: 2.625 kB / 451 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.3121, allocations: 2.672 kB / 451 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3121, allocations: 3.984 kB / 451 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003343/0.3124, allocations: 406.7 kB / 451.4 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.3124, allocations: 0 / 451.4 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001968/0.3126, allocations: 27 kB / 451.4 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002795/0.3129, allocations: 115 kB / 451.5 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/0.313, allocations: 13.25 kB / 451.6 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/0.3147, allocations: 3.195 MB / 454.7 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3148, allocations: 0 / 454.7 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008972/0.3157, allocations: 0.6763 MB / 455.4 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.723e-05/0.3157, allocations: 117.2 kB / 455.5 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.3158, allocations: 14.03 kB / 455.6 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004841/0.3163, allocations: 68.14 kB / 455.6 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.3164, allocations: 17.94 kB / 455.6 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.3164, allocations: 9.562 kB / 455.6 MB, free: 26.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009018/0.3173, allocations: 405.2 kB / 456 MB, free: 26.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3173, allocations: 0 / 456 MB, free: 26.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003548/0.3177, allocations: 76.19 kB / 456.1 MB, free: 26.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001123/0.3188, allocations: 1.209 MB / 457.3 MB, free: 25.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00079/0.3196, allocations: 0.5629 MB / 457.9 MB, free: 24.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3196, allocations: 0 / 457.9 MB, free: 24.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004253/0.32, allocations: 392.1 kB / 458.3 MB, free: 24.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.3205, allocations: 62.33 kB / 458.3 MB, free: 24.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007193/0.3277, allocations: 4.023 MB / 462.4 MB, free: 22.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.3281, allocations: 0.8227 MB / 463.2 MB, free: 21.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002003/0.3283, allocations: 71.92 kB / 463.2 MB, free: 21.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.3285, allocations: 116.2 kB / 463.4 MB, free: 21.7 MB / 350.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3285, allocations: 0 / 463.4 MB, free: 21.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04709/0.3756, allocations: 7.568 MB / 470.9 MB, free: 20.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.563/9.939, allocations: 16.69 kB / 470.9 MB, free: 20.96 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.Exploiting_2dof_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)