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.0009955/0.0009955, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009869/0.0009869, allocations: 190.8 kB / 16.25 MB, free: 6.633 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.177/1.177, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.175/0.175, allocations: 22.35 MB / 312.4 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 67.89 kB / 380.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.2045, allocations: 54.94 MB / 435.4 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001731/0.2062, allocations: 1.183 MB / 436.5 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009987/0.2072, allocations: 1.298 MB / 437.8 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.361e-05/0.2073, allocations: 0 / 437.8 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002557/0.2076, allocations: 55.36 kB / 437.9 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.2078, allocations: 81.55 kB / 438 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001751/0.2079, allocations: 119.8 kB / 438.1 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002456/0.2082, allocations: 388.7 kB / 438.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.2083, allocations: 53.02 kB / 438.5 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.2084, allocations: 165.7 kB / 438.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/0.2086, allocations: 194.8 kB / 438.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.953e-05/0.2087, allocations: 22.22 kB / 438.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.051e-05/0.2087, allocations: 27.94 kB / 438.9 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.978e-05/0.2088, allocations: 110 kB / 439 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.114e-05/0.2089, allocations: 120.6 kB / 439.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001577/0.209, allocations: 267.5 kB / 439.4 MB, free: 37.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.209, allocations: 0 / 439.4 MB, free: 37.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2091, allocations: 0 / 439.4 MB, free: 37.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2091, allocations: 0 / 439.4 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.001525/0.2106, allocations: 0.7541 MB / 440.2 MB, free: 36.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.2106, allocations: 10.53 kB / 440.2 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.506e-05/0.2107, allocations: 51.73 kB / 440.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.714e-05/0.2107, allocations: 33.61 kB / 440.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007691/0.2115, allocations: 408.6 kB / 440.7 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.2115, allocations: 10.44 kB / 440.7 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.2116, allocations: 16.75 kB / 440.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.2118, allocations: 200.9 kB / 440.9 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.2118, allocations: 2.781 kB / 440.9 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.2119, allocations: 4 kB / 440.9 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2119, allocations: 6.719 kB / 440.9 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000286/0.2122, allocations: 203.6 kB / 441.1 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008524/0.213, allocations: 0.6974 MB / 441.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.2134, allocations: 263.4 kB / 442 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.2136, allocations: 132.9 kB / 442.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.2136, allocations: 2.656 kB / 442.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.082e-05/0.2137, allocations: 34.56 kB / 442.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.242e-06/0.2137, allocations: 6.438 kB / 442.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001494/0.2152, allocations: 0.6881 MB / 442.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.636e-05/0.2152, allocations: 54.41 kB / 443 MB, free: 35.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007067/0.2159, allocations: 421.3 kB / 443.4 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.2159, allocations: 29.7 kB / 443.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.119e-05/0.216, allocations: 149.7 kB / 443.5 MB, free: 34.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.851e-05/0.216, allocations: 81.92 kB / 443.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.095e-05/0.2161, allocations: 42.8 kB / 443.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.09e-05/0.2162, allocations: 345.3 kB / 444 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.2163, allocations: 111.2 kB / 444.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.2164, allocations: 104.1 kB / 444.2 MB, free: 34.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.2183, allocations: 0.7029 MB / 444.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2183, allocations: 2.844 kB / 444.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006326/0.219, allocations: 444.2 kB / 445.3 MB, free: 34.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.219, allocations: 12.22 kB / 445.4 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.219, allocations: 0 / 445.4 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002676/0.2193, allocations: 90.39 kB / 445.4 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.2194, allocations: 40.97 kB / 445.5 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.2206, allocations: 1.845 MB / 447.3 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003712/0.221, allocations: 68.19 kB / 447.4 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.221, allocations: 17.28 kB / 447.4 MB, free: 32.43 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.0001382/0.2211, allocations: 185.8 kB / 447.6 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-05/0.2212, allocations: 23.12 kB / 447.6 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.16e-05/0.2213, allocations: 42.38 kB / 447.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.2213, allocations: 2.844 kB / 447.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2213, allocations: 4 kB / 447.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2213, allocations: 0 / 447.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.2215, allocations: 360.4 kB / 448 MB, free: 31.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2216, allocations: 3.938 kB / 448 MB, free: 31.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001864/0.2217, allocations: 33.08 kB / 448.1 MB, free: 31.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002236/0.222, allocations: 92.7 kB / 448.1 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.222, allocations: 10.12 kB / 448.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.2231, allocations: 1.848 MB / 450 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2231, allocations: 2.781 kB / 450 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007796/0.2239, allocations: 0.6065 MB / 450.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.006e-05/0.224, allocations: 125.4 kB / 450.7 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/0.224, allocations: 6.781 kB / 450.7 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004018/0.2244, allocations: 54.98 kB / 450.8 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.522e-05/0.2245, allocations: 27 kB / 450.8 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.2245, allocations: 3.938 kB / 450.8 MB, free: 29.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006205/0.2251, allocations: 329.3 kB / 451.2 MB, free: 29.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2251, allocations: 0 / 451.2 MB, free: 29.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002764/0.2254, allocations: 61.91 kB / 451.2 MB, free: 29.78 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.0009002/0.2263, allocations: 1.165 MB / 452.4 MB, free: 28.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005356/0.2269, allocations: 436.3 kB / 452.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2269, allocations: 0 / 452.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003009/0.2272, allocations: 279.4 kB / 453.1 MB, free: 28.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.2275, allocations: 47.31 kB / 453.1 MB, free: 28.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004823/0.2324, allocations: 3.634 MB / 456.8 MB, free: 26.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001726/0.2325, allocations: 0.7937 MB / 457.5 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.2327, allocations: 64.31 kB / 457.6 MB, free: 25.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.2328, allocations: 82.97 kB / 457.7 MB, free: 25.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2328, allocations: 3.938 kB / 457.7 MB, free: 25.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.2521, allocations: 6.321 MB / 464 MB, free: 25.23 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001356/0.2522, allocations: 200.4 kB / 464.2 MB, free: 24.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.681/1.934, allocations: 3.938 kB / 464.2 MB, free: 24.98 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)