Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.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.001367/0.001367, allocations: 104.3 kB / 19.72 MB, free: 1.926 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.001697/0.001697, allocations: 209 kB / 23.01 MB, free: 4.977 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.82 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.1072/0.1072, allocations: 24.03 MB / 337.2 MB, free: 11.36 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_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",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.002174/0.002174, allocations: 71.89 kB / 473.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3346, allocations: 59.58 MB / 0.5209 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003243/0.3379, allocations: 2.207 MB / 0.5231 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000958/0.3388, allocations: 0.5174 MB / 0.5236 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.3389, allocations: 4.562 kB / 0.5236 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.3391, allocations: 33.97 kB / 0.5236 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.3392, allocations: 60.61 kB / 0.5237 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001564/0.3394, allocations: 47.48 kB / 0.5237 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000224/0.3396, allocations: 218.2 kB / 0.5239 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.3398, allocations: 66.22 kB / 0.524 GB, free: 8.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.3399, allocations: 79.8 kB / 0.524 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.34, allocations: 79.89 kB / 0.5241 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.3401, allocations: 17.91 kB / 0.5241 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.234e-05/0.3401, allocations: 18.22 kB / 0.5242 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.86e-05/0.3401, allocations: 39.61 kB / 0.5242 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.911e-05/0.3402, allocations: 85.66 kB / 0.5243 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002943/0.3405, allocations: 218.6 kB / 0.5245 GB, free: 7.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3405, allocations: 0 / 0.5245 GB, free: 7.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3405, allocations: 0 / 0.5245 GB, free: 7.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.3405, allocations: 0 / 0.5245 GB, free: 7.836 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0006046/0.3411, allocations: 402.9 kB / 0.5249 GB, free: 7.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3412, allocations: 10.25 kB / 0.5249 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.599e-05/0.3412, allocations: 53.31 kB / 0.5249 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.05e-05/0.3413, allocations: 27.91 kB / 0.525 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.3415, allocations: 155.2 kB / 0.5251 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.3416, allocations: 17.66 kB / 0.5251 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.636e-05/0.3416, allocations: 16.94 kB / 0.5251 GB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003294/0.3419, allocations: 204.9 kB / 0.5253 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.3419, allocations: 5.156 kB / 0.5253 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/0.342, allocations: 5.562 kB / 0.5253 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.342, allocations: 5 kB / 0.5254 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000257/0.3422, allocations: 119.5 kB / 0.5255 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008919/0.3431, allocations: 0.6032 MB / 0.5261 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.3434, allocations: 121.6 kB / 0.5262 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.3435, allocations: 63.72 kB / 0.5262 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.3435, allocations: 6.312 kB / 0.5262 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.3436, allocations: 36.09 kB / 0.5263 GB, free: 6.504 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.3436, allocations: 1.062 kB / 0.5263 GB, free: 6.504 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003973/0.344, allocations: 181.2 kB / 0.5264 GB, free: 6.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.344, allocations: 53.66 kB / 0.5265 GB, free: 6.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.557e-05/0.3441, allocations: 123.1 kB / 0.5266 GB, free: 6.242 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.3441, allocations: 31.11 kB / 0.5266 GB, free: 6.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.3441, allocations: 135.4 kB / 0.5268 GB, free: 6.086 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.573e-05/0.3442, allocations: 63.58 kB / 0.5268 GB, free: 6.035 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/0.3442, allocations: 32.28 kB / 0.5269 GB, free: 6.012 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.225e-05/0.3443, allocations: 320.2 kB / 0.5272 GB, free: 5.695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.299e-05/0.3444, allocations: 46.53 kB / 0.5272 GB, free: 5.676 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.3445, allocations: 71.88 kB / 0.5273 GB, free: 5.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.3447, allocations: 117.2 kB / 0.5274 GB, free: 5.559 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3447, allocations: 1.406 kB / 0.5274 GB, free: 5.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002712/0.3449, allocations: 166.8 kB / 0.5276 GB, free: 5.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.345, allocations: 7.156 kB / 0.5276 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.345, allocations: 1.094 kB / 0.5276 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.345, allocations: 2.375 kB / 0.5276 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.3452, allocations: 46.09 kB / 0.5276 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.3452, allocations: 2.406 kB / 0.5276 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.503e-05/0.3452, allocations: 16.08 kB / 0.5276 GB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.3453, allocations: 8.469 kB / 0.5276 GB, free: 5.445 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.629e-05/0.3453, allocations: 126.4 kB / 0.5278 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.4e-05/0.3454, allocations: 14.64 kB / 0.5278 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.717e-05/0.3454, allocations: 23.94 kB / 0.5278 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3454, allocations: 1.219 kB / 0.5278 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.3454, allocations: 1.812 kB / 0.5278 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3454, allocations: 0.6562 kB / 0.5278 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002461/0.3457, allocations: 216.5 kB / 0.528 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3457, allocations: 3.938 kB / 0.528 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001861/0.3459, allocations: 33.5 kB / 0.528 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.3459, allocations: 1.062 kB / 0.528 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.3459, allocations: 5.594 kB / 0.528 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.3459, allocations: 5.25 kB / 0.528 GB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3459, allocations: 4 kB / 0.5281 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004387/0.3463, allocations: 288.2 kB / 0.5283 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.907e-05/0.3464, allocations: 11.67 kB / 0.5283 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.3464, allocations: 6.109 kB / 0.5283 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.3465, allocations: 5.562 kB / 0.5283 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.3465, allocations: 13.64 kB / 0.5284 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.3465, allocations: 3.125 kB / 0.5284 GB, free: 4.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.818e-05/0.3466, allocations: 98.61 kB / 0.5285 GB, free: 4.793 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3466, allocations: 0 / 0.5285 GB, free: 4.793 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.3469, allocations: 54.5 kB / 0.5285 GB, free: 4.773 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cbody.T,Ccont.T) * 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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005218/0.3474, allocations: 0.8216 MB / 0.5293 GB, free: 4.043 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002529/0.3476, allocations: 103.1 kB / 0.5294 GB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3476, allocations: 1.094 kB / 0.5294 GB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.3477, allocations: 55.34 kB / 0.5295 GB, free: 3.996 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.348, allocations: 18.25 kB / 0.5295 GB, free: 3.988 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.3499, allocations: 1.934 MB / 0.5314 GB, free: 2.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.35, allocations: 112 kB / 0.5315 GB, free: 2.332 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.168e-05/0.3501, allocations: 17.61 kB / 0.5315 GB, free: 2.324 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.313e-05/0.3502, allocations: 46.22 kB / 0.5315 GB, free: 2.289 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3502, allocations: 1.094 kB / 0.5315 GB, free: 2.289 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03007/0.3802, allocations: 3.375 MB / 0.5348 GB, free: 1.328 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.55, allocations: 17.77 kB / 0.5349 GB, free: 1.316 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop_res.csv --start-time 0 --stop-time 15000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.875 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.58310718787834] Failed to read output from testmodel.py, exit status != 0: 11.665459968149662 11.69104252 11.345687206 Calling exit ...