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.008925/0.008925, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.001963/0.001964, allocations: 188.9 kB / 16.67 MB, free: 5.969 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.38/1.38, 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.2637/0.2637, allocations: 22.35 MB / 312.9 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 62.33 kB / 437.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1135, allocations: 54.97 MB / 492 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002214/0.1158, allocations: 1.064 MB / 493.1 MB, free: 168 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.1176, allocations: 1.248 MB / 494.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.1177, allocations: 4 kB / 494.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003708/0.1181, allocations: 59.62 kB / 494.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002308/0.1184, allocations: 63.62 kB / 494.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002776/0.1187, allocations: 107.8 kB / 494.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004067/0.1191, allocations: 295.5 kB / 494.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.1193, allocations: 45.67 kB / 494.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/0.1195, allocations: 119.6 kB / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002887/0.1198, allocations: 155.5 kB / 495.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.78e-05/0.1199, allocations: 20 kB / 495.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.261e-05/0.12, allocations: 20 kB / 495.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.1201, allocations: 91.77 kB / 495.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.1202, allocations: 99.33 kB / 495.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002672/0.1205, allocations: 223.2 kB / 495.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1205, allocations: 8 kB / 495.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1205, allocations: 0 / 495.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1205, allocations: 0 / 495.6 MB, free: 13.61 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.001697/0.1222, allocations: 0.6621 MB / 496.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1223, allocations: 12.03 kB / 496.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.534e-05/0.1224, allocations: 28.56 kB / 496.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008131/0.1232, allocations: 358.7 kB / 496.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.1232, allocations: 16.25 kB / 496.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.193e-05/0.1233, allocations: 12.38 kB / 496.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.1236, allocations: 179.1 kB / 496.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.1237, allocations: 3.984 kB / 496.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.1237, allocations: 8 kB / 496.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.1237, allocations: 0 / 496.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003302/0.124, allocations: 163.9 kB / 497.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.1252, allocations: 0.629 MB / 497.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003662/0.1255, allocations: 210.5 kB / 497.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.1257, allocations: 112.7 kB / 498 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.1258, allocations: 4 kB / 498 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.1258, allocations: 38.56 kB / 498 MB, free: 11.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.442e-06/0.1258, allocations: 0 / 498 MB, free: 11.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.001823/0.1277, allocations: 0.6458 MB / 498.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.1277, allocations: 51.41 kB / 498.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007679/0.1285, allocations: 340.9 kB / 499.1 MB, free: 9.957 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.1285, allocations: 33.64 kB / 499.1 MB, free: 9.918 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.1287, allocations: 140.4 kB / 499.2 MB, free: 9.773 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.563e-05/0.1287, allocations: 70.91 kB / 499.3 MB, free: 9.703 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.926e-05/0.1288, allocations: 41.7 kB / 499.3 MB, free: 9.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.129, allocations: 338.8 kB / 499.7 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.1292, allocations: 87.94 kB / 499.8 MB, free: 9.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.1293, allocations: 87.94 kB / 499.8 MB, free: 9.145 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001954/0.1313, allocations: 0.6238 MB / 0.4887 GB, free: 8.516 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1313, allocations: 0 / 0.4887 GB, free: 8.516 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008004/0.1321, allocations: 401.9 kB / 0.4891 GB, free: 8.113 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.1321, allocations: 4 kB / 0.4891 GB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.1322, allocations: 3.938 kB / 0.4891 GB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003222/0.1325, allocations: 88.77 kB / 0.4892 GB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.1327, allocations: 31.98 kB / 0.4892 GB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/0.1346, allocations: 1.845 MB / 0.491 GB, free: 6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003574/0.135, allocations: 55.81 kB / 0.4911 GB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.135, allocations: 4 kB / 0.4911 GB, free: 5.941 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.0002491/0.1353, allocations: 179.6 kB / 0.4913 GB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.675e-05/0.1354, allocations: 23.72 kB / 0.4913 GB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.609e-05/0.1354, allocations: 38.17 kB / 0.4913 GB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.1355, allocations: 4 kB / 0.4913 GB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1355, allocations: 0 / 0.4913 GB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1355, allocations: 0 / 0.4913 GB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003679/0.1358, allocations: 333.3 kB / 0.4917 GB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1359, allocations: 4 kB / 0.4917 GB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.136, allocations: 23.98 kB / 0.4917 GB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002842/0.1363, allocations: 92.7 kB / 0.4918 GB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.1364, allocations: 11.98 kB / 0.4918 GB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001884/0.1383, allocations: 1.842 MB / 0.4936 GB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1383, allocations: 0 / 0.4936 GB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009208/0.1392, allocations: 0.5629 MB / 0.4941 GB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.279e-05/0.1393, allocations: 104.9 kB / 0.4942 GB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.1393, allocations: 8 kB / 0.4942 GB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.1397, allocations: 43.94 kB / 0.4943 GB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.94e-05/0.1398, allocations: 23.91 kB / 0.4943 GB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.1398, allocations: 7.938 kB / 0.4943 GB, free: 2.422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000644/0.1405, allocations: 268.3 kB / 0.4946 GB, free: 2.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1405, allocations: 4 kB / 0.4946 GB, free: 2.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003295/0.1408, allocations: 59.94 kB / 0.4946 GB, free: 2.098 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.0001396/0.141, allocations: 95.25 kB / 0.4947 GB, free: 1.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007112/0.1417, allocations: 375.8 kB / 0.4951 GB, free: 1.617 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1417, allocations: 0 / 0.4951 GB, free: 1.617 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003642/0.1421, allocations: 250.6 kB / 0.4953 GB, free: 1.359 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000364/0.1424, allocations: 43 kB / 0.4954 GB, free: 1.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.1435, allocations: 0.5537 MB / 0.4959 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.1439, allocations: 0.7753 MB / 0.4967 GB, free: 15.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.144, allocations: 49.91 kB / 0.4967 GB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.066e-05/0.1441, allocations: 19.44 kB / 0.4967 GB, free: 15.87 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1441, allocations: 3.938 kB / 0.4967 GB, free: 15.86 MB / 382.1 MB Notification: Performance of Templates: time 0.007101/0.1512, allocations: 3.129 MB / 0.4998 GB, free: 12.74 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)