/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 192 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 = 7420
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2249.4-1300_daily_bin295
RA = 342.356, Dec = -13.0006
tmin = 315792001, tmax = 316051201
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='486454', job_status='RUN', time_executed='2021-09-28 21:23:40.093167', time_epoch_executed='1632889420.09' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486454

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486454/ft1_4FGL_J2249.4-1300_daily_bin295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486454/ft2_4FGL_J2249.4-1300_daily_bin295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486454/ft1_4FGL_J2249.4-1300_daily_bin295.fits outfile=/scratch/kocevski/486454/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin295.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=315792001.0 tmax=316051201.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.58
user 3.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/486454/ft2_4FGL_J2249.4-1300_daily_bin295.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/486454/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin295.fits evtable="EVENTS" outfile="/scratch/kocevski/486454/ft1_filtered_4FGL_J2249.4-1300_daily_bin295.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486454/ft1_filtered_4FGL_J2249.4-1300_daily_bin295.fits" evtable="EVENTS" scfile=/scratch/kocevski/486454/ft2_4FGL_J2249.4-1300_daily_bin295.fits sctable="SC_DATA" outfile=/scratch/kocevski/486454/ltcube_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.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/486454/ft2_4FGL_J2249.4-1300_daily_bin295.fits
.....................!
real 11.91
user 11.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486454/ft1_filtered_4FGL_J2249.4-1300_daily_bin295.fits evtable="EVENTS" scfile=/scratch/kocevski/486454/ft2_4FGL_J2249.4-1300_daily_bin295.fits sctable="SC_DATA" expcube=/scratch/kocevski/486454/ltcube_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.fits outfile=/scratch/kocevski/486454/expmap_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.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/486454/ltcube_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.fits
.....................!
real 190.34
user 185.22
sys 4.79

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/486454/ft1_filtered_4FGL_J2249.4-1300_daily_bin295.fits scfile=/scratch/kocevski/486454/ft2_4FGL_J2249.4-1300_daily_bin295.fits outfile=/scratch/kocevski/486454/cmap_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486454/ft1_filtered_4FGL_J2249.4-1300_daily_bin295.fits scfile=/scratch/kocevski/486454/ft2_4FGL_J2249.4-1300_daily_bin295.fits outfile=/scratch/kocevski/486454/cmap_HighResolution_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.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.55
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486454/ft1_filtered_4FGL_J2249.4-1300_daily_bin295.fits evtable="EVENTS" scfile=/scratch/kocevski/486454/ft2_4FGL_J2249.4-1300_daily_bin295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486454/Model_4FGL_J2249.4-1300_daily_bin295.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/486454/ft1_filtered_4FGL_J2249.4-1300_daily_bin295.fits.....................!
real 45.18
user 43.91
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/486454/ft1_filtered_4FGL_J2249.4-1300_daily_bin295.fits', '/scratch/kocevski/486454/ft2_4FGL_J2249.4-1300_daily_bin295.fits', expMap='/scratch/kocevski/486454/expmap_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.fits', expCube='/scratch/kocevski/486454/ltcube_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/486454/Model_4FGL_J2249.4-1300_daily_bin295.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/486454/ft1_filtered_4FGL_J2249.4-1300_daily_bin295.fits
Spacecraft file(s): /scratch/kocevski/486454/ft2_4FGL_J2249.4-1300_daily_bin295.fits
Exposure map: /scratch/kocevski/486454/expmap_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.fits
Exposure cube: /scratch/kocevski/486454/ltcube_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/486454/Model_4FGL_J2249.4-1300_daily_bin295.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) = 4826.61970865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.690       1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.1544       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.383       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.426       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92834       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0250       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=   4826.617     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2563 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4836        18.143       -.12441E-05   -.14512E-04
   2  Prefactor     10.691        12.662       -.17893E-07    .10109E-03
   3  Prefactor     43.375        98.088        .45737E-05   -.75760E-05
   4  Prefactor     1.0336        3.0409       -.47656E-06   -.24804E-03
   5  Prefactor     .10000E-03    25.545       -.97452E-06** at limit **
   6  norm          7.1547        4.2420       -.21715E-08    .42803E-04
   7  Prefactor     .10000E-03    31.743        .11847E-05** at limit **
   8  Prefactor     .10000E-03    6.5420       -.38334E-06** at limit **
   9  norm          1.4600        .98645        .51093E-07   -.14282E-03
  10  Prefactor     .10000E-03    13.637        .39249E-06** at limit **
  11  norm          .10000E-03    .89976        .12559E-05** at limit **
  12  Prefactor     7.2214        34.959        .37169E-05   -.21362E-04
  13  Prefactor     .10000E-03    15.311        .12176E-05** at limit **
  14  Prefactor     27.382        17.506        .47525E-06   -.14516E-04
  15  norm          .10000E-03    7.5241       -.21307E-06** at limit **
  16  Prefactor     .10000E-03    25.130       -.10042E-05** at limit **
  17  Prefactor     .10000E-03    27.504       -.76556E-06** at limit **
  18  Prefactor     .10000E-03    7.1196        .28413E-06** at limit **
  19  norm          .10000E-03    4.4143       -.13850E-06** at limit **
  20  Prefactor     18.428        45.776       -.12505E-06    .29700E-04
  21  Prefactor     .10000E-03    12.155       -.12602E-05** at limit **
  22  Normalizat    .92825        .22351        .17860E-06    .28280E-04
  23  Prefactor     1.0251        .16664        .11152E-05    .93170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48356
  Prefactor  = 10.6912
  Prefactor  = 43.3751
  Prefactor  = 1.03358
  Prefactor  = 0.0001
  norm       = 7.15467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45998
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.22135
  Prefactor  = 0.0001
  Prefactor  = 27.3817
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.4283
  Prefactor  = 0.0001
  Normalizat = 0.928247
  Prefactor  = 1.02506
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.617     FROM HESSE     STATUS=OK           368 CALLS     2931 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4836        18.102        .21663E-03   -1.5335    
   2  Prefactor     10.691        12.588        .61270E-03   -1.5054    
   3  Prefactor     43.375        97.776        .60853E-04   -1.4390    
   4  Prefactor     1.0336        2.7546        .19961E-02   -1.5505    
   5  Prefactor     .10000E-03    25.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.1547        4.2247        .10383E-03   -1.5173    
   7  Prefactor     .10000E-03    31.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5674        .17366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4600        .97831        .54158E-04   -1.5466    
  10  Prefactor     .10000E-03    13.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .90077        .97552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2214        34.589        .14968E-03   -1.5170    
  13  Prefactor     .10000E-03    15.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.382        17.503        .76558E-04   -1.4661    
  15  norm          .10000E-03    7.5598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1536        .18076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.4545        .14258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.428        45.761        .93305E-04   -1.4849    
  21  Prefactor     .10000E-03    12.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92825        .25647        .28340E-03   -.95475    
  23  Prefactor     1.0251        .19274        .20938E-03   -.91899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7429e-11
