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.001274/0.001274, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001431/0.001431, allocations: 220 kB / 23.03 MB, free: 4.922 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.563/1.563, 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.1028/0.1028, allocations: 22.94 MB / 336.2 MB, free: 12.43 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="cs",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="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.002188/0.002188, allocations: 67.84 kB / 472.2 MB, free: 7.891 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3751, allocations: 59.28 MB / 0.519 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003375/0.3785, allocations: 2.203 MB / 0.5212 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009303/0.3794, allocations: 0.524 MB / 0.5217 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.3795, allocations: 3.531 kB / 0.5217 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.3797, allocations: 28.67 kB / 0.5217 GB, free: 8.805 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.3798, allocations: 58.59 kB / 0.5218 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001762/0.38, allocations: 51.91 kB / 0.5218 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002499/0.3802, allocations: 218 kB / 0.522 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002133/0.3804, allocations: 79.38 kB / 0.5221 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.3806, allocations: 79.5 kB / 0.5222 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001641/0.3807, allocations: 92.16 kB / 0.5223 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.945e-05/0.3808, allocations: 17.94 kB / 0.5223 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.196e-05/0.3808, allocations: 17.53 kB / 0.5223 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.318e-05/0.3808, allocations: 39.52 kB / 0.5223 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.3809, allocations: 85.56 kB / 0.5224 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.3813, allocations: 213.1 kB / 0.5226 GB, free: 8.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3813, allocations: 5.25 kB / 0.5226 GB, free: 8.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3813, allocations: 0 / 0.5226 GB, free: 8.348 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.192e-05/0.3813, allocations: 0.7031 kB / 0.5226 GB, free: 8.348 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.0006063/0.3819, allocations: 403.1 kB / 0.523 GB, free: 8.012 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.3819, allocations: 9.562 kB / 0.523 GB, free: 8.012 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.809e-05/0.382, allocations: 10.61 kB / 0.523 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.156e-05/0.382, allocations: 57.03 kB / 0.5231 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.716e-05/0.3821, allocations: 23.66 kB / 0.5231 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.3823, allocations: 155.7 kB / 0.5232 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.3823, allocations: 12.81 kB / 0.5233 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.3824, allocations: 26 kB / 0.5233 GB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003658/0.3827, allocations: 203.3 kB / 0.5235 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.3828, allocations: 0.75 kB / 0.5235 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.3828, allocations: 6.094 kB / 0.5235 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.3828, allocations: 4.781 kB / 0.5235 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.3831, allocations: 125.1 kB / 0.5236 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009632/0.384, allocations: 0.5961 MB / 0.5242 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.3844, allocations: 124.1 kB / 0.5243 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.3845, allocations: 61.09 kB / 0.5244 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.3845, allocations: 2.844 kB / 0.5244 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.728e-05/0.3845, allocations: 38.47 kB / 0.5244 GB, free: 7.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.3845, allocations: 4 kB / 0.5244 GB, free: 7.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.000413/0.3849, allocations: 174.6 kB / 0.5246 GB, free: 6.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.24e-05/0.385, allocations: 54.16 kB / 0.5246 GB, free: 6.867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.605e-05/0.385, allocations: 125.4 kB / 0.5247 GB, free: 6.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.3851, allocations: 31.39 kB / 0.5248 GB, free: 6.723 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.743e-05/0.3851, allocations: 140.4 kB / 0.5249 GB, free: 6.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.911e-05/0.3852, allocations: 59 kB / 0.525 GB, free: 6.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.546e-05/0.3852, allocations: 35.55 kB / 0.525 GB, free: 6.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.325e-05/0.3853, allocations: 321.2 kB / 0.5253 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.964e-05/0.3854, allocations: 42.67 kB / 0.5253 GB, free: 6.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.3855, allocations: 69.75 kB / 0.5254 GB, free: 6.145 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.3857, allocations: 118.1 kB / 0.5255 GB, free: 6.074 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3857, allocations: 1.125 kB / 0.5255 GB, free: 6.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000271/0.386, allocations: 161.7 kB / 0.5257 GB, free: 5.992 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.386, allocations: 9.75 kB / 0.5257 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.386, allocations: 3.938 kB / 0.5257 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.386, allocations: 3.281 kB / 0.5257 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.3862, allocations: 46.39 kB / 0.5257 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.485e-06/0.3862, allocations: 2.188 kB / 0.5257 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.136e-05/0.3863, allocations: 18.33 kB / 0.5258 GB, free: 5.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.3863, allocations: 8.375 kB / 0.5258 GB, free: 5.961 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.542e-05/0.3864, allocations: 133.2 kB / 0.5259 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.749e-05/0.3864, allocations: 9.172 kB / 0.5259 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.671e-05/0.3864, allocations: 19.77 kB / 0.5259 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3865, allocations: 2.125 kB / 0.5259 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3865, allocations: 3.656 kB / 0.5259 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3865, allocations: 5.062 kB / 0.5259 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002403/0.3867, allocations: 220.2 kB / 0.5261 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3867, allocations: 0 / 0.5261 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.3869, allocations: 38.12 kB / 0.5262 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.3869, allocations: 1.344 kB / 0.5262 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.3869, allocations: 1.312 kB / 0.5262 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3869, allocations: 1.094 kB / 0.5262 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3869, allocations: 0 / 0.5262 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003916/0.3873, allocations: 290.7 kB / 0.5265 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.901e-05/0.3873, allocations: 12.58 kB / 0.5265 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.3874, allocations: 5.188 kB / 0.5265 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.3875, allocations: 5.984 kB / 0.5265 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.367e-05/0.3875, allocations: 12.34 kB / 0.5265 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.3875, allocations: 3.562 kB / 0.5265 GB, free: 5.387 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.279e-05/0.3876, allocations: 102.6 kB / 0.5266 GB, free: 5.305 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3876, allocations: 0 / 0.5266 GB, free: 5.305 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002948/0.3879, allocations: 50.91 kB / 0.5266 GB, free: 5.289 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.0005352/0.3884, allocations: 0.8227 MB / 0.5274 GB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002659/0.3887, allocations: 100.9 kB / 0.5275 GB, free: 4.531 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3887, allocations: 1.375 kB / 0.5275 GB, free: 4.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.3888, allocations: 51.58 kB / 0.5276 GB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.3891, allocations: 14.53 kB / 0.5276 GB, free: 4.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.3911, allocations: 1.929 MB / 0.5295 GB, free: 2.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.444e-05/0.3912, allocations: 118 kB / 0.5296 GB, free: 2.863 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.081e-05/0.3912, allocations: 17.69 kB / 0.5296 GB, free: 2.855 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.519e-05/0.3913, allocations: 40.81 kB / 0.5297 GB, free: 2.824 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3913, allocations: 0 / 0.5297 GB, free: 2.824 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02659/0.4179, allocations: 3.102 MB / 0.5327 GB, free: 2.223 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.82, allocations: 13.94 kB / 0.5327 GB, free: 2.219 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.787528251064941] Failed to read output from testmodel.py, exit status != 0: 11.984307181090117 12.001437121 11.616687882 Calling exit ...