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.0008031/0.0008032, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.0008291/0.0008291, allocations: 177.3 kB / 15.94 MB, free: 228 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.148/1.148, allocations: 223.2 MB / 239.9 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1699/0.1699, allocations: 22.36 MB / 313.3 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003169/0.0003169, allocations: 8 kB / 381.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2354, allocations: 55.99 MB / 437.9 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.0008862/0.2364, allocations: 0.8026 MB / 438.7 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009362/0.2373, allocations: 1.273 MB / 440 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.256e-05/0.2374, allocations: 3.031 kB / 440 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002498/0.2377, allocations: 55.47 kB / 440 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001534/0.2378, allocations: 82.48 kB / 440.1 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001773/0.238, allocations: 104.4 kB / 440.2 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.2382, allocations: 212.7 kB / 440.4 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.849e-05/0.2383, allocations: 43.75 kB / 440.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.2385, allocations: 187.5 kB / 440.6 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.2387, allocations: 161.2 kB / 440.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.177e-05/0.2387, allocations: 11.31 kB / 440.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.581e-05/0.2387, allocations: 8.969 kB / 440.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.284e-05/0.2388, allocations: 87.42 kB / 440.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.225e-05/0.2389, allocations: 59.89 kB / 441 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.239, allocations: 196.5 kB / 441.2 MB, free: 37.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.239, allocations: 0 / 441.2 MB, free: 37.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.239, allocations: 0 / 441.2 MB, free: 37.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.239, allocations: 4 kB / 441.2 MB, free: 37.32 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.001433/0.2404, allocations: 0.7169 MB / 441.9 MB, free: 36.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.2405, allocations: 11.72 kB / 441.9 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.585e-05/0.2405, allocations: 46.98 kB / 441.9 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.308e-05/0.2406, allocations: 33.86 kB / 442 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007754/0.2414, allocations: 405.2 kB / 442.4 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.2414, allocations: 10.28 kB / 442.4 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.876e-05/0.2414, allocations: 13.22 kB / 442.4 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002513/0.2417, allocations: 198 kB / 442.6 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.2417, allocations: 7.859 kB / 442.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.2417, allocations: 6.844 kB / 442.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.2417, allocations: 11 kB / 442.6 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002775/0.242, allocations: 195.6 kB / 442.8 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008808/0.2429, allocations: 0.7016 MB / 443.5 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000403/0.2433, allocations: 263.7 kB / 443.8 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.2433, allocations: 6.844 kB / 443.8 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.192e-05/0.2433, allocations: 37.75 kB / 443.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.202e-06/0.2434, allocations: 0 / 443.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001434/0.2448, allocations: 0.6809 MB / 444.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.794e-05/0.2448, allocations: 57.52 kB / 444.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007063/0.2455, allocations: 418.3 kB / 444.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.2456, allocations: 25.7 kB / 445 MB, free: 35.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.565e-05/0.2456, allocations: 152.9 kB / 445.1 MB, free: 35.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.939e-05/0.2457, allocations: 90.84 kB / 445.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.024e-05/0.2457, allocations: 0 / 445.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.732e-05/0.2457, allocations: 340.1 kB / 445.5 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.2459, allocations: 100.2 kB / 445.6 MB, free: 34.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.246, allocations: 111.4 kB / 445.7 MB, free: 34.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.2462, allocations: 125.6 kB / 445.9 MB, free: 34.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2462, allocations: 3.938 kB / 445.9 MB, free: 34.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006212/0.2468, allocations: 441.5 kB / 446.3 MB, free: 34.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.2468, allocations: 5.938 kB / 446.3 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.2469, allocations: 3.938 kB / 446.3 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002757/0.2471, allocations: 102.5 kB / 446.4 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.2473, allocations: 34.38 kB / 446.4 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.2485, allocations: 1.741 MB / 448.2 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003572/0.2489, allocations: 75.22 kB / 448.3 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.2489, allocations: 7.062 kB / 448.3 MB, free: 32.94 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.0001538/0.2491, allocations: 175.2 kB / 448.4 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.488e-05/0.2491, allocations: 27.25 kB / 448.5 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.415e-05/0.2492, allocations: 46.47 kB / 448.5 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.2492, allocations: 2.844 kB / 448.5 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2492, allocations: 2.875 kB / 448.5 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2492, allocations: 3.188 kB / 448.5 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002775/0.2495, allocations: 365.3 kB / 448.9 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2495, allocations: 0 / 448.9 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001821/0.2497, allocations: 40.28 kB / 448.9 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002193/0.2499, allocations: 96.03 kB / 449 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.25, allocations: 9.812 kB / 449 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.2511, allocations: 1.745 MB / 450.8 MB, free: 30.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2511, allocations: 2.25 kB / 450.8 MB, free: 30.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007695/0.2519, allocations: 0.6065 MB / 451.4 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.537e-05/0.2519, allocations: 124.6 kB / 451.5 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.252, allocations: 7.312 kB / 451.5 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003704/0.2524, allocations: 54.92 kB / 451.6 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.397e-05/0.2524, allocations: 18.62 kB / 451.6 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.2524, allocations: 4.312 kB / 451.6 MB, free: 30.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006361/0.2531, allocations: 333.5 kB / 451.9 MB, free: 30.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2531, allocations: 0 / 451.9 MB, free: 30.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002829/0.2534, allocations: 66.28 kB / 452 MB, free: 30.38 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.0009447/0.2543, allocations: 1.159 MB / 453.1 MB, free: 29.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005496/0.2549, allocations: 413.4 kB / 453.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2549, allocations: 3.938 kB / 453.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002996/0.2552, allocations: 273.7 kB / 453.8 MB, free: 29.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.2555, allocations: 44.97 kB / 453.8 MB, free: 29.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003888/0.2594, allocations: 2.401 MB / 456.2 MB, free: 28.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.2596, allocations: 0.7988 MB / 457 MB, free: 27.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001211/0.2597, allocations: 60.55 kB / 457.1 MB, free: 27.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.2598, allocations: 86.23 kB / 457.2 MB, free: 27.36 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2598, allocations: 4 kB / 457.2 MB, free: 27.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.249/3.509, allocations: 6.042 MB / 463.2 MB, free: 26.95 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002169/3.509, allocations: 186.6 kB / 463.4 MB, free: 26.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/5.387, allocations: 0 / 463.4 MB, free: 26.7 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/linux/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) Environment - environmentSimulation: