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.001547/0.001547, allocations: 105.5 kB / 16.35 MB, free: 5.824 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.001734/0.001734, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1303/0.1303, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002465/0.002465, allocations: 61.56 kB / 382.2 MB, free: 41.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.11, allocations: 54.96 MB / 437.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002909/0.113, allocations: 1.306 MB / 438.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.1149, allocations: 1.396 MB / 439.9 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.115, allocations: 3.938 kB / 439.9 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003983/0.1154, allocations: 99.41 kB / 440 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.1157, allocations: 119.4 kB / 440.1 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.1161, allocations: 195.7 kB / 440.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000468/0.1166, allocations: 0.5068 MB / 440.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.1167, allocations: 76.7 kB / 440.9 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.117, allocations: 215.3 kB / 441.1 MB, free: 8.301 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002947/0.1173, allocations: 243.1 kB / 441.3 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.412e-05/0.1173, allocations: 28 kB / 441.4 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.332e-05/0.1174, allocations: 24 kB / 441.4 MB, free: 8.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.1175, allocations: 127.6 kB / 441.5 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.1177, allocations: 151 kB / 441.7 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002894/0.118, allocations: 330.7 kB / 442 MB, free: 7.414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.118, allocations: 0 / 442 MB, free: 7.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.118, allocations: 0 / 442 MB, free: 7.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.118, allocations: 0 / 442 MB, free: 7.414 MB / 318.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.002153/0.1202, allocations: 0.8685 MB / 442.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.1202, allocations: 12.03 kB / 442.9 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.045e-05/0.1203, allocations: 36.47 kB / 442.9 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.1214, allocations: 490.1 kB / 443.4 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.1215, allocations: 16.64 kB / 443.4 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.1215, allocations: 20.38 kB / 443.4 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003434/0.1219, allocations: 220.4 kB / 443.6 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.1219, allocations: 0 / 443.6 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.1219, allocations: 8 kB / 443.6 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.1219, allocations: 4 kB / 443.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.1223, allocations: 232.4 kB / 443.9 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.1236, allocations: 0.7577 MB / 444.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000663/0.1242, allocations: 328.8 kB / 444.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002131/0.1245, allocations: 144.7 kB / 445.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.1245, allocations: 4 kB / 445.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.1245, allocations: 30.56 kB / 445.1 MB, free: 4.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.382e-06/0.1245, allocations: 0 / 445.1 MB, free: 4.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.00177/0.1263, allocations: 0.7899 MB / 445.9 MB, free: 3.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.1264, allocations: 55.34 kB / 446 MB, free: 3.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.1275, allocations: 0.5092 MB / 446.5 MB, free: 2.688 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.1275, allocations: 33.7 kB / 446.5 MB, free: 2.648 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.1276, allocations: 168.5 kB / 446.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.223e-05/0.1277, allocations: 98.55 kB / 446.8 MB, free: 2.383 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.08e-05/0.1278, allocations: 53.69 kB / 446.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1279, allocations: 346.8 kB / 447.2 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.1281, allocations: 112.1 kB / 447.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.1283, allocations: 116.4 kB / 447.4 MB, free: 1.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002151/0.1305, allocations: 0.7176 MB / 448.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1305, allocations: 0 / 448.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008482/0.1313, allocations: 475.5 kB / 448.6 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.1314, allocations: 12 kB / 448.6 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1314, allocations: 0 / 448.6 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003486/0.1317, allocations: 113.5 kB / 448.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.1319, allocations: 35.98 kB / 448.7 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002591/0.1345, allocations: 3.197 MB / 451.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004996/0.1351, allocations: 83.73 kB / 452 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.1351, allocations: 8 kB / 452 MB, free: 12.81 MB / 334.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.000227/0.1353, allocations: 184.6 kB / 452.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.381e-05/0.1354, allocations: 35.53 kB / 452.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.1355, allocations: 51.3 kB / 452.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1355, allocations: 4 kB / 452.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.1355, allocations: 0 / 452.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.1355, allocations: 0 / 452.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004223/0.136, allocations: 401.2 kB / 452.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.136, allocations: 0 / 452.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.1362, allocations: 31.98 kB / 452.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003068/0.1365, allocations: 117.5 kB / 452.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.1366, allocations: 11.94 kB / 452.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002525/0.1391, allocations: 3.204 MB / 456 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1391, allocations: 0 / 456 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.1402, allocations: 0.673 MB / 456.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.1404, allocations: 116.7 kB / 456.8 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.659e-05/0.1404, allocations: 11.98 kB / 456.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005193/0.1409, allocations: 67.89 kB / 456.9 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.323e-05/0.141, allocations: 20.17 kB / 456.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.141, allocations: 11.98 kB / 456.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000984/0.142, allocations: 403 kB / 457.3 MB, free: 7.109 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.142, allocations: 0 / 457.3 MB, free: 7.109 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003648/0.1424, allocations: 71.91 kB / 457.4 MB, free: 7.039 MB / 334.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.0001362/0.1426, allocations: 119.3 kB / 457.5 MB, free: 6.918 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008481/0.1434, allocations: 0.5285 MB / 458 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1434, allocations: 0 / 458 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005164/0.144, allocations: 397.1 kB / 458.4 MB, free: 5.949 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004578/0.1444, allocations: 57.34 kB / 458.5 MB, free: 5.895 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.1459, allocations: 0.7793 MB / 459.3 MB, free: 5.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.1463, allocations: 0.8146 MB / 460.1 MB, free: 4.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001641/0.1465, allocations: 70.92 kB / 460.1 MB, free: 4.176 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.385e-05/0.1465, allocations: 35.36 kB / 460.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1466, allocations: 0 / 460.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of Templates: time 0.007769/0.1543, allocations: 4.119 MB / 464.3 MB, free: 36 kB / 334.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)