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.001252/0.001252, allocations: 90.98 kB / 15.36 MB, free: 0.7344 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.009543/0.009543, allocations: 169.3 kB / 16.26 MB, free: 6.68 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.351/1.351, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2083/0.2083, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000409/0.0004091, allocations: 11.94 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3224, allocations: 55.98 MB / 438.6 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001186/0.3236, allocations: 0.7714 MB / 439.3 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.3249, allocations: 1.242 MB / 440.6 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.677e-05/0.325, allocations: 11.09 kB / 440.6 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002958/0.3253, allocations: 41.62 kB / 440.6 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.3254, allocations: 59.86 kB / 440.7 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000177/0.3256, allocations: 94.31 kB / 440.8 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.3259, allocations: 278 kB / 441.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.326, allocations: 41.22 kB / 441.1 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.3261, allocations: 109.8 kB / 441.2 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.3263, allocations: 144.7 kB / 441.3 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/0.3264, allocations: 8.531 kB / 441.3 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.723e-05/0.3264, allocations: 10.5 kB / 441.4 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.3265, allocations: 77.52 kB / 441.4 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.768e-05/0.3266, allocations: 109.4 kB / 441.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.3268, allocations: 204.3 kB / 441.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.3268, allocations: 4 kB / 441.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3268, allocations: 0 / 441.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.3268, allocations: 0 / 441.7 MB, free: 37.64 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.001408/0.3282, allocations: 0.6464 MB / 442.4 MB, free: 37.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3283, allocations: 13.38 kB / 442.4 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.825e-05/0.3283, allocations: 24.56 kB / 442.4 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007151/0.329, allocations: 365.2 kB / 442.8 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.3291, allocations: 7.156 kB / 442.8 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.408e-05/0.3291, allocations: 19.5 kB / 442.8 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/0.3294, allocations: 166.8 kB / 443 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.3294, allocations: 6.891 kB / 443 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.3294, allocations: 11.94 kB / 443 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.3294, allocations: 6.844 kB / 443 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.3297, allocations: 171.7 kB / 443.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008812/0.3306, allocations: 0.6268 MB / 443.8 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.3309, allocations: 210 kB / 444 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.3311, allocations: 115.9 kB / 444.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.3311, allocations: 2.875 kB / 444.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.3311, allocations: 33.5 kB / 444.1 MB, free: 36.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.232e-06/0.3312, allocations: 0 / 444.1 MB, free: 36.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001614/0.3328, allocations: 0.6473 MB / 444.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.159e-05/0.3328, allocations: 54.06 kB / 444.8 MB, free: 35.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006468/0.3335, allocations: 350 kB / 445.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.3335, allocations: 25.7 kB / 445.2 MB, free: 35.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.795e-05/0.3335, allocations: 136.3 kB / 445.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.317e-05/0.3336, allocations: 80.47 kB / 445.4 MB, free: 35.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-05/0.3336, allocations: 22.39 kB / 445.4 MB, free: 35.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.713e-05/0.3337, allocations: 340.8 kB / 445.8 MB, free: 35.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.3338, allocations: 88.23 kB / 445.9 MB, free: 35.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001283/0.334, allocations: 98.59 kB / 446 MB, free: 35.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001735/0.3357, allocations: 0.6226 MB / 446.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3357, allocations: 0 / 446.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006497/0.3364, allocations: 399.6 kB / 447 MB, free: 34.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.3364, allocations: 6.938 kB / 447 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3364, allocations: 7.047 kB / 447 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000277/0.3367, allocations: 95.81 kB / 447.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.3369, allocations: 34.78 kB / 447.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.3383, allocations: 1.731 MB / 448.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.3386, allocations: 61.14 kB / 448.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.3386, allocations: 2.594 kB / 448.9 MB, free: 33.27 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.0001862/0.3388, allocations: 178.4 kB / 449.1 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.662e-05/0.3389, allocations: 24.88 kB / 449.1 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.258e-05/0.339, allocations: 37.95 kB / 449.1 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.339, allocations: 6.031 kB / 449.2 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.339, allocations: 1.969 kB / 449.2 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.339, allocations: 4 kB / 449.2 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002794/0.3393, allocations: 328.1 kB / 449.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3393, allocations: 3.328 kB / 449.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.3395, allocations: 23.17 kB / 449.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002329/0.3397, allocations: 89.14 kB / 449.6 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.3397, allocations: 12.08 kB / 449.6 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.3409, allocations: 1.736 MB / 451.3 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.341, allocations: 0 / 451.3 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007578/0.3417, allocations: 0.5585 MB / 451.9 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.092e-05/0.3418, allocations: 106.7 kB / 452 MB, free: 30.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.3418, allocations: 2.625 kB / 452 MB, free: 30.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003433/0.3422, allocations: 54.59 kB / 452.1 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.773e-05/0.3422, allocations: 17.47 kB / 452.1 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.3423, allocations: 2.75 kB / 452.1 MB, free: 30.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005803/0.3428, allocations: 279 kB / 452.3 MB, free: 30.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3428, allocations: 0 / 452.3 MB, free: 30.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.3432, allocations: 58.47 kB / 452.4 MB, free: 30.78 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.301e-05/0.3432, allocations: 98.88 kB / 452.5 MB, free: 30.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005543/0.3438, allocations: 384.4 kB / 452.9 MB, free: 30.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3438, allocations: 0 / 452.9 MB, free: 30.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002894/0.3441, allocations: 244.9 kB / 453.1 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.3445, allocations: 40.17 kB / 453.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007641/0.3453, allocations: 0.6445 MB / 453.8 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001758/0.3455, allocations: 0.7648 MB / 454.6 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.3456, allocations: 55 kB / 454.6 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.298e-05/0.3456, allocations: 18.34 kB / 454.6 MB, free: 29.22 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3456, allocations: 0 / 454.6 MB, free: 29.22 MB / 350.1 MB Notification: Performance of Templates: time 0.005798/0.3514, allocations: 2.741 MB / 457.4 MB, free: 29.05 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)