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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 111.4 kB / 16.41 MB, free: 6.496 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 191.7 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 245.1 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1015/0.1015, allocations: 22.34 MB / 319.6 MB, free: 6.762 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 71.83 kB / 445.3 MB, free: 8.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1123, allocations: 54.94 MB / 0.4885 GB, free: 1.613 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002486/0.1148, allocations: 0.9717 MB / 0.4894 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.1166, allocations: 1.201 MB / 0.4906 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.205e-05/0.1167, allocations: 4 kB / 0.4906 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003396/0.1171, allocations: 35.78 kB / 0.4906 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.1173, allocations: 51.75 kB / 0.4907 GB, free: 15.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.1175, allocations: 71.84 kB / 0.4908 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002871/0.1178, allocations: 203.6 kB / 0.491 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.1179, allocations: 25.44 kB / 0.491 GB, free: 15.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.118, allocations: 91.66 kB / 0.4911 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.1182, allocations: 87.72 kB / 0.4911 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.712e-05/0.1183, allocations: 16 kB / 0.4912 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.807e-05/0.1183, allocations: 12 kB / 0.4912 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.1184, allocations: 59.75 kB / 0.4912 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.984e-05/0.1185, allocations: 51.66 kB / 0.4913 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001994/0.1187, allocations: 139.4 kB / 0.4914 GB, free: 14.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1187, allocations: 0 / 0.4914 GB, free: 14.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1187, allocations: 0 / 0.4914 GB, free: 14.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.1187, allocations: 0 / 0.4914 GB, free: 14.58 MB / 382.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.00126/0.12, allocations: 0.5242 MB / 0.4919 GB, free: 14.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.1201, allocations: 12.03 kB / 0.4919 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.687e-05/0.1201, allocations: 38.73 kB / 0.492 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.083e-05/0.1202, allocations: 20.84 kB / 0.492 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006567/0.1208, allocations: 288.8 kB / 0.4923 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.1209, allocations: 8.375 kB / 0.4923 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.1209, allocations: 8.375 kB / 0.4923 GB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/0.1212, allocations: 121.6 kB / 0.4924 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1212, allocations: 4 kB / 0.4924 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.1212, allocations: 0 / 0.4924 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1212, allocations: 4 kB / 0.4924 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002584/0.1215, allocations: 99.92 kB / 0.4925 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008231/0.1223, allocations: 460.5 kB / 0.4929 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.1228, allocations: 154.4 kB / 0.4931 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.1229, allocations: 64.83 kB / 0.4932 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.1229, allocations: 4 kB / 0.4932 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.123, allocations: 30.56 kB / 0.4932 GB, free: 12.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.123, allocations: 0 / 0.4932 GB, free: 12.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001162/0.1242, allocations: 403.4 kB / 0.4936 GB, free: 12.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.1242, allocations: 55.41 kB / 0.4936 GB, free: 12.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000504/0.1247, allocations: 242.6 kB / 0.4939 GB, free: 11.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.1248, allocations: 25.7 kB / 0.4939 GB, free: 11.83 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.876e-05/0.1248, allocations: 116.1 kB / 0.494 GB, free: 11.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.747e-05/0.1249, allocations: 47.58 kB / 0.494 GB, free: 11.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.534e-05/0.125, allocations: 29.72 kB / 0.4941 GB, free: 11.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1251, allocations: 326.8 kB / 0.4944 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.1252, allocations: 51.95 kB / 0.4944 GB, free: 11.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.1254, allocations: 59.84 kB / 0.4945 GB, free: 11.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.1266, allocations: 332.2 kB / 0.4948 GB, free: 10.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1266, allocations: 4 kB / 0.4948 GB, free: 10.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005022/0.1271, allocations: 242.1 kB / 0.495 GB, free: 10.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.1271, allocations: 7.984 kB / 0.495 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1271, allocations: 4 kB / 0.495 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002207/0.1273, allocations: 52.8 kB / 0.4951 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.1275, allocations: 19.98 kB / 0.4951 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001587/0.1291, allocations: 1.598 MB / 0.4967 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.1293, allocations: 35.95 kB / 0.4967 GB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.889e-05/0.1293, allocations: 8 kB / 0.4967 GB, free: 8.75 MB / 382.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.0001874/0.1295, allocations: 130.4 kB / 0.4968 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.251e-05/0.1296, allocations: 23.89 kB / 0.4969 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.622e-05/0.1297, allocations: 25.34 kB / 0.4969 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1297, allocations: 144 / 0.4969 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.1297, allocations: 0 / 0.4969 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1297, allocations: 7.922 kB / 0.4969 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.13, allocations: 241.6 kB / 0.4971 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.13, allocations: 0 / 0.4971 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.1301, allocations: 15.98 kB / 0.4971 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001747/0.1303, allocations: 56.81 kB / 0.4972 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.1303, allocations: 7.938 kB / 0.4972 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00149/0.1318, allocations: 1.603 MB / 0.4988 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.1318, allocations: 3.984 kB / 0.4988 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006437/0.1325, allocations: 375.9 kB / 0.4991 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.79e-05/0.1326, allocations: 97.02 kB / 0.4992 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.1326, allocations: 8 kB / 0.4992 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.1328, allocations: 32 kB / 0.4993 GB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.423e-05/0.1329, allocations: 11.98 kB / 0.4993 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-06/0.1329, allocations: 4 kB / 0.4993 GB, free: 5.887 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000449/0.1334, allocations: 204.2 kB / 0.4995 GB, free: 5.688 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1334, allocations: 4 kB / 0.4995 GB, free: 5.684 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.1337, allocations: 35.95 kB / 0.4995 GB, free: 5.648 MB / 382.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.001002/0.1347, allocations: 0.9004 MB / 0.5004 GB, free: 4.719 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005627/0.1353, allocations: 262.6 kB / 0.5006 GB, free: 4.449 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1353, allocations: 0 / 0.5006 GB, free: 4.449 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.1356, allocations: 190.6 kB / 0.5008 GB, free: 4.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.136, allocations: 28.25 kB / 0.5008 GB, free: 4.223 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003826/0.1398, allocations: 2.274 MB / 0.5031 GB, free: 1.871 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.1402, allocations: 0.7319 MB / 0.5038 GB, free: 1.113 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.982e-05/0.1403, allocations: 33.06 kB / 0.5038 GB, free: 1.082 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.479e-05/0.1404, allocations: 39.42 kB / 0.5039 GB, free: 1.043 MB / 382.1 MB Notification: Performance of SimCode: time 3.547e-06/0.1404, allocations: 0 / 0.5039 GB, free: 1.043 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2458/0.3862, allocations: 3.761 MB / 0.5075 GB, free: 20.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.606/9.993, allocations: 10.41 kB / 0.5075 GB, free: 20.73 MB / 382.1 MB " [Timeout remaining time 650] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.634772081975825] Failed to read output from testmodel.py, exit status != 0: 10.07345972105395 10.094586646 9.971940921 Calling exit ...