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.0009193/0.0009191, allocations: 99.55 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.0008937/0.0008937, 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.151/1.151, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1808/0.1808, allocations: 22.35 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002803/0.0002803, allocations: 8 kB / 381.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2725, allocations: 55.97 MB / 437.9 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.0009357/0.2735, allocations: 0.7499 MB / 438.6 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009983/0.2745, allocations: 1.215 MB / 439.9 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.517e-05/0.2746, allocations: 2.844 kB / 439.9 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002312/0.2748, allocations: 46.42 kB / 439.9 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.2749, allocations: 61.08 kB / 440 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001594/0.2751, allocations: 81.72 kB / 440 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000166/0.2753, allocations: 163.2 kB / 440.2 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.2754, allocations: 40.97 kB / 440.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.2755, allocations: 130.9 kB / 440.4 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.2757, allocations: 136.1 kB / 440.5 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.2757, allocations: 6.469 kB / 440.5 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.471e-05/0.2758, allocations: 10.66 kB / 440.5 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.115e-05/0.2758, allocations: 81 kB / 440.6 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.335e-05/0.2759, allocations: 45.45 kB / 440.6 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.276, allocations: 163.9 kB / 440.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.726e-06/0.276, allocations: 2.844 kB / 440.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.276, allocations: 0 / 440.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.276, allocations: 0 / 440.8 MB, free: 37.56 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.001278/0.2773, allocations: 0.646 MB / 441.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.2774, allocations: 8.406 kB / 441.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.106e-05/0.2774, allocations: 47.34 kB / 441.5 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.067e-05/0.2775, allocations: 32.05 kB / 441.5 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006672/0.2781, allocations: 358.2 kB / 441.9 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.2782, allocations: 6.688 kB / 441.9 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.693e-05/0.2782, allocations: 12.12 kB / 441.9 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002348/0.2784, allocations: 163.2 kB / 442.1 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.2784, allocations: 10.52 kB / 442.1 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.2785, allocations: 0 / 442.1 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.2785, allocations: 2.531 kB / 442.1 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.2787, allocations: 178.2 kB / 442.3 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008242/0.2796, allocations: 0.6264 MB / 442.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.2798, allocations: 212 kB / 443.1 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.2799, allocations: 2.938 kB / 443.1 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.415e-05/0.2799, allocations: 37.16 kB / 443.1 MB, free: 36.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.102e-06/0.2799, allocations: 0 / 443.1 MB, free: 36.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001433/0.2813, allocations: 0.6365 MB / 443.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.039e-05/0.2814, allocations: 54.31 kB / 443.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005913/0.282, allocations: 341.7 kB / 444.2 MB, free: 35.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.282, allocations: 32.7 kB / 444.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.608e-05/0.282, allocations: 141.4 kB / 444.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.746e-05/0.2821, allocations: 73.48 kB / 444.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.064e-05/0.2821, allocations: 4 kB / 444.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.442e-05/0.2822, allocations: 341.9 kB / 444.7 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.2823, allocations: 86.2 kB / 444.8 MB, free: 35.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.2824, allocations: 95.72 kB / 444.9 MB, free: 35.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.2826, allocations: 105.6 kB / 445 MB, free: 35.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2826, allocations: 0 / 445 MB, free: 35.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005804/0.2832, allocations: 391.3 kB / 445.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.2832, allocations: 9.656 kB / 445.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2832, allocations: 3.953 kB / 445.4 MB, free: 34.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002863/0.2835, allocations: 93.19 kB / 445.5 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.2836, allocations: 37.12 kB / 445.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001211/0.2849, allocations: 1.746 MB / 447.3 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.2852, allocations: 58.34 kB / 447.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.2852, allocations: 9.188 kB / 447.3 MB, free: 33.34 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] 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 (21): * Single equations (assignments): 20 * 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.0001511/0.2854, allocations: 163 kB / 447.5 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.086e-05/0.2854, allocations: 26.66 kB / 447.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.736e-05/0.2855, allocations: 45.23 kB / 447.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-06/0.2855, allocations: 0 / 447.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2855, allocations: 2.688 kB / 447.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.2855, allocations: 0 / 447.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002613/0.2858, allocations: 323.3 kB / 447.9 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2858, allocations: 3.281 kB / 447.9 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.2859, allocations: 31.84 kB / 447.9 MB, free: 32.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002238/0.2862, allocations: 93.78 kB / 448 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.083e-05/0.2862, allocations: 14.06 kB / 448 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/0.2873, allocations: 1.745 MB / 449.8 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2873, allocations: 0 / 449.8 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007092/0.288, allocations: 0.5579 MB / 450.3 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-05/0.2881, allocations: 100.9 kB / 450.4 MB, free: 30.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.082e-05/0.2881, allocations: 7.094 kB / 450.4 MB, free: 30.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003206/0.2885, allocations: 46.47 kB / 450.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.961e-05/0.2885, allocations: 14.28 kB / 450.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.2885, allocations: 9.688 kB / 450.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005111/0.2891, allocations: 270.8 kB / 450.8 MB, free: 30.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2891, allocations: 0 / 450.8 MB, free: 30.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002752/0.2894, allocations: 58.28 kB / 450.8 MB, free: 30.86 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 (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.000871/0.2902, allocations: 1.098 MB / 451.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005178/0.2908, allocations: 383.4 kB / 452.3 MB, free: 29.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2908, allocations: 0 / 452.3 MB, free: 29.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000278/0.2911, allocations: 245.2 kB / 452.5 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.2913, allocations: 34.09 kB / 452.6 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003237/0.2946, allocations: 1.997 MB / 454.6 MB, free: 28.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001959/0.2948, allocations: 0.7765 MB / 455.4 MB, free: 28.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.2949, allocations: 56.75 kB / 455.4 MB, free: 28.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.475e-05/0.295, allocations: 71.08 kB / 455.5 MB, free: 28 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.295, allocations: 0 / 455.5 MB, free: 28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.256/4.551, allocations: 5.205 MB / 460.7 MB, free: 27.65 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002417/4.551, allocations: 186.5 kB / 460.9 MB, free: 27.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.918/6.47, allocations: 9.109 kB / 460.9 MB, free: 27.4 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/linux/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) Environment - environmentSimulation: