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.001217/0.001217, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.001542/0.001542, allocations: 210.2 kB / 20.13 MB, free: 2.949 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.513/1.513, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1008/0.1008, allocations: 22.93 MB / 332.5 MB, free: 2.637 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="cs",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="cs",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.002828/0.002828, allocations: 69.52 kB / 466.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1127, allocations: 59.28 MB / 0.5137 GB, free: 14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003757/0.1164, allocations: 2.292 MB / 0.5159 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.1175, allocations: 0.561 MB / 0.5165 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.1176, allocations: 4 kB / 0.5165 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.1178, allocations: 27.72 kB / 0.5165 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.1179, allocations: 67.41 kB / 0.5166 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001565/0.1181, allocations: 43.94 kB / 0.5166 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002812/0.1184, allocations: 215 kB / 0.5168 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.1186, allocations: 72.58 kB / 0.5169 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.1187, allocations: 87.66 kB / 0.517 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.1188, allocations: 87.69 kB / 0.5171 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/0.1189, allocations: 19.94 kB / 0.5171 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.559e-05/0.1189, allocations: 20 kB / 0.5171 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.203e-05/0.1189, allocations: 39.89 kB / 0.5171 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.1191, allocations: 103.5 kB / 0.5172 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000294/0.1194, allocations: 211.1 kB / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1194, allocations: 0 / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1194, allocations: 0 / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.1194, allocations: 3.938 kB / 0.5174 GB, free: 10.14 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.0007646/0.1201, allocations: 483.1 kB / 0.5179 GB, free: 9.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.1202, allocations: 8.031 kB / 0.5179 GB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.836e-05/0.1202, allocations: 4.625 kB / 0.5179 GB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.892e-05/0.1203, allocations: 58.72 kB / 0.518 GB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.789e-05/0.1203, allocations: 24.8 kB / 0.518 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.1207, allocations: 216 kB / 0.5182 GB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.1207, allocations: 16.81 kB / 0.5182 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.148e-05/0.1207, allocations: 20.38 kB / 0.5182 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.1211, allocations: 175.2 kB / 0.5184 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1211, allocations: 0 / 0.5184 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.1211, allocations: 4 kB / 0.5184 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1212, allocations: 4 kB / 0.5184 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.1215, allocations: 129.6 kB / 0.5185 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.1227, allocations: 0.6759 MB / 0.5192 GB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.123, allocations: 118.5 kB / 0.5193 GB, free: 8.055 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.1231, allocations: 61.12 kB / 0.5194 GB, free: 7.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.1232, allocations: 4 kB / 0.5194 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.1232, allocations: 42.48 kB / 0.5194 GB, free: 7.938 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.412e-06/0.1232, allocations: 3.938 kB / 0.5194 GB, free: 7.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.00046/0.1237, allocations: 171.8 kB / 0.5196 GB, free: 7.762 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.1237, allocations: 55.41 kB / 0.5196 GB, free: 7.695 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.1238, allocations: 125.1 kB / 0.5197 GB, free: 7.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.1238, allocations: 25.7 kB / 0.5198 GB, free: 7.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.004e-05/0.1239, allocations: 136.3 kB / 0.5199 GB, free: 7.398 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.156e-05/0.124, allocations: 63.47 kB / 0.52 GB, free: 7.336 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-05/0.1241, allocations: 33.72 kB / 0.52 GB, free: 7.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1242, allocations: 322.8 kB / 0.5203 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.1243, allocations: 35.98 kB / 0.5203 GB, free: 6.938 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.1244, allocations: 71.41 kB / 0.5204 GB, free: 6.855 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002324/0.1247, allocations: 125.2 kB / 0.5205 GB, free: 6.723 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1247, allocations: 0 / 0.5205 GB, free: 6.723 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003215/0.125, allocations: 167.7 kB / 0.5207 GB, free: 6.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.125, allocations: 8.094 kB / 0.5207 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.125, allocations: 3.938 kB / 0.5207 GB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.125, allocations: 4 kB / 0.5207 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.1252, allocations: 39.97 kB / 0.5207 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.1252, allocations: 7.938 kB / 0.5207 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.002e-05/0.1253, allocations: 19.84 kB / 0.5208 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.1253, allocations: 4 kB / 0.5208 GB, free: 6.469 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.0001206/0.1254, allocations: 130.6 kB / 0.5209 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.701e-05/0.1255, allocations: 7.953 kB / 0.5209 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.156e-05/0.1255, allocations: 28.83 kB / 0.5209 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.1255, allocations: 3.984 kB / 0.5209 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.1255, allocations: 0 / 0.5209 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1256, allocations: 0 / 0.5209 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003144/0.1259, allocations: 257.5 kB / 0.5212 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1259, allocations: 4 kB / 0.5212 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.1261, allocations: 39.91 kB / 0.5212 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1261, allocations: 3.938 kB / 0.5212 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.1261, allocations: 8 kB / 0.5212 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.1261, allocations: 0 / 0.5212 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1261, allocations: 4 kB / 0.5212 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004562/0.1265, allocations: 285.6 kB / 0.5215 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.1266, allocations: 89.03 kB / 0.5216 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.1266, allocations: 0 / 0.5216 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.1267, allocations: 8 kB / 0.5216 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/0.1268, allocations: 11.92 kB / 0.5216 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.1268, allocations: 12.06 kB / 0.5216 GB, free: 5.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.474e-05/0.1269, allocations: 95.27 kB / 0.5217 GB, free: 5.406 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1269, allocations: 0 / 0.5217 GB, free: 5.406 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002888/0.1272, allocations: 51.84 kB / 0.5218 GB, free: 5.355 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.0007792/0.1279, allocations: 0.8217 MB / 0.5226 GB, free: 4.504 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002645/0.1282, allocations: 95.91 kB / 0.5227 GB, free: 4.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.1282, allocations: 4 kB / 0.5227 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.1283, allocations: 51.91 kB / 0.5227 GB, free: 4.355 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.1286, allocations: 16 kB / 0.5227 GB, free: 4.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.1311, allocations: 1.926 MB / 0.5246 GB, free: 2.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.1315, allocations: 0.7201 MB / 0.5253 GB, free: 1.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.789e-05/0.1315, allocations: 20.62 kB / 0.5253 GB, free: 1.551 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.789e-05/0.1316, allocations: 43.42 kB / 0.5254 GB, free: 1.512 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1316, allocations: 0 / 0.5254 GB, free: 1.512 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02082/0.1524, allocations: 2.893 MB / 0.5282 GB, free: 14.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.386/8.539, allocations: 8.812 kB / 0.5282 GB, free: 14.73 MB / 398.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop_fmu --startTime=0 --stopTime=15000 --stepSize=1.875 --timeout=50 --tolerance=1e-06 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.437677072011866] Failed to read output from testmodel.py, exit status != 0: 8.671047226991504 8.691151021 8.567674829 Calling exit ...