/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 147 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2249.4-1300_daily_bin394
RA = 342.356, Dec = -13.0006
tmin = 341452801, tmax = 341712001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='486599', job_status='RUN', time_executed='2021-09-28 21:23:07.033157', time_epoch_executed='1632889387.03' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486599

Creating custom pfile directory:
/scratch/kocevski/486599/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=341452801.0 && nMetStart<341712001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=341452801.0 && nMetStart<341712001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486599/ft1_4FGL_J2249.4-1300_daily_bin394.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=341452801.0 && nMetStart<341712001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486599/ft1_4FGL_J2249.4-1300_daily_bin394.fits outfile=/scratch/kocevski/486599/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin394.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=341452801.0 tmax=341712001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.36
user 3.14
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/486599/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin394.fits evtable="EVENTS" outfile="/scratch/kocevski/486599/ft1_filtered_4FGL_J2249.4-1300_daily_bin394.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486599/ft1_filtered_4FGL_J2249.4-1300_daily_bin394.fits" evtable="EVENTS" scfile=/scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits sctable="SC_DATA" outfile=/scratch/kocevski/486599/ltcube_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits
.....................!
real 11.70
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486599/ft1_filtered_4FGL_J2249.4-1300_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits sctable="SC_DATA" expcube=/scratch/kocevski/486599/ltcube_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.fits outfile=/scratch/kocevski/486599/expmap_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/486599/ltcube_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.fits
.....................!
real 191.07
user 184.87
sys 5.85

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2249.4-1300 @ 342.356 -13.0006

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/486599/ft1_filtered_4FGL_J2249.4-1300_daily_bin394.fits scfile=/scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits outfile=/scratch/kocevski/486599/cmap_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=342.356 yref=-13.0006 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486599/ft1_filtered_4FGL_J2249.4-1300_daily_bin394.fits scfile=/scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits outfile=/scratch/kocevski/486599/cmap_HighResolution_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.356 yref=-13.0006 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486599/ft1_filtered_4FGL_J2249.4-1300_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486599/Model_4FGL_J2249.4-1300_daily_bin394.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/486599/ft1_filtered_4FGL_J2249.4-1300_daily_bin394.fits....................!
real 60.01
user 58.71
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/486599/ft1_filtered_4FGL_J2249.4-1300_daily_bin394.fits', '/scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits', expMap='/scratch/kocevski/486599/expmap_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.fits', expCube='/scratch/kocevski/486599/ltcube_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/486599/Model_4FGL_J2249.4-1300_daily_bin394.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2249.4-1300'

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  5.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.408e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/486599/ft1_filtered_4FGL_J2249.4-1300_daily_bin394.fits
Spacecraft file(s): /scratch/kocevski/486599/ft2_4FGL_J2249.4-1300_daily_bin394.fits
Exposure map: /scratch/kocevski/486599/expmap_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.fits
Exposure cube: /scratch/kocevski/486599/ltcube_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/486599/Model_4FGL_J2249.4-1300_daily_bin394.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7003.49524428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7003.49344359

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    82.040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6747       1.0000         .10000E-03   10000.    
     6 'norm      '    15.075       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27525E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4882       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9326       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.642       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6498       1.0000         .10000E-03   10000.    
    15 'norm      '    .10348E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8387       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8450       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91842       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77746       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7003.493     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2562 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0954        .19018E-07** at limit **
   2  Prefactor     .10000E-03    3.8159        .91044E-07** at limit **
   3  Prefactor     82.067        55.564       -.14935E-05    .11338E-03
   4  Prefactor     .10000E-03    3.6183        .65272E-06** at limit **
   5  Prefactor     3.6804        142.63       -.75350E-06    .72488E-05
   6  norm          15.074        4.1144        .12112E-06   -.40669E-04
   7  Prefactor     27.567        76.377       -.39277E-05    .42482E-04
   8  Prefactor     .10005E-03    4.0728       -.48742E-06** at limit **
   9  norm          1.6596        .81584        .59875E-07    .44850E-03
  10  Prefactor     8.4913        16.489       -.21052E-05   -.12659E-03
  11  norm          .10000E-03    .38353        .10213E-06** at limit **
  12  Prefactor     4.9212        56.184        .74859E-05    .99351E-04
  13  Prefactor     16.644        10.191       -.27104E-06   -.47056E-04
  14  Prefactor     8.6505        7.5916       -.98598E-07   -.18894E-04
  15  norm          .10000E-03    27.568       -.45218E-06** at limit **
  16  Prefactor     .10000E-03    12.723        .23835E-07** at limit **
  17  Prefactor     .10000E-03    8.9962       -.84015E-07** at limit **
  18  Prefactor     2.8403        5.9583       -.13954E-05   -.25775E-04
  19  norm          2.8455        4.7627        .38335E-05   -.22919E-03
  20  Prefactor     .10000E-03    16.519       -.14950E-06** at limit **
  21  Prefactor     .10000E-03    4.5758       -.56269E-07** at limit **
  22  Normalizat    .91841        .15896        .67272E-06    .10137E-03
  23  Prefactor     .77741        .12393       -.78504E-06    .59893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.0666
  Prefactor  = 0.0001
  Prefactor  = 3.68042
  norm       = 15.0738
  Prefactor  = 27.5668
  Prefactor  = 0.000100046
  norm       = 1.65961
  Prefactor  = 8.49132
  norm       = 0.0001
  Prefactor  = 4.92116
  Prefactor  = 16.6437
  Prefactor  = 8.65055
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.84035
  norm       = 2.84554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.918406
  Prefactor  = 0.777406
 **********
 **   18 **HESSE 
 **********

 FCN=   7003.493     FROM HESSE     STATUS=OK           382 CALLS     2944 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1176        .14378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8207        .15965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     82.067        55.330        .22173E-03   -1.3894    
   4  Prefactor     .10000E-03    3.7946        .31092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6804        141.62        .21070E-03   -1.5324    
   6  norm          15.074        4.1091        .81375E-04   -1.4931    
   7  Prefactor     27.567        76.050        .76350E-04   -1.4657    
   8  Prefactor     .10005E-03    6.7665        .59148E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6596        .80768        .49566E-04   -1.5450    
  10  Prefactor     8.4913        15.194        .13759E-03   -1.5125    
  11  norm          .10000E-03    .44177        .90828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9212        52.842        .18109E-03   -1.5264    
  13  Prefactor     16.644        10.166        .98179E-04   -1.4892    
  14  Prefactor     8.6505        7.5856        .13629E-03   -1.5120    
  15  norm          .10000E-03    28.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.0176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8403        5.9419        .24135E-03   -1.5371    
  19  norm          2.8455        4.7621        .10791E-02   -1.5371    
  20  Prefactor     .10000E-03    16.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5855        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .91841        .18655        .24221E-03   -.95816    
  23  Prefactor     .77741        .14535        .20925E-03   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54995e-10
