Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_base.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.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",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.001194/0.001194, 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.001257/0.001257, allocations: 193.2 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.396/1.396, 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.2935/0.2935, allocations: 22.36 MB / 312.8 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 59.91 kB / 380.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3223, allocations: 54.94 MB / 435.9 MB, free: 39.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002084/0.3244, allocations: 0.9684 MB / 436.9 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.3256, allocations: 1.199 MB / 438.1 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.214e-05/0.3257, allocations: 0 / 438.1 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002826/0.326, allocations: 37.78 kB / 438.1 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.3262, allocations: 46.61 kB / 438.1 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001669/0.3264, allocations: 67.45 kB / 438.2 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.3266, allocations: 198 kB / 438.4 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.3267, allocations: 34.81 kB / 438.4 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.3268, allocations: 83.92 kB / 438.5 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001449/0.327, allocations: 95.02 kB / 438.6 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.164e-05/0.327, allocations: 10.28 kB / 438.6 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.208e-05/0.327, allocations: 11.59 kB / 438.6 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.423e-05/0.3271, allocations: 53.17 kB / 438.7 MB, free: 38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.726e-05/0.3272, allocations: 60.08 kB / 438.7 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.3273, allocations: 130.4 kB / 438.9 MB, free: 37.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.3273, allocations: 0 / 438.9 MB, free: 37.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3273, allocations: 4 kB / 438.9 MB, free: 37.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.3273, allocations: 0 / 438.9 MB, free: 37.9 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001019/0.3284, allocations: 0.526 MB / 439.4 MB, free: 37.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3284, allocations: 11.88 kB / 439.4 MB, free: 37.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.548e-05/0.3284, allocations: 37.53 kB / 439.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.788e-05/0.3285, allocations: 17 kB / 439.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004772/0.329, allocations: 289.2 kB / 439.7 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.329, allocations: 11.28 kB / 439.7 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.287e-05/0.329, allocations: 6.125 kB / 439.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.3292, allocations: 111.2 kB / 439.9 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.3292, allocations: 4 kB / 439.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.3293, allocations: 4 kB / 439.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.3293, allocations: 2.844 kB / 439.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002074/0.3295, allocations: 101.9 kB / 440 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005817/0.3301, allocations: 465 kB / 440.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003589/0.3304, allocations: 160.3 kB / 440.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.3306, allocations: 65.94 kB / 440.6 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.3306, allocations: 2.625 kB / 440.7 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.282e-05/0.3306, allocations: 34.56 kB / 440.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.3306, allocations: 0 / 440.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009524/0.3316, allocations: 399.2 kB / 441.1 MB, free: 36.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.3316, allocations: 54.19 kB / 441.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.332, allocations: 250.3 kB / 441.4 MB, free: 36.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.3321, allocations: 29.7 kB / 441.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.08e-05/0.3321, allocations: 110.5 kB / 441.5 MB, free: 36.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.3322, allocations: 48.53 kB / 441.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.603e-05/0.3322, allocations: 29.53 kB / 441.6 MB, free: 36.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.464e-05/0.3323, allocations: 323.6 kB / 441.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.767e-05/0.3324, allocations: 54.97 kB / 442 MB, free: 35.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.037e-05/0.3325, allocations: 52.08 kB / 442 MB, free: 35.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009872/0.3335, allocations: 334.6 kB / 442.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3335, allocations: 0 / 442.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000416/0.3339, allocations: 238.3 kB / 442.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3339, allocations: 5.125 kB / 442.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.3339, allocations: 0 / 442.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001981/0.3342, allocations: 55.42 kB / 442.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.3343, allocations: 26.66 kB / 442.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.3353, allocations: 1.598 MB / 444.2 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.3356, allocations: 37.44 kB / 444.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.3356, allocations: 6.875 kB / 444.3 MB, free: 33.94 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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 (12): * Single equations (assignments): 11 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001486/0.3357, allocations: 141.2 kB / 444.4 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.804e-05/0.3358, allocations: 9.969 kB / 444.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.516e-05/0.3358, allocations: 30.58 kB / 444.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3358, allocations: 4 kB / 444.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.3359, allocations: 0 / 444.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.3359, allocations: 3.016 kB / 444.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002019/0.3361, allocations: 248 kB / 444.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3361, allocations: 3.984 kB / 444.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.3362, allocations: 16.47 kB / 444.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001459/0.3364, allocations: 55.03 kB / 444.8 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.3364, allocations: 11.72 kB / 444.8 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009277/0.3373, allocations: 1.598 MB / 446.4 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3373, allocations: 0 / 446.4 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004999/0.3378, allocations: 373.2 kB / 446.8 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.505e-05/0.3379, allocations: 90.08 kB / 446.9 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.3379, allocations: 7.328 kB / 446.9 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.3381, allocations: 35.22 kB / 446.9 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.3382, allocations: 14.09 kB / 446.9 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.3382, allocations: 3.031 kB / 446.9 MB, free: 31.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003704/0.3386, allocations: 195.9 kB / 447.1 MB, free: 31.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3386, allocations: 4 kB / 447.1 MB, free: 31.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002693/0.3389, allocations: 39.59 kB / 447.1 MB, free: 31.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.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 (9): * Single equations (assignments): 8 * 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,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.0007074/0.3396, allocations: 0.915 MB / 448.1 MB, free: 30.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004639/0.3401, allocations: 263.9 kB / 448.3 MB, free: 30.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3401, allocations: 0 / 448.3 MB, free: 30.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.3403, allocations: 188.2 kB / 448.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.3406, allocations: 28.77 kB / 448.5 MB, free: 30.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.3436, allocations: 2.275 MB / 450.8 MB, free: 29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000165/0.3437, allocations: 0.73 MB / 451.5 MB, free: 28.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.977e-05/0.3438, allocations: 31.17 kB / 451.6 MB, free: 28.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.669e-05/0.3439, allocations: 40.22 kB / 451.6 MB, free: 28.27 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3439, allocations: 0 / 451.6 MB, free: 28.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02494/0.3688, allocations: 3.685 MB / 455.3 MB, free: 27.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.434/9.803, allocations: 28.14 kB / 455.3 MB, free: 27.76 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_base.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_loop_base_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_MSL_loop_base.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1)