Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.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.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") translateModel(AES.Coursework.Tuning_brushup.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007278/0.007285, allocations: 104.2 kB / 15.74 MB, free: 6.035 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.001495/0.001495, allocations: 200.3 kB / 16.68 MB, free: 5.953 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09134/0.09134, allocations: 22.33 MB / 312.8 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 71.88 kB / 437 MB, free: 11.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1377, allocations: 54.95 MB / 492 MB, free: 4.719 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.003024/0.1407, allocations: 1.301 MB / 493.3 MB, free: 3.418 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.1431, allocations: 1.404 MB / 494.7 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002753/0.1434, allocations: 4 kB / 494.7 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005027/0.1439, allocations: 91.41 kB / 494.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003725/0.1443, allocations: 127.4 kB / 494.9 MB, free: 1.777 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005034/0.1448, allocations: 195.7 kB / 495.1 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006048/0.1454, allocations: 0.5146 MB / 495.6 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.1457, allocations: 68.7 kB / 495.7 MB, free: 1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003037/0.146, allocations: 215.3 kB / 495.9 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003796/0.1464, allocations: 243.1 kB / 496.1 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.806e-05/0.1464, allocations: 24 kB / 496.2 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.252e-05/0.1465, allocations: 28 kB / 496.2 MB, free: 0.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.1467, allocations: 127.6 kB / 496.3 MB, free: 384 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.1468, allocations: 147.1 kB / 496.5 MB, free: 236 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003465/0.1472, allocations: 326.7 kB / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1472, allocations: 0 / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1472, allocations: 0 / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1472, allocations: 0 / 496.8 MB, free: 15.91 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002495/0.1497, allocations: 0.8724 MB / 497.6 MB, free: 14.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1498, allocations: 8.031 kB / 497.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.986e-05/0.1499, allocations: 40.47 kB / 497.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.1511, allocations: 498 kB / 498.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.1511, allocations: 8.703 kB / 498.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.608e-05/0.1512, allocations: 20.38 kB / 498.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003797/0.1515, allocations: 212.4 kB / 498.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.1516, allocations: 0 / 498.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.1516, allocations: 11.94 kB / 498.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1516, allocations: 4 kB / 498.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004278/0.152, allocations: 232.4 kB / 498.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.1535, allocations: 0.7616 MB / 499.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007209/0.1542, allocations: 337.2 kB / 499.7 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00023/0.1544, allocations: 136.8 kB / 499.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.1545, allocations: 4 kB / 499.9 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.1545, allocations: 30.56 kB / 499.9 MB, free: 12.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.473e-06/0.1545, allocations: 0 / 499.9 MB, free: 12.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001949/0.1565, allocations: 0.7899 MB / 0.489 GB, free: 11.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.1565, allocations: 55.41 kB / 0.489 GB, free: 11.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001094/0.1576, allocations: 0.5092 MB / 0.4895 GB, free: 11.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.1577, allocations: 29.7 kB / 0.4895 GB, free: 11.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1578, allocations: 172.5 kB / 0.4897 GB, free: 10.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.081e-05/0.1579, allocations: 94.56 kB / 0.4898 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.824e-05/0.158, allocations: 49.7 kB / 0.4899 GB, free: 10.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1581, allocations: 346.8 kB / 0.4902 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.1583, allocations: 112.2 kB / 0.4903 GB, free: 10.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.1585, allocations: 113.3 kB / 0.4904 GB, free: 10.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/0.1607, allocations: 0.7255 MB / 0.4911 GB, free: 9.527 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1607, allocations: 0 / 0.4911 GB, free: 9.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008751/0.1616, allocations: 483.5 kB / 0.4916 GB, free: 9.043 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.1616, allocations: 4 kB / 0.4916 GB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1616, allocations: 3.984 kB / 0.4916 GB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003546/0.162, allocations: 109.6 kB / 0.4917 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.1622, allocations: 39.92 kB / 0.4917 GB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002796/0.165, allocations: 3.197 MB / 0.4948 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004891/0.1655, allocations: 79.77 kB / 0.4949 GB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.1655, allocations: 4 kB / 0.4949 GB, free: 5.32 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002456/0.1658, allocations: 184.7 kB / 0.4951 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.049e-05/0.1658, allocations: 39.52 kB / 0.4951 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.597e-05/0.1659, allocations: 51.31 kB / 0.4952 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.1659, allocations: 8 kB / 0.4952 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.166, allocations: 0 / 0.4952 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.166, allocations: 0 / 0.4952 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004435/0.1664, allocations: 409.1 kB / 0.4956 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1664, allocations: 0 / 0.4956 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002191/0.1667, allocations: 31.92 kB / 0.4956 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003048/0.167, allocations: 109.6 kB / 0.4957 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.599e-05/0.167, allocations: 12 kB / 0.4957 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002654/0.1697, allocations: 3.196 MB / 0.4988 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1697, allocations: 3.938 kB / 0.4989 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.1708, allocations: 0.6641 MB / 0.4995 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.1709, allocations: 120.6 kB / 0.4996 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.099e-05/0.1709, allocations: 12.06 kB / 0.4996 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004969/0.1714, allocations: 67.89 kB / 0.4997 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.262e-05/0.1715, allocations: 19.97 kB / 0.4997 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.1716, allocations: 8 kB / 0.4997 GB, free: 16 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2976/0.4692, allocations: 403.1 kB / 0.5001 GB, free: 22.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.4693, allocations: 1.656 kB / 0.5001 GB, free: 22.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000564/0.4698, allocations: 67.28 kB / 0.5002 GB, free: 22.32 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (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.0001429/0.47, allocations: 110.8 kB / 0.5003 GB, free: 22.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009411/0.4709, allocations: 0.5251 MB / 0.5008 GB, free: 22.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4709, allocations: 2.406 kB / 0.5008 GB, free: 22.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004687/0.4714, allocations: 404 kB / 0.5012 GB, free: 21.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004668/0.4719, allocations: 63.8 kB / 0.5012 GB, free: 21.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.4734, allocations: 0.7751 MB / 0.502 GB, free: 21.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.4737, allocations: 0.8206 MB / 0.5028 GB, free: 20.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001607/0.4738, allocations: 73.14 kB / 0.5029 GB, free: 20.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.287e-05/0.4739, allocations: 26.91 kB / 0.5029 GB, free: 20.78 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4739, allocations: 0 / 0.5029 GB, free: 20.78 MB / 382.1 MB Notification: Performance of Templates: time 0.01117/0.4851, allocations: 4.176 MB / 0.507 GB, free: 20.65 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.Exploiting_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)