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.001269/0.00127, allocations: 112.4 kB / 16.37 MB, free: 6.348 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.001041/0.001041, allocations: 188.7 kB / 17.3 MB, free: 5.895 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.268/1.268, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08907/0.08907, allocations: 22.32 MB / 313.5 MB, free: 8.922 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 64.14 kB / 437.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1058, allocations: 54.95 MB / 492.6 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.00227/0.1082, allocations: 1.135 MB / 493.7 MB, free: 3.703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.1099, allocations: 1.303 MB / 495 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.11, allocations: 4 kB / 495.1 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003378/0.1104, allocations: 67.61 kB / 495.1 MB, free: 2.312 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.1106, allocations: 83.59 kB / 495.2 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.1109, allocations: 131.8 kB / 495.3 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003801/0.1113, allocations: 387.2 kB / 495.7 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.1114, allocations: 56.38 kB / 495.8 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001832/0.1116, allocations: 159.5 kB / 495.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.1119, allocations: 191.3 kB / 496.1 MB, free: 1.324 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.806e-05/0.1119, allocations: 24 kB / 496.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.443e-05/0.112, allocations: 20 kB / 496.1 MB, free: 1.281 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.1121, allocations: 103.7 kB / 496.2 MB, free: 1.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.1122, allocations: 123.2 kB / 496.4 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002558/0.1125, allocations: 275 kB / 496.6 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1125, allocations: 0 / 496.6 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1125, allocations: 0 / 496.6 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.1125, allocations: 0 / 496.6 MB, free: 0.7891 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.00191/0.1144, allocations: 0.7557 MB / 497.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.1145, allocations: 12.03 kB / 497.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.009e-05/0.1146, allocations: 32.56 kB / 497.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009616/0.1155, allocations: 407.3 kB / 497.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.1156, allocations: 16.66 kB / 497.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.773e-05/0.1156, allocations: 16.28 kB / 497.9 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.116, allocations: 196 kB / 498.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.116, allocations: 0 / 498.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.116, allocations: 4 kB / 498.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.116, allocations: 4 kB / 498.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003804/0.1164, allocations: 196.7 kB / 498.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.1175, allocations: 0.6995 MB / 499 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005173/0.118, allocations: 270.4 kB / 499.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.1182, allocations: 132.8 kB / 499.4 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.1183, allocations: 0 / 499.4 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.1183, allocations: 34.56 kB / 499.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 4.128e-06/0.1183, allocations: 3.984 kB / 499.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001786/0.1201, allocations: 0.6908 MB / 0.4884 GB, free: 13.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.1201, allocations: 55.41 kB / 0.4884 GB, free: 13.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009112/0.1211, allocations: 414.8 kB / 0.4888 GB, free: 12.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.1211, allocations: 29.7 kB / 0.4888 GB, free: 12.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.422e-05/0.1212, allocations: 156.4 kB / 0.489 GB, free: 12.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.92e-05/0.1213, allocations: 86.75 kB / 0.4891 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.959e-05/0.1214, allocations: 41.7 kB / 0.4891 GB, free: 12.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1215, allocations: 350.8 kB / 0.4894 GB, free: 12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.1217, allocations: 99.92 kB / 0.4895 GB, free: 11.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.1218, allocations: 109.2 kB / 0.4896 GB, free: 11.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002099/0.1239, allocations: 0.7115 MB / 0.4903 GB, free: 11.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.124, allocations: 0 / 0.4903 GB, free: 11.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007839/0.1248, allocations: 445.8 kB / 0.4908 GB, free: 10.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1248, allocations: 7.938 kB / 0.4908 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1248, allocations: 0 / 0.4908 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002932/0.1251, allocations: 92.77 kB / 0.4909 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.1253, allocations: 39.91 kB / 0.4909 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/0.127, allocations: 1.845 MB / 0.4927 GB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.1274, allocations: 71.84 kB / 0.4928 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.1275, allocations: 11.98 kB / 0.4928 GB, free: 8.422 MB / 382.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.0002125/0.1277, allocations: 176.3 kB / 0.4929 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.588e-05/0.1278, allocations: 23.72 kB / 0.493 GB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.714e-05/0.1279, allocations: 46.25 kB / 0.493 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1279, allocations: 0 / 0.493 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.575e-05/0.1279, allocations: 7.984 kB / 0.493 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1279, allocations: 0 / 0.493 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003693/0.1283, allocations: 365.2 kB / 0.4934 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1283, allocations: 4 kB / 0.4934 GB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.1285, allocations: 35.92 kB / 0.4934 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002623/0.1288, allocations: 92.77 kB / 0.4935 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.1288, allocations: 4.188 kB / 0.4935 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/0.1304, allocations: 1.845 MB / 0.4953 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1304, allocations: 0 / 0.4953 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000963/0.1314, allocations: 0.6154 MB / 0.4959 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.283e-05/0.1315, allocations: 116.7 kB / 0.496 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.1315, allocations: 8 kB / 0.496 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.1319, allocations: 59.91 kB / 0.4961 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.132, allocations: 19.92 kB / 0.4961 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.132, allocations: 8 kB / 0.4961 GB, free: 4.777 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007733/0.1328, allocations: 325.8 kB / 0.4964 GB, free: 4.461 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1328, allocations: 0 / 0.4964 GB, free: 4.461 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000334/0.1332, allocations: 67.94 kB / 0.4965 GB, free: 4.395 MB / 382.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.0001345/0.1333, allocations: 107.2 kB / 0.4966 GB, free: 4.281 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007292/0.134, allocations: 418.2 kB / 0.497 GB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1341, allocations: 0 / 0.497 GB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003786/0.1344, allocations: 270.5 kB / 0.4972 GB, free: 3.582 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000383/0.1348, allocations: 46.83 kB / 0.4973 GB, free: 3.535 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.1361, allocations: 0.7239 MB / 0.498 GB, free: 2.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/0.1365, allocations: 0.7948 MB / 0.4988 GB, free: 1.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.238e-05/0.1366, allocations: 19.44 kB / 0.4988 GB, free: 1.938 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1366, allocations: 0 / 0.4988 GB, free: 1.938 MB / 382.1 MB Notification: Performance of Templates: time 0.1945/0.3311, allocations: 4.403 MB / 0.5031 GB, free: 21.21 MB / 382.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 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)