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.008013/0.008013, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001636/0.001636, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2943/0.2943, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002184/0.002184, allocations: 61.97 kB / 437.1 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.13, allocations: 54.96 MB / 492 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003833/0.1339, allocations: 1.757 MB / 493.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001935/0.1358, allocations: 0.6934 MB / 494.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.136, allocations: 0 / 494.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004103/0.1364, allocations: 75.66 kB / 494.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003086/0.1367, allocations: 87.69 kB / 494.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006919/0.1375, allocations: 151.6 kB / 494.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004934/0.138, allocations: 259.5 kB / 495 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.1381, allocations: 37.53 kB / 495.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002622/0.1384, allocations: 123.6 kB / 495.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003534/0.1388, allocations: 143.6 kB / 495.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.295e-05/0.1389, allocations: 16 kB / 495.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002187/0.1391, allocations: 91.94 kB / 495.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001474/0.1392, allocations: 67.73 kB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.1394, allocations: 91.41 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004731/0.1399, allocations: 231.2 kB / 495.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1399, allocations: 0 / 495.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1399, allocations: 0 / 495.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.14, allocations: 4 kB / 495.8 MB, free: 13.41 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.002102/0.1421, allocations: 0.617 MB / 496.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.1421, allocations: 15.97 kB / 496.4 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.1423, allocations: 24.66 kB / 496.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009032/0.1432, allocations: 310.7 kB / 496.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.1432, allocations: 8.375 kB / 496.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-05/0.1433, allocations: 12.38 kB / 496.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004161/0.1437, allocations: 155.9 kB / 496.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.1437, allocations: 0 / 496.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/0.1438, allocations: 8 kB / 497 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.1438, allocations: 0 / 497 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003895/0.1442, allocations: 139.9 kB / 497.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.1454, allocations: 496.4 kB / 497.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006318/0.146, allocations: 218.2 kB / 497.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.1463, allocations: 104.8 kB / 497.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.1463, allocations: 0 / 497.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003964/0.1467, allocations: 183.4 kB / 498.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.904e-06/0.1467, allocations: 0 / 498.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001945/0.1487, allocations: 0.5789 MB / 498.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.1488, allocations: 81.11 kB / 498.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008278/0.1496, allocations: 320.9 kB / 499 MB, free: 9.938 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.036e-05/0.1497, allocations: 25.7 kB / 499.1 MB, free: 9.906 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.1498, allocations: 132 kB / 499.2 MB, free: 9.773 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.126e-05/0.1499, allocations: 55.2 kB / 499.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.15, allocations: 41.64 kB / 499.3 MB, free: 9.672 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1502, allocations: 338.8 kB / 499.6 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.1504, allocations: 83.95 kB / 499.7 MB, free: 9.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.1507, allocations: 79.95 kB / 499.8 MB, free: 9.172 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001992/0.1527, allocations: 0.5824 MB / 0.4886 GB, free: 8.566 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1527, allocations: 0 / 0.4886 GB, free: 8.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009886/0.1537, allocations: 399.8 kB / 0.489 GB, free: 8.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.914e-05/0.1537, allocations: 37.69 kB / 0.4891 GB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1538, allocations: 3.938 kB / 0.4891 GB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003121/0.1541, allocations: 48.81 kB / 0.4891 GB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.1543, allocations: 23.98 kB / 0.4891 GB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.1562, allocations: 1.602 MB / 0.4907 GB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003932/0.1566, allocations: 43.89 kB / 0.4907 GB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.1567, allocations: 8 kB / 0.4907 GB, free: 6.246 MB / 366.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.0003125/0.157, allocations: 200.2 kB / 0.4909 GB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.001e-05/0.1571, allocations: 19.81 kB / 0.4909 GB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.129e-05/0.1572, allocations: 34.11 kB / 0.491 GB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1572, allocations: 0 / 0.491 GB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1572, allocations: 4 kB / 0.491 GB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.1572, allocations: 4 kB / 0.491 GB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004056/0.1577, allocations: 293.4 kB / 0.4913 GB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1577, allocations: 0 / 0.4913 GB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000175/0.1579, allocations: 12 kB / 0.4913 GB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002431/0.1581, allocations: 56.8 kB / 0.4913 GB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.379e-05/0.1582, allocations: 7.938 kB / 0.4913 GB, free: 5.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001879/0.16, allocations: 1.599 MB / 0.4929 GB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1601, allocations: 0 / 0.4929 GB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.1613, allocations: 0.5351 MB / 0.4934 GB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.023e-05/0.1614, allocations: 104.8 kB / 0.4935 GB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.558e-05/0.1615, allocations: 11.94 kB / 0.4935 GB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003724/0.1619, allocations: 28 kB / 0.4936 GB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.484e-05/0.162, allocations: 19.98 kB / 0.4936 GB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.382e-05/0.162, allocations: 11.98 kB / 0.4936 GB, free: 3.066 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007147/0.1628, allocations: 240.4 kB / 0.4938 GB, free: 2.832 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1628, allocations: 4 kB / 0.4938 GB, free: 2.828 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005478/0.1633, allocations: 67.84 kB / 0.4939 GB, free: 2.762 MB / 366.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.0003233/0.1637, allocations: 140.4 kB / 0.494 GB, free: 2.617 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.1648, allocations: 431.2 kB / 0.4944 GB, free: 2.172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1648, allocations: 0 / 0.4944 GB, free: 2.172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000518/0.1653, allocations: 323.7 kB / 0.4947 GB, free: 1.832 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.1657, allocations: 35.23 kB / 0.4948 GB, free: 1.801 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008183/0.1665, allocations: 485.5 kB / 0.4952 GB, free: 1.297 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.1669, allocations: 0.7595 MB / 0.496 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.673e-05/0.167, allocations: 33.41 kB / 0.496 GB, free: 488 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.647e-05/0.167, allocations: 15.44 kB / 0.496 GB, free: 472 kB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.167, allocations: 0 / 0.496 GB, free: 472 kB / 366.1 MB Notification: Performance of Templates: time 0.006478/0.1735, allocations: 2.848 MB / 0.4988 GB, free: 13.62 MB / 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)