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.001872/0.001872, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002217/0.002217, allocations: 215.6 kB / 22.26 MB, free: 5.082 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.556/1.556, allocations: 230.6 MB / 256 MB, free: 8.023 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.1126/0.1126, allocations: 24.12 MB / 336.6 MB, free: 11.46 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.003296/0.003296, allocations: 73.92 kB / 473.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3497, allocations: 59.61 MB / 0.5204 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003171/0.3529, allocations: 2.313 MB / 0.5227 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009815/0.3539, allocations: 0.5607 MB / 0.5232 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.354, allocations: 4.125 kB / 0.5232 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001633/0.3542, allocations: 27.41 kB / 0.5233 GB, free: 8.047 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.3543, allocations: 63.8 kB / 0.5233 GB, free: 8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001811/0.3545, allocations: 46.77 kB / 0.5234 GB, free: 7.973 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.3548, allocations: 218.2 kB / 0.5236 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.355, allocations: 75.22 kB / 0.5236 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.3551, allocations: 79.77 kB / 0.5237 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.3553, allocations: 92.19 kB / 0.5238 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.3554, allocations: 21.41 kB / 0.5238 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.426e-05/0.3554, allocations: 17.5 kB / 0.5238 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.266e-05/0.3554, allocations: 35.58 kB / 0.5239 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.3555, allocations: 102.1 kB / 0.524 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000328/0.3559, allocations: 215.2 kB / 0.5242 GB, free: 7.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.3559, allocations: 1.188 kB / 0.5242 GB, free: 7.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3559, allocations: 4 kB / 0.5242 GB, free: 7.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3559, allocations: 0 / 0.5242 GB, free: 7.574 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.0006798/0.3566, allocations: 407.7 kB / 0.5246 GB, free: 7.234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.3566, allocations: 9.344 kB / 0.5246 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.475e-05/0.3567, allocations: 53.17 kB / 0.5246 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.128e-05/0.3567, allocations: 24.11 kB / 0.5247 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.357, allocations: 154.9 kB / 0.5248 GB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.357, allocations: 13.42 kB / 0.5248 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.188e-05/0.357, allocations: 21.66 kB / 0.5248 GB, free: 7.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003509/0.3574, allocations: 174 kB / 0.525 GB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.3574, allocations: 5.25 kB / 0.525 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.3574, allocations: 5.344 kB / 0.525 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.3574, allocations: 4.594 kB / 0.525 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.3577, allocations: 128.5 kB / 0.5251 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009382/0.3587, allocations: 0.6346 MB / 0.5258 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000288/0.359, allocations: 126.8 kB / 0.5259 GB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.3591, allocations: 65.03 kB / 0.5259 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.3591, allocations: 6 kB / 0.5259 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.3591, allocations: 36.97 kB / 0.526 GB, free: 6.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.312e-06/0.3591, allocations: 0 / 0.526 GB, free: 6.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004015/0.3595, allocations: 177.6 kB / 0.5262 GB, free: 6.168 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.346e-05/0.3596, allocations: 53.58 kB / 0.5262 GB, free: 6.105 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.241e-05/0.3596, allocations: 126.4 kB / 0.5263 GB, free: 5.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.3597, allocations: 29.7 kB / 0.5264 GB, free: 5.961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.866e-05/0.3597, allocations: 137.2 kB / 0.5265 GB, free: 5.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.3597, allocations: 59.03 kB / 0.5265 GB, free: 5.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-05/0.3598, allocations: 31.56 kB / 0.5266 GB, free: 5.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.086e-05/0.3598, allocations: 324.5 kB / 0.5269 GB, free: 5.449 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.98e-05/0.3599, allocations: 39.06 kB / 0.5269 GB, free: 5.438 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.3601, allocations: 77.42 kB / 0.527 GB, free: 5.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002148/0.3603, allocations: 114.7 kB / 0.5271 GB, free: 5.312 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3603, allocations: 3.938 kB / 0.5271 GB, free: 5.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002831/0.3606, allocations: 172.1 kB / 0.5273 GB, free: 5.219 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.3606, allocations: 4.688 kB / 0.5273 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3606, allocations: 1.156 kB / 0.5273 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.3606, allocations: 2.688 kB / 0.5273 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.3608, allocations: 47.14 kB / 0.5273 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.138e-06/0.3608, allocations: 1.969 kB / 0.5273 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.599e-05/0.3609, allocations: 16.45 kB / 0.5273 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.3609, allocations: 9.234 kB / 0.5273 GB, free: 5.195 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.973e-05/0.361, allocations: 125.5 kB / 0.5275 GB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.534e-05/0.361, allocations: 13.61 kB / 0.5275 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.137e-05/0.3611, allocations: 20.58 kB / 0.5275 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3611, allocations: 1.344 kB / 0.5275 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3611, allocations: 1.281 kB / 0.5275 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3611, allocations: 5.297 kB / 0.5275 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000273/0.3613, allocations: 229.9 kB / 0.5277 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3613, allocations: 0.6562 kB / 0.5277 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001929/0.3615, allocations: 33.7 kB / 0.5278 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.3615, allocations: 1.188 kB / 0.5278 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.3616, allocations: 12.55 kB / 0.5278 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3616, allocations: 5.359 kB / 0.5278 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3616, allocations: 0 / 0.5278 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004147/0.362, allocations: 286.8 kB / 0.528 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.095e-05/0.362, allocations: 13.31 kB / 0.5281 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.465e-05/0.362, allocations: 5.906 kB / 0.5281 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.3621, allocations: 9.016 kB / 0.5281 GB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.3622, allocations: 13.11 kB / 0.5281 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.3622, allocations: 3.312 kB / 0.5281 GB, free: 4.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.76e-05/0.3622, allocations: 97.62 kB / 0.5282 GB, free: 4.535 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3622, allocations: 0.5 kB / 0.5282 GB, free: 4.535 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002849/0.3625, allocations: 50.81 kB / 0.5282 GB, free: 4.52 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.0005028/0.363, allocations: 0.8258 MB / 0.529 GB, free: 3.785 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002516/0.3633, allocations: 104.4 kB / 0.5291 GB, free: 3.754 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3633, allocations: 0 / 0.5291 GB, free: 3.754 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.907e-05/0.3634, allocations: 52.31 kB / 0.5292 GB, free: 3.738 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.3637, allocations: 17.45 kB / 0.5292 GB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001909/0.3656, allocations: 1.929 MB / 0.5311 GB, free: 2.156 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001822/0.3658, allocations: 0.7198 MB / 0.5318 GB, free: 1.457 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.189e-05/0.3658, allocations: 17.03 kB / 0.5318 GB, free: 1.449 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.461e-05/0.3659, allocations: 47.73 kB / 0.5319 GB, free: 1.418 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3659, allocations: 0 / 0.5319 GB, free: 1.418 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0304/0.3963, allocations: 3.033 MB / 0.5348 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.47, allocations: 21.19 kB / 0.5348 GB, free: 0.8828 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.395853665890172] Failed to read output from testmodel.py, exit status != 0: 11.580967850983143 11.607212206 11.246073338 Calling exit ...