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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/AES main/package.mo): time 0.1228/0.1228, allocations: 17.69 MB / 33.64 MB, free: 1.738 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 172.8 kB / 38.91 MB, free: 12 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.4 MB / 249.5 MB, free: 2.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007613/0.0007612, allocations: 102.2 kB / 302.2 MB, free: 4.406 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004577/0.0004578, allocations: 12 kB / 366.9 MB, free: 3.609 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2505, allocations: 51.99 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.102/0.3526, allocations: 78.08 MB / 497 MB, free: 10.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.353, allocations: 71.95 kB / 497.1 MB, free: 10.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01214/0.3652, allocations: 3.711 MB / 0.489 GB, free: 6.402 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3652, allocations: 0 / 0.489 GB, free: 6.402 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.33e-05/0.3652, allocations: 4 kB / 0.4891 GB, free: 6.398 MB / 362.7 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.001229/0.3665, allocations: 0.6077 MB / 0.4896 GB, free: 5.738 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3665, allocations: 12.03 kB / 0.4897 GB, free: 5.727 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.979e-05/0.3666, allocations: 24.56 kB / 0.4897 GB, free: 5.703 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007766/0.3674, allocations: 374.5 kB / 0.49 GB, free: 5.301 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.3674, allocations: 8.375 kB / 0.49 GB, free: 5.293 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.936e-05/0.3675, allocations: 16.38 kB / 0.4901 GB, free: 5.277 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003125/0.3678, allocations: 166.1 kB / 0.4902 GB, free: 5.109 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.3678, allocations: 8.031 kB / 0.4902 GB, free: 5.102 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.3678, allocations: 11.94 kB / 0.4902 GB, free: 5.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.3678, allocations: 4 kB / 0.4902 GB, free: 5.086 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003255/0.3682, allocations: 163.9 kB / 0.4904 GB, free: 4.926 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000937/0.3691, allocations: 0.5823 MB / 0.491 GB, free: 4.293 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003484/0.3695, allocations: 210.5 kB / 0.4912 GB, free: 4.078 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.3697, allocations: 112.8 kB / 0.4913 GB, free: 3.965 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.3697, allocations: 4 kB / 0.4913 GB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.3698, allocations: 34.55 kB / 0.4913 GB, free: 3.918 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.362e-06/0.3698, allocations: 0 / 0.4913 GB, free: 3.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.001735/0.3715, allocations: 0.6435 MB / 0.4919 GB, free: 3.246 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.3715, allocations: 51.41 kB / 0.492 GB, free: 3.184 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006978/0.3723, allocations: 344.9 kB / 0.4923 GB, free: 2.836 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.3723, allocations: 25.7 kB / 0.4923 GB, free: 2.805 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.124e-05/0.3724, allocations: 144.3 kB / 0.4925 GB, free: 2.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.578e-05/0.3725, allocations: 74.91 kB / 0.4926 GB, free: 2.586 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.065e-05/0.3725, allocations: 4 kB / 0.4926 GB, free: 2.582 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3726, allocations: 338.8 kB / 0.4929 GB, free: 2.242 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.3728, allocations: 91.94 kB / 0.493 GB, free: 2.152 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.373, allocations: 88.56 kB / 0.4931 GB, free: 2.066 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001889/0.3749, allocations: 0.6259 MB / 0.4937 GB, free: 1.438 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3749, allocations: 0 / 0.4937 GB, free: 1.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007452/0.3756, allocations: 402 kB / 0.494 GB, free: 1.035 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.3757, allocations: 4 kB / 0.4941 GB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.3757, allocations: 3.938 kB / 0.4941 GB, free: 1.027 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003175/0.376, allocations: 104.7 kB / 0.4942 GB, free: 0.9219 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.3762, allocations: 35.98 kB / 0.4942 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2289/0.6051, allocations: 1.723 MB / 0.4959 GB, free: 82.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004471/0.6056, allocations: 62.47 kB / 0.4959 GB, free: 82.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.584e-05/0.6056, allocations: 9.641 kB / 0.4959 GB, free: 82 MB / 362.7 MB Warning: Assuming fixed start value for the following 6 variables: P.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] HF.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] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] M.x_scaled[2]: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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002738/0.6059, allocations: 155.9 kB / 0.4961 GB, free: 81.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.71e-05/0.606, allocations: 21.7 kB / 0.4961 GB, free: 81.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.877e-05/0.6061, allocations: 38.08 kB / 0.4961 GB, free: 81.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.6061, allocations: 6.5 kB / 0.4962 GB, free: 81.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.6061, allocations: 0.9062 kB / 0.4962 GB, free: 81.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.6061, allocations: 5.547 kB / 0.4962 GB, free: 81.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004284/0.6065, allocations: 326.2 kB / 0.4965 GB, free: 81.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.6065, allocations: 0.8125 kB / 0.4965 GB, free: 81.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001982/0.6067, allocations: 32.91 kB / 0.4965 GB, free: 81.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003253/0.6071, allocations: 89.69 kB / 0.4966 GB, free: 81.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.6071, allocations: 15.28 kB / 0.4966 GB, free: 81.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/0.6086, allocations: 1.736 MB / 0.4983 GB, free: 80.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6086, allocations: 2.656 kB / 0.4983 GB, free: 80.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.6096, allocations: 0.5504 MB / 0.4988 GB, free: 80.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.465e-05/0.6097, allocations: 108.7 kB / 0.4989 GB, free: 80.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.6097, allocations: 6.219 kB / 0.4989 GB, free: 80.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003491/0.6101, allocations: 52.34 kB / 0.499 GB, free: 80.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.79e-05/0.6102, allocations: 15.88 kB / 0.499 GB, free: 80.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.6102, allocations: 5.188 kB / 0.499 GB, free: 80.17 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006436/0.6108, allocations: 274.5 kB / 0.4993 GB, free: 80.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6109, allocations: 2.812 kB / 0.4993 GB, free: 80.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003538/0.6112, allocations: 60.12 kB / 0.4993 GB, free: 80.09 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001754/0.6114, allocations: 112.3 kB / 0.4994 GB, free: 80 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008613/0.6123, allocations: 368.9 kB / 0.4998 GB, free: 79.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.6123, allocations: 0 / 0.4998 GB, free: 79.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004252/0.6127, allocations: 254.6 kB / 0.5 GB, free: 79.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.6131, allocations: 39 kB / 0.5001 GB, free: 79.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.6143, allocations: 0.61 MB / 0.5007 GB, free: 79.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.6147, allocations: 0.7729 MB / 0.5014 GB, free: 78.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001602/0.6149, allocations: 53.3 kB / 0.5015 GB, free: 78.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.083e-05/0.6149, allocations: 18.12 kB / 0.5015 GB, free: 78.7 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6149, allocations: 1.219 kB / 0.5015 GB, free: 78.7 MB / 362.7 MB Notification: Performance of Templates: time 0.006534/0.6215, allocations: 2.693 MB / 0.5041 GB, free: 78.55 MB / 362.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)