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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000942/0.000942, allocations: 92.16 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.001061/0.001061, allocations: 172.9 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.296/1.296, allocations: 223.3 MB / 241 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1909/0.1909, allocations: 22.35 MB / 314.4 MB, free: 13.04 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000304/0.0003039, allocations: 8 kB / 383.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2528, allocations: 55.98 MB / 439.2 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.0009841/0.2538, allocations: 0.7697 MB / 440 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.2549, allocations: 1.243 MB / 441.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.45e-05/0.255, allocations: 3.938 kB / 441.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002452/0.2553, allocations: 37.31 kB / 441.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.2554, allocations: 65.27 kB / 441.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.2556, allocations: 91.27 kB / 441.4 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000228/0.2558, allocations: 287.3 kB / 441.7 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.256, allocations: 36.78 kB / 441.8 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.2561, allocations: 113.2 kB / 441.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.2563, allocations: 141.6 kB / 442 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.042e-05/0.2563, allocations: 7.812 kB / 442 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.337e-05/0.2563, allocations: 8.156 kB / 442 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.822e-05/0.2564, allocations: 84.16 kB / 442.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.04e-05/0.2565, allocations: 109.5 kB / 442.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.2566, allocations: 158.1 kB / 442.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2566, allocations: 0 / 442.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2566, allocations: 0 / 442.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.2566, allocations: 0 / 442.4 MB, free: 37.45 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001348/0.258, allocations: 0.6442 MB / 443 MB, free: 37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.258, allocations: 13.47 kB / 443 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.197e-05/0.2581, allocations: 26.44 kB / 443.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006943/0.2588, allocations: 365.4 kB / 443.4 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.2588, allocations: 9.688 kB / 443.4 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.2589, allocations: 12.31 kB / 443.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.2591, allocations: 168.8 kB / 443.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.2592, allocations: 6.844 kB / 443.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.2592, allocations: 7.938 kB / 443.6 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.2592, allocations: 9.969 kB / 443.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002681/0.2595, allocations: 171.7 kB / 443.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008258/0.2603, allocations: 0.6239 MB / 444.4 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.2606, allocations: 208 kB / 444.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.2607, allocations: 117 kB / 444.7 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.2608, allocations: 3.125 kB / 444.7 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.346e-05/0.2608, allocations: 30.56 kB / 444.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.453e-06/0.2608, allocations: 3.062 kB / 444.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001554/0.2624, allocations: 0.6506 MB / 445.4 MB, free: 35.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.213e-05/0.2624, allocations: 54.38 kB / 445.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006562/0.263, allocations: 347.1 kB / 445.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.2631, allocations: 25.7 kB / 445.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.119e-05/0.2631, allocations: 138.7 kB / 446 MB, free: 35.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.084e-05/0.2632, allocations: 74.36 kB / 446 MB, free: 35.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/0.2632, allocations: 22.39 kB / 446.1 MB, free: 35.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.819e-05/0.2633, allocations: 338.2 kB / 446.4 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.2634, allocations: 92.31 kB / 446.5 MB, free: 34.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.2636, allocations: 95.95 kB / 446.6 MB, free: 34.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001762/0.2653, allocations: 0.6257 MB / 447.2 MB, free: 34.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2653, allocations: 0 / 447.2 MB, free: 34.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006405/0.266, allocations: 402.3 kB / 447.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.266, allocations: 11.72 kB / 447.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.266, allocations: 0 / 447.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002787/0.2663, allocations: 93.64 kB / 447.7 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.2665, allocations: 40.42 kB / 447.7 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.2677, allocations: 1.733 MB / 449.5 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003369/0.2681, allocations: 60.45 kB / 449.5 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.2681, allocations: 6.859 kB / 449.5 MB, free: 33.08 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: 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 (21): * Single equations (assignments): 20 * 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.0001598/0.2683, allocations: 169.9 kB / 449.7 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.669e-05/0.2683, allocations: 27.31 kB / 449.7 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.373e-05/0.2684, allocations: 35.31 kB / 449.8 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.2684, allocations: 2.938 kB / 449.8 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2684, allocations: 4 kB / 449.8 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.2685, allocations: 6.75 kB / 449.8 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002682/0.2687, allocations: 326.3 kB / 450.1 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2687, allocations: 0 / 450.1 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.2689, allocations: 25.7 kB / 450.1 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002433/0.2692, allocations: 90.39 kB / 450.2 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.2692, allocations: 11.19 kB / 450.2 MB, free: 32.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.2704, allocations: 1.734 MB / 452 MB, free: 31.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2704, allocations: 7.062 kB / 452 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007905/0.2712, allocations: 0.5521 MB / 452.5 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.527e-05/0.2712, allocations: 101 kB / 452.6 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.2713, allocations: 15.23 kB / 452.6 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000361/0.2716, allocations: 51.97 kB / 452.7 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.653e-05/0.2717, allocations: 9.094 kB / 452.7 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.2717, allocations: 12.72 kB / 452.7 MB, free: 30.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005754/0.2723, allocations: 276 kB / 453 MB, free: 30.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2723, allocations: 0 / 453 MB, free: 30.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003098/0.2726, allocations: 56.97 kB / 453 MB, free: 30.59 MB / 350.1 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 (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.234e-05/0.2727, allocations: 104.4 kB / 453.1 MB, free: 30.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005495/0.2733, allocations: 378.2 kB / 453.5 MB, free: 30.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.2733, allocations: 6.625 kB / 453.5 MB, free: 30.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002926/0.2736, allocations: 248.8 kB / 453.7 MB, free: 30.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/0.274, allocations: 38.55 kB / 453.8 MB, free: 30.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008063/0.2748, allocations: 0.6747 MB / 454.5 MB, free: 29.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/0.275, allocations: 0.7641 MB / 455.2 MB, free: 29.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.458e-05/0.275, allocations: 21.22 kB / 455.2 MB, free: 29 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.275, allocations: 2.75 kB / 455.2 MB, free: 29 MB / 350.1 MB Notification: Performance of Templates: time 0.005187/0.2802, allocations: 3.675 MB / 458.9 MB, free: 28.76 MB / 350.1 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)