Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.002012/0.002012, allocations: 110.1 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.002476/0.002476, 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.525/1.525, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.1037/0.1037, allocations: 24.04 MB / 333.6 MB, free: 1.543 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_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",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.003268/0.003268, allocations: 69.39 kB / 468.4 MB, free: 31.53 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1302, allocations: 59.54 MB / 0.5156 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.00394/0.1341, allocations: 1.775 MB / 0.5173 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.1357, allocations: 0.7207 MB / 0.518 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.1358, allocations: 4 kB / 0.518 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000362/0.1362, allocations: 71.66 kB / 0.5181 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002508/0.1364, allocations: 95.64 kB / 0.5182 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000515/0.1369, allocations: 143.7 kB / 0.5183 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004248/0.1373, allocations: 267.5 kB / 0.5186 GB, free: 9.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.1375, allocations: 29.48 kB / 0.5186 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002466/0.1377, allocations: 115.6 kB / 0.5187 GB, free: 9.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003303/0.1381, allocations: 175.5 kB / 0.5189 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.661e-05/0.1381, allocations: 12 kB / 0.5189 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.1383, allocations: 91.81 kB / 0.519 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.1384, allocations: 63.81 kB / 0.519 GB, free: 8.738 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.1385, allocations: 79.47 kB / 0.5191 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.1389, allocations: 247 kB / 0.5193 GB, free: 8.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.139, allocations: 3.938 kB / 0.5193 GB, free: 8.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.139, allocations: 0 / 0.5193 GB, free: 8.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.139, allocations: 0 / 0.5193 GB, free: 8.414 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001473/0.1404, allocations: 0.6247 MB / 0.52 GB, free: 7.734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.1405, allocations: 8.625 kB / 0.52 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.594e-05/0.1405, allocations: 50.73 kB / 0.52 GB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.982e-05/0.1406, allocations: 28.75 kB / 0.52 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006595/0.1413, allocations: 310.9 kB / 0.5203 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.1413, allocations: 8.375 kB / 0.5203 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/0.1413, allocations: 12.38 kB / 0.5204 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.1416, allocations: 161.7 kB / 0.5205 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.1416, allocations: 0 / 0.5205 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.1417, allocations: 0 / 0.5205 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1417, allocations: 4 kB / 0.5205 GB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002885/0.142, allocations: 139.9 kB / 0.5206 GB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008712/0.1428, allocations: 0.5004 MB / 0.5211 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004547/0.1433, allocations: 186.5 kB / 0.5213 GB, free: 6.234 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.1435, allocations: 96.75 kB / 0.5214 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.1435, allocations: 0 / 0.5214 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002801/0.1437, allocations: 177 kB / 0.5216 GB, free: 5.945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.613e-06/0.1438, allocations: 4 kB / 0.5216 GB, free: 5.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001372/0.1451, allocations: 0.574 MB / 0.5221 GB, free: 5.332 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.1452, allocations: 89.09 kB / 0.5222 GB, free: 5.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005884/0.1458, allocations: 308.9 kB / 0.5225 GB, free: 4.906 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.1458, allocations: 29.7 kB / 0.5225 GB, free: 4.871 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.344e-05/0.1459, allocations: 128.1 kB / 0.5227 GB, free: 4.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.038e-05/0.146, allocations: 63.44 kB / 0.5227 GB, free: 4.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.665e-05/0.146, allocations: 49.64 kB / 0.5228 GB, free: 4.625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1462, allocations: 334.8 kB / 0.5231 GB, free: 4.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.1464, allocations: 83.95 kB / 0.5232 GB, free: 4.207 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.1465, allocations: 83.95 kB / 0.5233 GB, free: 4.125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.1479, allocations: 0.578 MB / 0.5238 GB, free: 3.523 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1479, allocations: 0 / 0.5238 GB, free: 3.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007049/0.1486, allocations: 391.8 kB / 0.5242 GB, free: 3.125 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/0.1487, allocations: 37.69 kB / 0.5242 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1487, allocations: 3.938 kB / 0.5242 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002403/0.1489, allocations: 60.75 kB / 0.5243 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.1491, allocations: 19.98 kB / 0.5243 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.1508, allocations: 1.61 MB / 0.5259 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002899/0.151, allocations: 43.94 kB / 0.5259 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.1511, allocations: 4 kB / 0.5259 GB, free: 1.199 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002466/0.1513, allocations: 192.2 kB / 0.5261 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.921e-05/0.1514, allocations: 23.86 kB / 0.5261 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.426e-05/0.1514, allocations: 38.11 kB / 0.5262 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1514, allocations: 4 kB / 0.5262 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1514, allocations: 0 / 0.5262 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1515, allocations: 0 / 0.5262 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003045/0.1518, allocations: 285.5 kB / 0.5264 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.1518, allocations: 0 / 0.5264 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.1519, allocations: 23.92 kB / 0.5265 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.1521, allocations: 52.81 kB / 0.5265 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.829e-05/0.1521, allocations: 15.92 kB / 0.5265 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001709/0.1538, allocations: 1.61 MB / 0.5281 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1538, allocations: 32 / 0.5281 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1548, allocations: 0.5313 MB / 0.5286 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.389e-05/0.1549, allocations: 101 kB / 0.5287 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.076e-05/0.1549, allocations: 11.94 kB / 0.5287 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.1552, allocations: 32.02 kB / 0.5288 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.322e-05/0.1552, allocations: 11.98 kB / 0.5288 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.1553, allocations: 8 kB / 0.5288 GB, free: 14.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005066/0.1558, allocations: 244.4 kB / 0.529 GB, free: 13.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1558, allocations: 0 / 0.529 GB, free: 13.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.1561, allocations: 67.94 kB / 0.5291 GB, free: 13.71 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00133/0.1574, allocations: 1.108 MB / 0.5302 GB, free: 12.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007326/0.1582, allocations: 416 kB / 0.5306 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1582, allocations: 0 / 0.5306 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004136/0.1586, allocations: 282 kB / 0.5308 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.1589, allocations: 37.8 kB / 0.5309 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004748/0.1636, allocations: 2.936 MB / 0.5337 GB, free: 8.781 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.164, allocations: 0.7594 MB / 0.5345 GB, free: 7.992 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.035e-05/0.1641, allocations: 33.41 kB / 0.5345 GB, free: 7.961 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.1642, allocations: 63.41 kB / 0.5346 GB, free: 7.898 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1642, allocations: 4 kB / 0.5346 GB, free: 7.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03406/0.1983, allocations: 5.405 MB / 0.5398 GB, free: 2.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.25, allocations: 19.75 kB / 0.5399 GB, free: 2.57 MB / 398.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.03 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.23298250301741] Failed to read output from testmodel.py, exit status != 0: 10.332516280002892 10.346082298 10.204126958 Calling exit ...