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.01079/0.01079, allocations: 101.7 kB / 15.73 MB, free: 5.969 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.001598/0.001598, allocations: 194.7 kB / 16.67 MB, free: 5.906 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.531/1.531, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2227/0.2227, allocations: 22.37 MB / 312.9 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 62.11 kB / 437.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1464, allocations: 54.96 MB / 492 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002514/0.1489, allocations: 1.069 MB / 493.1 MB, free: 156 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.1507, allocations: 1.248 MB / 494.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.1508, allocations: 8 kB / 494.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004216/0.1512, allocations: 55.69 kB / 494.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001921/0.1515, allocations: 55.69 kB / 494.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.1517, allocations: 111.8 kB / 494.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003434/0.1521, allocations: 295.5 kB / 494.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.1522, allocations: 41.67 kB / 494.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.1524, allocations: 123.6 kB / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.1527, allocations: 159.5 kB / 495.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.068e-05/0.1527, allocations: 20 kB / 495.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.634e-05/0.1528, allocations: 20 kB / 495.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.1529, allocations: 91.72 kB / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.826e-05/0.153, allocations: 99.38 kB / 495.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002226/0.1532, allocations: 227.2 kB / 495.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1532, allocations: 0 / 495.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1532, allocations: 0 / 495.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1532, allocations: 0 / 495.6 MB, free: 13.6 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.001618/0.1549, allocations: 0.666 MB / 496.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.1549, allocations: 12.03 kB / 496.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.983e-05/0.155, allocations: 28.56 kB / 496.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008395/0.1559, allocations: 362.6 kB / 496.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.1559, allocations: 8.375 kB / 496.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.967e-05/0.1559, allocations: 12.38 kB / 496.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003107/0.1562, allocations: 171.1 kB / 496.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.1563, allocations: 0 / 496.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.1563, allocations: 8 kB / 496.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.1563, allocations: 4 kB / 496.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003125/0.1566, allocations: 171.9 kB / 497.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.1577, allocations: 0.6212 MB / 497.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.1581, allocations: 214.4 kB / 497.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.1583, allocations: 120.8 kB / 498 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.1583, allocations: 4 kB / 498 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.1584, allocations: 34.56 kB / 498 MB, free: 11.03 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.573e-06/0.1584, allocations: 0 / 498 MB, free: 11.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.001725/0.1601, allocations: 0.6378 MB / 498.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.1601, allocations: 51.41 kB / 498.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007058/0.1609, allocations: 348.9 kB / 499.1 MB, free: 9.949 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.1609, allocations: 29.7 kB / 499.1 MB, free: 9.914 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.649e-05/0.161, allocations: 144.3 kB / 499.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.107e-05/0.1611, allocations: 66.92 kB / 499.3 MB, free: 9.699 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.925e-05/0.1611, allocations: 45.7 kB / 499.4 MB, free: 9.648 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1613, allocations: 338.8 kB / 499.7 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.1615, allocations: 87.94 kB / 499.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.1616, allocations: 91.88 kB / 499.9 MB, free: 9.133 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001907/0.1635, allocations: 0.6193 MB / 0.4888 GB, free: 8.508 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1635, allocations: 4 kB / 0.4888 GB, free: 8.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007299/0.1643, allocations: 393.9 kB / 0.4891 GB, free: 8.109 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1643, allocations: 4 kB / 0.4891 GB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.1643, allocations: 3.938 kB / 0.4891 GB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003059/0.1646, allocations: 96.77 kB / 0.4892 GB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.1648, allocations: 35.92 kB / 0.4893 GB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/0.1666, allocations: 1.841 MB / 0.4911 GB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.1669, allocations: 59.81 kB / 0.4911 GB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.167, allocations: 8.062 kB / 0.4911 GB, free: 5.922 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.0002198/0.1672, allocations: 167.7 kB / 0.4913 GB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.597e-05/0.1672, allocations: 23.72 kB / 0.4913 GB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.401e-05/0.1673, allocations: 38.17 kB / 0.4913 GB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1673, allocations: 4 kB / 0.4914 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.1674, allocations: 0 / 0.4914 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1674, allocations: 0 / 0.4914 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003614/0.1677, allocations: 337.3 kB / 0.4917 GB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1677, allocations: 3.938 kB / 0.4917 GB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.1679, allocations: 27.92 kB / 0.4917 GB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002673/0.1682, allocations: 88.77 kB / 0.4918 GB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.299e-05/0.1682, allocations: 12 kB / 0.4918 GB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001702/0.1699, allocations: 1.849 MB / 0.4936 GB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.17, allocations: 0 / 0.4936 GB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000922/0.1709, allocations: 0.5634 MB / 0.4942 GB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.966e-05/0.171, allocations: 100.9 kB / 0.4943 GB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.171, allocations: 11.98 kB / 0.4943 GB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003399/0.1714, allocations: 39.94 kB / 0.4943 GB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.411e-05/0.1715, allocations: 19.97 kB / 0.4943 GB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.1715, allocations: 11.88 kB / 0.4943 GB, free: 2.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005944/0.1721, allocations: 272.3 kB / 0.4946 GB, free: 2.141 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1721, allocations: 0 / 0.4946 GB, free: 2.141 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003229/0.1724, allocations: 55.94 kB / 0.4946 GB, free: 2.086 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.0001378/0.1726, allocations: 111.1 kB / 0.4948 GB, free: 1.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006786/0.1732, allocations: 371.9 kB / 0.4951 GB, free: 1.594 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1733, allocations: 7.938 kB / 0.4951 GB, free: 1.586 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.1736, allocations: 238.6 kB / 0.4953 GB, free: 1.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.174, allocations: 39.22 kB / 0.4954 GB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009288/0.1749, allocations: 0.5537 MB / 0.4959 GB, free: 0.7188 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.1753, allocations: 0.7714 MB / 0.4967 GB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.1754, allocations: 53.91 kB / 0.4967 GB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.569e-05/0.1755, allocations: 15.44 kB / 0.4967 GB, free: 15.86 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1755, allocations: 0 / 0.4967 GB, free: 15.86 MB / 382.1 MB Notification: Performance of Templates: time 0.006398/0.1819, allocations: 3.039 MB / 0.4997 GB, free: 12.82 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)