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.00146/0.00146, allocations: 102.5 kB / 16.4 MB, free: 6.461 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.001614/0.001614, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08644/0.08644, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.001251, allocations: 67.89 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1193, allocations: 54.95 MB / 492.7 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002308/0.1217, allocations: 1.127 MB / 493.8 MB, free: 3.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.1234, allocations: 1.311 MB / 495.1 MB, free: 2.332 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.309e-05/0.1235, allocations: 4 kB / 495.1 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003633/0.1238, allocations: 63.61 kB / 495.2 MB, free: 2.266 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.1241, allocations: 79.61 kB / 495.3 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002766/0.1243, allocations: 139.7 kB / 495.4 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000389/0.1247, allocations: 383.3 kB / 495.8 MB, free: 1.676 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.1249, allocations: 60.31 kB / 495.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.1251, allocations: 151.6 kB / 496 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000272/0.1254, allocations: 191.3 kB / 496.2 MB, free: 1.281 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.313e-05/0.1254, allocations: 24 kB / 496.2 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.388e-05/0.1255, allocations: 20 kB / 496.2 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.1256, allocations: 103.7 kB / 496.3 MB, free: 1.137 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.1258, allocations: 123.2 kB / 496.4 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.126, allocations: 271 kB / 496.7 MB, free: 0.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1261, allocations: 7.938 kB / 496.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1261, allocations: 0 / 496.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.1261, allocations: 0 / 496.7 MB, free: 0.7422 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.001908/0.128, allocations: 0.7583 MB / 497.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.128, allocations: 8.031 kB / 497.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.746e-05/0.1281, allocations: 32.56 kB / 497.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009803/0.1291, allocations: 407.3 kB / 497.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.1291, allocations: 16.66 kB / 497.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.1292, allocations: 16.28 kB / 497.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003559/0.1296, allocations: 196 kB / 498.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.1296, allocations: 0 / 498.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.261e-05/0.1296, allocations: 4 kB / 498.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.1296, allocations: 4 kB / 498.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003725/0.13, allocations: 200.7 kB / 498.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.1312, allocations: 0.6956 MB / 499 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005358/0.1318, allocations: 270.4 kB / 499.3 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.132, allocations: 132.8 kB / 499.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.132, allocations: 0 / 499.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.132, allocations: 34.56 kB / 499.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.112e-06/0.132, allocations: 0 / 499.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001841/0.1339, allocations: 0.688 MB / 0.4884 GB, free: 13.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.1339, allocations: 63.34 kB / 0.4885 GB, free: 13.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008982/0.1348, allocations: 410.8 kB / 0.4889 GB, free: 12.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.1349, allocations: 33.7 kB / 0.4889 GB, free: 12.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.135, allocations: 152.4 kB / 0.489 GB, free: 12.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.81e-05/0.1351, allocations: 90.73 kB / 0.4891 GB, free: 12.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.82e-05/0.1351, allocations: 41.7 kB / 0.4892 GB, free: 12.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1353, allocations: 350.8 kB / 0.4895 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.1355, allocations: 99.92 kB / 0.4896 GB, free: 11.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.1356, allocations: 109.1 kB / 0.4897 GB, free: 11.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/0.1377, allocations: 0.7143 MB / 0.4904 GB, free: 11.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1377, allocations: 0 / 0.4904 GB, free: 11.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007968/0.1385, allocations: 441.8 kB / 0.4908 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.1386, allocations: 7.938 kB / 0.4908 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1386, allocations: 0 / 0.4908 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003128/0.1389, allocations: 88.77 kB / 0.4909 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001779/0.1391, allocations: 47.91 kB / 0.491 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001768/0.1409, allocations: 1.845 MB / 0.4928 GB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004113/0.1413, allocations: 67.78 kB / 0.4928 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.1413, allocations: 8 kB / 0.4928 GB, free: 8.383 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.0002248/0.1416, allocations: 180.4 kB / 0.493 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.735e-05/0.1416, allocations: 23.72 kB / 0.493 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.995e-05/0.1417, allocations: 46.25 kB / 0.4931 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1417, allocations: 0 / 0.4931 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1417, allocations: 4 kB / 0.4931 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1418, allocations: 4 kB / 0.4931 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003882/0.1422, allocations: 365.2 kB / 0.4934 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1422, allocations: 3.938 kB / 0.4934 GB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002056/0.1424, allocations: 31.98 kB / 0.4935 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002568/0.1426, allocations: 88.77 kB / 0.4935 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.1427, allocations: 8 kB / 0.4935 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/0.1443, allocations: 1.853 MB / 0.4954 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1443, allocations: 0 / 0.4954 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009704/0.1453, allocations: 0.6052 MB / 0.4959 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.538e-05/0.1454, allocations: 120.6 kB / 0.4961 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.1454, allocations: 11.94 kB / 0.4961 GB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004259/0.1459, allocations: 55.97 kB / 0.4961 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.501e-05/0.146, allocations: 19.92 kB / 0.4961 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.146, allocations: 12 kB / 0.4962 GB, free: 4.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008074/0.1468, allocations: 329.7 kB / 0.4965 GB, free: 4.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1468, allocations: 0 / 0.4965 GB, free: 4.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003339/0.1471, allocations: 67.94 kB / 0.4965 GB, free: 4.344 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.0001351/0.1473, allocations: 107.2 kB / 0.4966 GB, free: 4.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007098/0.148, allocations: 412.7 kB / 0.497 GB, free: 3.816 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.148, allocations: 4 kB / 0.497 GB, free: 3.812 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003777/0.1484, allocations: 270.6 kB / 0.4973 GB, free: 3.535 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.1488, allocations: 42.89 kB / 0.4973 GB, free: 3.492 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.1501, allocations: 0.72 MB / 0.498 GB, free: 2.738 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.1505, allocations: 0.7948 MB / 0.4988 GB, free: 1.918 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.587e-05/0.1506, allocations: 23.44 kB / 0.4988 GB, free: 1.895 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1506, allocations: 0 / 0.4988 GB, free: 1.895 MB / 382.1 MB Notification: Performance of Templates: time 0.241/0.3916, allocations: 4.417 MB / 0.5032 GB, free: 21.27 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)