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.001147/0.001147, allocations: 109 kB / 16.41 MB, free: 6.508 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.001159/0.001159, allocations: 187 kB / 17.34 MB, free: 5.742 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.375/1.375, 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.0945/0.0945, allocations: 22.34 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 59.91 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1035, allocations: 54.96 MB / 492.7 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002359/0.1059, allocations: 1.061 MB / 493.7 MB, free: 3.699 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.1075, allocations: 1.26 MB / 495 MB, free: 2.422 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.1077, allocations: 4 kB / 495 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003439/0.108, allocations: 51.69 kB / 495 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.1083, allocations: 59.69 kB / 495.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002729/0.1086, allocations: 107.8 kB / 495.2 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.1089, allocations: 295.5 kB / 495.5 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.1091, allocations: 49.59 kB / 495.5 MB, free: 1.863 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.1093, allocations: 119.6 kB / 495.7 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.1095, allocations: 151.5 kB / 495.8 MB, free: 1.598 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.617e-05/0.1096, allocations: 23.94 kB / 495.8 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.17e-05/0.1097, allocations: 20 kB / 495.8 MB, free: 1.555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.1098, allocations: 95.66 kB / 495.9 MB, free: 1.461 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.1099, allocations: 95.39 kB / 496 MB, free: 1.367 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.1102, allocations: 219.2 kB / 496.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1102, allocations: 4 kB / 496.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1102, allocations: 4 kB / 496.3 MB, free: 1.145 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.792e-06/0.1102, allocations: 0 / 496.3 MB, free: 1.145 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.001629/0.1118, allocations: 0.6621 MB / 496.9 MB, free: 444 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1119, allocations: 8.031 kB / 496.9 MB, free: 436 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.17e-05/0.112, allocations: 24.66 kB / 496.9 MB, free: 412 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008513/0.1128, allocations: 370.6 kB / 497.3 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.1129, allocations: 8.422 kB / 497.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.944e-05/0.1129, allocations: 12.38 kB / 497.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003075/0.1132, allocations: 175.1 kB / 497.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.1132, allocations: 0 / 497.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.1133, allocations: 8 kB / 497.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.1133, allocations: 0 / 497.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000322/0.1136, allocations: 175.9 kB / 497.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.1147, allocations: 0.6251 MB / 498.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/0.115, allocations: 214.4 kB / 498.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.1152, allocations: 112.8 kB / 498.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.1152, allocations: 4 kB / 498.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.1153, allocations: 34.56 kB / 498.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.1153, allocations: 0 / 498.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001724/0.117, allocations: 0.6435 MB / 499.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.1171, allocations: 51.41 kB / 499.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007323/0.1178, allocations: 344.9 kB / 499.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.1178, allocations: 29.7 kB / 499.7 MB, free: 13.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.536e-05/0.1179, allocations: 136.5 kB / 499.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.743e-05/0.118, allocations: 74.86 kB / 499.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.149e-05/0.1181, allocations: 41.7 kB / 500 MB, free: 13.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1182, allocations: 334.8 kB / 0.4886 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.1184, allocations: 91.88 kB / 0.4887 GB, free: 12.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001462/0.1185, allocations: 98.17 kB / 0.4888 GB, free: 12.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.1204, allocations: 0.6178 MB / 0.4894 GB, free: 12.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1204, allocations: 0 / 0.4894 GB, free: 12.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000715/0.1211, allocations: 401.9 kB / 0.4897 GB, free: 11.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.1211, allocations: 4 kB / 0.4897 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1212, allocations: 7.875 kB / 0.4897 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002944/0.1215, allocations: 88.77 kB / 0.4898 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.1216, allocations: 35.92 kB / 0.4899 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/0.1234, allocations: 1.849 MB / 0.4917 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/0.1237, allocations: 55.88 kB / 0.4917 GB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.1238, allocations: 11.94 kB / 0.4917 GB, free: 9.457 MB / 382.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.0001976/0.124, allocations: 163.7 kB / 0.4919 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.472e-05/0.124, allocations: 23.91 kB / 0.4919 GB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.574e-05/0.1241, allocations: 38.17 kB / 0.492 GB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1241, allocations: 4 kB / 0.492 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1241, allocations: 4 kB / 0.492 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1241, allocations: 0 / 0.492 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003353/0.1245, allocations: 333.3 kB / 0.4923 GB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1245, allocations: 0 / 0.4923 GB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.1247, allocations: 27.92 kB / 0.4923 GB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002663/0.1249, allocations: 96.77 kB / 0.4924 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.125, allocations: 4 kB / 0.4924 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001595/0.1266, allocations: 1.849 MB / 0.4942 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1266, allocations: 192 / 0.4942 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008816/0.1275, allocations: 0.5599 MB / 0.4948 GB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.403e-05/0.1276, allocations: 104.8 kB / 0.4949 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.1276, allocations: 12.06 kB / 0.4949 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003597/0.128, allocations: 43.94 kB / 0.4949 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.246e-05/0.128, allocations: 19.97 kB / 0.4949 GB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/0.1281, allocations: 11.94 kB / 0.4949 GB, free: 5.945 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006233/0.1287, allocations: 264.3 kB / 0.4952 GB, free: 5.688 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1287, allocations: 0 / 0.4952 GB, free: 5.688 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003202/0.129, allocations: 60 kB / 0.4952 GB, free: 5.629 MB / 382.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.0001103/0.1291, allocations: 103.2 kB / 0.4953 GB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006443/0.1298, allocations: 370.6 kB / 0.4957 GB, free: 5.145 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1298, allocations: 0 / 0.4957 GB, free: 5.145 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003533/0.1302, allocations: 250.6 kB / 0.4959 GB, free: 4.887 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.1306, allocations: 46.31 kB / 0.496 GB, free: 4.844 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000935/0.1315, allocations: 0.5952 MB / 0.4966 GB, free: 4.211 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.1318, allocations: 0.7752 MB / 0.4973 GB, free: 3.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.174e-05/0.1319, allocations: 19.44 kB / 0.4973 GB, free: 3.391 MB / 382.1 MB Notification: Performance of SimCode: time 1.944e-06/0.1319, allocations: 0 / 0.4973 GB, free: 3.391 MB / 382.1 MB Notification: Performance of Templates: time 0.2343/0.3662, allocations: 3.738 MB / 0.501 GB, free: 21.8 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)