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.001208/0.001211, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001218/0.001218, allocations: 192.9 kB / 16.25 MB, free: 6.641 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.183/1.183, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1849/0.1849, allocations: 22.35 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.91 kB / 380.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2469, allocations: 54.94 MB / 435.4 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.001915/0.2489, allocations: 1.027 MB / 436.4 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.2499, allocations: 1.199 MB / 437.6 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.239e-05/0.25, allocations: 3.938 kB / 437.6 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.2503, allocations: 27.31 kB / 437.6 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.2504, allocations: 40.19 kB / 437.6 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00013/0.2506, allocations: 62.52 kB / 437.7 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001843/0.2508, allocations: 202.6 kB / 437.9 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.2509, allocations: 34.62 kB / 437.9 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.669e-05/0.251, allocations: 82.69 kB / 438 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.2511, allocations: 94.23 kB / 438.1 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.578e-05/0.2511, allocations: 10.25 kB / 438.1 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.998e-05/0.2512, allocations: 12.47 kB / 438.1 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.158e-05/0.2512, allocations: 51.17 kB / 438.2 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.191e-05/0.2513, allocations: 65.45 kB / 438.2 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001191/0.2514, allocations: 132.4 kB / 438.4 MB, free: 37.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2514, allocations: 0 / 438.4 MB, free: 37.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2514, allocations: 4 kB / 438.4 MB, free: 37.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2515, allocations: 0 / 438.4 MB, free: 37.86 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.0009602/0.2524, allocations: 0.5276 MB / 438.9 MB, free: 37.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.2525, allocations: 8.625 kB / 438.9 MB, free: 37.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.18e-05/0.2525, allocations: 41.08 kB / 439 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.413e-05/0.2525, allocations: 16.47 kB / 439 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.253, allocations: 282.1 kB / 439.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.253, allocations: 11.28 kB / 439.3 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.253, allocations: 5.906 kB / 439.3 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.2532, allocations: 116 kB / 439.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.2533, allocations: 0 / 439.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.2533, allocations: 4 kB / 439.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.2533, allocations: 6.094 kB / 439.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.2535, allocations: 96.2 kB / 439.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005467/0.254, allocations: 466.8 kB / 439.9 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/0.2544, allocations: 152.9 kB / 440.1 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.2545, allocations: 68.36 kB / 440.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.2545, allocations: 0 / 440.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.472e-05/0.2545, allocations: 41.22 kB / 440.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.62e-07/0.2545, allocations: 0 / 440.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008806/0.2554, allocations: 393.3 kB / 440.6 MB, free: 36.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.2555, allocations: 61.86 kB / 440.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003836/0.2559, allocations: 250.2 kB / 440.9 MB, free: 36.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.2559, allocations: 29.7 kB / 440.9 MB, free: 36.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.168e-05/0.2559, allocations: 115.4 kB / 441 MB, free: 36.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.378e-05/0.256, allocations: 49.89 kB / 441.1 MB, free: 36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-05/0.256, allocations: 23.28 kB / 441.1 MB, free: 35.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.894e-05/0.2561, allocations: 331.6 kB / 441.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.933e-05/0.2562, allocations: 48.31 kB / 441.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.857e-05/0.2562, allocations: 54.5 kB / 441.5 MB, free: 35.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009274/0.2572, allocations: 329.7 kB / 441.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2572, allocations: 3.938 kB / 441.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003754/0.2576, allocations: 243.6 kB / 442.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.2576, allocations: 2.875 kB / 442.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.2576, allocations: 2.625 kB / 442.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001737/0.2578, allocations: 56.16 kB / 442.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.796e-05/0.2579, allocations: 22.47 kB / 442.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009175/0.2588, allocations: 1.595 MB / 443.8 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.259, allocations: 39.05 kB / 443.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.259, allocations: 2.969 kB / 443.8 MB, free: 33.91 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 (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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.2592, allocations: 149.4 kB / 443.9 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.424e-05/0.2592, allocations: 12.91 kB / 444 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.282e-05/0.2592, allocations: 27.67 kB / 444 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2592, allocations: 6.812 kB / 444 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.2593, allocations: 0 / 444 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2593, allocations: 0 / 444 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.2595, allocations: 251.2 kB / 444.2 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2595, allocations: 0 / 444.2 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.2596, allocations: 13.78 kB / 444.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001387/0.2597, allocations: 51.19 kB / 444.3 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.2597, allocations: 10.5 kB / 444.3 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008496/0.2606, allocations: 1.599 MB / 445.9 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2606, allocations: 3.375 kB / 445.9 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004731/0.2611, allocations: 380.7 kB / 446.3 MB, free: 31.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.543e-05/0.2611, allocations: 92.78 kB / 446.4 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.651e-05/0.2612, allocations: 4 kB / 446.4 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.2614, allocations: 32.66 kB / 446.4 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.373e-05/0.2615, allocations: 13.06 kB / 446.4 MB, free: 31.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.2615, allocations: 5.922 kB / 446.4 MB, free: 31.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003295/0.2618, allocations: 193.2 kB / 446.6 MB, free: 31.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2618, allocations: 4 kB / 446.6 MB, free: 31.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002498/0.2621, allocations: 38.03 kB / 446.7 MB, free: 31.56 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 (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,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.0006544/0.2627, allocations: 0.9117 MB / 447.6 MB, free: 30.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004119/0.2632, allocations: 260.1 kB / 447.8 MB, free: 30.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2632, allocations: 2.719 kB / 447.8 MB, free: 30.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002193/0.2634, allocations: 192.4 kB / 448 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.000296/0.2637, allocations: 25.61 kB / 448 MB, free: 30.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.2664, allocations: 2.3 MB / 450.3 MB, free: 28.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/0.2665, allocations: 0.7326 MB / 451.1 MB, free: 28.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.386e-05/0.2666, allocations: 28.25 kB / 451.1 MB, free: 28.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.633e-05/0.2667, allocations: 45.39 kB / 451.1 MB, free: 28.2 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2667, allocations: 0 / 451.1 MB, free: 28.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01682/0.2835, allocations: 3.589 MB / 454.7 MB, free: 27.83 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001254/0.2837, allocations: 208.8 kB / 454.9 MB, free: 27.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/2.057, allocations: 0 / 454.9 MB, free: 27.58 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/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)