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.001178/0.001178, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001247/0.001247, allocations: 196 kB / 16.14 MB, free: 6.711 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.213/1.213, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1813/0.1813, allocations: 22.36 MB / 312.3 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.89 kB / 380.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.209, allocations: 54.94 MB / 435.2 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.001664/0.2107, allocations: 1.036 MB / 436.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008715/0.2116, allocations: 1.196 MB / 437.4 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.314e-05/0.2117, allocations: 3.688 kB / 437.4 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002425/0.2119, allocations: 32.05 kB / 437.4 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.212, allocations: 37.44 kB / 437.5 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001189/0.2122, allocations: 67.64 kB / 437.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001451/0.2123, allocations: 194 kB / 437.7 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.144e-05/0.2124, allocations: 26.94 kB / 437.7 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.844e-05/0.2125, allocations: 73.78 kB / 437.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.2126, allocations: 96.73 kB / 437.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.2126, allocations: 4.812 kB / 437.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.01e-05/0.2127, allocations: 7.188 kB / 437.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.451e-05/0.2127, allocations: 51.03 kB / 438 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.455e-05/0.2128, allocations: 51.14 kB / 438 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.734e-05/0.2129, allocations: 127.4 kB / 438.1 MB, free: 37.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2129, allocations: 4 kB / 438.1 MB, free: 37.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.2129, allocations: 0 / 438.1 MB, free: 37.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.2129, allocations: 0 / 438.1 MB, free: 37.62 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.0008872/0.2138, allocations: 0.5225 MB / 438.7 MB, free: 37.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.2138, allocations: 13.59 kB / 438.7 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.844e-05/0.2139, allocations: 45.19 kB / 438.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.324e-05/0.2139, allocations: 16.75 kB / 438.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.2143, allocations: 288.5 kB / 439 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.2144, allocations: 2.469 kB / 439 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.2144, allocations: 9.812 kB / 439 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001729/0.2146, allocations: 109 kB / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.2146, allocations: 0 / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.2146, allocations: 6.562 kB / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.2146, allocations: 0 / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.2148, allocations: 108.5 kB / 439.3 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005285/0.2153, allocations: 460.5 kB / 439.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003257/0.2157, allocations: 159.2 kB / 439.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.2158, allocations: 66.33 kB / 439.9 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.2158, allocations: 6.828 kB / 439.9 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.137e-05/0.2158, allocations: 33.75 kB / 440 MB, free: 36.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.2158, allocations: 224 / 440 MB, free: 36.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009032/0.2167, allocations: 401.1 kB / 440.4 MB, free: 36.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.248e-05/0.2168, allocations: 51.41 kB / 440.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004007/0.2172, allocations: 255.8 kB / 440.7 MB, free: 35.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.2172, allocations: 25.7 kB / 440.7 MB, free: 35.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.048e-05/0.2172, allocations: 115.6 kB / 440.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.2173, allocations: 47.78 kB / 440.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.227e-05/0.2173, allocations: 28.03 kB / 440.9 MB, free: 35.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.987e-05/0.2174, allocations: 330.7 kB / 441.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.576e-05/0.2175, allocations: 52.33 kB / 441.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.521e-05/0.2176, allocations: 47.81 kB / 441.3 MB, free: 35.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009377/0.2185, allocations: 340.8 kB / 441.6 MB, free: 35.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2185, allocations: 2.875 kB / 441.6 MB, free: 35.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003746/0.2189, allocations: 232.8 kB / 441.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.2189, allocations: 9.656 kB / 441.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.219, allocations: 3.891 kB / 441.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/0.2191, allocations: 48.02 kB / 441.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.817e-05/0.2192, allocations: 18.67 kB / 441.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009099/0.2202, allocations: 1.5 MB / 443.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000208/0.2204, allocations: 33.81 kB / 443.5 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.2204, allocations: 6.719 kB / 443.5 MB, free: 33.76 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.0001164/0.2205, allocations: 141 kB / 443.6 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.562e-05/0.2206, allocations: 13.75 kB / 443.6 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.361e-05/0.2206, allocations: 26.91 kB / 443.6 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2206, allocations: 0 / 443.6 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2206, allocations: 3.031 kB / 443.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2206, allocations: 3.938 kB / 443.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.2208, allocations: 245.6 kB / 443.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2208, allocations: 2.562 kB / 443.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.2209, allocations: 17.88 kB / 443.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001447/0.2211, allocations: 56.75 kB / 444 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.2211, allocations: 0 / 444 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007979/0.2219, allocations: 1.505 MB / 445.5 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2219, allocations: 7.922 kB / 445.5 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004696/0.2224, allocations: 384.3 kB / 445.9 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.2224, allocations: 94.02 kB / 445.9 MB, free: 31.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.2225, allocations: 10.78 kB / 446 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.2227, allocations: 23.48 kB / 446 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.2227, allocations: 16.56 kB / 446 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.2228, allocations: 2.906 kB / 446 MB, free: 31.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003262/0.2231, allocations: 192.4 kB / 446.2 MB, free: 31.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2231, allocations: 0 / 446.2 MB, free: 31.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002438/0.2233, allocations: 33.81 kB / 446.2 MB, free: 31.51 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.0006164/0.224, allocations: 0.9119 MB / 447.1 MB, free: 30.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003796/0.2244, allocations: 258 kB / 447.4 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2244, allocations: 7.875 kB / 447.4 MB, free: 30.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002112/0.2246, allocations: 190.1 kB / 447.6 MB, free: 30.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.2249, allocations: 37.73 kB / 447.6 MB, free: 30.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.2274, allocations: 2.278 MB / 449.9 MB, free: 28.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.2276, allocations: 0.7326 MB / 450.6 MB, free: 28.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.976e-05/0.2276, allocations: 29.3 kB / 450.7 MB, free: 28.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.73e-05/0.2277, allocations: 39.34 kB / 450.7 MB, free: 28.16 MB / 350.1 MB Notification: Performance of SimCode: time 6.091e-06/0.2277, allocations: 0 / 450.7 MB, free: 28.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01144/0.2391, allocations: 3.485 MB / 454.2 MB, free: 27.79 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001235/0.2393, allocations: 201.3 kB / 454.4 MB, free: 27.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.536/1.775, allocations: 0 / 454.4 MB, free: 27.54 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)