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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 108 kB / 15.6 MB, free: 132 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.001794/0.001794, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.468/1.468, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1939/0.1939, allocations: 22.36 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 59.91 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3165, allocations: 54.94 MB / 435.9 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002381/0.3189, allocations: 1.132 MB / 437 MB, free: 39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.3204, allocations: 1.297 MB / 438.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.3205, allocations: 2.906 kB / 438.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003725/0.3209, allocations: 70.23 kB / 438.4 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002065/0.3211, allocations: 79.28 kB / 438.5 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.3214, allocations: 137.5 kB / 438.6 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003024/0.3217, allocations: 387.4 kB / 439 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.3218, allocations: 48.25 kB / 439 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.322, allocations: 158.7 kB / 439.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002102/0.3222, allocations: 197.6 kB / 439.4 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.911e-05/0.3222, allocations: 24.81 kB / 439.4 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.832e-05/0.3223, allocations: 24.5 kB / 439.4 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.3224, allocations: 103 kB / 439.5 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.654e-05/0.3225, allocations: 115.4 kB / 439.6 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.3227, allocations: 268.2 kB / 439.9 MB, free: 37.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.3227, allocations: 0 / 439.9 MB, free: 37.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3227, allocations: 0 / 439.9 MB, free: 37.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.3227, allocations: 0 / 439.9 MB, free: 37.4 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.001706/0.3244, allocations: 0.759 MB / 440.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3245, allocations: 12.59 kB / 440.7 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.131e-05/0.3245, allocations: 51.83 kB / 440.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.117e-05/0.3246, allocations: 34.25 kB / 440.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008482/0.3254, allocations: 409.9 kB / 441.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.3255, allocations: 14.19 kB / 441.2 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.3255, allocations: 23.84 kB / 441.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002862/0.3258, allocations: 194 kB / 441.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.3258, allocations: 3 kB / 441.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.3258, allocations: 4 kB / 441.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.3259, allocations: 3.688 kB / 441.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003152/0.3262, allocations: 201 kB / 441.6 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009612/0.3271, allocations: 0.6919 MB / 442.3 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.3276, allocations: 268.6 kB / 442.5 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.3278, allocations: 129.6 kB / 442.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.3278, allocations: 3.062 kB / 442.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.495e-05/0.3278, allocations: 34.56 kB / 442.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.423e-06/0.3279, allocations: 0 / 442.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001617/0.3295, allocations: 0.6964 MB / 443.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.3295, allocations: 58.12 kB / 443.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007949/0.3303, allocations: 411.6 kB / 443.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.3303, allocations: 25.7 kB / 443.9 MB, free: 35.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.531e-05/0.3304, allocations: 157.6 kB / 444 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.724e-05/0.3305, allocations: 83.75 kB / 444.1 MB, free: 35.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.558e-05/0.3305, allocations: 47.84 kB / 444.2 MB, free: 35.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.048e-05/0.3306, allocations: 344.5 kB / 444.5 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.3308, allocations: 106.9 kB / 444.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.3309, allocations: 104.5 kB / 444.7 MB, free: 34.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0019/0.3328, allocations: 0.7059 MB / 445.4 MB, free: 34.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3328, allocations: 0 / 445.4 MB, free: 34.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006936/0.3335, allocations: 440.9 kB / 445.8 MB, free: 34.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.3336, allocations: 10.75 kB / 445.8 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.3336, allocations: 0 / 445.8 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002734/0.3339, allocations: 97.45 kB / 445.9 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.334, allocations: 40.55 kB / 446 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.3353, allocations: 1.843 MB / 447.8 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003896/0.3357, allocations: 66.02 kB / 447.9 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/0.3358, allocations: 13.22 kB / 447.9 MB, free: 32.65 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] 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 (25): * Single equations (assignments): 24 * 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.0001799/0.3359, allocations: 183.9 kB / 448.1 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/0.336, allocations: 27.59 kB / 448.1 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.726e-05/0.3361, allocations: 48.03 kB / 448.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3361, allocations: 6.625 kB / 448.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.3361, allocations: 0 / 448.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3361, allocations: 0 / 448.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002881/0.3364, allocations: 363.1 kB / 448.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3364, allocations: 2.625 kB / 448.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.3366, allocations: 30.05 kB / 448.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002274/0.3368, allocations: 90.84 kB / 448.6 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.3369, allocations: 10.09 kB / 448.6 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.3382, allocations: 1.852 MB / 450.5 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3382, allocations: 0 / 450.5 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.3396, allocations: 0.6074 MB / 451.1 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.864e-05/0.3397, allocations: 118.1 kB / 451.2 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.814e-05/0.3397, allocations: 6.438 kB / 451.2 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006493/0.3404, allocations: 56.27 kB / 451.3 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.3405, allocations: 33.17 kB / 451.3 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.353e-05/0.3405, allocations: 9.266 kB / 451.3 MB, free: 30.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001134/0.3417, allocations: 329.2 kB / 451.6 MB, free: 30 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3417, allocations: 0 / 451.6 MB, free: 30 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005932/0.3423, allocations: 62.34 kB / 451.7 MB, free: 29.99 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 (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.001588/0.3439, allocations: 1.155 MB / 452.9 MB, free: 29.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000969/0.3449, allocations: 439.3 kB / 453.3 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3449, allocations: 0 / 453.3 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005053/0.3454, allocations: 277.1 kB / 453.6 MB, free: 28.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006354/0.3461, allocations: 45.59 kB / 453.6 MB, free: 28.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008813/0.3549, allocations: 3.579 MB / 457.2 MB, free: 26.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.3553, allocations: 0.7963 MB / 458 MB, free: 26.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002659/0.3556, allocations: 63.31 kB / 458 MB, free: 26.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/0.3558, allocations: 85.53 kB / 458.1 MB, free: 26.05 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3558, allocations: 1.531 kB / 458.1 MB, free: 26.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03888/0.3947, allocations: 6.408 MB / 464.5 MB, free: 25.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.033/9.428, allocations: 15.06 kB / 464.5 MB, free: 25.39 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)