Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_base.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.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",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.0009674/0.0009675, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.00132/0.00132, allocations: 172.7 kB / 15.95 MB, free: 208 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.403/1.403, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2337/0.2337, allocations: 22.36 MB / 313.4 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000338/0.0003381, allocations: 12 kB / 382 MB, free: 10.44 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2761, allocations: 55.98 MB / 438 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.0008936/0.277, allocations: 0.6604 MB / 438.7 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.2781, allocations: 1.173 MB / 439.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.814e-05/0.2782, allocations: 0 / 439.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002676/0.2785, allocations: 38.86 kB / 439.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.2786, allocations: 33.61 kB / 439.9 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001358/0.2787, allocations: 57.33 kB / 440 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.2789, allocations: 165.8 kB / 440.1 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.034e-05/0.279, allocations: 26.09 kB / 440.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.2791, allocations: 92.38 kB / 440.3 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.2793, allocations: 89.23 kB / 440.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.2793, allocations: 5.969 kB / 440.4 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.826e-05/0.2794, allocations: 5.938 kB / 440.4 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.192e-05/0.2794, allocations: 44.09 kB / 440.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.661e-05/0.2795, allocations: 43.64 kB / 440.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.553e-05/0.2795, allocations: 84.64 kB / 440.5 MB, free: 37.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.2796, allocations: 7.422 kB / 440.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2796, allocations: 0 / 440.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.2796, allocations: 2.656 kB / 440.5 MB, free: 37.57 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008442/0.2804, allocations: 0.5061 MB / 441 MB, free: 37.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2805, allocations: 11.84 kB / 441.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.366e-05/0.2805, allocations: 34.56 kB / 441.1 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.321e-05/0.2805, allocations: 16.47 kB / 441.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.281, allocations: 281.2 kB / 441.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.281, allocations: 7.594 kB / 441.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.244e-05/0.281, allocations: 9.25 kB / 441.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.2812, allocations: 113.4 kB / 441.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.2812, allocations: 3.953 kB / 441.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.2813, allocations: 3.938 kB / 441.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.2813, allocations: 6.875 kB / 441.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001994/0.2815, allocations: 105.4 kB / 441.6 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000571/0.2821, allocations: 464.8 kB / 442.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003503/0.2824, allocations: 152.1 kB / 442.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.2825, allocations: 71.66 kB / 442.3 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.2826, allocations: 0 / 442.3 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.681e-05/0.2826, allocations: 33.69 kB / 442.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.2826, allocations: 4 kB / 442.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008737/0.2835, allocations: 398.6 kB / 442.7 MB, free: 36.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.396e-05/0.2835, allocations: 51.41 kB / 442.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003734/0.2839, allocations: 256 kB / 443 MB, free: 35.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.2839, allocations: 25.7 kB / 443 MB, free: 35.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.704e-05/0.284, allocations: 115.9 kB / 443.2 MB, free: 35.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.665e-05/0.284, allocations: 46.8 kB / 443.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/0.284, allocations: 0 / 443.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.049e-05/0.2841, allocations: 325 kB / 443.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.408e-05/0.2842, allocations: 52.91 kB / 443.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.432e-05/0.2843, allocations: 47.25 kB / 443.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.2844, allocations: 63.81 kB / 443.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2844, allocations: 3.156 kB / 443.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003802/0.2848, allocations: 236.1 kB / 443.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2848, allocations: 10.45 kB / 443.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.2848, allocations: 0 / 443.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002111/0.285, allocations: 55.62 kB / 444 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.07e-05/0.2851, allocations: 20.19 kB / 444 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009782/0.2861, allocations: 1.488 MB / 445.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.2863, allocations: 39.83 kB / 445.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.2864, allocations: 13.11 kB / 445.5 MB, free: 33.82 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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 (12): * Single equations (assignments): 11 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001329/0.2865, allocations: 147.8 kB / 445.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.2865, allocations: 16.98 kB / 445.7 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.084e-05/0.2866, allocations: 25.91 kB / 445.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2866, allocations: 0 / 445.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2866, allocations: 3.188 kB / 445.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2866, allocations: 4 kB / 445.7 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001921/0.2868, allocations: 248.8 kB / 446 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.2868, allocations: 0 / 446 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.948e-05/0.2869, allocations: 11.81 kB / 446 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001339/0.2871, allocations: 56.5 kB / 446 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.2871, allocations: 13.92 kB / 446.1 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008243/0.2879, allocations: 1.494 MB / 447.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2879, allocations: 0 / 447.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004738/0.2884, allocations: 383 kB / 447.9 MB, free: 31.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.597e-05/0.2885, allocations: 90.7 kB / 448 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.134e-05/0.2885, allocations: 6.875 kB / 448 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.2887, allocations: 31.97 kB / 448.1 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.756e-05/0.2888, allocations: 9.281 kB / 448.1 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/0.2888, allocations: 6.938 kB / 448.1 MB, free: 31.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003082/0.2891, allocations: 203 kB / 448.3 MB, free: 31.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2891, allocations: 0 / 448.3 MB, free: 31.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002569/0.2894, allocations: 30.09 kB / 448.3 MB, free: 31.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.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 (9): * Single equations (assignments): 8 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006592/0.29, allocations: 0.9109 MB / 449.2 MB, free: 30.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004143/0.2905, allocations: 257.7 kB / 449.5 MB, free: 30.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2905, allocations: 0 / 449.5 MB, free: 30.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002148/0.2907, allocations: 199.2 kB / 449.7 MB, free: 30.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.291, allocations: 20.27 kB / 449.7 MB, free: 30.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/0.293, allocations: 1.27 MB / 450.9 MB, free: 29.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.2932, allocations: 0.733 MB / 451.7 MB, free: 29.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.813e-05/0.2933, allocations: 29.62 kB / 451.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.711e-05/0.2933, allocations: 43.58 kB / 451.7 MB, free: 29.13 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2933, allocations: 0 / 451.7 MB, free: 29.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0133/0.3067, allocations: 3.435 MB / 455.2 MB, free: 28.86 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001352/0.3068, allocations: 190.7 kB / 455.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/2.038, allocations: 0 / 455.4 MB, free: 28.61 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_base.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_base_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_base.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1) Environment - environmentSimulation: