Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_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.001079/0.001079, allocations: 105.4 kB / 15.7 MB, free: 24 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.001174/0.001174, allocations: 195.5 kB / 16.64 MB, free: 6.453 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.348/1.348, allocations: 222.9 MB / 240.3 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2061/0.2061, allocations: 22.36 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 64.08 kB / 381.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2648, allocations: 54.95 MB / 436.1 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002068/0.2669, allocations: 1.301 MB / 437.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.2682, allocations: 1.397 MB / 438.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.703e-05/0.2684, allocations: 3.938 kB / 438.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003228/0.2687, allocations: 100.5 kB / 438.9 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002195/0.2689, allocations: 123.1 kB / 439 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002862/0.2692, allocations: 200 kB / 439.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003723/0.2696, allocations: 0.5121 MB / 439.7 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.2697, allocations: 70.59 kB / 439.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001782/0.2699, allocations: 216.5 kB / 440 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.2702, allocations: 245.6 kB / 440.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.718e-05/0.2702, allocations: 24.84 kB / 440.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.738e-05/0.2703, allocations: 26.84 kB / 440.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001211/0.2704, allocations: 118.3 kB / 440.4 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.939e-05/0.2705, allocations: 153.4 kB / 440.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002158/0.2707, allocations: 336.9 kB / 440.9 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2707, allocations: 0 / 440.9 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2708, allocations: 2.562 kB / 440.9 MB, free: 36.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.2708, allocations: 0 / 440.9 MB, free: 36.97 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001905/0.2727, allocations: 0.8672 MB / 441.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.2727, allocations: 9.594 kB / 441.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.885e-05/0.2728, allocations: 48.05 kB / 441.8 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.395e-05/0.2728, allocations: 38 kB / 441.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009908/0.2738, allocations: 499 kB / 442.3 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.2739, allocations: 11.67 kB / 442.3 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.641e-05/0.2739, allocations: 16.06 kB / 442.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000306/0.2742, allocations: 222.7 kB / 442.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.2742, allocations: 3.031 kB / 442.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.2743, allocations: 4 kB / 442.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.2743, allocations: 2.906 kB / 442.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000359/0.2746, allocations: 233.6 kB / 442.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.2757, allocations: 0.7586 MB / 443.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005738/0.2763, allocations: 325.8 kB / 443.9 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000182/0.2765, allocations: 137.3 kB / 444 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.2765, allocations: 2.812 kB / 444 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.858e-05/0.2765, allocations: 37.84 kB / 444 MB, free: 35.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.292e-06/0.2765, allocations: 0 / 444 MB, free: 35.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001601/0.2781, allocations: 0.791 MB / 444.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.049e-05/0.2782, allocations: 59.28 kB / 444.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009857/0.2791, allocations: 0.5004 MB / 445.4 MB, free: 34.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.2792, allocations: 32.36 kB / 445.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.423e-05/0.2793, allocations: 171.5 kB / 445.6 MB, free: 34.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.306e-05/0.2793, allocations: 96.23 kB / 445.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.408e-05/0.2794, allocations: 49.47 kB / 445.7 MB, free: 34.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.232e-05/0.2795, allocations: 348.4 kB / 446.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.2796, allocations: 120.8 kB / 446.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.2798, allocations: 116.6 kB / 446.3 MB, free: 33.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001915/0.2817, allocations: 0.7066 MB / 447 MB, free: 33.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2817, allocations: 0 / 447 MB, free: 33.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007374/0.2825, allocations: 492 kB / 447.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2825, allocations: 7.75 kB / 447.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2825, allocations: 4 kB / 447.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003118/0.2828, allocations: 101.7 kB / 447.6 MB, free: 33.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.283, allocations: 39.14 kB / 447.6 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001975/0.285, allocations: 3.196 MB / 450.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004844/0.2855, allocations: 83.89 kB / 450.9 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.2855, allocations: 13.28 kB / 450.9 MB, free: 30.48 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002151/0.2858, allocations: 190 kB / 451.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.467e-05/0.2858, allocations: 36.56 kB / 451.2 MB, free: 30.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.923e-05/0.2859, allocations: 54.09 kB / 451.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2859, allocations: 6.844 kB / 451.2 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.286, allocations: 0 / 451.2 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.286, allocations: 0 / 451.2 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003474/0.2863, allocations: 398.8 kB / 451.6 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2863, allocations: 0 / 451.6 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.2865, allocations: 33.08 kB / 451.6 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002803/0.2868, allocations: 112.2 kB / 451.7 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.2869, allocations: 6.719 kB / 451.7 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001759/0.2886, allocations: 3.193 MB / 454.9 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2886, allocations: 0 / 454.9 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008916/0.2895, allocations: 0.6718 MB / 455.6 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.457e-05/0.2896, allocations: 120.5 kB / 455.7 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.168e-05/0.2897, allocations: 14.47 kB / 455.7 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.2901, allocations: 67.56 kB / 455.8 MB, free: 26.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.525e-05/0.2902, allocations: 24.3 kB / 455.8 MB, free: 26.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.2902, allocations: 5.25 kB / 455.8 MB, free: 26.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008637/0.2911, allocations: 403.6 kB / 456.2 MB, free: 26.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2911, allocations: 0 / 456.2 MB, free: 26.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003752/0.2915, allocations: 76.31 kB / 456.3 MB, free: 26.33 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001068/0.2926, allocations: 1.21 MB / 457.5 MB, free: 25.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007458/0.2933, allocations: 0.5344 MB / 458.1 MB, free: 25.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.2933, allocations: 0 / 458.1 MB, free: 25.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004478/0.2938, allocations: 395.2 kB / 458.4 MB, free: 24.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004239/0.2942, allocations: 67.3 kB / 458.5 MB, free: 24.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006688/0.3009, allocations: 4.001 MB / 462.5 MB, free: 22.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.3012, allocations: 0.8203 MB / 463.3 MB, free: 22.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001635/0.3014, allocations: 69.83 kB / 463.4 MB, free: 22.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.3015, allocations: 112.2 kB / 463.5 MB, free: 21.99 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3015, allocations: 0 / 463.5 MB, free: 21.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02769/0.3292, allocations: 7.611 MB / 471.1 MB, free: 21.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.313/9.642, allocations: 9.875 kB / 471.1 MB, free: 21.25 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Exploiting_2dof_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)