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.001785/0.001785, allocations: 124.9 kB / 17.17 MB, free: 5.918 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.002138/0.002138, allocations: 210.3 kB / 20.13 MB, free: 2.98 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.587/1.587, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.09956/0.09956, allocations: 22.93 MB / 332.5 MB, free: 2.633 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="cs",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="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.002076/0.002076, allocations: 64.31 kB / 466.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1217, allocations: 59.27 MB / 0.5137 GB, free: 14.01 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.00519/0.1269, allocations: 3.193 MB / 0.5168 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.1287, allocations: 0.9386 MB / 0.5177 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002437/0.129, allocations: 11.94 kB / 0.5177 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002352/0.1292, allocations: 71.23 kB / 0.5178 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000328/0.1295, allocations: 99.08 kB / 0.5179 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005132/0.1301, allocations: 211.3 kB / 0.5181 GB, free: 9.461 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005245/0.1306, allocations: 467 kB / 0.5185 GB, free: 9.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003324/0.1309, allocations: 158.1 kB / 0.5187 GB, free: 8.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.1311, allocations: 167.4 kB / 0.5188 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002526/0.1314, allocations: 187 kB / 0.519 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.848e-05/0.1314, allocations: 40 kB / 0.5191 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.374e-05/0.1315, allocations: 40 kB / 0.5191 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.902e-05/0.1316, allocations: 83.69 kB / 0.5192 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.1318, allocations: 210.9 kB / 0.5194 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000583/0.1323, allocations: 462 kB / 0.5198 GB, free: 7.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.1323, allocations: 7.938 kB / 0.5198 GB, free: 7.668 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1323, allocations: 3.938 kB / 0.5198 GB, free: 7.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.1324, allocations: 0 / 0.5198 GB, free: 7.664 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.00121/0.1336, allocations: 0.6975 MB / 0.5205 GB, free: 6.918 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.1336, allocations: 12.62 kB / 0.5205 GB, free: 6.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.51e-05/0.1336, allocations: 9.188 kB / 0.5205 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.35e-05/0.1337, allocations: 74.72 kB / 0.5206 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.064e-05/0.1338, allocations: 48.66 kB / 0.5207 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005171/0.1343, allocations: 335.4 kB / 0.521 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/0.1344, allocations: 29.38 kB / 0.521 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.141e-05/0.1344, allocations: 36.36 kB / 0.521 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006964/0.1351, allocations: 372.7 kB / 0.5214 GB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.1352, allocations: 4 kB / 0.5214 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/0.1352, allocations: 16 kB / 0.5214 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.1352, allocations: 12 kB / 0.5214 GB, free: 5.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005489/0.1358, allocations: 247.8 kB / 0.5217 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002197/0.138, allocations: 1.311 MB / 0.5229 GB, free: 4.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007062/0.1387, allocations: 271.8 kB / 0.5232 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.1389, allocations: 117.3 kB / 0.5233 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.1389, allocations: 4.234 kB / 0.5233 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.139, allocations: 30.8 kB / 0.5233 GB, free: 3.852 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.573e-06/0.139, allocations: 0 / 0.5233 GB, free: 3.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007846/0.1398, allocations: 328.1 kB / 0.5237 GB, free: 3.527 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.248e-05/0.1398, allocations: 110.8 kB / 0.5238 GB, free: 3.395 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003096/0.1401, allocations: 274.9 kB / 0.524 GB, free: 3.117 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.372e-05/0.1402, allocations: 33.7 kB / 0.5241 GB, free: 3.078 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.1404, allocations: 212.4 kB / 0.5243 GB, free: 2.867 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.721e-05/0.1405, allocations: 99.17 kB / 0.5244 GB, free: 2.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.1406, allocations: 61.64 kB / 0.5244 GB, free: 2.703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1407, allocations: 338.8 kB / 0.5247 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000208/0.1409, allocations: 96.67 kB / 0.5248 GB, free: 2.266 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/0.1412, allocations: 155.5 kB / 0.525 GB, free: 2.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004726/0.1417, allocations: 243.1 kB / 0.5252 GB, free: 1.828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1417, allocations: 0 / 0.5252 GB, free: 1.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006076/0.1423, allocations: 313.2 kB / 0.5255 GB, free: 1.516 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1423, allocations: 4 kB / 0.5255 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1423, allocations: 4 kB / 0.5255 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.1423, allocations: 4 kB / 0.5255 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003049/0.1426, allocations: 63.91 kB / 0.5256 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.1427, allocations: 4 kB / 0.5256 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/0.1428, allocations: 43.89 kB / 0.5256 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.1429, allocations: 16 kB / 0.5256 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002623/0.1431, allocations: 180.1 kB / 0.5258 GB, free: 1.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002194/0.1433, allocations: 143.7 kB / 0.526 GB, free: 1.031 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003575/0.1437, allocations: 217.8 kB / 0.5262 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.563e-06/0.1437, allocations: 0 / 0.5262 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004661/0.1442, allocations: 285.5 kB / 0.5264 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.1442, allocations: 8 kB / 0.5264 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.984e-06/0.1442, allocations: 0 / 0.5264 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.488e-06/0.1442, allocations: 4 kB / 0.5264 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.1444, allocations: 67.91 kB / 0.5265 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.1445, allocations: 3.938 kB / 0.5265 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.1446, allocations: 27.83 kB / 0.5265 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.1446, allocations: 8 kB / 0.5265 GB, free: 404 kB / 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.0001726/0.1448, allocations: 208.3 kB / 0.5267 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.799e-05/0.1449, allocations: 31.81 kB / 0.5268 GB, free: 156 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006765/0.1455, allocations: 272.8 kB / 0.527 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1456, allocations: 4 kB / 0.527 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1456, allocations: 0 / 0.527 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.1456, allocations: 7.969 kB / 0.527 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005196/0.1461, allocations: 397.2 kB / 0.5274 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1461, allocations: 0 / 0.5274 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000298/0.1464, allocations: 63.91 kB / 0.5275 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.1464, allocations: 4 kB / 0.5275 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.1464, allocations: 0 / 0.5275 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1464, allocations: 0 / 0.5275 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1464, allocations: 4 kB / 0.5275 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008351/0.1473, allocations: 479.1 kB / 0.528 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.1474, allocations: 128.8 kB / 0.5281 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.869e-05/0.1474, allocations: 4 kB / 0.5281 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.1476, allocations: 15.98 kB / 0.5281 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.501e-05/0.1477, allocations: 15.98 kB / 0.5281 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.1477, allocations: 4 kB / 0.5281 GB, free: 14.69 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002147/0.1479, allocations: 194 kB / 0.5283 GB, free: 14.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1479, allocations: 0 / 0.5283 GB, free: 14.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00051/0.1484, allocations: 151.6 kB / 0.5284 GB, free: 14.35 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.001161/0.1496, allocations: 1.005 MB / 0.5294 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000705/0.1503, allocations: 323.7 kB / 0.5297 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1503, allocations: 0 / 0.5297 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002224/0.1505, allocations: 111.8 kB / 0.5298 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.151, allocations: 77.84 kB / 0.5299 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004477/0.1555, allocations: 3.033 MB / 0.5329 GB, free: 9.676 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.156, allocations: 0.7915 MB / 0.5336 GB, free: 8.855 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001879/0.1561, allocations: 38.95 kB / 0.5337 GB, free: 8.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/0.1563, allocations: 115.4 kB / 0.5338 GB, free: 8.707 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1563, allocations: 0 / 0.5338 GB, free: 8.707 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02577/0.1821, allocations: 6.468 MB / 0.5401 GB, free: 2.383 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.801/8.983, allocations: 0.7031 kB / 0.5401 GB, free: 2.383 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control_fmu --startTime=0 --stopTime=2000 --stepSize=0.25 --timeout=50 --tolerance=1e-06 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: 12.055617763020564] Failed to read output from testmodel.py, exit status != 0: 9.118517375027295 9.145133095 9.007974097 Calling exit ...