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.001363/0.001364, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00156/0.00156, allocations: 191.7 kB / 16.25 MB, free: 6.637 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.319/1.319, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2108/0.2108, allocations: 22.35 MB / 312.4 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 59.91 kB / 380.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2637, allocations: 54.95 MB / 435.2 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002124/0.2659, allocations: 1.184 MB / 436.4 MB, free: 38.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.2672, allocations: 1.291 MB / 437.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.05e-05/0.2673, allocations: 6.906 kB / 437.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003095/0.2676, allocations: 54.09 kB / 437.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.2678, allocations: 73.92 kB / 437.8 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002064/0.268, allocations: 124.8 kB / 438 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002972/0.2683, allocations: 390.9 kB / 438.3 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.2685, allocations: 56.16 kB / 438.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.2686, allocations: 162.4 kB / 438.6 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/0.2688, allocations: 192.5 kB / 438.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.38e-05/0.2689, allocations: 21.97 kB / 438.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.329e-05/0.2689, allocations: 20.44 kB / 438.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.269, allocations: 120.6 kB / 438.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.665e-05/0.2691, allocations: 121.2 kB / 439 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002112/0.2694, allocations: 258.7 kB / 439.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2694, allocations: 0 / 439.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2694, allocations: 4 kB / 439.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.2694, allocations: 0 / 439.3 MB, free: 37.27 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.001715/0.2711, allocations: 0.7607 MB / 440 MB, free: 36.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.2711, allocations: 9.688 kB / 440.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.04e-05/0.2712, allocations: 34.03 kB / 440.1 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000819/0.272, allocations: 403.8 kB / 440.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.2721, allocations: 19.97 kB / 440.5 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.2721, allocations: 20.31 kB / 440.5 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.2724, allocations: 190.9 kB / 440.7 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.2724, allocations: 2.812 kB / 440.7 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.2725, allocations: 4 kB / 440.7 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.2725, allocations: 5.625 kB / 440.7 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003227/0.2728, allocations: 197.2 kB / 440.9 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009817/0.2738, allocations: 0.7066 MB / 441.6 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004791/0.2743, allocations: 260.8 kB / 441.9 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.2745, allocations: 137 kB / 442 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.2745, allocations: 0 / 442 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.368e-05/0.2745, allocations: 41.34 kB / 442 MB, free: 35.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.232e-06/0.2745, allocations: 0 / 442 MB, free: 35.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001698/0.2762, allocations: 0.6931 MB / 442.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.2763, allocations: 54.22 kB / 442.8 MB, free: 35.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00083/0.2771, allocations: 414.9 kB / 443.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.2771, allocations: 29.7 kB / 443.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.954e-05/0.2772, allocations: 152 kB / 443.4 MB, free: 35.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.709e-05/0.2773, allocations: 86.31 kB / 443.5 MB, free: 34.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.33e-05/0.2774, allocations: 43.67 kB / 443.5 MB, free: 34.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.014e-05/0.2775, allocations: 348.2 kB / 443.8 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.2776, allocations: 110.7 kB / 444 MB, free: 34.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.2778, allocations: 102 kB / 444.1 MB, free: 34.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002034/0.2798, allocations: 0.7082 MB / 444.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2798, allocations: 0 / 444.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007132/0.2805, allocations: 441.6 kB / 445.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.2806, allocations: 9.781 kB / 445.2 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.2806, allocations: 0 / 445.2 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002834/0.2809, allocations: 95.77 kB / 445.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.2811, allocations: 35.7 kB / 445.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.2824, allocations: 1.843 MB / 447.2 MB, free: 32.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004102/0.2828, allocations: 68.11 kB / 447.2 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.2828, allocations: 9.281 kB / 447.2 MB, free: 32.58 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.0001812/0.283, allocations: 188.1 kB / 447.4 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.277e-05/0.2831, allocations: 22.09 kB / 447.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.889e-05/0.2832, allocations: 52.39 kB / 447.5 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.2832, allocations: 2.688 kB / 447.5 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2832, allocations: 0 / 447.5 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2832, allocations: 3.234 kB / 447.5 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003029/0.2835, allocations: 353.5 kB / 447.9 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2835, allocations: 2.188 kB / 447.9 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.2837, allocations: 37.08 kB / 447.9 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002529/0.284, allocations: 93.97 kB / 448 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.284, allocations: 9.797 kB / 448 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.2853, allocations: 1.847 MB / 449.8 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2853, allocations: 0 / 449.8 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008506/0.2861, allocations: 0.6135 MB / 450.5 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.528e-05/0.2862, allocations: 114.5 kB / 450.6 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/0.2862, allocations: 9.25 kB / 450.6 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004235/0.2867, allocations: 55.2 kB / 450.6 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.2867, allocations: 30.55 kB / 450.7 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.2868, allocations: 9.844 kB / 450.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006954/0.2875, allocations: 328.8 kB / 451 MB, free: 29.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2875, allocations: 0 / 451 MB, free: 29.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003159/0.2878, allocations: 62.47 kB / 451.1 MB, free: 29.91 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.912e-05/0.2879, allocations: 101.4 kB / 451.2 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006638/0.2886, allocations: 435.8 kB / 451.6 MB, free: 29.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2886, allocations: 4 kB / 451.6 MB, free: 29.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003365/0.2889, allocations: 268.3 kB / 451.8 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003964/0.2893, allocations: 46.14 kB / 451.9 MB, free: 29.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.2904, allocations: 0.7792 MB / 452.7 MB, free: 28.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.2906, allocations: 0.7884 MB / 453.5 MB, free: 28.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001542/0.2908, allocations: 62.84 kB / 453.5 MB, free: 28.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.384e-05/0.2909, allocations: 20.56 kB / 453.5 MB, free: 28.27 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2909, allocations: 3.938 kB / 453.5 MB, free: 28.26 MB / 350.1 MB Notification: Performance of Templates: time 0.00661/0.2975, allocations: 3.392 MB / 456.9 MB, free: 28.04 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)