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.0009308/0.0009305, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0009553/0.0009552, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 223.3 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2418/0.2418, allocations: 22.34 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006102/0.0006103, allocations: 8 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4028, allocations: 55.96 MB / 437.9 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001345/0.4042, allocations: 0.8049 MB / 438.7 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.4056, allocations: 1.27 MB / 440 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.028e-05/0.4057, allocations: 6.688 kB / 440 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003277/0.406, allocations: 62.2 kB / 440 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001841/0.4062, allocations: 68.03 kB / 440.1 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.4064, allocations: 117.9 kB / 440.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003095/0.4068, allocations: 320 kB / 440.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.4069, allocations: 50.02 kB / 440.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.4071, allocations: 161.7 kB / 440.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002483/0.4073, allocations: 185.4 kB / 440.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.883e-05/0.4074, allocations: 8.969 kB / 440.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.031e-05/0.4074, allocations: 11.84 kB / 440.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.4075, allocations: 94.41 kB / 441 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.921e-05/0.4076, allocations: 58.83 kB / 441.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.4078, allocations: 190.2 kB / 441.3 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4078, allocations: 4 kB / 441.3 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.4078, allocations: 0 / 441.3 MB, free: 37.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.4078, allocations: 3.938 kB / 441.3 MB, free: 37.46 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.001535/0.4093, allocations: 0.7217 MB / 442 MB, free: 36.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.4094, allocations: 9.656 kB / 442 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.206e-05/0.4094, allocations: 29.47 kB / 442.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008034/0.4103, allocations: 408.8 kB / 442.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.4103, allocations: 10.25 kB / 442.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.705e-05/0.4103, allocations: 15.94 kB / 442.5 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003213/0.4107, allocations: 188.1 kB / 442.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.4107, allocations: 4 kB / 442.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.314e-05/0.4107, allocations: 14.12 kB / 442.7 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.4107, allocations: 2.875 kB / 442.7 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000337/0.4111, allocations: 198.4 kB / 442.9 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.4121, allocations: 0.6991 MB / 443.6 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005588/0.4127, allocations: 279.2 kB / 443.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.4129, allocations: 126 kB / 444 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.4129, allocations: 2.719 kB / 444 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.413, allocations: 41.16 kB / 444 MB, free: 35.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.943e-06/0.413, allocations: 0 / 444 MB, free: 35.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001662/0.4146, allocations: 0.6887 MB / 444.7 MB, free: 35.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.4147, allocations: 55.41 kB / 444.8 MB, free: 35.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008653/0.4156, allocations: 414.5 kB / 445.2 MB, free: 35.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.4156, allocations: 36.61 kB / 445.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.4157, allocations: 143.6 kB / 445.3 MB, free: 35.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.361e-05/0.4158, allocations: 87.42 kB / 445.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.314e-05/0.4158, allocations: 8 kB / 445.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.4159, allocations: 341.3 kB / 445.8 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.4161, allocations: 106.4 kB / 445.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.4163, allocations: 111.1 kB / 446 MB, free: 34.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.4165, allocations: 124.1 kB / 446.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4165, allocations: 0 / 446.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007874/0.4173, allocations: 440.5 kB / 446.5 MB, free: 34.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.4173, allocations: 6.781 kB / 446.5 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.4173, allocations: 3.938 kB / 446.5 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003621/0.4177, allocations: 92.89 kB / 446.6 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.4179, allocations: 39.28 kB / 446.7 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.4193, allocations: 1.733 MB / 448.4 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003452/0.4197, allocations: 76.2 kB / 448.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.4197, allocations: 4.969 kB / 448.5 MB, free: 33.07 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] P.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] HF.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001955/0.4199, allocations: 171.8 kB / 448.6 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.736e-05/0.42, allocations: 31.78 kB / 448.7 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.382e-05/0.4201, allocations: 45.73 kB / 448.7 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.4201, allocations: 2.938 kB / 448.7 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4201, allocations: 0 / 448.7 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.4201, allocations: 0 / 448.7 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003277/0.4205, allocations: 365.6 kB / 449.1 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4205, allocations: 6.5 kB / 449.1 MB, free: 32.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002017/0.4207, allocations: 38.31 kB / 449.1 MB, free: 32.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002351/0.4209, allocations: 93.16 kB / 449.2 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/0.421, allocations: 6.25 kB / 449.2 MB, free: 32.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.4223, allocations: 1.734 MB / 451 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4223, allocations: 0 / 451 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008716/0.4232, allocations: 0.6124 MB / 451.6 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.111e-05/0.4232, allocations: 119.2 kB / 451.7 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.818e-05/0.4233, allocations: 9.5 kB / 451.7 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003538/0.4236, allocations: 59.64 kB / 451.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.791e-05/0.4237, allocations: 19.3 kB / 451.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.4237, allocations: 3.5 kB / 451.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006179/0.4244, allocations: 334.8 kB / 452.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4244, allocations: 0 / 452.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003376/0.4247, allocations: 60.69 kB / 452.2 MB, free: 30.52 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001203/0.4248, allocations: 104.3 kB / 452.3 MB, free: 30.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006743/0.4255, allocations: 414.2 kB / 452.7 MB, free: 30.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4255, allocations: 0 / 452.7 MB, free: 30.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003599/0.4259, allocations: 277 kB / 452.9 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004145/0.4263, allocations: 44.64 kB / 453 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.4275, allocations: 0.7466 MB / 453.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.4278, allocations: 0.7999 MB / 454.5 MB, free: 28.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001501/0.428, allocations: 65.41 kB / 454.6 MB, free: 28.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.813e-05/0.428, allocations: 17.94 kB / 454.6 MB, free: 28.89 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.428, allocations: 0 / 454.6 MB, free: 28.89 MB / 350.1 MB Notification: Performance of Templates: time 0.006652/0.4347, allocations: 3.067 MB / 457.7 MB, free: 28.7 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)