aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 52 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7381
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1750
RA = 342.356, Dec = -13.0006
tmin = 692928001, tmax = 693187201
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='29671', job_status='RUN', time_executed='2022-12-20 02:01:20.689240', time_epoch_executed='1671530480.69' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29671/ft1_4FGL_J2249.4-1300_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29671/ft2_4FGL_J2249.4-1300_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29671/ft1_4FGL_J2249.4-1300_daily_bin1750.fits outfile=/scratch/kocevski/29671/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1750.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=692928001.0 tmax=693187201.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.56
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29671/ft2_4FGL_J2249.4-1300_daily_bin1750.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/29671/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/29671/ft1_filtered_4FGL_J2249.4-1300_daily_bin1750.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.34
sys 0.14

Number of photons that the gtmktime cut: 491

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29671/ft1_filtered_4FGL_J2249.4-1300_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/29671/ft2_4FGL_J2249.4-1300_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/29671/ltcube_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.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/29671/ft2_4FGL_J2249.4-1300_daily_bin1750.fits
.....................!
real 11.97
user 11.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29671/ft1_filtered_4FGL_J2249.4-1300_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/29671/ft2_4FGL_J2249.4-1300_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/29671/ltcube_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.fits outfile=/scratch/kocevski/29671/expmap_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.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/29671/ltcube_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.fits
.....................!
real 192.37
user 186.05
sys 4.83

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/29671/ft1_filtered_4FGL_J2249.4-1300_daily_bin1750.fits scfile=/scratch/kocevski/29671/ft2_4FGL_J2249.4-1300_daily_bin1750.fits outfile=/scratch/kocevski/29671/cmap_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29671/ft1_filtered_4FGL_J2249.4-1300_daily_bin1750.fits scfile=/scratch/kocevski/29671/ft2_4FGL_J2249.4-1300_daily_bin1750.fits outfile=/scratch/kocevski/29671/cmap_HighResolution_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29671/ft1_filtered_4FGL_J2249.4-1300_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/29671/ft2_4FGL_J2249.4-1300_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29671/Model_4FGL_J2249.4-1300_daily_bin1750.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/29671/ft1_filtered_4FGL_J2249.4-1300_daily_bin1750.fits.....................!
real 51.19
user 49.53
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/29671/ft1_filtered_4FGL_J2249.4-1300_daily_bin1750.fits', '/scratch/kocevski/29671/ft2_4FGL_J2249.4-1300_daily_bin1750.fits', expMap='/scratch/kocevski/29671/expmap_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.fits', expCube='/scratch/kocevski/29671/ltcube_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/29671/Model_4FGL_J2249.4-1300_daily_bin1750.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  0.000e+00  1.000e+06 ( 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/29671/ft1_filtered_4FGL_J2249.4-1300_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/29671/ft2_4FGL_J2249.4-1300_daily_bin1750.fits
Exposure map: /scratch/kocevski/29671/expmap_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.fits
Exposure cube: /scratch/kocevski/29671/ltcube_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/29671/Model_4FGL_J2249.4-1300_daily_bin1750.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) = 5535.28638444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.001       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21018E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.9512       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12409E-02   1.0000          .0000       .10000E+07
     5 'norm      '    15.238       1.0000          .0000       .10000E+07
     6 'Prefactor '    .97217E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    23.574       1.0000          .0000       .10000E+07
     8 'norm      '    4.0307       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.308       1.0000          .0000       .10000E+07
    10 'norm      '    .77265E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .37195E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11621E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .24014E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .95564E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .38636E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .28225E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .10188E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .75744E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0253       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86636       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5535.227     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1588 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.959        2.3695        .69179E-08   -.14111E-03
   2  Prefactor     .15543E-08    4.6323       -.36673E-06** at limit **
   3  Prefactor     6.9510        4.1116        .11391E-06    .31855E-02
   4  Prefactor     .83489E-07    69.762       -.32356E-06** at limit **
   5  norm          15.239        5.8689        .13555E-07    .25343E-02
   6  Prefactor     .28638E-06    47.723       -.35687E-06** at limit **
   7  Prefactor     23.497        1.4183       -.25245E-07   -.37107E-03
   8  norm          4.0206        1.3290        .12716E-07    .63671E-03
   9  Prefactor     18.521        7.8771        .19556E-06   -.63224E-01
  10  norm          .50238E-07    51.062        .30454E-05** at limit **
  11  Prefactor     .19151E-07    30.797       -.13714E-05** at limit **
  12  Prefactor     .79603E-07    6.3689        .56105E-06** at limit **
  13  norm          .35499E-06    8.1829       -.69283E-06** at limit **
  14  Prefactor     .25821E-05    10.221       -.91042E-06** at limit **
  15  Prefactor     .13944E-06    6.9947       -.15927E-06** at limit **
  16  Prefactor     .16098E-08    5.0920       -.33233E-06** at limit **
  17  norm          .38858E-09    6.3168        .89037E-06** at limit **
  18  Prefactor     .35071E-05    8.4806       -.44831E-06** at limit **
  19  Normalizat    1.0245        .24345       -.18014E-05    .95247E-04
  20  Prefactor     .86665        .18578        .74106E-05    .89445E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9594
  Prefactor  = 1.55431e-09
  Prefactor  = 6.95097
  Prefactor  = 8.34888e-08
  norm       = 15.2391
  Prefactor  = 2.86382e-07
  Prefactor  = 23.497
  norm       = 4.02062
  Prefactor  = 18.5209
  norm       = 5.02376e-08
  Prefactor  = 1.91513e-08
  Prefactor  = 7.9603e-08
  norm       = 3.54994e-07
  Prefactor  = 2.5821e-06
  Prefactor  = 1.39444e-07
  Prefactor  = 1.60982e-09
  norm       = 3.88578e-10
  Prefactor  = 3.50714e-06
  Normalizat = 1.02448
  Prefactor  = 0.866654
 **********
 **   18 **HESSE 
 **********

 FCN=   5535.227     FROM HESSE     STATUS=OK           333 CALLS     1921 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.959        15.962        .21325E-03   -1.5614    
   2  Prefactor     .15543E-08    4.6336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9510        4.1154        .38028E-03   -1.5655    
   4  Prefactor     .83489E-07    70.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.239        5.8249        .25631E-03   -1.5630    
   6  Prefactor     .28638E-06    48.610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.497        17.815        .20601E-03   -1.5611    
   8  norm          4.0206        1.3403        .50204E-03   -1.5668    
   9  Prefactor     18.521        17.898        .24047E-03   -1.5622    
  10  norm          .50238E-07    .89134        .36115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .19151E-07    30.837        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .79603E-07    6.9800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .35499E-06    9.2211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .25821E-05    16.035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13944E-06    9.7466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .16098E-08    5.0902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .38858E-09    6.3260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .35071E-05    15.456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0245        .21069        .62808E-01   -.92215    
  20  Prefactor     .86665        .15705        .44575E-01   -.97316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27392e-07
