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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 108.1 kB / 16.41 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 189.5 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08865/0.08865, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1152, allocations: 54.95 MB / 492.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003254/0.1185, allocations: 1.743 MB / 494.4 MB, free: 3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.1199, allocations: 0.6935 MB / 495.1 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.1201, allocations: 0 / 495.1 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000427/0.1205, allocations: 71.67 kB / 495.2 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002623/0.1208, allocations: 87.69 kB / 495.3 MB, free: 2.145 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000549/0.1214, allocations: 155.5 kB / 495.4 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004107/0.1218, allocations: 271.5 kB / 495.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.1219, allocations: 41.47 kB / 495.7 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002244/0.1222, allocations: 119.6 kB / 495.8 MB, free: 1.566 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003041/0.1225, allocations: 143.6 kB / 496 MB, free: 1.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.534e-05/0.1226, allocations: 20 kB / 496 MB, free: 1.406 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.1227, allocations: 87.92 kB / 496.1 MB, free: 1.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.1229, allocations: 71.67 kB / 496.1 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.123, allocations: 83.47 kB / 496.2 MB, free: 1.168 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003646/0.1234, allocations: 231.3 kB / 496.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1234, allocations: 0 / 496.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1234, allocations: 0 / 496.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.1234, allocations: 0 / 496.5 MB, free: 0.9414 MB / 366.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.001437/0.1249, allocations: 0.6208 MB / 497.1 MB, free: 272 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1249, allocations: 12.03 kB / 497.1 MB, free: 260 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.626e-05/0.125, allocations: 32.64 kB / 497.1 MB, free: 228 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006505/0.1257, allocations: 310.7 kB / 497.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.1257, allocations: 8.375 kB / 497.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/0.1257, allocations: 8.375 kB / 497.4 MB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.126, allocations: 149.9 kB / 497.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.1261, allocations: 4 kB / 497.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.311e-05/0.1261, allocations: 11.98 kB / 497.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.607e-06/0.1261, allocations: 0 / 497.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002753/0.1264, allocations: 135.9 kB / 497.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008371/0.1272, allocations: 0.4964 MB / 498.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004422/0.1277, allocations: 198.1 kB / 498.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.1279, allocations: 108.8 kB / 498.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.1279, allocations: 0 / 498.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002663/0.1282, allocations: 181 kB / 498.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.773e-06/0.1282, allocations: 0 / 498.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.00127/0.1295, allocations: 0.5733 MB / 499.3 MB, free: 13.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.1295, allocations: 89.11 kB / 499.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000564/0.1301, allocations: 316.8 kB / 499.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.1301, allocations: 29.7 kB / 499.7 MB, free: 13.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.084e-05/0.1302, allocations: 136 kB / 499.8 MB, free: 13.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.961e-05/0.1303, allocations: 67.09 kB / 499.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.156e-05/0.1304, allocations: 37.7 kB / 499.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1305, allocations: 342.8 kB / 0.4886 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.1307, allocations: 79.95 kB / 0.4886 GB, free: 12.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.1308, allocations: 83.95 kB / 0.4887 GB, free: 12.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.1321, allocations: 0.574 MB / 0.4893 GB, free: 12.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1321, allocations: 3.938 kB / 0.4893 GB, free: 12.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006458/0.1328, allocations: 399.7 kB / 0.4897 GB, free: 11.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.201e-05/0.1328, allocations: 37.7 kB / 0.4897 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1329, allocations: 0 / 0.4897 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002149/0.1331, allocations: 52.8 kB / 0.4897 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1332, allocations: 16 kB / 0.4898 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.1346, allocations: 1.606 MB / 0.4913 GB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002654/0.1349, allocations: 39.89 kB / 0.4914 GB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.135, allocations: 12 kB / 0.4914 GB, free: 9.777 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.0002455/0.1352, allocations: 192.2 kB / 0.4916 GB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.1353, allocations: 23.72 kB / 0.4916 GB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.033e-05/0.1353, allocations: 34.12 kB / 0.4916 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1353, allocations: 7.984 kB / 0.4916 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1354, allocations: 0 / 0.4916 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1354, allocations: 0 / 0.4916 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002716/0.1356, allocations: 293.4 kB / 0.4919 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1357, allocations: 0 / 0.4919 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.1358, allocations: 15.98 kB / 0.4919 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000166/0.136, allocations: 52.75 kB / 0.492 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.136, allocations: 15.92 kB / 0.492 GB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.1373, allocations: 1.599 MB / 0.4935 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1373, allocations: 4.062 kB / 0.4935 GB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008386/0.1382, allocations: 0.528 MB / 0.4941 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.135e-05/0.1383, allocations: 100.9 kB / 0.4942 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.302e-05/0.1383, allocations: 11.94 kB / 0.4942 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.1386, allocations: 35.95 kB / 0.4942 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.901e-05/0.1387, allocations: 11.98 kB / 0.4942 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.1387, allocations: 8 kB / 0.4942 GB, free: 6.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004677/0.1392, allocations: 236.4 kB / 0.4944 GB, free: 6.375 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.734e-06/0.1392, allocations: 0 / 0.4944 GB, free: 6.375 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.1395, allocations: 75.95 kB / 0.4945 GB, free: 6.301 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.0002247/0.1397, allocations: 135.2 kB / 0.4946 GB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007142/0.1405, allocations: 430 kB / 0.4951 GB, free: 5.715 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.1405, allocations: 0 / 0.4951 GB, free: 5.715 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003951/0.1409, allocations: 318 kB / 0.4954 GB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.1412, allocations: 46.39 kB / 0.4954 GB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008857/0.1421, allocations: 0.5108 MB / 0.4959 GB, free: 4.789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.1425, allocations: 0.7556 MB / 0.4966 GB, free: 4.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.384e-05/0.1425, allocations: 19.44 kB / 0.4967 GB, free: 3.984 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1425, allocations: 0 / 0.4967 GB, free: 3.984 MB / 382.1 MB Notification: Performance of Templates: time 0.007065/0.1496, allocations: 3.575 MB / 0.5002 GB, free: 416 kB / 382.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile (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)