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.001887/0.001887, allocations: 110.1 kB / 16.37 MB, free: 6.012 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.002/0.002, allocations: 194.6 kB / 17.31 MB, free: 5.613 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09095/0.09095, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002207/0.002207, allocations: 71.78 kB / 382.3 MB, free: 40.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.09793, allocations: 54.96 MB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002185/0.1001, allocations: 1.063 MB / 438.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.1016, allocations: 1.24 MB / 439.5 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.292e-05/0.1017, allocations: 8 kB / 439.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002998/0.102, allocations: 55.62 kB / 439.6 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.1022, allocations: 55.73 kB / 439.6 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002533/0.1025, allocations: 111.8 kB / 439.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003401/0.1028, allocations: 299.4 kB / 440 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.103, allocations: 49.59 kB / 440.1 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.1031, allocations: 119.6 kB / 440.2 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000218/0.1034, allocations: 151.5 kB / 440.3 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.099e-05/0.1034, allocations: 27.94 kB / 440.4 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.244e-05/0.1035, allocations: 20 kB / 440.4 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.1036, allocations: 91.77 kB / 440.5 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.73e-05/0.1037, allocations: 95.39 kB / 440.6 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002348/0.1039, allocations: 223.1 kB / 440.8 MB, free: 8.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1039, allocations: 0 / 440.8 MB, free: 8.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1039, allocations: 4 kB / 440.8 MB, free: 8.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.104, allocations: 0 / 440.8 MB, free: 8.641 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.00156/0.1055, allocations: 0.6622 MB / 441.5 MB, free: 7.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.1056, allocations: 8.031 kB / 441.5 MB, free: 7.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.591e-05/0.1056, allocations: 24.66 kB / 441.5 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008057/0.1064, allocations: 366.6 kB / 441.8 MB, free: 7.504 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.1065, allocations: 16.36 kB / 441.9 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.1065, allocations: 16.28 kB / 441.9 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002767/0.1068, allocations: 179.1 kB / 442.1 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1068, allocations: 0 / 442.1 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.1068, allocations: 8 kB / 442.1 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1068, allocations: 0 / 442.1 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003012/0.1072, allocations: 167.9 kB / 442.2 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.1082, allocations: 0.6251 MB / 442.8 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.1085, allocations: 210.5 kB / 443.1 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.1087, allocations: 114.9 kB / 443.2 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.1087, allocations: 4 kB / 443.2 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.1088, allocations: 34.5 kB / 443.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.453e-06/0.1088, allocations: 0 / 443.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001699/0.1105, allocations: 0.6398 MB / 443.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.1105, allocations: 51.41 kB / 443.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006913/0.1112, allocations: 344.9 kB / 444.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.1112, allocations: 25.7 kB / 444.3 MB, free: 4.961 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.691e-05/0.1113, allocations: 144.3 kB / 444.4 MB, free: 4.816 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.398e-05/0.1114, allocations: 78.89 kB / 444.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.688e-05/0.1115, allocations: 41.72 kB / 444.5 MB, free: 4.691 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1116, allocations: 330.8 kB / 444.8 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.1118, allocations: 91.94 kB / 444.9 MB, free: 4.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.112, allocations: 95.88 kB / 445 MB, free: 4.176 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002041/0.114, allocations: 0.6236 MB / 445.6 MB, free: 3.547 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.114, allocations: 0 / 445.6 MB, free: 3.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007639/0.1148, allocations: 406 kB / 446 MB, free: 3.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1148, allocations: 7.938 kB / 446.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.1148, allocations: 11.86 kB / 446.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003163/0.1152, allocations: 92.77 kB / 446.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.1153, allocations: 35.97 kB / 446.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.1173, allocations: 1.833 MB / 448 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000382/0.1177, allocations: 51.81 kB / 448.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.1177, allocations: 11.98 kB / 448.1 MB, free: 0.957 MB / 318.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.0002068/0.1179, allocations: 171.7 kB / 448.3 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.313e-05/0.118, allocations: 19.72 kB / 448.3 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000129/0.1181, allocations: 46.17 kB / 448.3 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1181, allocations: 4 kB / 448.3 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1181, allocations: 0 / 448.3 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1182, allocations: 3.984 kB / 448.3 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003386/0.1185, allocations: 325.5 kB / 448.6 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.1185, allocations: 4 kB / 448.6 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.1187, allocations: 27.98 kB / 448.7 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003303/0.119, allocations: 88.77 kB / 448.8 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.1191, allocations: 15.98 kB / 448.8 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001834/0.1209, allocations: 1.838 MB / 450.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1209, allocations: 0 / 450.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009159/0.1218, allocations: 0.5582 MB / 451.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.122, allocations: 108.8 kB / 451.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.534e-05/0.122, allocations: 8.375 kB / 451.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003716/0.1224, allocations: 47.92 kB / 451.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.776e-05/0.1225, allocations: 11.98 kB / 451.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.1225, allocations: 15.94 kB / 451.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000603/0.1231, allocations: 268.3 kB / 451.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1231, allocations: 3.938 kB / 451.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000316/0.1234, allocations: 56 kB / 451.7 MB, free: 13.12 MB / 334.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.0001423/0.1236, allocations: 109.3 kB / 451.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006643/0.1242, allocations: 369.6 kB / 452.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1243, allocations: 0 / 452.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004242/0.1247, allocations: 250.5 kB / 452.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.125, allocations: 32.42 kB / 452.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008605/0.1259, allocations: 0.5725 MB / 453 MB, free: 11.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.1263, allocations: 0.7675 MB / 453.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.1264, allocations: 49.91 kB / 453.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.683e-05/0.1265, allocations: 19.44 kB / 453.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1265, allocations: 0 / 453.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of Templates: time 0.005937/0.1324, allocations: 2.995 MB / 456.8 MB, free: 7.895 MB / 334.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)