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.001099/0.001099, allocations: 109.4 kB / 15.69 MB, free: 128 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.001116/0.001117, allocations: 188.4 kB / 16.62 MB, free: 6.613 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.327/1.327, allocations: 222.9 MB / 240.3 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1922/0.1922, allocations: 22.37 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 55.91 kB / 381.1 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2647, allocations: 54.94 MB / 436.1 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002401/0.2672, allocations: 1.142 MB / 437.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.2687, allocations: 1.294 MB / 438.5 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.801e-05/0.2688, allocations: 2.75 kB / 438.5 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.2691, allocations: 72.55 kB / 438.6 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.2693, allocations: 76.44 kB / 438.6 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.2695, allocations: 137 kB / 438.8 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002939/0.2698, allocations: 385 kB / 439.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.27, allocations: 55.95 kB / 439.2 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001532/0.2701, allocations: 165.9 kB / 439.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.2703, allocations: 186.7 kB / 439.5 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.235e-05/0.2704, allocations: 21.88 kB / 439.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.307e-05/0.2704, allocations: 20.91 kB / 439.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.2705, allocations: 110 kB / 439.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.857e-05/0.2706, allocations: 120.2 kB / 439.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000213/0.2709, allocations: 275.5 kB / 440.1 MB, free: 37.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2709, allocations: 0 / 440.1 MB, free: 37.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2709, allocations: 0 / 440.1 MB, free: 37.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.2709, allocations: 0 / 440.1 MB, free: 37.44 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.001743/0.2726, allocations: 0.7484 MB / 440.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.2727, allocations: 8.469 kB / 440.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.755e-05/0.2727, allocations: 52.06 kB / 440.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.413e-05/0.2728, allocations: 31.91 kB / 440.9 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00081/0.2736, allocations: 423.4 kB / 441.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.2736, allocations: 10.59 kB / 441.3 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.575e-05/0.2737, allocations: 16.69 kB / 441.4 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002905/0.274, allocations: 201.9 kB / 441.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.274, allocations: 0 / 441.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.274, allocations: 7.75 kB / 441.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.274, allocations: 2.812 kB / 441.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.2743, allocations: 197.9 kB / 441.8 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009778/0.2753, allocations: 0.6917 MB / 442.5 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004643/0.2758, allocations: 268.6 kB / 442.7 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.276, allocations: 129.9 kB / 442.8 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.276, allocations: 0 / 442.8 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.276, allocations: 33.75 kB / 442.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.924e-06/0.276, allocations: 0 / 442.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001678/0.2777, allocations: 0.6961 MB / 443.6 MB, free: 35.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.251e-05/0.2778, allocations: 54.22 kB / 443.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007812/0.2785, allocations: 412.5 kB / 444 MB, free: 35.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.2786, allocations: 29.7 kB / 444.1 MB, free: 35.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.102e-05/0.2786, allocations: 142.8 kB / 444.2 MB, free: 35.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.942e-05/0.2787, allocations: 100.5 kB / 444.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.576e-05/0.2788, allocations: 45.77 kB / 444.3 MB, free: 35.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.385e-05/0.2788, allocations: 345.8 kB / 444.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.279, allocations: 106 kB / 444.8 MB, free: 34.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.2792, allocations: 104.8 kB / 444.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002003/0.2812, allocations: 0.7062 MB / 445.6 MB, free: 34.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2812, allocations: 3.938 kB / 445.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007266/0.2819, allocations: 441.3 kB / 446 MB, free: 34.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.282, allocations: 10.91 kB / 446 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.282, allocations: 0 / 446 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002972/0.2823, allocations: 97.17 kB / 446.1 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.2825, allocations: 38.89 kB / 446.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.2838, allocations: 1.849 MB / 448 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003952/0.2842, allocations: 69.06 kB / 448.1 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.2843, allocations: 9.719 kB / 448.1 MB, free: 32.7 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.0001694/0.2844, allocations: 180.5 kB / 448.3 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.094e-05/0.2845, allocations: 25.81 kB / 448.3 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.841e-05/0.2846, allocations: 46.12 kB / 448.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2846, allocations: 3.156 kB / 448.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2846, allocations: 0 / 448.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2846, allocations: 3.328 kB / 448.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002845/0.2849, allocations: 355.1 kB / 448.7 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2849, allocations: 4 kB / 448.7 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/0.2851, allocations: 31.28 kB / 448.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002446/0.2854, allocations: 97.69 kB / 448.8 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.2854, allocations: 6.031 kB / 448.8 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.2866, allocations: 1.85 MB / 450.7 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2866, allocations: 3.281 kB / 450.7 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008786/0.2875, allocations: 0.6138 MB / 451.3 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.861e-05/0.2876, allocations: 116.2 kB / 451.4 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.699e-05/0.2876, allocations: 9.438 kB / 451.4 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004429/0.2881, allocations: 58.08 kB / 451.5 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.268e-05/0.2881, allocations: 18.75 kB / 451.5 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.2881, allocations: 9.25 kB / 451.5 MB, free: 30.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006775/0.2888, allocations: 326.6 kB / 451.8 MB, free: 30.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2888, allocations: 3.938 kB / 451.8 MB, free: 30.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003148/0.2892, allocations: 66.11 kB / 451.9 MB, free: 30.04 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.001042/0.2902, allocations: 1.163 MB / 453 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006241/0.2908, allocations: 414.9 kB / 453.5 MB, free: 29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2909, allocations: 0 / 453.5 MB, free: 29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003368/0.2912, allocations: 278.1 kB / 453.7 MB, free: 28.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/0.2916, allocations: 40.41 kB / 453.8 MB, free: 28.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005375/0.297, allocations: 3.564 MB / 457.3 MB, free: 26.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.2972, allocations: 0.7922 MB / 458.1 MB, free: 26.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001548/0.2974, allocations: 68.47 kB / 458.2 MB, free: 26.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.2975, allocations: 83.02 kB / 458.3 MB, free: 26.14 MB / 350.1 MB Notification: Performance of SimCode: time 1.113e-06/0.2975, allocations: 0 / 458.3 MB, free: 26.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03508/0.3326, allocations: 6.456 MB / 464.7 MB, free: 25.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.105/9.438, allocations: 12 kB / 464.7 MB, free: 25.48 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)