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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",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.001181/0.001181, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001149/0.001149, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.175/1.175, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1662/0.1662, allocations: 22.36 MB / 312.4 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 67.84 kB / 380.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2025/0.2036, allocations: 54.93 MB / 435.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001738/0.2054, allocations: 1.127 MB / 436.5 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009201/0.2063, allocations: 1.258 MB / 437.7 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.648e-05/0.2064, allocations: 0 / 437.7 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002408/0.2067, allocations: 38.28 kB / 437.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.2068, allocations: 61.31 kB / 437.8 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001478/0.207, allocations: 89.12 kB / 437.9 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002048/0.2072, allocations: 306.7 kB / 438.2 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.863e-05/0.2073, allocations: 39.19 kB / 438.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.2074, allocations: 129.4 kB / 438.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.2075, allocations: 156.8 kB / 438.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.176e-05/0.2076, allocations: 23.2 kB / 438.6 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.497e-05/0.2076, allocations: 17.91 kB / 438.6 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.114e-05/0.2077, allocations: 92.27 kB / 438.7 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.082e-05/0.2078, allocations: 93.06 kB / 438.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.2079, allocations: 217.8 kB / 439 MB, free: 37.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2079, allocations: 2.844 kB / 439 MB, free: 37.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2079, allocations: 0 / 439 MB, free: 37.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.158e-06/0.2079, allocations: 0 / 439 MB, free: 37.36 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.001302/0.2092, allocations: 0.6734 MB / 439.6 MB, free: 36.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.848e-05/0.2093, allocations: 11.53 kB / 439.6 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.404e-05/0.2093, allocations: 45.09 kB / 439.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.135e-05/0.2094, allocations: 24.22 kB / 439.7 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006208/0.21, allocations: 362 kB / 440.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.21, allocations: 9.75 kB / 440.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.804e-05/0.21, allocations: 16.47 kB / 440.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002342/0.2103, allocations: 166.4 kB / 440.3 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2103, allocations: 6.781 kB / 440.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.2103, allocations: 4 kB / 440.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.2103, allocations: 6.906 kB / 440.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000245/0.2106, allocations: 174.4 kB / 440.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000749/0.2113, allocations: 0.6185 MB / 441.1 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/0.2116, allocations: 219.4 kB / 441.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.2117, allocations: 109.8 kB / 441.4 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.2118, allocations: 2.688 kB / 441.4 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.082e-05/0.2118, allocations: 41.47 kB / 441.4 MB, free: 35.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.283e-06/0.2118, allocations: 0 / 441.4 MB, free: 35.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001415/0.2132, allocations: 0.6447 MB / 442.1 MB, free: 35.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.733e-05/0.2132, allocations: 54 kB / 442.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005809/0.2138, allocations: 341.2 kB / 442.5 MB, free: 35.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.2139, allocations: 32.77 kB / 442.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.513e-05/0.2139, allocations: 135.4 kB / 442.6 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.45e-05/0.214, allocations: 78.5 kB / 442.7 MB, free: 35.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.479e-05/0.214, allocations: 42.61 kB / 442.7 MB, free: 35.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.197e-05/0.2141, allocations: 335.2 kB / 443.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.2142, allocations: 91.91 kB / 443.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.2143, allocations: 95.12 kB / 443.3 MB, free: 34.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/0.2159, allocations: 0.6182 MB / 443.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2159, allocations: 0 / 443.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005787/0.2165, allocations: 407.3 kB / 444.3 MB, free: 34.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.829e-06/0.2165, allocations: 5.594 kB / 444.3 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.2166, allocations: 0 / 444.3 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002513/0.2168, allocations: 91.17 kB / 444.4 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.217, allocations: 36.41 kB / 444.4 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/0.2181, allocations: 1.836 MB / 446.2 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003078/0.2184, allocations: 57.36 kB / 446.3 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.2185, allocations: 16.81 kB / 446.3 MB, free: 32.82 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.0001286/0.2186, allocations: 157.5 kB / 446.5 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.351e-05/0.2186, allocations: 22.72 kB / 446.5 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.373e-05/0.2187, allocations: 41.25 kB / 446.5 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2187, allocations: 3.984 kB / 446.5 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.2187, allocations: 2.906 kB / 446.5 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.2187, allocations: 11.88 kB / 446.5 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.219, allocations: 326.1 kB / 446.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.219, allocations: 2.688 kB / 446.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.2191, allocations: 29.56 kB / 446.9 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002276/0.2194, allocations: 93.09 kB / 447 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.2194, allocations: 6.156 kB / 447 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.2205, allocations: 1.845 MB / 448.8 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2205, allocations: 4.062 kB / 448.8 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007013/0.2212, allocations: 0.5506 MB / 449.4 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.01e-05/0.2213, allocations: 103.8 kB / 449.5 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.197e-05/0.2213, allocations: 8 kB / 449.5 MB, free: 30.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/0.2216, allocations: 55.08 kB / 449.6 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.902e-05/0.2217, allocations: 19.86 kB / 449.6 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.2217, allocations: 9.781 kB / 449.6 MB, free: 30.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005073/0.2222, allocations: 267.1 kB / 449.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2222, allocations: 2.594 kB / 449.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002682/0.2225, allocations: 57.38 kB / 449.9 MB, free: 30.22 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.0008436/0.2233, allocations: 1.11 MB / 451 MB, free: 29.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004999/0.2239, allocations: 386.2 kB / 451.4 MB, free: 29.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2239, allocations: 0 / 451.4 MB, free: 29.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002693/0.2241, allocations: 254.8 kB / 451.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.2245, allocations: 30.12 kB / 451.7 MB, free: 29.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003844/0.2283, allocations: 3.183 MB / 454.8 MB, free: 27.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001433/0.2285, allocations: 0.7733 MB / 455.6 MB, free: 26.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.2286, allocations: 57.81 kB / 455.7 MB, free: 26.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.324e-05/0.2287, allocations: 72.16 kB / 455.7 MB, free: 26.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2287, allocations: 3.938 kB / 455.8 MB, free: 26.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01801/0.2467, allocations: 5.477 MB / 461.2 MB, free: 25.93 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001381/0.2468, allocations: 204.8 kB / 461.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.748/1.995, allocations: 0 / 461.4 MB, free: 25.68 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)