Minuit parameter uncertainties:
  1  5.38672e-07
  2  6.85424e-06
  3  55.3647
  4  6.39233e-05
  5  45.7774
  6  4.10915
  7  76.3193
  8  0.00111398
  9  0.807687
  10  15.2011
  11  3.19523e-06
  12  32.288
  13  10.1666
  14  7.58649
  15  0.000118474
  16  2.86318e-05
  17  1.37593e-05
  18  5.94312
  19  4.76272
  20  1.90847e-05
  21  1.02521e-05
  22  0.186683
  23  0.145425
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7003.49327009

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  8.491e+00  1.520e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.408e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  7.774e-01  1.454e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  9.184e-01  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 342.356 -13.001
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/486599/likelihoodResults_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7001.24940636
delta logL = 2.24386372551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7000.72140026
delta logL = 2.77186983414

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.3139       1.0000          .0000       10.000    
     3 'Normalizat'    .81354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83984       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7003.871     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      434 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.160        .90712E-02** at limit **
   2  Index         1.6134        8.2112        .50000        .16039E-04
   3  Normalizat    .94252        .15011        .43787E-01    .48782E-03
   4  Prefactor     .77478        .12088        .44234E-01    .75713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.61338
  Normalizat = 0.942519
  Prefactor  = 0.774782
 **********
 **   18 **HESSE 
 **********

 FCN=   7003.871     FROM HESSE     STATUS=OK            29 CALLS      463 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6134        7.3500        .50000       -2.3975    
   3  Normalizat    .94252        .17569        .23969E-03   -.94982    
   4  Prefactor     .77478        .14148        .20978E-03   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62121e-10
Minuit parameter uncertainties:
  1  1.36485e-05
  2  3.71486
  3  0.1758
  4  0.141544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486599': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7003.87141188
delta logL = -0.378141785897

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  1.365e-05  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  1.613e+00  3.715e+00  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  7.748e-01  1.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  9.425e-01  1.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.76
Ra Dec: 342.356 -13.001

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/486599/cmap_HighResolution_341452801_341712001_4FGL_J2249.4-1300_daily_bin394.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/486599

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-28 21:34:05.459220', job_id='486599', GAL2='0.77', fit_tolerance='1e-08', EG2='0.94', EG='0.92', time_epoch_completed='1632890045.46', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-3.78e-01', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='394' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:34:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 486599: <4FGL_J2249.4-1300_daily_bin394> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin394> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 21:20:29 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:20:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:20:31 2021
Terminated at Tue Sep 28 21:34:05 2021
Results reported at Tue Sep 28 21:34:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin394 342.356 -13.0006 341452801 341712001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2249.4-1300 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

The output (if any) is above this job summary.

