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.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.001773/0.001773, allocations: 107.8 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.002062/0.002062, allocations: 191.7 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.378/1.378, allocations: 222.9 MB / 245 MB, free: 15.03 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.09797/0.09797, allocations: 22.34 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_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: Performance of FrontEnd - loaded program: time 0.002319/0.002319, allocations: 67.89 kB / 445.3 MB, free: 8.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1116, allocations: 54.96 MB / 0.4885 GB, free: 1.641 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004698/0.1163, allocations: 3.172 MB / 0.4916 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.1181, allocations: 0.892 MB / 0.4925 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002092/0.1184, allocations: 11.94 kB / 0.4925 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002366/0.1186, allocations: 71.25 kB / 0.4925 GB, free: 13.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000267/0.1189, allocations: 103.1 kB / 0.4926 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004168/0.1193, allocations: 191.6 kB / 0.4928 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004986/0.1199, allocations: 467 kB / 0.4933 GB, free: 12.72 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003456/0.1202, allocations: 222.1 kB / 0.4935 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.1204, allocations: 163.3 kB / 0.4936 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.1206, allocations: 183 kB / 0.4938 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.152e-05/0.1207, allocations: 36 kB / 0.4938 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.492e-05/0.1208, allocations: 40 kB / 0.4939 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.901e-05/0.1209, allocations: 91.67 kB / 0.494 GB, free: 12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001925/0.1211, allocations: 198.9 kB / 0.4942 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000547/0.1216, allocations: 466 kB / 0.4946 GB, free: 11.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1216, allocations: 0 / 0.4946 GB, free: 11.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1216, allocations: 0 / 0.4946 GB, free: 11.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1217, allocations: 4 kB / 0.4946 GB, free: 11.34 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.001076/0.1227, allocations: 0.7014 MB / 0.4953 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.1228, allocations: 8.031 kB / 0.4953 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.59e-05/0.1229, allocations: 74.72 kB / 0.4954 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.029e-05/0.123, allocations: 56.59 kB / 0.4954 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004975/0.1235, allocations: 331.5 kB / 0.4957 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.389e-05/0.1235, allocations: 25.36 kB / 0.4958 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.339e-05/0.1236, allocations: 40.33 kB / 0.4958 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006513/0.1243, allocations: 376 kB / 0.4962 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.1243, allocations: 3.938 kB / 0.4962 GB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.1243, allocations: 16 kB / 0.4962 GB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.1243, allocations: 8 kB / 0.4962 GB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005197/0.1249, allocations: 243.9 kB / 0.4964 GB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.1269, allocations: 1.307 MB / 0.4977 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007157/0.1277, allocations: 292.4 kB / 0.498 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.1279, allocations: 125.3 kB / 0.4981 GB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.128, allocations: 240 / 0.4981 GB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/0.128, allocations: 38.73 kB / 0.4981 GB, free: 7.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.583e-06/0.128, allocations: 4 kB / 0.4981 GB, free: 7.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007865/0.1288, allocations: 326.1 kB / 0.4984 GB, free: 7.191 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.413e-05/0.1289, allocations: 81.11 kB / 0.4985 GB, free: 7.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003144/0.1292, allocations: 263 kB / 0.4988 GB, free: 6.832 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.169e-05/0.1293, allocations: 29.64 kB / 0.4988 GB, free: 6.797 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.1295, allocations: 224.3 kB / 0.499 GB, free: 6.574 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.682e-05/0.1296, allocations: 95.17 kB / 0.4991 GB, free: 6.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.1297, allocations: 57.7 kB / 0.4992 GB, free: 6.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.1299, allocations: 338.8 kB / 0.4995 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.1301, allocations: 92.67 kB / 0.4996 GB, free: 5.984 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002707/0.1304, allocations: 158.7 kB / 0.4997 GB, free: 5.805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004564/0.1309, allocations: 243.2 kB / 0.5 GB, free: 5.547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.1309, allocations: 7.938 kB / 0.5 GB, free: 5.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005584/0.1315, allocations: 301.2 kB / 0.5002 GB, free: 5.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.1315, allocations: 8 kB / 0.5003 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1315, allocations: 3.938 kB / 0.5003 GB, free: 5.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.1315, allocations: 8.188 kB / 0.5003 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/0.1318, allocations: 71.89 kB / 0.5003 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.1318, allocations: 4 kB / 0.5003 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001727/0.132, allocations: 35.78 kB / 0.5004 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.422e-05/0.1321, allocations: 12 kB / 0.5004 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002548/0.1323, allocations: 180.1 kB / 0.5006 GB, free: 4.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002065/0.1325, allocations: 143.7 kB / 0.5007 GB, free: 4.754 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003624/0.1329, allocations: 226.1 kB / 0.5009 GB, free: 4.512 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.192e-06/0.1329, allocations: 0 / 0.5009 GB, free: 4.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.000465/0.1334, allocations: 273.3 kB / 0.5012 GB, free: 4.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.1334, allocations: 8 kB / 0.5012 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-06/0.1334, allocations: 0 / 0.5012 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.105e-06/0.1334, allocations: 7.984 kB / 0.5012 GB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/0.1337, allocations: 63.91 kB / 0.5012 GB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.617e-06/0.1337, allocations: 4.188 kB / 0.5013 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.1339, allocations: 23.89 kB / 0.5013 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.1339, allocations: 15.94 kB / 0.5013 GB, free: 4.117 MB / 382.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.0001576/0.134, allocations: 196.9 kB / 0.5015 GB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.888e-05/0.1341, allocations: 31.81 kB / 0.5015 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006144/0.1347, allocations: 269.5 kB / 0.5018 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.1347, allocations: 4 kB / 0.5018 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1348, allocations: 4 kB / 0.5018 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.1348, allocations: 3.984 kB / 0.5018 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005057/0.1353, allocations: 397.2 kB / 0.5022 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1353, allocations: 0 / 0.5022 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.1356, allocations: 63.91 kB / 0.5022 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1356, allocations: 0 / 0.5022 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.1356, allocations: 8 kB / 0.5022 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.1356, allocations: 3.984 kB / 0.5022 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1356, allocations: 0 / 0.5022 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007907/0.1364, allocations: 475.3 kB / 0.5027 GB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.1366, allocations: 132.8 kB / 0.5028 GB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.921e-05/0.1366, allocations: 4 kB / 0.5028 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.1368, allocations: 15.98 kB / 0.5028 GB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.862e-05/0.1369, allocations: 11.98 kB / 0.5028 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.1369, allocations: 15.94 kB / 0.5029 GB, free: 2.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001902/0.1371, allocations: 190 kB / 0.503 GB, free: 2.223 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1371, allocations: 0 / 0.503 GB, free: 2.223 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004984/0.1376, allocations: 155.5 kB / 0.5032 GB, free: 2.07 MB / 382.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.00111/0.1387, allocations: 1.005 MB / 0.5042 GB, free: 1.039 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007269/0.1395, allocations: 343.7 kB / 0.5045 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1395, allocations: 3.938 kB / 0.5045 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.1397, allocations: 117.1 kB / 0.5046 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004946/0.1402, allocations: 74.78 kB / 0.5047 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1889/0.3291, allocations: 3.031 MB / 0.5076 GB, free: 19.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001916/0.3294, allocations: 0.7903 MB / 0.5084 GB, free: 18.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001809/0.3295, allocations: 40.22 kB / 0.5084 GB, free: 18.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.3297, allocations: 115.8 kB / 0.5086 GB, free: 18.64 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3297, allocations: 0 / 0.5086 GB, free: 18.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.032/0.3617, allocations: 6.391 MB / 0.5148 GB, free: 18.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.33/8.691, allocations: 8.906 kB / 0.5148 GB, free: 18.09 MB / 382.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.414308387902565] Failed to read output from testmodel.py, exit status != 0: 8.760373889002949 8.782052756 8.655772045 Calling exit ...