Minuit parameter uncertainties:
  1  15.8892
  2  12.5912
  3  98.14
  4  2.75489
  5  3.79971e-06
  6  4.22484
  7  6.38916e-05
  8  1.33644e-05
  9  0.978325
  10  2.4085e-06
  11  1.71504e-06
  12  31.6383
  13  6.0528e-05
  14  17.5063
  15  1.17336e-05
  16  8.12259e-06
  17  2.32323e-05
  18  3.54472e-05
  19  1.67624e-05
  20  45.848
  21  2.06475e-05
  22  0.256809
  23  0.192873
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  2.409e-06  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:  1.025e+00  1.929e-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.282e-01  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/486454/likelihoodResults_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.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) = 4826.61768635
delta logL = -0.00034730849984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4826.6173391
delta logL = -5.15019564773e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4159       1.0000          .0000       10.000    
     3 'Normalizat'    .92818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0251       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=   4826.617     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.340        .90712E-02** at limit **
   2  Index         2.4247        3.2826        .50000       -.66839E-05
   3  Normalizat    .92825        .46998E-02    .45261E-01    .22696E-04
   4  Prefactor     1.0251        .36504E-02    .41664E-01    .15759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42466
  Normalizat = 0.928247
  Prefactor  = 1.02506
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.617     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    258.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4247        8.7428        .50000       -.54109    
   3  Normalizat    .92825        .23928E-01    .28340E-03   -.95475    
   4  Prefactor     1.0251        .18591E-01    .20938E-03   -.91899    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.0281e-10
Minuit parameter uncertainties:
  1  0.000127215
  2  18.6905
  3  0.0239284
  4  0.0185907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486454': 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): 102
logL (Free Index) = 4826.61733902
delta logL = 2.18178684008e-08

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  1.272e-04  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.425e+00  1.869e+01  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:  1.025e+00  1.859e-02  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.282e-01  2.393e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/486454/cmap_HighResolution_315792001_316051201_4FGL_J2249.4-1300_daily_bin295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-28 21:32:31.026889', job_id='486454', GAL2='1.03', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632889951.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='295' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:32:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 486454: <4FGL_J2249.4-1300_daily_bin295> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin295> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 21:20:18 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:20:20 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:20 2021
Terminated at Tue Sep 28 21:32:31 2021
Results reported at Tue Sep 28 21:32:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin295 342.356 -13.0006 315792001 316051201 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 :                                   530.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

