Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 109.1 kB / 17.14 MB, free: 5.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 204 kB / 20.11 MB, free: 2.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.495/1.495, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1042/0.1042, allocations: 24.03 MB / 333.6 MB, free: 1.676 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002983/0.002983, allocations: 72.55 kB / 468.4 MB, free: 31.43 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1089, allocations: 59.54 MB / 0.5156 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.005023/0.1139, allocations: 3.2 MB / 0.5187 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00199/0.1159, allocations: 0.9346 MB / 0.5196 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003894/0.1163, allocations: 15.94 kB / 0.5196 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002873/0.1166, allocations: 63.31 kB / 0.5197 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003281/0.1169, allocations: 107 kB / 0.5198 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005509/0.1174, allocations: 199.6 kB / 0.52 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005954/0.118, allocations: 474.8 kB / 0.5204 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003697/0.1184, allocations: 150.2 kB / 0.5206 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.1186, allocations: 171.4 kB / 0.5207 GB, free: 7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002547/0.1189, allocations: 183.1 kB / 0.5209 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.127e-05/0.1189, allocations: 36 kB / 0.5209 GB, free: 6.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.096e-05/0.119, allocations: 40 kB / 0.521 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.627e-05/0.1191, allocations: 91.62 kB / 0.5211 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002232/0.1193, allocations: 206.9 kB / 0.5213 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006468/0.1199, allocations: 470 kB / 0.5217 GB, free: 5.992 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1199, allocations: 0 / 0.5217 GB, free: 5.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1199, allocations: 0 / 0.5217 GB, free: 5.992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.12, allocations: 3.938 kB / 0.5217 GB, free: 5.988 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001186/0.1211, allocations: 0.7091 MB / 0.5224 GB, free: 5.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.1212, allocations: 8.625 kB / 0.5224 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.091e-05/0.1213, allocations: 70.72 kB / 0.5225 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.895e-05/0.1214, allocations: 48.66 kB / 0.5225 GB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005008/0.1219, allocations: 335.5 kB / 0.5229 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.1219, allocations: 25.38 kB / 0.5229 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.227e-05/0.122, allocations: 36.38 kB / 0.5229 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006769/0.1226, allocations: 380.8 kB / 0.5233 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.1227, allocations: 0 / 0.5233 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.098e-05/0.1227, allocations: 12 kB / 0.5233 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.1227, allocations: 12 kB / 0.5233 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005571/0.1233, allocations: 255.8 kB / 0.5235 GB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.1254, allocations: 1.299 MB / 0.5248 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007014/0.1261, allocations: 271.8 kB / 0.5251 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002329/0.1263, allocations: 117.3 kB / 0.5252 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.336e-05/0.1264, allocations: 8.219 kB / 0.5252 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.1264, allocations: 34.8 kB / 0.5252 GB, free: 2.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.853e-06/0.1264, allocations: 4 kB / 0.5252 GB, free: 2.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007248/0.1271, allocations: 320.2 kB / 0.5255 GB, free: 1.863 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.027e-05/0.1272, allocations: 110.8 kB / 0.5256 GB, free: 1.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.1275, allocations: 274.9 kB / 0.5259 GB, free: 1.453 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.1275, allocations: 29.7 kB / 0.5259 GB, free: 1.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.1277, allocations: 220.4 kB / 0.5261 GB, free: 1.199 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.215e-05/0.1278, allocations: 99.16 kB / 0.5262 GB, free: 1.102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.1279, allocations: 57.66 kB / 0.5263 GB, free: 1.039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.1281, allocations: 338.8 kB / 0.5266 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002067/0.1283, allocations: 96.67 kB / 0.5267 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002527/0.1286, allocations: 155.5 kB / 0.5269 GB, free: 432 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000455/0.129, allocations: 251.4 kB / 0.5271 GB, free: 160 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.129, allocations: 3.938 kB / 0.5271 GB, free: 156 kB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000596/0.1296, allocations: 297.3 kB / 0.5274 GB, free: 15.86 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.1296, allocations: 8 kB / 0.5274 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1296, allocations: 0 / 0.5274 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.1297, allocations: 4 kB / 0.5274 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003522/0.13, allocations: 71.89 kB / 0.5275 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.13, allocations: 7.938 kB / 0.5275 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.1302, allocations: 31.97 kB / 0.5275 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.1302, allocations: 12 kB / 0.5275 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002875/0.1305, allocations: 188 kB / 0.5277 GB, free: 15.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002237/0.1308, allocations: 147.6 kB / 0.5278 GB, free: 15.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003579/0.1311, allocations: 222.1 kB / 0.528 GB, free: 15.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.673e-06/0.1311, allocations: 0 / 0.528 GB, free: 15.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.000499/0.1316, allocations: 285.4 kB / 0.5283 GB, free: 14.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.1316, allocations: 4 kB / 0.5283 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1316, allocations: 4 kB / 0.5283 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.518e-06/0.1316, allocations: 0 / 0.5283 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000266/0.1319, allocations: 67.91 kB / 0.5284 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.1319, allocations: 4 kB / 0.5284 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.1321, allocations: 23.84 kB / 0.5284 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.1321, allocations: 12 kB / 0.5284 GB, free: 14.73 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001897/0.1323, allocations: 205 kB / 0.5286 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.289e-05/0.1324, allocations: 31.81 kB / 0.5286 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006433/0.133, allocations: 280.7 kB / 0.5289 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.133, allocations: 4 kB / 0.5289 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.133, allocations: 0 / 0.5289 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.133, allocations: 0 / 0.5289 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000528/0.1335, allocations: 401.2 kB / 0.5293 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.1335, allocations: 0 / 0.5293 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003289/0.1339, allocations: 67.91 kB / 0.5294 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.1339, allocations: 0 / 0.5294 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.1339, allocations: 8 kB / 0.5294 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1339, allocations: 0 / 0.5294 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1339, allocations: 0 / 0.5294 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000798/0.1347, allocations: 463.2 kB / 0.5298 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001531/0.1349, allocations: 136.8 kB / 0.5299 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.049e-05/0.1349, allocations: 8 kB / 0.53 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.1351, allocations: 15.98 kB / 0.53 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.1351, allocations: 7.984 kB / 0.53 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.1352, allocations: 15.98 kB / 0.53 GB, free: 13.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001873/0.1354, allocations: 182 kB / 0.5302 GB, free: 12.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1354, allocations: 0 / 0.5302 GB, free: 12.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000521/0.1359, allocations: 155.5 kB / 0.5303 GB, free: 12.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Cbody.T,PID.I.y,Ccont.T) * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001118/0.137, allocations: 1.013 MB / 0.5313 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007462/0.1377, allocations: 319.9 kB / 0.5316 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1377, allocations: 0 / 0.5316 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002164/0.138, allocations: 115.8 kB / 0.5317 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005324/0.1385, allocations: 75.11 kB / 0.5318 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004374/0.1429, allocations: 3.037 MB / 0.5348 GB, free: 7.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.1433, allocations: 0.7915 MB / 0.5355 GB, free: 7.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001861/0.1435, allocations: 34.97 kB / 0.5356 GB, free: 7.145 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.1437, allocations: 119.4 kB / 0.5357 GB, free: 7.027 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1437, allocations: 0 / 0.5357 GB, free: 7.027 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03087/0.1745, allocations: 6.425 MB / 0.542 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.456/8.63, allocations: 7.422 kB / 0.542 GB, free: 0.7227 MB / 398.1 MB " [Timeout remaining time 651] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.25 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.603822419885546] Failed to read output from testmodel.py, exit status != 0: 8.702083883108571 8.715966872 8.592978429 Calling exit ...