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.0009813/0.0009816, 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.0009454/0.0009455, 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.154/1.154, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1824/0.1824, allocations: 22.34 MB / 313.3 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000287/0.000287, allocations: 8 kB / 381.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2723, allocations: 55.97 MB / 437.9 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.001078/0.2734, allocations: 0.9532 MB / 438.8 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.2746, allocations: 1.369 MB / 440.2 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.059e-05/0.2747, allocations: 6.312 kB / 440.2 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002986/0.275, allocations: 85.61 kB / 440.3 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.2752, allocations: 110.3 kB / 440.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.2755, allocations: 158.7 kB / 440.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.2758, allocations: 288.9 kB / 440.8 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.2759, allocations: 66.3 kB / 440.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002188/0.2761, allocations: 234.2 kB / 441.1 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001941/0.2763, allocations: 198.8 kB / 441.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/0.2763, allocations: 12.62 kB / 441.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.16e-05/0.2764, allocations: 11.78 kB / 441.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.759e-05/0.2765, allocations: 108.6 kB / 441.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.086e-05/0.2765, allocations: 68.55 kB / 441.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.2767, allocations: 240.6 kB / 441.8 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.2767, allocations: 0 / 441.8 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2767, allocations: 0 / 441.8 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2767, allocations: 0 / 441.8 MB, free: 37 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.001747/0.2785, allocations: 0.8309 MB / 442.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.2785, allocations: 8.094 kB / 442.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.187e-05/0.2786, allocations: 53.98 kB / 442.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.16e-05/0.2786, allocations: 36.62 kB / 442.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000974/0.2796, allocations: 485.1 kB / 443.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.2796, allocations: 14.17 kB / 443.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.314e-05/0.2797, allocations: 20.28 kB / 443.2 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002801/0.2799, allocations: 211.7 kB / 443.4 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.28, allocations: 3.938 kB / 443.4 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.887e-05/0.28, allocations: 11.97 kB / 443.4 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.28, allocations: 2.938 kB / 443.4 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003221/0.2803, allocations: 228.8 kB / 443.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.2813, allocations: 0.7639 MB / 444.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005288/0.2819, allocations: 331.5 kB / 444.7 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.2819, allocations: 2.906 kB / 444.7 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.336e-05/0.2819, allocations: 41.38 kB / 444.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.302e-06/0.2819, allocations: 0 / 444.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001471/0.2834, allocations: 0.782 MB / 445.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.006e-05/0.2834, allocations: 62.38 kB / 445.6 MB, free: 34.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009087/0.2844, allocations: 0.505 MB / 446.1 MB, free: 34.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.2844, allocations: 32.83 kB / 446.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.472e-05/0.2845, allocations: 169.1 kB / 446.3 MB, free: 34.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.49e-05/0.2845, allocations: 97.11 kB / 446.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.277e-05/0.2845, allocations: 7.844 kB / 446.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.778e-05/0.2846, allocations: 355.6 kB / 446.8 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.2848, allocations: 111.1 kB / 446.9 MB, free: 34.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.2849, allocations: 115.8 kB / 447 MB, free: 34.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.2851, allocations: 129.4 kB / 447.1 MB, free: 34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2851, allocations: 0 / 447.1 MB, free: 34 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006731/0.2858, allocations: 472.9 kB / 447.6 MB, free: 33.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.2858, allocations: 9.203 kB / 447.6 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/0.2858, allocations: 4 kB / 447.6 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003217/0.2861, allocations: 105.5 kB / 447.7 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.2863, allocations: 45.05 kB / 447.7 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.288, allocations: 3.004 MB / 450.7 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004385/0.2885, allocations: 83.64 kB / 450.8 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.2885, allocations: 9.531 kB / 450.8 MB, free: 30.96 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[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] 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001673/0.2887, allocations: 184.5 kB / 451 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.348e-05/0.2887, allocations: 41.36 kB / 451.1 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.371e-05/0.2888, allocations: 58.06 kB / 451.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2888, allocations: 0 / 451.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.2888, allocations: 3.531 kB / 451.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2889, allocations: 0 / 451.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003153/0.2892, allocations: 391.8 kB / 451.5 MB, free: 30.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2892, allocations: 0 / 451.5 MB, free: 30.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.2894, allocations: 35.77 kB / 451.5 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002495/0.2896, allocations: 112 kB / 451.6 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.2897, allocations: 10.62 kB / 451.7 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001623/0.2913, allocations: 3.012 MB / 454.7 MB, free: 27.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2913, allocations: 0 / 454.7 MB, free: 27.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008291/0.2921, allocations: 0.6613 MB / 455.3 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.979e-05/0.2922, allocations: 123 kB / 455.4 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.2923, allocations: 10.62 kB / 455.5 MB, free: 27.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/0.2927, allocations: 78.73 kB / 455.5 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.917e-05/0.2928, allocations: 23.61 kB / 455.6 MB, free: 27.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.2928, allocations: 10.09 kB / 455.6 MB, free: 27.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008384/0.2937, allocations: 407.8 kB / 456 MB, free: 27.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2937, allocations: 0 / 456 MB, free: 27.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.294, allocations: 76.88 kB / 456 MB, free: 27.01 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001028/0.2951, allocations: 1.21 MB / 457.3 MB, free: 26.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006773/0.2957, allocations: 0.5357 MB / 457.8 MB, free: 25.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.2958, allocations: 0 / 457.8 MB, free: 25.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003978/0.2962, allocations: 403.5 kB / 458.2 MB, free: 25.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.2965, allocations: 47.19 kB / 458.2 MB, free: 25.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005225/0.3017, allocations: 2.818 MB / 461 MB, free: 24.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.302, allocations: 0.8254 MB / 461.9 MB, free: 23.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001644/0.3022, allocations: 70.72 kB / 461.9 MB, free: 23.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.3023, allocations: 107.3 kB / 462 MB, free: 23.57 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3023, allocations: 4 kB / 462 MB, free: 23.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.249/4.551, allocations: 7.217 MB / 469.3 MB, free: 23.07 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002279/4.552, allocations: 180.8 kB / 469.4 MB, free: 22.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.001/6.553, allocations: 4 kB / 469.4 MB, free: 22.83 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/linux/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) Environment - environmentSimulation: