Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_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.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") translateModel(AES.Coursework.Tuning_brushup.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 100.1 kB / 15.88 MB, free: 12 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.001122/0.001122, allocations: 200.4 kB / 16.79 MB, free: 6.828 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.316/1.316, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.196/0.196, allocations: 22.37 MB / 313 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 63.91 kB / 380.8 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2491, allocations: 54.95 MB / 435.7 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002213/0.2513, allocations: 1.347 MB / 437.1 MB, free: 38.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.2526, allocations: 1.393 MB / 438.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.2527, allocations: 3.156 kB / 438.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003202/0.253, allocations: 78.02 kB / 438.5 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000219/0.2533, allocations: 121 kB / 438.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002588/0.2536, allocations: 183.2 kB / 438.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003345/0.2539, allocations: 497.8 kB / 439.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.254, allocations: 76.2 kB / 439.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.2542, allocations: 186 kB / 439.6 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000239/0.2545, allocations: 238.2 kB / 439.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.919e-05/0.2545, allocations: 15.75 kB / 439.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.264e-05/0.2546, allocations: 15.78 kB / 439.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.2547, allocations: 117.5 kB / 440 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.798e-05/0.2548, allocations: 130.5 kB / 440.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.255, allocations: 243.1 kB / 440.3 MB, free: 36.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.255, allocations: 4 kB / 440.3 MB, free: 36.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.255, allocations: 0 / 440.3 MB, free: 36.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.255, allocations: 3.938 kB / 440.3 MB, free: 36.8 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002048/0.257, allocations: 0.8639 MB / 441.2 MB, free: 36.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2571, allocations: 18.97 kB / 441.2 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.659e-05/0.2572, allocations: 43.5 kB / 441.3 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.2582, allocations: 498.1 kB / 441.7 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.2582, allocations: 14.83 kB / 441.8 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.811e-05/0.2582, allocations: 12.97 kB / 441.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.2586, allocations: 219.5 kB / 442 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.2586, allocations: 0 / 442 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.2586, allocations: 6.844 kB / 442 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.2586, allocations: 2.812 kB / 442 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003617/0.259, allocations: 237.3 kB / 442.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.2601, allocations: 0.7552 MB / 443 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006057/0.2607, allocations: 330.5 kB / 443.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001918/0.2609, allocations: 132.3 kB / 443.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.2609, allocations: 6.656 kB / 443.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.414e-05/0.261, allocations: 37.34 kB / 443.5 MB, free: 35.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.403e-06/0.261, allocations: 0 / 443.5 MB, free: 35.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001674/0.2627, allocations: 0.7805 MB / 444.3 MB, free: 34.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.151e-05/0.2627, allocations: 54.06 kB / 444.3 MB, free: 34.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.2637, allocations: 0.5093 MB / 444.8 MB, free: 34.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.2637, allocations: 29.7 kB / 444.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.163e-05/0.2638, allocations: 178.1 kB / 445 MB, free: 34.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.2639, allocations: 98.16 kB / 445.1 MB, free: 34.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.195e-05/0.264, allocations: 46.11 kB / 445.2 MB, free: 34.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.204e-05/0.264, allocations: 348.2 kB / 445.5 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.2642, allocations: 113.4 kB / 445.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.2644, allocations: 112.4 kB / 445.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002122/0.2665, allocations: 0.7149 MB / 446.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.2665, allocations: 0 / 446.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008045/0.2673, allocations: 486.3 kB / 446.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.2674, allocations: 2.781 kB / 446.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2674, allocations: 2.719 kB / 446.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003415/0.2677, allocations: 108.4 kB / 447 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.2679, allocations: 38.61 kB / 447.1 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001936/0.2699, allocations: 2.992 MB / 450.1 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005201/0.2704, allocations: 91.03 kB / 450.1 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.2704, allocations: 5.406 kB / 450.1 MB, free: 30.57 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002102/0.2707, allocations: 180.8 kB / 450.3 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.948e-05/0.2707, allocations: 39.19 kB / 450.4 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.636e-05/0.2708, allocations: 58.45 kB / 450.4 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2708, allocations: 2.75 kB / 450.4 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.2709, allocations: 6.062 kB / 450.4 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.2709, allocations: 0 / 450.4 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003671/0.2712, allocations: 396 kB / 450.8 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2713, allocations: 0 / 450.8 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002054/0.2715, allocations: 33.41 kB / 450.8 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000338/0.2718, allocations: 114.8 kB / 451 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.2719, allocations: 6.625 kB / 451 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002493/0.2744, allocations: 2.992 MB / 454 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2744, allocations: 0 / 454 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009451/0.2753, allocations: 0.6635 MB / 454.6 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.092e-05/0.2754, allocations: 123.8 kB / 454.7 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.2755, allocations: 6.688 kB / 454.7 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004846/0.276, allocations: 72.69 kB / 454.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.686e-05/0.276, allocations: 23.11 kB / 454.8 MB, free: 26.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.2761, allocations: 5.25 kB / 454.8 MB, free: 26.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009877/0.2771, allocations: 409.4 kB / 455.2 MB, free: 26.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2771, allocations: 0 / 455.2 MB, free: 26.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00038/0.2775, allocations: 75.81 kB / 455.3 MB, free: 26.62 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001216/0.2776, allocations: 108.2 kB / 455.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007416/0.2783, allocations: 0.5377 MB / 456 MB, free: 26.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2783, allocations: 0 / 456 MB, free: 26.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004377/0.2788, allocations: 400.7 kB / 456.4 MB, free: 25.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004641/0.2793, allocations: 68.03 kB / 456.4 MB, free: 25.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.2806, allocations: 0.9173 MB / 457.3 MB, free: 25.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.2808, allocations: 0.8197 MB / 458.2 MB, free: 24.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.265e-05/0.2809, allocations: 26.12 kB / 458.2 MB, free: 24.63 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2809, allocations: 3.938 kB / 458.2 MB, free: 24.63 MB / 350.1 MB Notification: Performance of Templates: time 0.009988/0.2909, allocations: 6.564 MB / 464.7 MB, free: 24.14 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.Exploiting_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)