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.006138/0.006138, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001119/0.001119, allocations: 189.3 kB / 16.67 MB, free: 5.973 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2288/0.2288, allocations: 22.35 MB / 312.9 MB, free: 12.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 61.36 kB / 437.1 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1057, allocations: 54.98 MB / 492 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002162/0.1079, allocations: 1.118 MB / 493.2 MB, free: 220 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.1095, allocations: 1.295 MB / 494.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.148e-05/0.1096, allocations: 7.938 kB / 494.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003547/0.1099, allocations: 67.61 kB / 494.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.1102, allocations: 87.58 kB / 494.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002457/0.1104, allocations: 135.8 kB / 494.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.1108, allocations: 383.3 kB / 495.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.111, allocations: 56.38 kB / 495.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.1112, allocations: 155.5 kB / 495.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002767/0.1115, allocations: 191.4 kB / 495.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.199e-05/0.1115, allocations: 24 kB / 495.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.076e-05/0.1116, allocations: 20 kB / 495.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.1117, allocations: 111.6 kB / 495.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001606/0.1119, allocations: 119.2 kB / 495.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.1122, allocations: 270.8 kB / 496 MB, free: 13.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.1122, allocations: 4 kB / 496 MB, free: 13.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1122, allocations: 0 / 496 MB, free: 13.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1122, allocations: 0 / 496 MB, free: 13.3 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.00181/0.114, allocations: 0.7655 MB / 496.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.1141, allocations: 8.031 kB / 496.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.527e-05/0.1141, allocations: 32.75 kB / 496.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009903/0.1151, allocations: 419.4 kB / 497.3 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.1152, allocations: 16.66 kB / 497.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/0.1152, allocations: 16.36 kB / 497.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003609/0.1156, allocations: 200 kB / 497.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1156, allocations: 0 / 497.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.1156, allocations: 4 kB / 497.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1157, allocations: 8 kB / 497.5 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003843/0.116, allocations: 196.7 kB / 497.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.1173, allocations: 0.6956 MB / 498.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005574/0.1178, allocations: 270.4 kB / 498.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002187/0.1181, allocations: 132.8 kB / 498.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.1181, allocations: 0 / 498.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.1181, allocations: 38.56 kB / 498.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.202e-06/0.1181, allocations: 7.938 kB / 498.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001878/0.12, allocations: 0.6849 MB / 499.5 MB, free: 9.648 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.1201, allocations: 55.41 kB / 499.6 MB, free: 9.582 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009443/0.121, allocations: 414.8 kB / 500 MB, free: 9.164 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.1211, allocations: 29.7 kB / 500 MB, free: 9.129 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.556e-05/0.1212, allocations: 152.5 kB / 0.4884 GB, free: 8.977 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.217e-05/0.1213, allocations: 91.22 kB / 0.4885 GB, free: 8.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.969e-05/0.1213, allocations: 41.7 kB / 0.4886 GB, free: 8.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1215, allocations: 350.8 kB / 0.4889 GB, free: 8.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.1217, allocations: 99.92 kB / 0.489 GB, free: 8.391 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.1219, allocations: 108.7 kB / 0.4891 GB, free: 8.285 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002149/0.124, allocations: 0.7119 MB / 0.4898 GB, free: 7.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.124, allocations: 4 kB / 0.4898 GB, free: 7.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008158/0.1248, allocations: 438 kB / 0.4902 GB, free: 7.129 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.1249, allocations: 7.938 kB / 0.4902 GB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.1249, allocations: 0 / 0.4902 GB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003174/0.1252, allocations: 104.6 kB / 0.4903 GB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.1254, allocations: 35.97 kB / 0.4903 GB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/0.1272, allocations: 1.841 MB / 0.4921 GB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.1276, allocations: 67.83 kB / 0.4922 GB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.1276, allocations: 8.188 kB / 0.4922 GB, free: 4.922 MB / 366.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.0002296/0.1279, allocations: 189.5 kB / 0.4924 GB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.251e-05/0.1279, allocations: 35.75 kB / 0.4924 GB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.128, allocations: 46.25 kB / 0.4925 GB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.128, allocations: 4 kB / 0.4925 GB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.1281, allocations: 4 kB / 0.4925 GB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1281, allocations: 0 / 0.4925 GB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004229/0.1285, allocations: 369.2 kB / 0.4928 GB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1285, allocations: 0 / 0.4928 GB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002067/0.1287, allocations: 31.98 kB / 0.4929 GB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002633/0.129, allocations: 92.7 kB / 0.493 GB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.129, allocations: 8 kB / 0.493 GB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001606/0.1306, allocations: 1.85 MB / 0.4948 GB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.1307, allocations: 4 kB / 0.4948 GB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000973/0.1316, allocations: 0.609 MB / 0.4954 GB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.038e-05/0.1317, allocations: 113 kB / 0.4955 GB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.619e-05/0.1318, allocations: 12 kB / 0.4955 GB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000423/0.1322, allocations: 51.91 kB / 0.4955 GB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.703e-05/0.1323, allocations: 19.92 kB / 0.4956 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.1323, allocations: 12 kB / 0.4956 GB, free: 1.254 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007879/0.1331, allocations: 321.8 kB / 0.4959 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1331, allocations: 0 / 0.4959 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003298/0.1335, allocations: 67.94 kB / 0.4959 GB, free: 0.875 MB / 366.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.0001258/0.1336, allocations: 111.2 kB / 0.496 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007184/0.1343, allocations: 402.6 kB / 0.4964 GB, free: 360 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1343, allocations: 4 kB / 0.4964 GB, free: 356 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003992/0.1347, allocations: 278.5 kB / 0.4967 GB, free: 64 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004315/0.1352, allocations: 44.86 kB / 0.4967 GB, free: 16 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.1365, allocations: 0.6995 MB / 0.4974 GB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.1369, allocations: 0.7947 MB / 0.4982 GB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001486/0.137, allocations: 62.23 kB / 0.4983 GB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.032e-05/0.1371, allocations: 31.38 kB / 0.4983 GB, free: 14.37 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1371, allocations: 0 / 0.4983 GB, free: 14.37 MB / 382.1 MB Notification: Performance of Templates: time 0.006848/0.144, allocations: 3.467 MB / 0.5017 GB, free: 10.91 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)