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.001163/0.001163, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001174/0.001174, allocations: 192.6 kB / 16.14 MB, free: 6.711 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.166/1.166, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1724/0.1724, allocations: 22.35 MB / 312.3 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 63.89 kB / 380.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.1975, allocations: 54.94 MB / 435.2 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001755/0.1993, allocations: 1.179 MB / 436.3 MB, free: 38.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009353/0.2003, allocations: 1.295 MB / 437.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.222e-05/0.2003, allocations: 2.406 kB / 437.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002487/0.2006, allocations: 59.66 kB / 437.7 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.2008, allocations: 80.34 kB / 437.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001724/0.2009, allocations: 117.4 kB / 437.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002365/0.2012, allocations: 374.8 kB / 438.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.682e-05/0.2013, allocations: 58.89 kB / 438.3 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.2014, allocations: 140.8 kB / 438.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.2016, allocations: 188.2 kB / 438.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.2016, allocations: 11.59 kB / 438.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.154e-05/0.2017, allocations: 12.47 kB / 438.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.056e-05/0.2018, allocations: 100.2 kB / 438.7 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.578e-05/0.2018, allocations: 111.9 kB / 438.9 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.202, allocations: 254.6 kB / 439.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.202, allocations: 0 / 439.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.202, allocations: 0 / 439.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.202, allocations: 0 / 439.1 MB, free: 37.18 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.001505/0.2035, allocations: 0.7622 MB / 439.9 MB, free: 36.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.852e-05/0.2036, allocations: 16.25 kB / 439.9 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.348e-05/0.2036, allocations: 47.91 kB / 439.9 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.516e-05/0.2036, allocations: 29.38 kB / 440 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007475/0.2044, allocations: 408.2 kB / 440.4 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.2044, allocations: 10.44 kB / 440.4 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.23e-05/0.2045, allocations: 31.7 kB / 440.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.2047, allocations: 190 kB / 440.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2047, allocations: 0 / 440.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.2048, allocations: 7.031 kB / 440.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.2048, allocations: 2.594 kB / 440.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003053/0.2051, allocations: 200.9 kB / 440.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008664/0.206, allocations: 0.6949 MB / 441.5 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004088/0.2064, allocations: 278.9 kB / 441.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.2065, allocations: 127.4 kB / 441.9 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.2066, allocations: 2.875 kB / 441.9 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.096e-05/0.2066, allocations: 34.56 kB / 441.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.333e-06/0.2066, allocations: 0 / 441.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001484/0.2081, allocations: 0.6907 MB / 442.6 MB, free: 35.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.587e-05/0.2081, allocations: 53.94 kB / 442.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007304/0.2088, allocations: 413.6 kB / 443.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.2089, allocations: 36.39 kB / 443.1 MB, free: 35.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.055e-05/0.2089, allocations: 145.1 kB / 443.2 MB, free: 34.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.303e-05/0.209, allocations: 83.73 kB / 443.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.333e-05/0.2091, allocations: 43.44 kB / 443.4 MB, free: 34.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.53e-05/0.2091, allocations: 349.3 kB / 443.7 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.2093, allocations: 108.9 kB / 443.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.2094, allocations: 106 kB / 443.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001865/0.2113, allocations: 0.7055 MB / 444.6 MB, free: 34.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2113, allocations: 0 / 444.6 MB, free: 34.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006444/0.2119, allocations: 440.3 kB / 445.1 MB, free: 34.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.2119, allocations: 11.66 kB / 445.1 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.212, allocations: 0 / 445.1 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002617/0.2122, allocations: 97.81 kB / 445.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.2124, allocations: 37.2 kB / 445.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.2135, allocations: 1.738 MB / 446.9 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003763/0.2139, allocations: 68.03 kB / 447 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.2139, allocations: 9.094 kB / 447 MB, free: 32.53 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.0001362/0.2141, allocations: 186.5 kB / 447.2 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.834e-05/0.2141, allocations: 28.73 kB / 447.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.223e-05/0.2142, allocations: 42.69 kB / 447.3 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.2142, allocations: 2.219 kB / 447.3 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.2142, allocations: 6.25 kB / 447.3 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.2142, allocations: 0 / 447.3 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002634/0.2145, allocations: 358.9 kB / 447.6 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2145, allocations: 0 / 447.6 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.2147, allocations: 36.16 kB / 447.7 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002262/0.2149, allocations: 95.72 kB / 447.8 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.215, allocations: 6.938 kB / 447.8 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.216, allocations: 1.732 MB / 449.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.216, allocations: 0 / 449.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007768/0.2168, allocations: 0.6133 MB / 450.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.2169, allocations: 113.4 kB / 450.2 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.2169, allocations: 10.05 kB / 450.2 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003922/0.2173, allocations: 59.53 kB / 450.3 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.59e-05/0.2174, allocations: 24.41 kB / 450.3 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.2174, allocations: 5.75 kB / 450.3 MB, free: 30.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006282/0.218, allocations: 327.4 kB / 450.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.218, allocations: 0 / 450.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.2183, allocations: 61.69 kB / 450.7 MB, free: 29.98 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.0009212/0.2193, allocations: 1.153 MB / 451.8 MB, free: 29.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005166/0.2198, allocations: 410.9 kB / 452.2 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2198, allocations: 4 kB / 452.2 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002889/0.2201, allocations: 274.8 kB / 452.5 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.0003312/0.2204, allocations: 46.23 kB / 452.6 MB, free: 28.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004786/0.2252, allocations: 3.644 MB / 456.2 MB, free: 26.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001708/0.2254, allocations: 0.7906 MB / 457 MB, free: 26.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.2255, allocations: 63.55 kB / 457.1 MB, free: 26.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.2257, allocations: 86.55 kB / 457.1 MB, free: 25.97 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2257, allocations: 1.094 kB / 457.1 MB, free: 25.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01516/0.2408, allocations: 6.123 MB / 463.3 MB, free: 25.45 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001505/0.241, allocations: 202.4 kB / 463.5 MB, free: 25.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/1.854, allocations: 0 / 463.5 MB, free: 25.2 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)