Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007438/0.007438, allocations: 96.94 kB / 15.73 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.001734/0.001734, allocations: 191.3 kB / 16.67 MB, free: 6.391 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.625/1.625, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2134/0.2134, allocations: 22.35 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 65.5 kB / 437.1 MB, free: 34.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1048, allocations: 54.96 MB / 492 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001842/0.1067, allocations: 1.07 MB / 493.1 MB, free: 300 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.1081, allocations: 1.237 MB / 494.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.08e-05/0.1082, allocations: 7.938 kB / 494.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003303/0.1085, allocations: 59.69 kB / 494.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001741/0.1087, allocations: 59.67 kB / 494.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002137/0.109, allocations: 103.8 kB / 494.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002991/0.1093, allocations: 299.5 kB / 494.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.1094, allocations: 49.59 kB / 494.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.1095, allocations: 123.6 kB / 495 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002116/0.1098, allocations: 155.5 kB / 495.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.45e-05/0.1098, allocations: 20 kB / 495.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.632e-05/0.1099, allocations: 24 kB / 495.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.11, allocations: 95.7 kB / 495.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.303e-05/0.1101, allocations: 95.41 kB / 495.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002287/0.1103, allocations: 223 kB / 495.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1103, allocations: 4 kB / 495.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1103, allocations: 0 / 495.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1104, allocations: 0 / 495.6 MB, free: 13.74 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001524/0.1119, allocations: 0.6737 MB / 496.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.1119, allocations: 8.031 kB / 496.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.624e-05/0.112, allocations: 24.8 kB / 496.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007993/0.1128, allocations: 370.8 kB / 496.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.1128, allocations: 8.375 kB / 496.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.824e-05/0.1129, allocations: 12.38 kB / 496.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.1132, allocations: 175.1 kB / 496.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.1132, allocations: 0 / 496.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.1132, allocations: 11.94 kB / 496.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1132, allocations: 0 / 496.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003156/0.1136, allocations: 167.9 kB / 497.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009929/0.1146, allocations: 0.6291 MB / 497.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003296/0.1149, allocations: 214.4 kB / 497.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.1151, allocations: 112.8 kB / 498 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.1151, allocations: 4 kB / 498 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.1152, allocations: 30.56 kB / 498 MB, free: 11.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.262e-06/0.1152, allocations: 0 / 498 MB, free: 11.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.001733/0.1169, allocations: 0.6476 MB / 498.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.1169, allocations: 51.41 kB / 498.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007191/0.1177, allocations: 344.9 kB / 499.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.1177, allocations: 25.7 kB / 499.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.062e-05/0.1178, allocations: 144.4 kB / 499.2 MB, free: 9.898 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.941e-05/0.1179, allocations: 83.31 kB / 499.3 MB, free: 9.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.666e-05/0.118, allocations: 37.72 kB / 499.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1181, allocations: 338.8 kB / 499.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.1182, allocations: 87.94 kB / 499.8 MB, free: 9.348 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.1184, allocations: 97.25 kB / 499.9 MB, free: 9.254 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.1203, allocations: 0.6193 MB / 0.4888 GB, free: 8.629 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1204, allocations: 4 kB / 0.4888 GB, free: 8.625 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007212/0.1211, allocations: 398 kB / 0.4891 GB, free: 8.227 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.1211, allocations: 4 kB / 0.4891 GB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1211, allocations: 3.938 kB / 0.4892 GB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003074/0.1214, allocations: 92.77 kB / 0.4892 GB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.1216, allocations: 39.91 kB / 0.4893 GB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/0.1235, allocations: 1.841 MB / 0.4911 GB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003378/0.1238, allocations: 55.84 kB / 0.4911 GB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.1239, allocations: 8 kB / 0.4911 GB, free: 6.043 MB / 366.1 MB Warning: Assuming fixed start value for the following 6 variables: 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 (21): * Single equations (assignments): 20 * 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.0002124/0.1241, allocations: 163.8 kB / 0.4913 GB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.405e-05/0.1241, allocations: 23.86 kB / 0.4913 GB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.722e-05/0.1242, allocations: 38.17 kB / 0.4914 GB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1243, allocations: 8 kB / 0.4914 GB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1243, allocations: 4.125 kB / 0.4914 GB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.1243, allocations: 3.984 kB / 0.4914 GB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003615/0.1246, allocations: 333.3 kB / 0.4917 GB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-06/0.1247, allocations: 0 / 0.4917 GB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.1248, allocations: 31.92 kB / 0.4917 GB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002655/0.1251, allocations: 88.77 kB / 0.4918 GB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.1251, allocations: 15.97 kB / 0.4918 GB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001686/0.1268, allocations: 1.846 MB / 0.4936 GB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1269, allocations: 0 / 0.4936 GB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009209/0.1278, allocations: 0.556 MB / 0.4942 GB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.761e-05/0.1279, allocations: 101.3 kB / 0.4943 GB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.357e-05/0.1279, allocations: 12.12 kB / 0.4943 GB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000355/0.1283, allocations: 51.92 kB / 0.4943 GB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.429e-05/0.1283, allocations: 11.98 kB / 0.4943 GB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.1284, allocations: 15.88 kB / 0.4943 GB, free: 2.523 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006139/0.129, allocations: 268.3 kB / 0.4946 GB, free: 2.262 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.129, allocations: 0 / 0.4946 GB, free: 2.262 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003008/0.1293, allocations: 63.89 kB / 0.4947 GB, free: 2.199 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * 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.000132/0.1294, allocations: 107.2 kB / 0.4948 GB, free: 2.086 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006788/0.1301, allocations: 366.5 kB / 0.4951 GB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1301, allocations: 0 / 0.4951 GB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003592/0.1305, allocations: 259.7 kB / 0.4954 GB, free: 1.449 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.1309, allocations: 35.23 kB / 0.4954 GB, free: 1.418 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009063/0.1318, allocations: 0.568 MB / 0.4959 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.1322, allocations: 0.7674 MB / 0.4967 GB, free: 24 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.1323, allocations: 53.91 kB / 0.4968 GB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.702e-05/0.1324, allocations: 19.44 kB / 0.4968 GB, free: 15.95 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1324, allocations: 0 / 0.4968 GB, free: 15.95 MB / 382.1 MB Notification: Performance of Templates: time 0.005933/0.1383, allocations: 3.035 MB / 0.4997 GB, free: 12.92 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)