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.001375/0.001375, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.00169/0.00169, allocations: 212.3 kB / 23.01 MB, free: 4.992 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.511/1.511, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1086/0.1086, allocations: 24.04 MB / 337.2 MB, free: 11.33 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.00229/0.00229, allocations: 75.88 kB / 473.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3506/0.3529, allocations: 59.57 MB / 0.5209 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003383/0.3563, allocations: 2.202 MB / 0.5231 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009204/0.3572, allocations: 0.5247 MB / 0.5236 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.3573, allocations: 4.219 kB / 0.5236 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.3575, allocations: 31.95 kB / 0.5236 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.3576, allocations: 59.67 kB / 0.5237 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.3578, allocations: 43.8 kB / 0.5237 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.358, allocations: 221.5 kB / 0.5239 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.3582, allocations: 62.72 kB / 0.524 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.462e-05/0.3583, allocations: 83.44 kB / 0.5241 GB, free: 7.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.3585, allocations: 76.41 kB / 0.5241 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.563e-05/0.3585, allocations: 17.06 kB / 0.5241 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.937e-05/0.3585, allocations: 21.84 kB / 0.5242 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.694e-05/0.3586, allocations: 40.55 kB / 0.5242 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.397e-05/0.3587, allocations: 81.02 kB / 0.5243 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002809/0.3589, allocations: 222.3 kB / 0.5245 GB, free: 7.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3589, allocations: 0 / 0.5245 GB, free: 7.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3589, allocations: 0.9844 kB / 0.5245 GB, free: 7.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.359, allocations: 0 / 0.5245 GB, free: 7.77 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.0005745/0.3595, allocations: 403 kB / 0.5249 GB, free: 7.434 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3596, allocations: 8.906 kB / 0.5249 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.533e-05/0.3596, allocations: 54.69 kB / 0.5249 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.974e-05/0.3597, allocations: 23.5 kB / 0.525 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.3599, allocations: 162 kB / 0.5251 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.36, allocations: 16.56 kB / 0.5251 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.36, allocations: 20.78 kB / 0.5252 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003154/0.3603, allocations: 199.5 kB / 0.5253 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.3603, allocations: 5.031 kB / 0.5253 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.3603, allocations: 6.094 kB / 0.5254 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.3604, allocations: 3.906 kB / 0.5254 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002578/0.3606, allocations: 125.8 kB / 0.5255 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008791/0.3615, allocations: 0.5976 MB / 0.5261 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002926/0.3618, allocations: 124.3 kB / 0.5262 GB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/0.3619, allocations: 65.56 kB / 0.5262 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.3619, allocations: 1.406 kB / 0.5262 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.761e-05/0.3619, allocations: 38.36 kB / 0.5263 GB, free: 6.434 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.283e-06/0.3619, allocations: 4 kB / 0.5263 GB, free: 6.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004/0.3623, allocations: 172.6 kB / 0.5264 GB, free: 6.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.43e-05/0.3624, allocations: 57.56 kB / 0.5265 GB, free: 6.277 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.623e-05/0.3625, allocations: 127 kB / 0.5266 GB, free: 6.172 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.3625, allocations: 30.83 kB / 0.5267 GB, free: 6.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.533e-05/0.3625, allocations: 136 kB / 0.5268 GB, free: 6.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.301e-05/0.3626, allocations: 63.45 kB / 0.5268 GB, free: 5.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.298e-05/0.3626, allocations: 30.88 kB / 0.5269 GB, free: 5.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.174e-05/0.3627, allocations: 324.7 kB / 0.5272 GB, free: 5.621 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.3628, allocations: 43.66 kB / 0.5272 GB, free: 5.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.3629, allocations: 69.66 kB / 0.5273 GB, free: 5.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.3632, allocations: 114.9 kB / 0.5274 GB, free: 5.488 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3632, allocations: 1.094 kB / 0.5274 GB, free: 5.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003037/0.3635, allocations: 167.9 kB / 0.5276 GB, free: 5.402 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3635, allocations: 9.625 kB / 0.5276 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3635, allocations: 1.906 kB / 0.5276 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.3635, allocations: 2.031 kB / 0.5276 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.3637, allocations: 46.09 kB / 0.5276 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.3637, allocations: 2.859 kB / 0.5276 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.639e-05/0.3638, allocations: 13.14 kB / 0.5276 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.3638, allocations: 8.812 kB / 0.5276 GB, free: 5.379 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.923e-05/0.3639, allocations: 126.2 kB / 0.5278 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.658e-05/0.3639, allocations: 16.67 kB / 0.5278 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.874e-05/0.364, allocations: 16.38 kB / 0.5278 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.364, allocations: 6.219 kB / 0.5278 GB, free: 5.227 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.364, allocations: 7.938 kB / 0.5278 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.364, allocations: 0.75 kB / 0.5278 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002552/0.3642, allocations: 216.3 kB / 0.528 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3642, allocations: 1 kB / 0.528 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.3644, allocations: 34.39 kB / 0.528 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.3644, allocations: 0 / 0.528 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.3645, allocations: 5.828 kB / 0.5281 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3645, allocations: 1.406 kB / 0.5281 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3645, allocations: 0 / 0.5281 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004226/0.3649, allocations: 293.5 kB / 0.5283 GB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.038e-05/0.3649, allocations: 12.34 kB / 0.5283 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.3649, allocations: 5.703 kB / 0.5284 GB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.365, allocations: 5.047 kB / 0.5284 GB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.3651, allocations: 13.77 kB / 0.5284 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.3651, allocations: 7.375 kB / 0.5284 GB, free: 4.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.193e-05/0.3651, allocations: 94.09 kB / 0.5285 GB, free: 4.723 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3651, allocations: 1.281 kB / 0.5285 GB, free: 4.723 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003133/0.3655, allocations: 54.44 kB / 0.5285 GB, free: 4.703 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.0005943/0.3661, allocations: 0.8248 MB / 0.5293 GB, free: 3.969 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002945/0.3663, allocations: 100.6 kB / 0.5294 GB, free: 3.941 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3664, allocations: 1.125 kB / 0.5294 GB, free: 3.941 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.3665, allocations: 51.95 kB / 0.5295 GB, free: 3.926 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.3668, allocations: 14.78 kB / 0.5295 GB, free: 3.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.3688, allocations: 1.936 MB / 0.5314 GB, free: 2.348 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.3689, allocations: 112.7 kB / 0.5315 GB, free: 2.266 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.721e-05/0.369, allocations: 17.31 kB / 0.5315 GB, free: 2.258 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.703e-05/0.3691, allocations: 46.48 kB / 0.5315 GB, free: 2.223 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3691, allocations: 0 / 0.5315 GB, free: 2.223 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03055/0.3996, allocations: 3.373 MB / 0.5348 GB, free: 1.262 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.58, allocations: 16.31 kB / 0.5349 GB, free: 1.25 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop_fmu --startTime=0 --stopTime=15000 --stepSize=1.875 --timeout=50 --tolerance=1e-06 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.392381347715855] Failed to read output from testmodel.py, exit status != 0: 11.68816250283271 11.715707332 11.351550982000001 Calling exit ...