Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.00125/0.00125, allocations: 108.7 kB / 16.4 MB, free: 6.508 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.001259/0.001259, allocations: 192.5 kB / 19.35 MB, free: 3.734 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.396/1.396, 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.09686/0.09686, allocations: 22.33 MB / 319.6 MB, free: 6.777 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_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 63.91 kB / 445.3 MB, free: 8.629 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1044, allocations: 54.94 MB / 0.4885 GB, free: 1.633 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003112/0.1075, allocations: 1.744 MB / 0.4902 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.1089, allocations: 0.705 MB / 0.4909 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.109, allocations: 0 / 0.4909 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003844/0.1094, allocations: 79.66 kB / 0.4909 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.1097, allocations: 79.7 kB / 0.491 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.1102, allocations: 147.7 kB / 0.4912 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003989/0.1106, allocations: 279.5 kB / 0.4914 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.1108, allocations: 29.55 kB / 0.4915 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.1109, allocations: 119.6 kB / 0.4916 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.1112, allocations: 151.6 kB / 0.4917 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.418e-05/0.1112, allocations: 12 kB / 0.4917 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.1114, allocations: 87.92 kB / 0.4918 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.1115, allocations: 63.81 kB / 0.4919 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.1116, allocations: 91.34 kB / 0.492 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003303/0.112, allocations: 239.1 kB / 0.4922 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.112, allocations: 4 kB / 0.4922 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.112, allocations: 0 / 0.4922 GB, free: 13.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.112, allocations: 0 / 0.4922 GB, free: 13.8 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001371/0.1134, allocations: 0.6307 MB / 0.4928 GB, free: 13.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.1134, allocations: 8.031 kB / 0.4928 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.944e-05/0.1135, allocations: 42.75 kB / 0.4929 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.023e-05/0.1136, allocations: 28.73 kB / 0.4929 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006391/0.1142, allocations: 322.8 kB / 0.4932 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.1142, allocations: 8.375 kB / 0.4932 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.896e-05/0.1143, allocations: 12.38 kB / 0.4932 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.1146, allocations: 155.3 kB / 0.4934 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.1146, allocations: 0 / 0.4934 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.1146, allocations: 0 / 0.4934 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1146, allocations: 4 kB / 0.4934 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002908/0.1149, allocations: 139.9 kB / 0.4935 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008409/0.1158, allocations: 0.4966 MB / 0.494 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004684/0.1162, allocations: 198.4 kB / 0.4942 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.1164, allocations: 108.8 kB / 0.4943 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.1165, allocations: 8 kB / 0.4943 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002673/0.1167, allocations: 172.3 kB / 0.4944 GB, free: 11.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.723e-06/0.1168, allocations: 0 / 0.4944 GB, free: 11.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001344/0.1181, allocations: 0.5852 MB / 0.495 GB, free: 10.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.409e-05/0.1182, allocations: 81.11 kB / 0.4951 GB, free: 10.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005799/0.1188, allocations: 316.9 kB / 0.4954 GB, free: 10.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.1188, allocations: 25.7 kB / 0.4954 GB, free: 10.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.232e-05/0.1189, allocations: 136 kB / 0.4955 GB, free: 10.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.959e-05/0.119, allocations: 63.47 kB / 0.4956 GB, free: 10.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.597e-05/0.1191, allocations: 37.72 kB / 0.4956 GB, free: 10 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1192, allocations: 334.8 kB / 0.496 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.1194, allocations: 83.95 kB / 0.496 GB, free: 9.582 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.1195, allocations: 87.94 kB / 0.4961 GB, free: 9.496 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.1209, allocations: 0.5763 MB / 0.4967 GB, free: 8.895 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1209, allocations: 0 / 0.4967 GB, free: 8.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006801/0.1216, allocations: 398.3 kB / 0.4971 GB, free: 8.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.896e-05/0.1217, allocations: 41.69 kB / 0.4971 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1217, allocations: 0 / 0.4971 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002149/0.1219, allocations: 56.8 kB / 0.4972 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.122, allocations: 20 kB / 0.4972 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.1236, allocations: 1.606 MB / 0.4987 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.1239, allocations: 43.88 kB / 0.4988 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.1239, allocations: 4 kB / 0.4988 GB, free: 6.574 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: C.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: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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.0002583/0.1242, allocations: 198.7 kB / 0.499 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.375e-05/0.1243, allocations: 27.84 kB / 0.499 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.545e-05/0.1243, allocations: 30.12 kB / 0.499 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1243, allocations: 0 / 0.499 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1244, allocations: 4 kB / 0.499 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1244, allocations: 3.984 kB / 0.499 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003112/0.1247, allocations: 285.5 kB / 0.4993 GB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1247, allocations: 0 / 0.4993 GB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.1248, allocations: 19.98 kB / 0.4993 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000187/0.125, allocations: 56.81 kB / 0.4994 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.1251, allocations: 7.938 kB / 0.4994 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001515/0.1266, allocations: 1.603 MB / 0.501 GB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1266, allocations: 0 / 0.501 GB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000941/0.1275, allocations: 0.5344 MB / 0.5015 GB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.31e-05/0.1276, allocations: 101 kB / 0.5016 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.208e-05/0.1277, allocations: 11.97 kB / 0.5016 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.1279, allocations: 35.95 kB / 0.5016 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.304e-05/0.128, allocations: 11.98 kB / 0.5016 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.128, allocations: 4 kB / 0.5016 GB, free: 3.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004904/0.1285, allocations: 248.4 kB / 0.5019 GB, free: 3.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.264e-06/0.1285, allocations: 0 / 0.5019 GB, free: 3.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003209/0.1289, allocations: 71.83 kB / 0.502 GB, free: 3.094 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],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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.001442/0.1303, allocations: 1.108 MB / 0.503 GB, free: 1.949 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007177/0.1311, allocations: 427.7 kB / 0.5034 GB, free: 1.508 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1311, allocations: 0 / 0.5034 GB, free: 1.508 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004246/0.1315, allocations: 329.9 kB / 0.5038 GB, free: 1.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.1318, allocations: 39.17 kB / 0.5038 GB, free: 1.125 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1871/0.3189, allocations: 2.919 MB / 0.5066 GB, free: 19.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001903/0.3192, allocations: 0.7658 MB / 0.5074 GB, free: 19.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.48e-05/0.3193, allocations: 29.3 kB / 0.5074 GB, free: 19.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.316e-05/0.3194, allocations: 67.55 kB / 0.5075 GB, free: 19.05 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3194, allocations: 0.9062 kB / 0.5075 GB, free: 19.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03235/0.3517, allocations: 5.36 MB / 0.5127 GB, free: 18.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.821/10.17, allocations: 5.359 kB / 0.5127 GB, free: 18.54 MB / 382.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.03 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.778520987019874] Failed to read output from testmodel.py, exit status != 0: 10.254826653981581 10.276027324 10.160383047 Calling exit ...