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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 214.9 kB / 23.04 MB, free: 5.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 256.8 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09941/0.09941, allocations: 22.93 MB / 336.2 MB, free: 12.59 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 76.5 kB / 472.3 MB, free: 7.996 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3505, allocations: 59.28 MB / 0.5191 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002173/0.3526, allocations: 0.9932 MB / 0.5201 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.3541, allocations: 1.26 MB / 0.5213 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.59e-05/0.3542, allocations: 1.25 kB / 0.5213 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003241/0.3546, allocations: 46.64 kB / 0.5213 GB, free: 9.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.3547, allocations: 43.16 kB / 0.5214 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002674/0.355, allocations: 87.81 kB / 0.5215 GB, free: 9.094 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004696/0.3555, allocations: 243 kB / 0.5217 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.3556, allocations: 24.94 kB / 0.5217 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002113/0.3558, allocations: 94.92 kB / 0.5218 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002667/0.3561, allocations: 107.4 kB / 0.5219 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.375e-05/0.3561, allocations: 11.19 kB / 0.5219 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.052e-05/0.3562, allocations: 14.81 kB / 0.5219 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.3563, allocations: 49.83 kB / 0.522 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.645e-05/0.3564, allocations: 55.58 kB / 0.522 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002251/0.3566, allocations: 132.8 kB / 0.5222 GB, free: 8.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3566, allocations: 1.219 kB / 0.5222 GB, free: 8.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3566, allocations: 0 / 0.5222 GB, free: 8.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.3566, allocations: 0 / 0.5222 GB, free: 8.805 MB / 382.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.001188/0.3578, allocations: 463.5 kB / 0.5226 GB, free: 8.473 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.3579, allocations: 10.83 kB / 0.5226 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.79e-05/0.3579, allocations: 1.5 kB / 0.5226 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.563e-05/0.3579, allocations: 44.08 kB / 0.5227 GB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.169e-05/0.358, allocations: 20.11 kB / 0.5227 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005743/0.3585, allocations: 233.6 kB / 0.5229 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.3585, allocations: 3.375 kB / 0.5229 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.883e-05/0.3586, allocations: 13.64 kB / 0.5229 GB, free: 8.238 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.3588, allocations: 116.5 kB / 0.523 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3588, allocations: 4 kB / 0.523 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3588, allocations: 3.078 kB / 0.523 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3588, allocations: 1.156 kB / 0.523 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.3591, allocations: 103.6 kB / 0.5231 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006819/0.3598, allocations: 428.2 kB / 0.5235 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003934/0.3601, allocations: 149.2 kB / 0.5237 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.3603, allocations: 64.2 kB / 0.5238 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.3603, allocations: 1.125 kB / 0.5238 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.5e-05/0.3603, allocations: 35.94 kB / 0.5238 GB, free: 7.715 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.3603, allocations: 0 / 0.5238 GB, free: 7.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001153/0.3615, allocations: 323.2 kB / 0.5241 GB, free: 7.602 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.3615, allocations: 60.44 kB / 0.5242 GB, free: 7.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005074/0.362, allocations: 251.1 kB / 0.5244 GB, free: 7.398 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.362, allocations: 29.7 kB / 0.5244 GB, free: 7.363 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.995e-05/0.3621, allocations: 113.3 kB / 0.5245 GB, free: 7.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.997e-05/0.3621, allocations: 45.89 kB / 0.5246 GB, free: 7.223 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-05/0.3622, allocations: 30.67 kB / 0.5246 GB, free: 7.199 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.562e-05/0.3623, allocations: 327.5 kB / 0.5249 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.3624, allocations: 48.88 kB / 0.525 GB, free: 6.863 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.3625, allocations: 52.61 kB / 0.525 GB, free: 6.848 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.3636, allocations: 333.1 kB / 0.5253 GB, free: 6.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3636, allocations: 4 kB / 0.5253 GB, free: 6.758 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004475/0.364, allocations: 236.1 kB / 0.5256 GB, free: 6.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3641, allocations: 7.188 kB / 0.5256 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.3641, allocations: 1.125 kB / 0.5256 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002156/0.3643, allocations: 50.47 kB / 0.5256 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.3644, allocations: 30.59 kB / 0.5256 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.3655, allocations: 1.503 MB / 0.5271 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.3657, allocations: 34.89 kB / 0.5271 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.3658, allocations: 5.516 kB / 0.5271 GB, free: 5.254 MB / 382.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.0001585/0.3659, allocations: 130.7 kB / 0.5273 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.014e-05/0.366, allocations: 17.91 kB / 0.5273 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.821e-05/0.366, allocations: 29.86 kB / 0.5273 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.366, allocations: 2.188 kB / 0.5273 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.366, allocations: 0 / 0.5273 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.366, allocations: 1.203 kB / 0.5273 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000226/0.3662, allocations: 218.6 kB / 0.5275 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3662, allocations: 3.984 kB / 0.5275 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.3664, allocations: 14.56 kB / 0.5275 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001617/0.3665, allocations: 51.66 kB / 0.5276 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.3665, allocations: 13.89 kB / 0.5276 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.3676, allocations: 1.491 MB / 0.5291 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3676, allocations: 0 / 0.5291 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005835/0.3681, allocations: 383.8 kB / 0.5294 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.493e-05/0.3682, allocations: 20.05 kB / 0.5295 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.3682, allocations: 7.125 kB / 0.5295 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.3685, allocations: 33.16 kB / 0.5295 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.044e-05/0.3685, allocations: 13.28 kB / 0.5295 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.3685, allocations: 6.469 kB / 0.5295 GB, free: 3.266 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004177/0.369, allocations: 201.9 kB / 0.5297 GB, free: 3.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.369, allocations: 3.938 kB / 0.5297 GB, free: 3.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.3693, allocations: 30.28 kB / 0.5297 GB, free: 3.156 MB / 382.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.0007545/0.37, allocations: 0.9086 MB / 0.5306 GB, free: 2.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004991/0.3705, allocations: 250.7 kB / 0.5309 GB, free: 2.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3705, allocations: 3.938 kB / 0.5309 GB, free: 2.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002818/0.3708, allocations: 200.8 kB / 0.5311 GB, free: 2.105 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.3711, allocations: 19.88 kB / 0.5311 GB, free: 2.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.3746, allocations: 2.263 MB / 0.5333 GB, free: 0.582 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.3748, allocations: 0.7307 MB / 0.534 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.756e-05/0.3749, allocations: 29.97 kB / 0.534 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.174e-05/0.375, allocations: 45.09 kB / 0.5341 GB, free: 15.84 MB / 398.1 MB Notification: Performance of SimCode: time 5.92e-07/0.375, allocations: 1.156 kB / 0.5341 GB, free: 15.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02925/0.4043, allocations: 3.993 MB / 0.538 GB, free: 15.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.11, allocations: 4.719 kB / 0.538 GB, free: 15.27 MB / 398.1 MB " [Timeout remaining time 648] (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 --stepSize=0.12 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.891757203964517] Failed to read output from testmodel.py, exit status != 0: 12.284316411009058 12.31369138 11.951312005 Calling exit ...