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.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.001579/0.001579, allocations: 105.9 kB / 16.45 MB, free: 6.023 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.002945/0.002945, allocations: 198.8 kB / 19.41 MB, free: 3.531 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.563/1.563, allocations: 225.6 MB / 247.8 MB, free: 13.91 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.1005/0.1005, allocations: 22.7 MB / 325.4 MB, free: 3.527 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: translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 55.91 kB / 457.6 MB, free: 1.266 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1261, allocations: 58.02 MB / 0.5036 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003956/0.13, allocations: 1.752 MB / 0.5053 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.1317, allocations: 0.6973 MB / 0.506 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.855e-05/0.1318, allocations: 0 / 0.506 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003533/0.1321, allocations: 79.64 kB / 0.506 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.1323, allocations: 87.64 kB / 0.5061 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004621/0.1328, allocations: 147.7 kB / 0.5063 GB, free: 4.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.1331, allocations: 263.5 kB / 0.5065 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.1333, allocations: 29.48 kB / 0.5066 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.1334, allocations: 127.6 kB / 0.5067 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.1337, allocations: 163.5 kB / 0.5068 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.272e-05/0.1338, allocations: 12 kB / 0.5068 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.1339, allocations: 91.86 kB / 0.5069 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.134, allocations: 63.81 kB / 0.507 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.1341, allocations: 91.41 kB / 0.5071 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003417/0.1345, allocations: 231.1 kB / 0.5073 GB, free: 3.305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1345, allocations: 7.938 kB / 0.5073 GB, free: 3.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1345, allocations: 4 kB / 0.5073 GB, free: 3.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.1345, allocations: 3.938 kB / 0.5073 GB, free: 3.289 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.001409/0.1359, allocations: 0.6325 MB / 0.5079 GB, free: 2.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.136, allocations: 8.031 kB / 0.5079 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.879e-05/0.136, allocations: 24.8 kB / 0.508 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006559/0.1367, allocations: 314.8 kB / 0.5083 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.1367, allocations: 12.38 kB / 0.5083 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/0.1367, allocations: 12.38 kB / 0.5083 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.137, allocations: 147.9 kB / 0.5084 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1371, allocations: 4 kB / 0.5084 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.1371, allocations: 7.984 kB / 0.5084 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1371, allocations: 4 kB / 0.5084 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002971/0.1374, allocations: 139.9 kB / 0.5086 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008635/0.1382, allocations: 0.4926 MB / 0.5091 GB, free: 1.355 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004592/0.1387, allocations: 185.3 kB / 0.5092 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.1389, allocations: 99.62 kB / 0.5093 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.1389, allocations: 0 / 0.5093 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002902/0.1392, allocations: 185.6 kB / 0.5095 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.283e-06/0.1392, allocations: 0 / 0.5095 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001368/0.1405, allocations: 0.5762 MB / 0.5101 GB, free: 268 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.1406, allocations: 85.09 kB / 0.5101 GB, free: 164 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.272/0.4126, allocations: 309.2 kB / 0.5104 GB, free: 16.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.173e-05/0.4127, allocations: 30.84 kB / 0.5105 GB, free: 16.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.759e-05/0.4128, allocations: 135.6 kB / 0.5106 GB, free: 16.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.11e-05/0.4129, allocations: 62.09 kB / 0.5107 GB, free: 16.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.26e-05/0.413, allocations: 37.59 kB / 0.5107 GB, free: 16.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.962e-05/0.413, allocations: 340.7 kB / 0.511 GB, free: 15.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001757/0.4132, allocations: 82.88 kB / 0.5111 GB, free: 15.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.4134, allocations: 84.92 kB / 0.5112 GB, free: 15.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.4148, allocations: 0.5751 MB / 0.5117 GB, free: 15.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.4148, allocations: 0.6562 kB / 0.5117 GB, free: 15.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008413/0.4157, allocations: 396.4 kB / 0.5121 GB, free: 15.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.554e-05/0.4157, allocations: 39.89 kB / 0.5122 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.4157, allocations: 1.406 kB / 0.5122 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002412/0.416, allocations: 58.59 kB / 0.5122 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.4161, allocations: 15.81 kB / 0.5122 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.4174, allocations: 1.603 MB / 0.5138 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/0.4176, allocations: 42.34 kB / 0.5138 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.4176, allocations: 7.375 kB / 0.5138 GB, free: 14.23 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.0002232/0.4179, allocations: 200.4 kB / 0.514 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.384e-05/0.4179, allocations: 25.36 kB / 0.5141 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.594e-05/0.418, allocations: 33.17 kB / 0.5141 GB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.418, allocations: 7.844 kB / 0.5141 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.418, allocations: 0 / 0.5141 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.418, allocations: 0 / 0.5141 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002738/0.4183, allocations: 292.4 kB / 0.5144 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4183, allocations: 0.5625 kB / 0.5144 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.4184, allocations: 19.83 kB / 0.5144 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001791/0.4186, allocations: 56.09 kB / 0.5145 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.4186, allocations: 11.41 kB / 0.5145 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/0.4197, allocations: 1.603 MB / 0.516 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4197, allocations: 3.281 kB / 0.516 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008281/0.4205, allocations: 0.5333 MB / 0.5166 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.124e-05/0.4206, allocations: 104.8 kB / 0.5167 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.48e-05/0.4206, allocations: 8.75 kB / 0.5167 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.4209, allocations: 29.86 kB / 0.5167 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.784e-05/0.4209, allocations: 18.16 kB / 0.5167 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.421, allocations: 7.031 kB / 0.5167 GB, free: 12.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005013/0.4215, allocations: 246.6 kB / 0.5169 GB, free: 12.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4215, allocations: 0 / 0.5169 GB, free: 12.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003523/0.4218, allocations: 65.28 kB / 0.517 GB, free: 12.19 MB / 382.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.0002074/0.422, allocations: 134.4 kB / 0.5171 GB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007107/0.4227, allocations: 396 kB / 0.5175 GB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4227, allocations: 1.156 kB / 0.5175 GB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003441/0.4231, allocations: 297.4 kB / 0.5178 GB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.4234, allocations: 32.98 kB / 0.5178 GB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000864/0.4242, allocations: 0.489 MB / 0.5183 GB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.4245, allocations: 0.7603 MB / 0.5191 GB, free: 10.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.952e-05/0.4246, allocations: 31.12 kB / 0.5191 GB, free: 10.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.957e-05/0.4246, allocations: 15.31 kB / 0.5191 GB, free: 10.83 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4246, allocations: 0 / 0.5191 GB, free: 10.83 MB / 382.1 MB Notification: Performance of Templates: time 0.00923/0.4338, allocations: 2.896 MB / 0.5219 GB, free: 10.68 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile [Timeout 660] (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 & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.175077207852155] Failed to read output from testmodel.py, exit status != 0: 0.44463407387956977 0.459704847 0.322270565 Calling exit ...