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.001685/0.001685, allocations: 109.4 kB / 17.14 MB, free: 6.043 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.001814/0.001814, allocations: 207.2 kB / 20.11 MB, free: 3.086 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.591/1.591, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.1161/0.1161, allocations: 24.03 MB / 333.6 MB, free: 1.566 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: 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: 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.002388/0.002388, allocations: 75.38 kB / 468.9 MB, free: 31.44 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1337, allocations: 59.55 MB / 0.516 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003257/0.137, allocations: 1.765 MB / 0.5178 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.1384, allocations: 0.7207 MB / 0.5185 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.792e-05/0.1385, allocations: 0 / 0.5185 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003638/0.1389, allocations: 79.64 kB / 0.5185 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000226/0.1391, allocations: 95.62 kB / 0.5186 GB, free: 9.133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004763/0.1396, allocations: 143.7 kB / 0.5188 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003686/0.14, allocations: 263.5 kB / 0.519 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.1401, allocations: 25.48 kB / 0.5191 GB, free: 8.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001825/0.1403, allocations: 119.6 kB / 0.5192 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002867/0.1406, allocations: 171.5 kB / 0.5193 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.45e-05/0.1406, allocations: 19.94 kB / 0.5193 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.1408, allocations: 91.86 kB / 0.5194 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.1409, allocations: 59.81 kB / 0.5195 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.141, allocations: 83.45 kB / 0.5196 GB, free: 8.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.1413, allocations: 239 kB / 0.5198 GB, free: 7.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1413, allocations: 3.938 kB / 0.5198 GB, free: 7.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1413, allocations: 0 / 0.5198 GB, free: 7.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1413, allocations: 0 / 0.5198 GB, free: 7.938 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.001448/0.1428, allocations: 0.6286 MB / 0.5204 GB, free: 7.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.1428, allocations: 16.62 kB / 0.5204 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.287e-05/0.1429, allocations: 28.75 kB / 0.5205 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006739/0.1436, allocations: 310.9 kB / 0.5208 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.1436, allocations: 8.312 kB / 0.5208 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.351e-05/0.1437, allocations: 8.375 kB / 0.5208 GB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003354/0.144, allocations: 164.3 kB / 0.5209 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.144, allocations: 0 / 0.5209 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.144, allocations: 8 kB / 0.5209 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.144, allocations: 0 / 0.5209 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/0.1443, allocations: 131.9 kB / 0.5211 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000893/0.1452, allocations: 0.5082 MB / 0.5216 GB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004603/0.1457, allocations: 178.5 kB / 0.5217 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.1458, allocations: 92.81 kB / 0.5218 GB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.1459, allocations: 11.92 kB / 0.5218 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002892/0.1462, allocations: 181 kB / 0.522 GB, free: 5.508 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.513e-06/0.1462, allocations: 0 / 0.522 GB, free: 5.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001415/0.1476, allocations: 0.576 MB / 0.5226 GB, free: 4.898 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.867e-05/0.1476, allocations: 93.09 kB / 0.5227 GB, free: 4.789 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006186/0.1483, allocations: 304.9 kB / 0.5229 GB, free: 4.473 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.1483, allocations: 29.7 kB / 0.523 GB, free: 4.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.1484, allocations: 132.1 kB / 0.5231 GB, free: 4.305 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.725e-05/0.1485, allocations: 67.42 kB / 0.5232 GB, free: 4.238 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.018e-05/0.1486, allocations: 41.7 kB / 0.5232 GB, free: 4.191 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.1487, allocations: 334.8 kB / 0.5235 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.1489, allocations: 79.95 kB / 0.5236 GB, free: 3.777 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.1491, allocations: 94.34 kB / 0.5237 GB, free: 3.688 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.1505, allocations: 0.572 MB / 0.5242 GB, free: 3.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1505, allocations: 0 / 0.5242 GB, free: 3.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006932/0.1512, allocations: 399 kB / 0.5246 GB, free: 2.688 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.694e-05/0.1512, allocations: 41.69 kB / 0.5247 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1512, allocations: 0 / 0.5247 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002179/0.1514, allocations: 52.75 kB / 0.5247 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.1515, allocations: 23.92 kB / 0.5247 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.1532, allocations: 1.606 MB / 0.5263 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.1535, allocations: 43.95 kB / 0.5264 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.1535, allocations: 7.984 kB / 0.5264 GB, free: 0.7656 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.0002417/0.1538, allocations: 184.4 kB / 0.5265 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.148e-05/0.1538, allocations: 23.86 kB / 0.5266 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.669e-05/0.1539, allocations: 42.11 kB / 0.5266 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.1539, allocations: 0 / 0.5266 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1539, allocations: 4 kB / 0.5266 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1539, allocations: 0 / 0.5266 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003277/0.1542, allocations: 289.5 kB / 0.5269 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1542, allocations: 0 / 0.5269 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.1544, allocations: 19.92 kB / 0.5269 GB, free: 152 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001812/0.1545, allocations: 48.81 kB / 0.5269 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.1546, allocations: 15.92 kB / 0.527 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001613/0.1562, allocations: 1.61 MB / 0.5285 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1562, allocations: 4.062 kB / 0.5285 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009419/0.1571, allocations: 0.5242 MB / 0.529 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.377e-05/0.1572, allocations: 105.2 kB / 0.5291 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.617e-05/0.1572, allocations: 7.938 kB / 0.5292 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.1575, allocations: 39.95 kB / 0.5292 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.1576, allocations: 15.91 kB / 0.5292 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.1576, allocations: 8 kB / 0.5292 GB, free: 13.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005783/0.1582, allocations: 240.4 kB / 0.5294 GB, free: 13.35 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1582, allocations: 0 / 0.5294 GB, free: 13.35 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003294/0.1585, allocations: 67.92 kB / 0.5295 GB, free: 13.29 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.0002337/0.1587, allocations: 139.1 kB / 0.5296 GB, free: 13.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007413/0.1595, allocations: 412.1 kB / 0.53 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1595, allocations: 0 / 0.53 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004248/0.1599, allocations: 286 kB / 0.5303 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.1602, allocations: 34.86 kB / 0.5303 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009682/0.1611, allocations: 0.4967 MB / 0.5308 GB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.1616, allocations: 0.7556 MB / 0.5316 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.898e-05/0.1617, allocations: 33.41 kB / 0.5316 GB, free: 11.04 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.08e-05/0.1617, allocations: 11.44 kB / 0.5316 GB, free: 11.02 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1617, allocations: 0 / 0.5316 GB, free: 11.02 MB / 398.1 MB Notification: Performance of Templates: time 0.007649/0.1694, allocations: 2.899 MB / 0.5344 GB, free: 8.137 MB / 398.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.157746257260442] Failed to read output from testmodel.py, exit status != 0: 0.17863551899790764 0.191938629 0.047756695 Calling exit ...