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.0009517/0.0009517, allocations: 92.55 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 177.7 kB / 16.92 MB, free: 6.652 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.338/1.338, allocations: 223.3 MB / 241 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2102/0.2102, allocations: 22.34 MB / 314.4 MB, free: 13.03 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003225/0.0003227, allocations: 15.94 kB / 383.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2523, allocations: 55.98 MB / 439.2 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001024/0.2534, allocations: 0.8329 MB / 440.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.2546, allocations: 1.285 MB / 441.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.99e-05/0.2547, allocations: 2.938 kB / 441.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002716/0.2549, allocations: 61.28 kB / 441.4 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001783/0.2551, allocations: 72.89 kB / 441.5 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002051/0.2553, allocations: 119.8 kB / 441.6 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002904/0.2556, allocations: 381.4 kB / 442 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.2558, allocations: 46.66 kB / 442 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.2559, allocations: 139 kB / 442.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.2561, allocations: 176.1 kB / 442.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.161e-05/0.2562, allocations: 9 kB / 442.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.875e-05/0.2562, allocations: 11.06 kB / 442.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.2563, allocations: 97.52 kB / 442.4 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.609e-05/0.2564, allocations: 133.9 kB / 442.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001443/0.2566, allocations: 201.2 kB / 442.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2566, allocations: 2.562 kB / 442.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2566, allocations: 0 / 442.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.2566, allocations: 0 / 442.8 MB, free: 37.2 MB / 350.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.001664/0.2583, allocations: 0.7117 MB / 443.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.2583, allocations: 12.69 kB / 443.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.126e-05/0.2584, allocations: 31.84 kB / 443.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008514/0.2592, allocations: 431.3 kB / 444 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.2593, allocations: 10.31 kB / 444 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.704e-05/0.2593, allocations: 13.84 kB / 444 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.2596, allocations: 203.5 kB / 444.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.2596, allocations: 0 / 444.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.2596, allocations: 6.625 kB / 444.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2597, allocations: 2.75 kB / 444.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003161/0.26, allocations: 196.5 kB / 444.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009588/0.2609, allocations: 0.7005 MB / 445.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004478/0.2614, allocations: 269.5 kB / 445.3 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.2616, allocations: 127.5 kB / 445.5 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.2616, allocations: 3 kB / 445.5 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.397e-05/0.2616, allocations: 37.5 kB / 445.5 MB, free: 35.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.262e-06/0.2616, allocations: 0 / 445.5 MB, free: 35.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001647/0.2633, allocations: 0.6965 MB / 446.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.979e-05/0.2633, allocations: 51.41 kB / 446.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008272/0.2642, allocations: 420 kB / 446.7 MB, free: 35.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.2642, allocations: 28.3 kB / 446.7 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.206e-05/0.2643, allocations: 153.8 kB / 446.8 MB, free: 35.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.745e-05/0.2643, allocations: 89.11 kB / 446.9 MB, free: 34.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.923e-05/0.2644, allocations: 30.2 kB / 447 MB, free: 34.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.282e-05/0.2644, allocations: 342.6 kB / 447.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.2646, allocations: 105.4 kB / 447.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.2647, allocations: 107.1 kB / 447.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002009/0.2668, allocations: 0.7113 MB / 448.2 MB, free: 34.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.2668, allocations: 0 / 448.2 MB, free: 34.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007117/0.2675, allocations: 444.1 kB / 448.6 MB, free: 34.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.2675, allocations: 13.73 kB / 448.7 MB, free: 34.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.2675, allocations: 0 / 448.7 MB, free: 34.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002845/0.2678, allocations: 93.52 kB / 448.7 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.268, allocations: 44.95 kB / 448.8 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.2693, allocations: 1.734 MB / 450.5 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004143/0.2697, allocations: 71.8 kB / 450.6 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.2698, allocations: 10.33 kB / 450.6 MB, free: 32.64 MB / 350.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.0001809/0.27, allocations: 174.5 kB / 450.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.164e-05/0.27, allocations: 30.84 kB / 450.8 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.413e-05/0.2701, allocations: 41.69 kB / 450.8 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2701, allocations: 2.562 kB / 450.9 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.2701, allocations: 4 kB / 450.9 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.2701, allocations: 6.188 kB / 450.9 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000311/0.2705, allocations: 358.6 kB / 451.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2705, allocations: 0 / 451.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001976/0.2707, allocations: 31.75 kB / 451.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002521/0.2709, allocations: 97.39 kB / 451.3 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.271, allocations: 6.719 kB / 451.3 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.2722, allocations: 1.734 MB / 453.1 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2722, allocations: 64 / 453.1 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008345/0.273, allocations: 0.6296 MB / 453.7 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.227e-05/0.2731, allocations: 110.6 kB / 453.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.2731, allocations: 6.047 kB / 453.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004286/0.2736, allocations: 59.23 kB / 453.9 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/0.2736, allocations: 22.2 kB / 453.9 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.2736, allocations: 2.625 kB / 453.9 MB, free: 30.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00074/0.2744, allocations: 332.4 kB / 454.2 MB, free: 30.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2744, allocations: 2.625 kB / 454.2 MB, free: 30.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003132/0.2747, allocations: 62.59 kB / 454.3 MB, free: 30.08 MB / 350.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 9.774e-05/0.2748, allocations: 107.6 kB / 454.4 MB, free: 29.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005836/0.2754, allocations: 408.4 kB / 454.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2754, allocations: 3.938 kB / 454.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.2757, allocations: 274 kB / 455.1 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.2761, allocations: 53.8 kB / 455.1 MB, free: 29.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.2772, allocations: 0.8066 MB / 455.9 MB, free: 29.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.2774, allocations: 0.7951 MB / 456.7 MB, free: 28.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.895e-05/0.2775, allocations: 27.19 kB / 456.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2775, allocations: 0 / 456.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of Templates: time 0.006244/0.2838, allocations: 4.369 MB / 461.1 MB, free: 28.13 MB / 350.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)