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.001313/0.001313, allocations: 108 kB / 15.61 MB, free: 148 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.001625/0.001625, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.415/1.415, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2397/0.2397, allocations: 22.35 MB / 312.7 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 67.89 kB / 380.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3157, allocations: 54.94 MB / 435.8 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002482/0.3182, allocations: 1.079 MB / 436.8 MB, free: 39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.3198, allocations: 1.249 MB / 438.1 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.535e-05/0.3199, allocations: 2.688 kB / 438.1 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003368/0.3202, allocations: 49.94 kB / 438.1 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00017/0.3204, allocations: 67.14 kB / 438.2 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.3207, allocations: 105.1 kB / 438.3 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.321, allocations: 287.2 kB / 438.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.3211, allocations: 49.19 kB / 438.6 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.3213, allocations: 124.8 kB / 438.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.3215, allocations: 154.1 kB / 438.9 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.745e-05/0.3215, allocations: 20.22 kB / 438.9 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.032e-05/0.3216, allocations: 23.06 kB / 439 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.3217, allocations: 83.44 kB / 439 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.289e-05/0.3218, allocations: 95 kB / 439.1 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.322, allocations: 221.9 kB / 439.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.322, allocations: 0 / 439.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.322, allocations: 0 / 439.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.3221, allocations: 0 / 439.3 MB, free: 37.57 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.001579/0.3236, allocations: 0.6797 MB / 440 MB, free: 37.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.3237, allocations: 10.28 kB / 440 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.919e-05/0.3237, allocations: 22.62 kB / 440.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007249/0.3245, allocations: 356.8 kB / 440.4 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.3245, allocations: 13.94 kB / 440.4 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.3245, allocations: 12.75 kB / 440.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.3248, allocations: 170.1 kB / 440.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3248, allocations: 0 / 440.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.3249, allocations: 10.75 kB / 440.6 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.3249, allocations: 2.844 kB / 440.6 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.3252, allocations: 173 kB / 440.8 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000942/0.3261, allocations: 0.6325 MB / 441.4 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003153/0.3264, allocations: 214.1 kB / 441.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.3266, allocations: 110.8 kB / 441.7 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.3266, allocations: 3.969 kB / 441.7 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.3267, allocations: 34.56 kB / 441.8 MB, free: 36.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.312e-06/0.3267, allocations: 0 / 441.8 MB, free: 36.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001646/0.3283, allocations: 0.6382 MB / 442.4 MB, free: 35.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.3284, allocations: 58.44 kB / 442.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006719/0.329, allocations: 341.2 kB / 442.8 MB, free: 35.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.3291, allocations: 29.7 kB / 442.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.411e-05/0.3292, allocations: 138.6 kB / 443 MB, free: 35.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.514e-05/0.3292, allocations: 73.94 kB / 443 MB, free: 35.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.26e-05/0.3293, allocations: 40.92 kB / 443.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.61e-05/0.3294, allocations: 337.5 kB / 443.4 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.3295, allocations: 89.67 kB / 443.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.3297, allocations: 92.53 kB / 443.6 MB, free: 35.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001768/0.3314, allocations: 0.6214 MB / 444.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3315, allocations: 0 / 444.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006761/0.3321, allocations: 400.5 kB / 444.6 MB, free: 34.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.3322, allocations: 9.438 kB / 444.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3322, allocations: 4 kB / 444.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003205/0.3325, allocations: 94.64 kB / 444.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.3327, allocations: 37.33 kB / 444.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.3342, allocations: 1.838 MB / 446.6 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.3345, allocations: 60.5 kB / 446.6 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.3345, allocations: 9.844 kB / 446.6 MB, free: 33.07 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.0001795/0.3347, allocations: 166.8 kB / 446.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.771e-05/0.3348, allocations: 25.64 kB / 446.8 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.624e-05/0.3348, allocations: 37.81 kB / 446.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.3348, allocations: 2.938 kB / 446.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.3349, allocations: 3.938 kB / 446.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3349, allocations: 0 / 446.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002876/0.3352, allocations: 332.2 kB / 447.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3352, allocations: 2.219 kB / 447.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.3353, allocations: 27.11 kB / 447.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002391/0.3356, allocations: 100.4 kB / 447.3 MB, free: 32.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.3356, allocations: 6.75 kB / 447.3 MB, free: 32.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.3369, allocations: 1.845 MB / 449.2 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3369, allocations: 0 / 449.2 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007947/0.3377, allocations: 0.5574 MB / 449.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.55e-05/0.3378, allocations: 106.2 kB / 449.8 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.45e-05/0.3378, allocations: 6.781 kB / 449.8 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003368/0.3382, allocations: 40.98 kB / 449.9 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.592e-05/0.3382, allocations: 30.75 kB / 449.9 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.3383, allocations: 3.688 kB / 449.9 MB, free: 30.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005847/0.3389, allocations: 266.3 kB / 450.2 MB, free: 30.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3389, allocations: 0 / 450.2 MB, free: 30.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003042/0.3392, allocations: 59.44 kB / 450.2 MB, free: 30.48 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 0.0001079/0.3393, allocations: 106.8 kB / 450.3 MB, free: 30.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006447/0.3399, allocations: 391.4 kB / 450.7 MB, free: 30.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.34, allocations: 0 / 450.7 MB, free: 30.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002989/0.3403, allocations: 252.9 kB / 451 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.3406, allocations: 33.28 kB / 451 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007801/0.3414, allocations: 0.5697 MB / 451.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.3417, allocations: 0.7707 MB / 452.3 MB, free: 28.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.3418, allocations: 56.64 kB / 452.4 MB, free: 28.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.41e-05/0.3418, allocations: 17.28 kB / 452.4 MB, free: 28.98 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3418, allocations: 0 / 452.4 MB, free: 28.98 MB / 350.1 MB Notification: Performance of Templates: time 0.00639/0.3482, allocations: 2.999 MB / 455.4 MB, free: 28.77 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)