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.005571/0.005571, allocations: 98.91 kB / 15.73 MB, free: 5.984 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.001076/0.001076, allocations: 197.8 kB / 16.68 MB, free: 5.922 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2051/0.2051, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 66.22 kB / 437.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1241, allocations: 54.97 MB / 492 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.0032/0.1273, allocations: 1.759 MB / 493.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.1289, allocations: 0.6973 MB / 494.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.1291, allocations: 0 / 494.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000427/0.1296, allocations: 71.72 kB / 494.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002998/0.1299, allocations: 87.64 kB / 494.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006148/0.1306, allocations: 151.7 kB / 494.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005219/0.1311, allocations: 267.5 kB / 495 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.1313, allocations: 33.55 kB / 495.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002506/0.1315, allocations: 115.6 kB / 495.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003728/0.1319, allocations: 155.5 kB / 495.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.59e-05/0.132, allocations: 16 kB / 495.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001997/0.1322, allocations: 91.92 kB / 495.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.1323, allocations: 59.81 kB / 495.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.1324, allocations: 91.41 kB / 495.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003793/0.1328, allocations: 239.2 kB / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1328, allocations: 0 / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1329, allocations: 0 / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.1329, allocations: 7.984 kB / 495.8 MB, free: 13.38 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.001425/0.1343, allocations: 0.617 MB / 496.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1344, allocations: 8.031 kB / 496.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.146e-05/0.1344, allocations: 24.66 kB / 496.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006473/0.1351, allocations: 318.7 kB / 496.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.1351, allocations: 4.375 kB / 496.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.096e-05/0.1352, allocations: 12.38 kB / 496.8 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003266/0.1355, allocations: 149.9 kB / 497 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.1355, allocations: 3.984 kB / 497 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.1356, allocations: 8 kB / 497 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1356, allocations: 0 / 497 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003048/0.1359, allocations: 143.8 kB / 497.1 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009938/0.1369, allocations: 496.4 kB / 497.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000506/0.1374, allocations: 206.3 kB / 497.8 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001918/0.1376, allocations: 108.8 kB / 497.9 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.1376, allocations: 0 / 497.9 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002888/0.1379, allocations: 181.1 kB / 498.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 2.134e-06/0.138, allocations: 0 / 498.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001497/0.1395, allocations: 0.5724 MB / 498.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/0.1395, allocations: 85.09 kB / 498.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006118/0.1402, allocations: 316.9 kB / 499 MB, free: 9.922 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.1402, allocations: 29.64 kB / 499.1 MB, free: 9.887 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.1403, allocations: 136 kB / 499.2 MB, free: 9.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.227e-05/0.1404, allocations: 55.2 kB / 499.3 MB, free: 9.695 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.26e-05/0.1405, allocations: 37.7 kB / 499.3 MB, free: 9.652 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1406, allocations: 334.8 kB / 499.6 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.1408, allocations: 83.95 kB / 499.7 MB, free: 9.234 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.1409, allocations: 91.95 kB / 499.8 MB, free: 9.145 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.1423, allocations: 0.5756 MB / 0.4886 GB, free: 8.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1423, allocations: 0 / 0.4886 GB, free: 8.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006541/0.1429, allocations: 399 kB / 0.489 GB, free: 8.141 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.395e-05/0.143, allocations: 41.62 kB / 0.4891 GB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.143, allocations: 4 kB / 0.4891 GB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002215/0.1432, allocations: 52.81 kB / 0.4891 GB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.1434, allocations: 19.98 kB / 0.4891 GB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/0.145, allocations: 1.61 MB / 0.4907 GB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/0.1453, allocations: 35.84 kB / 0.4907 GB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.1454, allocations: 11.98 kB / 0.4908 GB, free: 6.219 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.00035/0.1457, allocations: 192.3 kB / 0.4909 GB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.61e-05/0.1458, allocations: 19.81 kB / 0.491 GB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.032e-05/0.1459, allocations: 34.11 kB / 0.491 GB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.1459, allocations: 0 / 0.491 GB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.1459, allocations: 0 / 0.491 GB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1459, allocations: 7.938 kB / 0.491 GB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003876/0.1463, allocations: 289.4 kB / 0.4913 GB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1463, allocations: 0 / 0.4913 GB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.1465, allocations: 19.98 kB / 0.4913 GB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001774/0.1467, allocations: 48.81 kB / 0.4913 GB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.188e-05/0.1467, allocations: 15.92 kB / 0.4914 GB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/0.148, allocations: 1.603 MB / 0.4929 GB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1481, allocations: 0 / 0.4929 GB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009066/0.149, allocations: 0.533 MB / 0.4934 GB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.969e-05/0.1491, allocations: 100.9 kB / 0.4935 GB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.294e-05/0.1491, allocations: 11.94 kB / 0.4936 GB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.1493, allocations: 27.95 kB / 0.4936 GB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.194e-05/0.1494, allocations: 15.98 kB / 0.4936 GB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/0.1495, allocations: 8 kB / 0.4936 GB, free: 3.055 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000477/0.1499, allocations: 248.4 kB / 0.4938 GB, free: 2.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.15, allocations: 4 kB / 0.4938 GB, free: 2.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003423/0.1503, allocations: 67.84 kB / 0.4939 GB, free: 2.742 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.000241/0.1506, allocations: 135.1 kB / 0.494 GB, free: 2.602 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007068/0.1513, allocations: 433.9 kB / 0.4944 GB, free: 2.152 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1513, allocations: 0 / 0.4944 GB, free: 2.152 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004533/0.1517, allocations: 324.3 kB / 0.4948 GB, free: 1.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.1521, allocations: 35.06 kB / 0.4948 GB, free: 1.781 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009174/0.153, allocations: 0.4897 MB / 0.4953 GB, free: 1.262 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.1534, allocations: 0.7556 MB / 0.496 GB, free: 488 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.656e-05/0.1535, allocations: 29.41 kB / 0.496 GB, free: 460 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.046e-05/0.1535, allocations: 15.44 kB / 0.496 GB, free: 444 kB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1535, allocations: 0 / 0.496 GB, free: 444 kB / 366.1 MB Notification: Performance of Templates: time 0.008001/0.1615, allocations: 2.923 MB / 0.4989 GB, free: 13.52 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)