Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_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.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 106.9 kB / 16.37 MB, free: 6.477 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.001111/0.001111, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09003/0.09003, allocations: 22.33 MB / 313.5 MB, free: 8.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 61.91 kB / 382.2 MB, free: 41.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1139, allocations: 54.96 MB / 437.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002999/0.1169, allocations: 1.132 MB / 438.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.1187, allocations: 1.291 MB / 439.6 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.1188, allocations: 3.938 kB / 439.6 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003896/0.1192, allocations: 79.55 kB / 439.7 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002166/0.1195, allocations: 83.59 kB / 439.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.1198, allocations: 131.8 kB / 439.9 MB, free: 9.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004181/0.1202, allocations: 379.3 kB / 440.3 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.1204, allocations: 60.3 kB / 440.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002103/0.1206, allocations: 163.5 kB / 440.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.1209, allocations: 187.4 kB / 440.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.065e-05/0.1209, allocations: 20 kB / 440.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.1e-05/0.121, allocations: 27.94 kB / 440.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.1211, allocations: 111.7 kB / 440.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.1213, allocations: 115.2 kB / 441 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002877/0.1216, allocations: 279 kB / 441.2 MB, free: 8.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1216, allocations: 0 / 441.2 MB, free: 8.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.1216, allocations: 4 kB / 441.2 MB, free: 8.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.1216, allocations: 0 / 441.2 MB, free: 8.23 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.00185/0.1235, allocations: 0.7519 MB / 442 MB, free: 7.426 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1235, allocations: 8.031 kB / 442 MB, free: 7.418 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.735e-05/0.1236, allocations: 36.56 kB / 442 MB, free: 7.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.1246, allocations: 411.2 kB / 442.4 MB, free: 6.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.1246, allocations: 12.66 kB / 442.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.718e-05/0.1247, allocations: 20.38 kB / 442.5 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003402/0.125, allocations: 196 kB / 442.7 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.1251, allocations: 4 kB / 442.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.1251, allocations: 4 kB / 442.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.1251, allocations: 4 kB / 442.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.1255, allocations: 196.7 kB / 442.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.1267, allocations: 0.6917 MB / 443.6 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005252/0.1273, allocations: 274.4 kB / 443.8 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.1275, allocations: 124.8 kB / 443.9 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.1275, allocations: 4 kB / 443.9 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.1275, allocations: 38.5 kB / 444 MB, free: 5.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.1276, allocations: 0 / 444 MB, free: 5.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001777/0.1293, allocations: 0.6921 MB / 444.7 MB, free: 4.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.1294, allocations: 55.41 kB / 444.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008761/0.1303, allocations: 414.8 kB / 445.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.1303, allocations: 29.7 kB / 445.2 MB, free: 4.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1304, allocations: 148.5 kB / 445.3 MB, free: 3.934 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.824e-05/0.1305, allocations: 86.8 kB / 445.4 MB, free: 3.848 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.342e-05/0.1306, allocations: 45.7 kB / 445.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1307, allocations: 342.8 kB / 445.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.1309, allocations: 107.8 kB / 445.9 MB, free: 3.348 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.1311, allocations: 108.4 kB / 446 MB, free: 3.242 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0022/0.1333, allocations: 0.7085 MB / 446.7 MB, free: 2.527 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1333, allocations: 0 / 446.7 MB, free: 2.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008044/0.1341, allocations: 441.8 kB / 447.1 MB, free: 2.086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.1342, allocations: 11.94 kB / 447.1 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1342, allocations: 3.938 kB / 447.1 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003143/0.1345, allocations: 92.7 kB / 447.2 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.1347, allocations: 39.97 kB / 447.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001785/0.1365, allocations: 1.837 MB / 449.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/0.1369, allocations: 79.69 kB / 449.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.137, allocations: 12 kB / 449.2 MB, free: 15.87 MB / 334.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002486/0.1372, allocations: 180.3 kB / 449.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.688e-05/0.1373, allocations: 23.72 kB / 449.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.092e-05/0.1374, allocations: 42.25 kB / 449.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1374, allocations: 4 kB / 449.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1374, allocations: 0 / 449.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1374, allocations: 0 / 449.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.1378, allocations: 369.1 kB / 449.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1378, allocations: 4 kB / 449.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.138, allocations: 31.92 kB / 449.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002652/0.1383, allocations: 92.77 kB / 449.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.1383, allocations: 8 kB / 449.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001613/0.14, allocations: 1.853 MB / 451.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.14, allocations: 0 / 451.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009837/0.141, allocations: 0.6182 MB / 452.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.1411, allocations: 112.8 kB / 452.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.895e-05/0.1411, allocations: 8 kB / 452.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004515/0.1416, allocations: 55.91 kB / 452.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.003e-05/0.1417, allocations: 19.92 kB / 452.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.1417, allocations: 4 kB / 452.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007795/0.1425, allocations: 329.8 kB / 452.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1425, allocations: 0 / 452.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003325/0.1428, allocations: 67.84 kB / 453 MB, free: 11.83 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001196/0.1429, allocations: 109.2 kB / 453.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006947/0.1436, allocations: 413.5 kB / 453.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.1437, allocations: 0 / 453.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003775/0.144, allocations: 274.4 kB / 453.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000387/0.1444, allocations: 53.16 kB / 453.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.1457, allocations: 0.6755 MB / 454.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.146, allocations: 0.787 MB / 455.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.1462, allocations: 62.23 kB / 455.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.864e-05/0.1463, allocations: 19.44 kB / 455.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1463, allocations: 0 / 455.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of Templates: time 0.007012/0.1533, allocations: 3.423 MB / 458.8 MB, free: 5.953 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)