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.0009197/0.0009197, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.005656/0.005656, allocations: 170.1 kB / 16.26 MB, free: 6.613 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.364/1.364, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2001/0.2001, allocations: 22.34 MB / 313.8 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004239/0.0004239, allocations: 8 kB / 382.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.333, allocations: 55.97 MB / 438.7 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.001123/0.3341, allocations: 0.685 MB / 439.4 MB, free: 39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.3356, allocations: 1.185 MB / 440.6 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.3357, allocations: 2.656 kB / 440.6 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003025/0.336, allocations: 26.95 kB / 440.6 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.3362, allocations: 42.48 kB / 440.6 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001873/0.3364, allocations: 65.02 kB / 440.7 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002325/0.3367, allocations: 193.4 kB / 440.9 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.3368, allocations: 27.97 kB / 440.9 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.3369, allocations: 72.73 kB / 441 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001904/0.3371, allocations: 93.58 kB / 441.1 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.724e-05/0.3372, allocations: 3.938 kB / 441.1 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.22e-05/0.3372, allocations: 3.688 kB / 441.1 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.354e-05/0.3373, allocations: 47.39 kB / 441.1 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.064e-05/0.3374, allocations: 72.17 kB / 441.2 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001555/0.3375, allocations: 130.9 kB / 441.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3375, allocations: 2.656 kB / 441.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3376, allocations: 0 / 441.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.3376, allocations: 0 / 441.3 MB, free: 37.79 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.001112/0.3387, allocations: 0.51 MB / 441.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.3387, allocations: 13.12 kB / 441.8 MB, free: 37.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.349e-05/0.3388, allocations: 40.55 kB / 441.9 MB, free: 37.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.23e-05/0.3389, allocations: 16.62 kB / 441.9 MB, free: 37.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005385/0.3394, allocations: 277.8 kB / 442.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.3394, allocations: 11.34 kB / 442.2 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/0.3395, allocations: 13.91 kB / 442.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.3397, allocations: 116.1 kB / 442.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.3397, allocations: 2.719 kB / 442.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.3397, allocations: 0 / 442.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.3398, allocations: 2.906 kB / 442.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002165/0.34, allocations: 102.1 kB / 442.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006503/0.3406, allocations: 460.2 kB / 442.9 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/0.341, allocations: 153 kB / 443 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.3411, allocations: 71.06 kB / 443.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.315e-05/0.3412, allocations: 3.562 kB / 443.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.563e-05/0.3412, allocations: 30.56 kB / 443.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.3412, allocations: 0 / 443.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009544/0.3422, allocations: 410.2 kB / 443.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.565e-05/0.3422, allocations: 54.47 kB / 443.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004422/0.3426, allocations: 253.8 kB / 443.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.3427, allocations: 25.7 kB / 443.8 MB, free: 36.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.66e-05/0.3427, allocations: 112.9 kB / 444 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.025e-05/0.3428, allocations: 47.69 kB / 444 MB, free: 35.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.035e-05/0.3428, allocations: 19.5 kB / 444 MB, free: 35.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.841e-05/0.3429, allocations: 328.6 kB / 444.3 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.613e-05/0.343, allocations: 45.12 kB / 444.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.91e-05/0.3431, allocations: 56.86 kB / 444.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.3441, allocations: 337.2 kB / 444.8 MB, free: 35.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3441, allocations: 7.875 kB / 444.8 MB, free: 35.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004232/0.3445, allocations: 241.6 kB / 445 MB, free: 35.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.3446, allocations: 6.469 kB / 445 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.3446, allocations: 0 / 445 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001922/0.3448, allocations: 53.92 kB / 445.1 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.238e-05/0.3449, allocations: 18.73 kB / 445.1 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.3459, allocations: 1.492 MB / 446.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/0.3461, allocations: 40.72 kB / 446.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.3462, allocations: 4 kB / 446.6 MB, free: 33.95 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.0001312/0.3463, allocations: 143.5 kB / 446.8 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/0.3463, allocations: 17.56 kB / 446.8 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.336e-05/0.3464, allocations: 22.44 kB / 446.8 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.3464, allocations: 0 / 446.8 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.3464, allocations: 2.562 kB / 446.8 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.3464, allocations: 11.22 kB / 446.8 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001983/0.3466, allocations: 243.9 kB / 447.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3466, allocations: 0 / 447.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.3468, allocations: 18.5 kB / 447.1 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001558/0.3469, allocations: 55.91 kB / 447.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.3469, allocations: 3.688 kB / 447.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008745/0.3478, allocations: 1.505 MB / 448.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3478, allocations: 0 / 448.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005043/0.3484, allocations: 381.1 kB / 449 MB, free: 31.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.553e-05/0.3484, allocations: 90.64 kB / 449.1 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.3484, allocations: 7.062 kB / 449.1 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/0.3487, allocations: 27.8 kB / 449.1 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.965e-05/0.3487, allocations: 13.81 kB / 449.1 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.3487, allocations: 7.031 kB / 449.2 MB, free: 31.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003744/0.3491, allocations: 194.1 kB / 449.3 MB, free: 31.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3491, allocations: 0 / 449.3 MB, free: 31.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002678/0.3494, allocations: 36.34 kB / 449.4 MB, free: 31.71 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.0006692/0.3501, allocations: 0.9161 MB / 450.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004098/0.3505, allocations: 258.5 kB / 450.5 MB, free: 30.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3505, allocations: 4 kB / 450.5 MB, free: 30.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002253/0.3507, allocations: 195 kB / 450.7 MB, free: 30.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.3511, allocations: 31.11 kB / 450.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.3539, allocations: 2.307 MB / 453.1 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000138/0.354, allocations: 0.726 MB / 453.8 MB, free: 28.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.872e-05/0.3541, allocations: 36.94 kB / 453.8 MB, free: 28.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.361e-05/0.3542, allocations: 44.19 kB / 453.9 MB, free: 28.34 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3542, allocations: 0 / 453.9 MB, free: 28.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01232/0.3665, allocations: 3.389 MB / 457.3 MB, free: 28.06 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/0.3667, allocations: 197.3 kB / 457.5 MB, free: 27.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.306, allocations: 6.562 kB / 457.5 MB, free: 27.8 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)