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/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_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/AES main/package.mo): time 0.07345/0.07345, allocations: 17.69 MB / 33.64 MB, free: 1.734 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.001244/0.001244, allocations: 175.1 kB / 38.91 MB, free: 8 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.484/1.484, allocations: 205.4 MB / 249.5 MB, free: 2.434 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.0007604/0.0007604, allocations: 102.2 kB / 302.2 MB, free: 4.402 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000382/0.000382, allocations: 12 kB / 366.9 MB, free: 3.602 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2592, allocations: 51.98 MB / 418.9 MB, free: 24.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1481/0.4074, allocations: 78.12 MB / 497 MB, free: 10.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003423/0.4078, allocations: 71.97 kB / 497.1 MB, free: 10.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02014/0.4279, allocations: 4.457 MB / 0.4898 GB, free: 5.594 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.729e-06/0.428, allocations: 3.984 kB / 0.4898 GB, free: 5.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.274e-05/0.428, allocations: 7.938 kB / 0.4898 GB, free: 5.582 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.002161/0.4302, allocations: 0.674 MB / 0.4905 GB, free: 4.852 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.4303, allocations: 12.03 kB / 0.4905 GB, free: 4.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.4304, allocations: 28.56 kB / 0.4905 GB, free: 4.812 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.4318, allocations: 431.4 kB / 0.4909 GB, free: 4.352 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.4319, allocations: 12.66 kB / 0.491 GB, free: 4.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.022e-05/0.432, allocations: 12.38 kB / 0.491 GB, free: 4.328 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/0.4325, allocations: 196.2 kB / 0.4912 GB, free: 4.133 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.4325, allocations: 4.188 kB / 0.4912 GB, free: 4.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.4325, allocations: 11.94 kB / 0.4912 GB, free: 4.117 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.4326, allocations: 4 kB / 0.4912 GB, free: 4.113 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005682/0.4331, allocations: 200.7 kB / 0.4914 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.4346, allocations: 0.6565 MB / 0.492 GB, free: 3.211 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007488/0.4354, allocations: 262.4 kB / 0.4923 GB, free: 2.945 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/0.4357, allocations: 124.8 kB / 0.4924 GB, free: 2.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.4357, allocations: 3.984 kB / 0.4924 GB, free: 2.816 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.4358, allocations: 38.5 kB / 0.4924 GB, free: 2.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.565e-06/0.4358, allocations: 4 kB / 0.4924 GB, free: 2.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.002549/0.4384, allocations: 0.6869 MB / 0.4931 GB, free: 2.051 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.4384, allocations: 55.41 kB / 0.4931 GB, free: 1.984 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001263/0.4397, allocations: 414.8 kB / 0.4935 GB, free: 1.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.673e-05/0.4397, allocations: 33.7 kB / 0.4936 GB, free: 1.531 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.4399, allocations: 148.5 kB / 0.4937 GB, free: 1.383 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.44, allocations: 82.72 kB / 0.4938 GB, free: 1.301 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.372e-05/0.44, allocations: 4 kB / 0.4938 GB, free: 1.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.4402, allocations: 346.8 kB / 0.4941 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/0.4405, allocations: 95.94 kB / 0.4942 GB, free: 0.8555 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002579/0.4408, allocations: 105.2 kB / 0.4943 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003122/0.4439, allocations: 0.716 MB / 0.495 GB, free: 32 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.4439, allocations: 3.938 kB / 0.495 GB, free: 28 kB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.2794/0.7233, allocations: 435.9 kB / 0.4954 GB, free: 82.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.18e-05/0.7234, allocations: 8.109 kB / 0.4954 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.7234, allocations: 0 / 0.4954 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004833/0.7239, allocations: 97.41 kB / 0.4955 GB, free: 82.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002323/0.7241, allocations: 41.61 kB / 0.4956 GB, free: 82.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/0.7263, allocations: 1.736 MB / 0.4973 GB, free: 81.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004875/0.7268, allocations: 69.75 kB / 0.4973 GB, free: 81.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.7268, allocations: 8.625 kB / 0.4973 GB, free: 81.29 MB / 362.7 MB Warning: Assuming fixed start value for the following 7 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] Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (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.0002892/0.7271, allocations: 179.3 kB / 0.4975 GB, free: 81.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.239e-05/0.7272, allocations: 26.28 kB / 0.4975 GB, free: 81.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.68e-05/0.7273, allocations: 44.8 kB / 0.4976 GB, free: 81.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-06/0.7273, allocations: 2.75 kB / 0.4976 GB, free: 81.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.7273, allocations: 2.938 kB / 0.4976 GB, free: 81.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.7273, allocations: 1.688 kB / 0.4976 GB, free: 81.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004565/0.7278, allocations: 367.6 kB / 0.4979 GB, free: 80.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.7278, allocations: 0 / 0.4979 GB, free: 80.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002161/0.728, allocations: 30.3 kB / 0.498 GB, free: 80.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002901/0.7283, allocations: 90.69 kB / 0.4981 GB, free: 80.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/0.7284, allocations: 8.781 kB / 0.4981 GB, free: 80.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001725/0.7301, allocations: 1.737 MB / 0.4998 GB, free: 79.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.7301, allocations: 2.25 kB / 0.4998 GB, free: 79.67 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.7314, allocations: 0.6184 MB / 0.5004 GB, free: 79.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.148e-05/0.7315, allocations: 113.2 kB / 0.5005 GB, free: 79.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.958e-05/0.7316, allocations: 11.12 kB / 0.5005 GB, free: 79.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.732, allocations: 61.27 kB / 0.5005 GB, free: 79.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.463e-05/0.7321, allocations: 18.66 kB / 0.5006 GB, free: 79.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.7321, allocations: 4.688 kB / 0.5006 GB, free: 79.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008675/0.733, allocations: 334.2 kB / 0.5009 GB, free: 79.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.733, allocations: 3.594 kB / 0.5009 GB, free: 79.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003825/0.7334, allocations: 62.33 kB / 0.5009 GB, free: 79.19 MB / 362.7 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 (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.000178/0.7336, allocations: 109.9 kB / 0.5011 GB, free: 79.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008157/0.7344, allocations: 416.5 kB / 0.5014 GB, free: 78.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7344, allocations: 0 / 0.5014 GB, free: 78.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004107/0.7349, allocations: 268.2 kB / 0.5017 GB, free: 78.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004192/0.7353, allocations: 40.42 kB / 0.5017 GB, free: 78.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.7368, allocations: 0.7343 MB / 0.5025 GB, free: 78.33 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004547/0.7372, allocations: 0.7885 MB / 0.5032 GB, free: 77.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.7374, allocations: 67.56 kB / 0.5033 GB, free: 77.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.184e-05/0.7375, allocations: 21.45 kB / 0.5033 GB, free: 77.61 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.7375, allocations: 3.391 kB / 0.5033 GB, free: 77.61 MB / 362.7 MB Notification: Performance of Templates: time 0.007671/0.7452, allocations: 3.088 MB / 0.5063 GB, free: 77.44 MB / 362.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)