Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.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.0018/0.001807, allocations: 108.7 kB / 16.4 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.001311/0.001311, 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.377/1.377, allocations: 222.9 MB / 245.1 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.09708/0.09708, allocations: 22.33 MB / 319.6 MB, free: 6.875 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_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001898, allocations: 67.89 kB / 445.3 MB, free: 8.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1086, allocations: 54.94 MB / 0.4885 GB, free: 1.664 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003686/0.1124, allocations: 2.283 MB / 0.4907 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008961/0.1133, allocations: 0.5103 MB / 0.4912 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.957e-05/0.1134, allocations: 4 kB / 0.4912 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.1136, allocations: 35.7 kB / 0.4912 GB, free: 14.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001201/0.1137, allocations: 63.42 kB / 0.4913 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001599/0.1139, allocations: 51.86 kB / 0.4914 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002504/0.1141, allocations: 207.1 kB / 0.4916 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.1144, allocations: 104 kB / 0.4917 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.752e-05/0.1145, allocations: 83.66 kB / 0.4917 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.1146, allocations: 87.62 kB / 0.4918 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.443e-05/0.1147, allocations: 16 kB / 0.4918 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.501e-05/0.1147, allocations: 20 kB / 0.4919 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.95e-05/0.1148, allocations: 39.84 kB / 0.4919 GB, free: 14.15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.1149, allocations: 103.6 kB / 0.492 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002605/0.1151, allocations: 207.2 kB / 0.4922 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.1152, allocations: 0 / 0.4922 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1152, allocations: 3.984 kB / 0.4922 GB, free: 13.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.1152, allocations: 0 / 0.4922 GB, free: 13.84 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0006645/0.1158, allocations: 479.1 kB / 0.4926 GB, free: 13.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.1159, allocations: 8.031 kB / 0.4927 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.858e-05/0.116, allocations: 54.73 kB / 0.4927 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.377e-05/0.116, allocations: 24.78 kB / 0.4927 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.1163, allocations: 220 kB / 0.4929 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.1163, allocations: 12.81 kB / 0.493 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.533e-05/0.1164, allocations: 20.38 kB / 0.493 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003409/0.1167, allocations: 171.4 kB / 0.4931 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.1168, allocations: 0 / 0.4931 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.1168, allocations: 8 kB / 0.4931 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.1168, allocations: 4 kB / 0.4931 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002804/0.1171, allocations: 129.7 kB / 0.4933 GB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.1181, allocations: 0.6758 MB / 0.4939 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002955/0.1184, allocations: 130.5 kB / 0.4941 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.1186, allocations: 73.11 kB / 0.4941 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.1186, allocations: 3.938 kB / 0.4941 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.1186, allocations: 34.56 kB / 0.4942 GB, free: 11.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.293e-06/0.1186, allocations: 0 / 0.4942 GB, free: 11.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.000418/0.1191, allocations: 173.5 kB / 0.4943 GB, free: 11.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.1191, allocations: 59.41 kB / 0.4944 GB, free: 11.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.1192, allocations: 120.6 kB / 0.4945 GB, free: 11.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.1193, allocations: 29.7 kB / 0.4945 GB, free: 11.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.726e-05/0.1194, allocations: 140.2 kB / 0.4947 GB, free: 11.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.083e-05/0.1194, allocations: 59.47 kB / 0.4947 GB, free: 11.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.1195, allocations: 41.64 kB / 0.4948 GB, free: 10.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1196, allocations: 322.8 kB / 0.4951 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.1197, allocations: 35.98 kB / 0.4951 GB, free: 10.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.1199, allocations: 78.41 kB / 0.4952 GB, free: 10.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002181/0.1201, allocations: 115.4 kB / 0.4953 GB, free: 10.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.1201, allocations: 4 kB / 0.4953 GB, free: 10.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002924/0.1204, allocations: 172 kB / 0.4955 GB, free: 10.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1204, allocations: 4 kB / 0.4955 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1204, allocations: 4 kB / 0.4955 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.1204, allocations: 0 / 0.4955 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.1206, allocations: 39.98 kB / 0.4955 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.1206, allocations: 4 kB / 0.4955 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.42e-05/0.1207, allocations: 23.81 kB / 0.4955 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.1207, allocations: 4 kB / 0.4955 GB, free: 10.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (21): * Single equations (assignments): 21 * 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.0001109/0.1209, allocations: 134.7 kB / 0.4957 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.591e-05/0.1209, allocations: 15.84 kB / 0.4957 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.913e-05/0.121, allocations: 20.84 kB / 0.4957 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.121, allocations: 0 / 0.4957 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.121, allocations: 0 / 0.4957 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.121, allocations: 3.984 kB / 0.4957 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003125/0.1213, allocations: 253.5 kB / 0.4959 GB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1213, allocations: 0 / 0.4959 GB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/0.1215, allocations: 35.92 kB / 0.496 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.1215, allocations: 8 kB / 0.496 GB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.1215, allocations: 3.984 kB / 0.496 GB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1215, allocations: 0 / 0.496 GB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1215, allocations: 3.984 kB / 0.496 GB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004459/0.122, allocations: 294 kB / 0.4963 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.103e-05/0.1221, allocations: 89.03 kB / 0.4964 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.1221, allocations: 0 / 0.4964 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.1222, allocations: 12.06 kB / 0.4964 GB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.1223, allocations: 11.98 kB / 0.4964 GB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.1223, allocations: 0 / 0.4964 GB, free: 9.199 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.377e-05/0.1223, allocations: 99.27 kB / 0.4965 GB, free: 9.102 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1223, allocations: 0 / 0.4965 GB, free: 9.102 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002652/0.1226, allocations: 47.89 kB / 0.4965 GB, free: 9.055 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cbody.T,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 (16): * Single equations (assignments): 16 * 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.0007222/0.1234, allocations: 0.8216 MB / 0.4973 GB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002746/0.1236, allocations: 111.9 kB / 0.4974 GB, free: 8.094 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.1237, allocations: 0 / 0.4974 GB, free: 8.094 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.1238, allocations: 51.92 kB / 0.4975 GB, free: 8.043 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.1241, allocations: 30.52 kB / 0.4975 GB, free: 8.016 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.1264, allocations: 1.917 MB / 0.4994 GB, free: 5.996 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.1268, allocations: 0.7201 MB / 0.5001 GB, free: 5.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.273e-05/0.1269, allocations: 12.66 kB / 0.5001 GB, free: 5.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.068e-05/0.127, allocations: 51.41 kB / 0.5001 GB, free: 5.191 MB / 382.1 MB Notification: Performance of SimCode: time 3.486e-06/0.127, allocations: 0 / 0.5001 GB, free: 5.191 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02498/0.152, allocations: 2.826 MB / 0.5029 GB, free: 2.465 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.947/8.099, allocations: 14.36 kB / 0.5029 GB, free: 2.457 MB / 382.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop_res.csv --start-time 0 --stop-time 15000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.875 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.962988371960819] Failed to read output from testmodel.py, exit status != 0: 8.169164236052893 8.38078814 8.263427464 Calling exit ...