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.005689/0.005689, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001112/0.001112, allocations: 201.3 kB / 16.68 MB, free: 5.969 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2082/0.2082, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 57.38 kB / 436.6 MB, free: 34.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1087, allocations: 54.96 MB / 491.5 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002123/0.1108, allocations: 0.9843 MB / 492.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.1121, allocations: 1.194 MB / 493.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.099e-05/0.1122, allocations: 0 / 493.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002753/0.1125, allocations: 39.78 kB / 493.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001525/0.1126, allocations: 47.75 kB / 493.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001887/0.1128, allocations: 63.91 kB / 493.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002489/0.1131, allocations: 203.6 kB / 494 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.1132, allocations: 37.64 kB / 494.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.1134, allocations: 87.67 kB / 494.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.1136, allocations: 91.7 kB / 494.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.199e-05/0.1136, allocations: 12 kB / 494.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.259e-05/0.1136, allocations: 12 kB / 494.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.811e-05/0.1137, allocations: 55.81 kB / 494.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.743e-05/0.1138, allocations: 51.61 kB / 494.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001918/0.114, allocations: 143.4 kB / 494.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.114, allocations: 0 / 494.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.114, allocations: 0 / 494.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.259e-06/0.114, allocations: 4 kB / 494.5 MB, free: 14.68 MB / 366.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.00118/0.1152, allocations: 0.5182 MB / 495 MB, free: 14.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.1153, allocations: 8.031 kB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.741e-05/0.1153, allocations: 46.67 kB / 495.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.425e-05/0.1154, allocations: 16.84 kB / 495.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005707/0.116, allocations: 284.8 kB / 495.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.116, allocations: 12.38 kB / 495.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.116, allocations: 8.375 kB / 495.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.1163, allocations: 116.5 kB / 495.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.1163, allocations: 4 kB / 495.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.1163, allocations: 3.938 kB / 495.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.1163, allocations: 0 / 495.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.1166, allocations: 107.8 kB / 495.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000763/0.1173, allocations: 456.6 kB / 496.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004055/0.1177, allocations: 154.4 kB / 496.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.1179, allocations: 64.83 kB / 496.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.1179, allocations: 3.984 kB / 496.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.1179, allocations: 38.56 kB / 496.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.493e-06/0.118, allocations: 0 / 496.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.001102/0.1191, allocations: 411.3 kB / 496.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.1191, allocations: 51.41 kB / 496.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000501/0.1196, allocations: 242.6 kB / 497 MB, free: 11.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.1197, allocations: 25.7 kB / 497.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.175e-05/0.1197, allocations: 120 kB / 497.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.901e-05/0.1198, allocations: 43.64 kB / 497.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-05/0.1199, allocations: 25.72 kB / 497.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.12, allocations: 330.8 kB / 497.6 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.1201, allocations: 55.95 kB / 497.6 MB, free: 11.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.1202, allocations: 47.97 kB / 497.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.1213, allocations: 346.8 kB / 498 MB, free: 10.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1213, allocations: 0 / 498 MB, free: 10.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004645/0.1218, allocations: 234.3 kB / 498.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.1218, allocations: 7.938 kB / 498.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.1218, allocations: 3.984 kB / 498.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000194/0.122, allocations: 56.81 kB / 498.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.799e-05/0.1221, allocations: 15.98 kB / 498.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/0.1236, allocations: 1.606 MB / 499.9 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002233/0.1238, allocations: 24 kB / 499.9 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.1238, allocations: 8 kB / 500 MB, free: 8.855 MB / 366.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.0001778/0.124, allocations: 149.8 kB / 0.4884 GB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.283e-05/0.124, allocations: 7.953 kB / 0.4884 GB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.77e-05/0.1241, allocations: 29.33 kB / 0.4884 GB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1241, allocations: 4 kB / 0.4884 GB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.1241, allocations: 0 / 0.4884 GB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1241, allocations: 0 / 0.4884 GB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002691/0.1244, allocations: 245.5 kB / 0.4887 GB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1244, allocations: 3.938 kB / 0.4887 GB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/0.1245, allocations: 19.92 kB / 0.4887 GB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001781/0.1247, allocations: 60.81 kB / 0.4887 GB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.1248, allocations: 3.938 kB / 0.4887 GB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.126, allocations: 1.595 MB / 0.4903 GB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.126, allocations: 4.031 kB / 0.4903 GB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000591/0.1266, allocations: 384 kB / 0.4907 GB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.037e-05/0.1267, allocations: 101 kB / 0.4908 GB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.244e-05/0.1268, allocations: 0 / 0.4908 GB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.127, allocations: 32.17 kB / 0.4908 GB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.39e-05/0.1271, allocations: 11.98 kB / 0.4908 GB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.1271, allocations: 4 kB / 0.4908 GB, free: 5.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004171/0.1275, allocations: 204.2 kB / 0.491 GB, free: 5.781 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1275, allocations: 0 / 0.491 GB, free: 5.781 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000276/0.1278, allocations: 31.95 kB / 0.491 GB, free: 5.75 MB / 366.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.0009439/0.1287, allocations: 0.9128 MB / 0.4919 GB, free: 4.809 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005458/0.1293, allocations: 262.7 kB / 0.4922 GB, free: 4.539 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1293, allocations: 0 / 0.4922 GB, free: 4.539 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002939/0.1296, allocations: 202.5 kB / 0.4924 GB, free: 4.328 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.13, allocations: 22.52 kB / 0.4924 GB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003466/0.1334, allocations: 2.265 MB / 0.4946 GB, free: 1.961 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.1337, allocations: 0.7396 MB / 0.4953 GB, free: 1.195 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.237e-05/0.1338, allocations: 25.06 kB / 0.4953 GB, free: 1.172 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.41e-05/0.1339, allocations: 43.42 kB / 0.4954 GB, free: 1.129 MB / 366.1 MB Notification: Performance of SimCode: time 2.033e-06/0.1339, allocations: 4 kB / 0.4954 GB, free: 1.125 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02397/0.1579, allocations: 3.767 MB / 0.4991 GB, free: 13.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.27/9.428, allocations: 13.78 kB / 0.4991 GB, free: 13.43 MB / 382.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)