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.004905/0.004905, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.001072/0.001072, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2449/0.2449, allocations: 22.36 MB / 312.9 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 57.75 kB / 437.1 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1256, allocations: 54.97 MB / 492 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002329/0.128, allocations: 1.133 MB / 493.2 MB, free: 104 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.1297, allocations: 1.299 MB / 494.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.607e-05/0.1298, allocations: 3.938 kB / 494.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003578/0.1301, allocations: 63.62 kB / 494.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002285/0.1304, allocations: 99.58 kB / 494.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.1307, allocations: 127.8 kB / 494.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003798/0.1311, allocations: 387.3 kB / 495.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.1312, allocations: 48.39 kB / 495.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001858/0.1314, allocations: 159.5 kB / 495.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.1317, allocations: 195.4 kB / 495.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.172e-05/0.1317, allocations: 20 kB / 495.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.367e-05/0.1318, allocations: 24 kB / 495.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.1319, allocations: 111.6 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.1321, allocations: 119.2 kB / 495.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003085/0.1324, allocations: 271 kB / 496.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.1324, allocations: 0 / 496.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1324, allocations: 0 / 496.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.946e-06/0.1324, allocations: 4 kB / 496.1 MB, free: 13.18 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.001901/0.1343, allocations: 0.7519 MB / 496.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.1344, allocations: 8.031 kB / 496.8 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.315e-05/0.1344, allocations: 28.56 kB / 496.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009536/0.1354, allocations: 415.3 kB / 497.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.1354, allocations: 12.59 kB / 497.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.964e-05/0.1355, allocations: 20.38 kB / 497.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003331/0.1358, allocations: 196 kB / 497.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.1358, allocations: 7.906 kB / 497.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/0.1359, allocations: 8 kB / 497.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.1359, allocations: 7.984 kB / 497.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003617/0.1363, allocations: 196.7 kB / 497.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.1374, allocations: 0.6955 MB / 498.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005387/0.138, allocations: 266.4 kB / 498.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.1382, allocations: 128.8 kB / 498.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/0.1382, allocations: 4 kB / 498.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.1382, allocations: 46.48 kB / 498.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.1383, allocations: 0 / 498.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001763/0.14, allocations: 0.6929 MB / 499.5 MB, free: 9.539 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.1401, allocations: 55.41 kB / 499.6 MB, free: 9.473 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000885/0.141, allocations: 414.8 kB / 500 MB, free: 9.055 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.141, allocations: 29.7 kB / 0.4883 GB, free: 9.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.1411, allocations: 148.5 kB / 0.4884 GB, free: 8.871 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.331e-05/0.1412, allocations: 86.75 kB / 0.4885 GB, free: 8.785 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.14e-05/0.1413, allocations: 41.7 kB / 0.4886 GB, free: 8.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1414, allocations: 342.8 kB / 0.4889 GB, free: 8.395 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.1416, allocations: 103.9 kB / 0.489 GB, free: 8.293 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.1418, allocations: 108.7 kB / 0.4891 GB, free: 8.188 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002051/0.1439, allocations: 0.7089 MB / 0.4898 GB, free: 7.473 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1439, allocations: 0 / 0.4898 GB, free: 7.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007843/0.1447, allocations: 441.8 kB / 0.4902 GB, free: 7.031 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.1447, allocations: 11.94 kB / 0.4902 GB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.1447, allocations: 0 / 0.4902 GB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003229/0.145, allocations: 96.7 kB / 0.4903 GB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.1452, allocations: 35.98 kB / 0.4903 GB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/0.1472, allocations: 1.837 MB / 0.4921 GB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004109/0.1476, allocations: 67.8 kB / 0.4922 GB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.1477, allocations: 15.98 kB / 0.4922 GB, free: 4.824 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.0002604/0.1479, allocations: 184.3 kB / 0.4924 GB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.135e-05/0.148, allocations: 27.62 kB / 0.4924 GB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.1481, allocations: 46.25 kB / 0.4925 GB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.686e-06/0.1481, allocations: 4 kB / 0.4925 GB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.1481, allocations: 0 / 0.4925 GB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1481, allocations: 0 / 0.4925 GB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.1485, allocations: 369.2 kB / 0.4928 GB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.1486, allocations: 0 / 0.4928 GB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002004/0.1488, allocations: 27.98 kB / 0.4928 GB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002611/0.149, allocations: 100.7 kB / 0.4929 GB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.1491, allocations: 12 kB / 0.4929 GB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001583/0.1507, allocations: 1.846 MB / 0.4948 GB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1507, allocations: 0 / 0.4948 GB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009686/0.1516, allocations: 0.6198 MB / 0.4954 GB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.812e-05/0.1517, allocations: 116.7 kB / 0.4955 GB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.606e-05/0.1518, allocations: 11.98 kB / 0.4955 GB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004049/0.1522, allocations: 47.92 kB / 0.4955 GB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.816e-05/0.1523, allocations: 23.91 kB / 0.4955 GB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.1523, allocations: 4 kB / 0.4956 GB, free: 1.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007696/0.1531, allocations: 329.8 kB / 0.4959 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1531, allocations: 0 / 0.4959 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003409/0.1534, allocations: 60 kB / 0.4959 GB, free: 0.7891 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.0001455/0.1536, allocations: 107.2 kB / 0.496 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007171/0.1543, allocations: 414.5 kB / 0.4964 GB, free: 264 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.1543, allocations: 0 / 0.4964 GB, free: 264 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003766/0.1547, allocations: 266.7 kB / 0.4967 GB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.1551, allocations: 51.11 kB / 0.4967 GB, free: 15.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.1564, allocations: 0.687 MB / 0.4974 GB, free: 15.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.1568, allocations: 0.787 MB / 0.4982 GB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.1569, allocations: 62.23 kB / 0.4982 GB, free: 14.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.038e-05/0.157, allocations: 19.44 kB / 0.4982 GB, free: 14.32 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.157, allocations: 0 / 0.4982 GB, free: 14.32 MB / 382.1 MB Notification: Performance of Templates: time 0.007714/0.1647, allocations: 3.585 MB / 0.5017 GB, free: 10.74 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)