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.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.001865/0.001865, allocations: 109.4 kB / 17.15 MB, free: 6.02 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.002232/0.002232, allocations: 207.2 kB / 20.11 MB, free: 3.062 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.517/1.517, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1043/0.1043, allocations: 24.03 MB / 333.6 MB, free: 1.539 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_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: 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.002085/0.002085, allocations: 70.47 kB / 468.4 MB, free: 31.53 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.109, allocations: 59.54 MB / 0.5156 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003716/0.1127, allocations: 2.315 MB / 0.5178 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009892/0.1137, allocations: 0.5532 MB / 0.5184 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.1138, allocations: 4 kB / 0.5184 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.1139, allocations: 27.66 kB / 0.5184 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.1141, allocations: 59.48 kB / 0.5185 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001672/0.1142, allocations: 47.92 kB / 0.5185 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002683/0.1145, allocations: 218.9 kB / 0.5187 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.1147, allocations: 76.58 kB / 0.5188 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.674e-05/0.1148, allocations: 79.72 kB / 0.5189 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.1149, allocations: 87.62 kB / 0.5189 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.203e-05/0.115, allocations: 20 kB / 0.519 GB, free: 8.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.106e-05/0.115, allocations: 20 kB / 0.519 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.281e-05/0.115, allocations: 39.84 kB / 0.519 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.931e-05/0.1151, allocations: 107.5 kB / 0.5191 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000268/0.1154, allocations: 211.1 kB / 0.5193 GB, free: 8.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1154, allocations: 0 / 0.5193 GB, free: 8.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1154, allocations: 0 / 0.5193 GB, free: 8.422 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.1154, allocations: 4 kB / 0.5193 GB, free: 8.418 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.0006663/0.1161, allocations: 475.1 kB / 0.5198 GB, free: 7.906 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.1161, allocations: 8.031 kB / 0.5198 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.062e-05/0.1162, allocations: 54.73 kB / 0.5198 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.895e-05/0.1162, allocations: 24.8 kB / 0.5199 GB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002839/0.1165, allocations: 212.1 kB / 0.5201 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.1165, allocations: 16.81 kB / 0.5201 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.552e-05/0.1166, allocations: 20.31 kB / 0.5201 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003517/0.1169, allocations: 179.4 kB / 0.5203 GB, free: 7.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.1169, allocations: 0 / 0.5203 GB, free: 7.352 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/0.117, allocations: 12 kB / 0.5203 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.117, allocations: 4 kB / 0.5203 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002777/0.1172, allocations: 121.7 kB / 0.5204 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.1183, allocations: 0.6798 MB / 0.5211 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002968/0.1186, allocations: 126.3 kB / 0.5212 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.1187, allocations: 61.12 kB / 0.5212 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.1187, allocations: 0 / 0.5212 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.1188, allocations: 42.5 kB / 0.5213 GB, free: 6.227 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.052e-06/0.1188, allocations: 0 / 0.5213 GB, free: 6.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.000414/0.1192, allocations: 175.6 kB / 0.5215 GB, free: 6.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.1192, allocations: 59.34 kB / 0.5215 GB, free: 5.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.1193, allocations: 120.7 kB / 0.5216 GB, free: 5.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1194, allocations: 29.7 kB / 0.5217 GB, free: 5.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.504e-05/0.1194, allocations: 140.2 kB / 0.5218 GB, free: 5.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.022e-05/0.1195, allocations: 63.47 kB / 0.5219 GB, free: 5.617 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.948e-05/0.1195, allocations: 33.72 kB / 0.5219 GB, free: 5.574 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1197, allocations: 326.8 kB / 0.5222 GB, free: 5.246 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.1198, allocations: 35.98 kB / 0.5222 GB, free: 5.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.1199, allocations: 73.47 kB / 0.5223 GB, free: 5.129 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002359/0.1201, allocations: 117.1 kB / 0.5224 GB, free: 5.004 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1202, allocations: 0 / 0.5224 GB, free: 5.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002978/0.1204, allocations: 165.4 kB / 0.5226 GB, free: 4.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.1205, allocations: 4 kB / 0.5226 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1205, allocations: 0 / 0.5226 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1205, allocations: 4 kB / 0.5226 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.1207, allocations: 47.92 kB / 0.5226 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.1207, allocations: 7.984 kB / 0.5226 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.47e-05/0.1207, allocations: 19.94 kB / 0.5226 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.1208, allocations: 8 kB / 0.5227 GB, free: 4.746 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: 130.6 kB / 0.5228 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.618e-05/0.1209, allocations: 11.89 kB / 0.5228 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.8e-05/0.121, allocations: 16.84 kB / 0.5228 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.121, allocations: 0 / 0.5228 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.121, allocations: 0 / 0.5228 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.121, allocations: 3.984 kB / 0.5228 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003034/0.1213, allocations: 261.5 kB / 0.5231 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1213, allocations: 3.938 kB / 0.5231 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.1215, allocations: 35.97 kB / 0.5231 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1215, allocations: 3.938 kB / 0.5231 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.1215, allocations: 8 kB / 0.5231 GB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1215, allocations: 0 / 0.5231 GB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1215, allocations: 0 / 0.5231 GB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.1219, allocations: 291.3 kB / 0.5234 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.098e-05/0.122, allocations: 89.03 kB / 0.5235 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.122, allocations: 4 kB / 0.5235 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.1221, allocations: 4 kB / 0.5235 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.477e-05/0.1222, allocations: 11.98 kB / 0.5235 GB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.1222, allocations: 4 kB / 0.5235 GB, free: 3.793 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.082e-05/0.1223, allocations: 95.27 kB / 0.5236 GB, free: 3.699 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1223, allocations: 0 / 0.5236 GB, free: 3.699 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.1225, allocations: 51.84 kB / 0.5236 GB, free: 3.648 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.000746/0.1233, allocations: 0.8295 MB / 0.5244 GB, free: 2.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002803/0.1236, allocations: 95.91 kB / 0.5245 GB, free: 2.699 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1236, allocations: 4.25 kB / 0.5245 GB, free: 2.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.1237, allocations: 55.91 kB / 0.5246 GB, free: 2.641 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.124, allocations: 12 kB / 0.5246 GB, free: 2.629 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.1264, allocations: 1.917 MB / 0.5265 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.1268, allocations: 0.724 MB / 0.5272 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.331e-05/0.1269, allocations: 12.64 kB / 0.5272 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.539e-05/0.127, allocations: 47.42 kB / 0.5272 GB, free: 15.8 MB / 398.1 MB Notification: Performance of SimCode: time 3.6e-07/0.127, allocations: 3.938 kB / 0.5272 GB, free: 15.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0252/0.1522, allocations: 2.851 MB / 0.53 GB, free: 13.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.01/8.162, allocations: 10.86 kB / 0.53 GB, free: 13.04 MB / 398.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: 11.12346258899197] Failed to read output from testmodel.py, exit status != 0: 8.233831921825185 8.252367613 8.134012057 Calling exit ...