Minuit parameter uncertainties:
  1  15.9618
  2  0.000170983
  3  4.11536
  4  0.00484401
  5  5.82489
  6  0.00746208
  7  17.815
  8  1.34027
  9  17.8981
  10  0.00042332
  11  0.00153688
  12  0.00149105
  13  0.00361842
  14  0.012869
  15  0.00233145
  16  0.000179816
  17  9.94114e-05
  18  0.0147252
  19  0.210857
  20  0.157132
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.852e+01  1.790e+01  0.000e+00  1.000e+06 ( 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:  8.667e-01  1.571e-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:  1.024e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.78e-08 +/- 6.55e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 2.12e-05

TS (Fixed Index): 2.61
Ra Dec: 342.356 -13.001
Photon Flux Upper Limit: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29671/likelihoodResults_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.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): 0
logL (Free Index) = 5534.89767391
delta logL = 0.329337608819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5534.84949043
delta logL = 0.377521090408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3508       1.0000          .0000       .10000E+07
     2 'Index     '    3.0414       1.0000          .0000       10.000    
     3 'Normalizat'    .98012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89045       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5534.849     FROM MIGRAD    STATUS=FAILED        75 CALLS      280 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3494        86.899        .95058E-05   -.38941E-01
   2  Index         3.0415        2.8870        .28910E-02   -.13516E-02
   3  Normalizat    .98012        .26889        .28279E-03   -.74926E-03
   4  Prefactor     .89047        .20141        .22491E-03   -.10348E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5534.849     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      371 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3494        86.899        .15610E-04   -.38941E-01
   2  Index         3.0415        2.8870        .62022E-03   -.13516E-02
   3  Normalizat    .98012        .26889        .20166E-03   -.74926E-03
   4  Prefactor     .89047        .20141        .22100E-03   -.10348E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5534.849     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      398 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3488        10.532        .38023E-06   -.42022E-01
   2  Index         3.0416        .84057        .11564E-03   -.11261E-02
   3  Normalizat    .98012        .25015        .56557E-04   -.70921E-03
   4  Prefactor     .89047        .18841        .44983E-04   -.98718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.34881
  Index      = 3.04157
  Normalizat = 0.980115
  Prefactor  = 0.890475
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.849     FROM HESSE     STATUS=OK            23 CALLS      421 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3488        10.325        .37351E-06   -1.5666    
   2  Index         3.0416        .82423        .23128E-04   -.40246    
   3  Normalizat    .98012        .25006        .11311E-04   -.93700    
   4  Prefactor     .89047        .18834        .89965E-05   -.96475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46168e-09
Minuit parameter uncertainties:
  1  10.3251
  2  0.828703
  3  0.250361
  4  0.188481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29671': 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) = 5534.84949039
delta logL = 0.377521125571

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  4.349e+00  1.033e+01  0.000e+00  1.000e+06 ( 1.000e-14)
265        Index:  3.042e+00  8.287e-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:  8.905e-01  1.885e-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.801e-01  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 3.04 +/- 0.83
Photon Flux (Free Index): 1.04e-07 +/- 7.26e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.35e-05

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/29671/cmap_HighResolution_692928001_693187201_4FGL_J2249.4-1300_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='6.78e-08', energy_flux2='2.04e-05', photon_flux_error='6.55e-08', dlogl='3.78e-01', energy_flux='2.20e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2022-12-20 02:09:43.225824', photon_index_error2='0.83', photon_index2='3.04', ts='2.61', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.35e-05', EG='1.02', time_epoch_completed='1671530983.23', return_code='0', job_id='29671', GAL2='0.89', EG2='0.98', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='7.26e-08', ts2='3.42', photon_index='2.41' WHERE bin_id='1750' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 02:09:43 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 29671: <4FGL_J2249.4-1300_daily_bin1750> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin1750> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec 20 02:00:18 2022
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 02:00:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 02:00:20 2022
Terminated at Tue Dec 20 02:09:43 2022
Results reported at Tue Dec 20 02:09:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1750 342.356 -13.0006 692928001 693187201 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 :                                   503.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             362.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            565 sec.

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

