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


Performing analysis on: 4FGL_J0037.8+1239_daily_bin1673
RA = 9.4695, Dec = 12.6527
tmin = 672969601, tmax = 673228801
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='350793', job_status='RUN', time_executed='2022-05-03 00:09:33.814640', time_epoch_executed='1651561773.81' WHERE source_name='4FGL J0037.8+1239' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350793

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350793/ft1_4FGL_J0037.8+1239_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350793/ft1_4FGL_J0037.8+1239_daily_bin1673.fits outfile=/scratch/kocevski/350793/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1673.fits ra=9.4695 dec=12.6527 rad=12.0 tmin=672969601.0 tmax=673228801.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 2.98
user 2.74
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.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/350793/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/350793/ft1_filtered_4FGL_J0037.8+1239_daily_bin1673.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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 366

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350793/ft1_filtered_4FGL_J0037.8+1239_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/350793/ltcube_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.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/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.fits
.....................!
real 16.56
user 16.14
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350793/ft1_filtered_4FGL_J0037.8+1239_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/350793/ltcube_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.fits outfile=/scratch/kocevski/350793/expmap_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.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/350793/ltcube_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.fits
.....................!
real 190.13
user 185.47
sys 4.25

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0037.8+1239 @ 9.4695 12.6527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/350793/ft1_filtered_4FGL_J0037.8+1239_daily_bin1673.fits scfile=/scratch/kocevski/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.fits outfile=/scratch/kocevski/350793/cmap_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.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=9.4695 yref=12.6527 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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350793/ft1_filtered_4FGL_J0037.8+1239_daily_bin1673.fits scfile=/scratch/kocevski/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.fits outfile=/scratch/kocevski/350793/cmap_HighResolution_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.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=9.4695 yref=12.6527 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/350793/ft1_filtered_4FGL_J0037.8+1239_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/350793/Model_4FGL_J0037.8+1239_daily_bin1673.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/350793/ft1_filtered_4FGL_J0037.8+1239_daily_bin1673.fits.....................!
real 53.74
user 52.39
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/350793/ft1_filtered_4FGL_J0037.8+1239_daily_bin1673.fits', '/scratch/kocevski/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.fits', expMap='/scratch/kocevski/350793/expmap_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.fits', expCube='/scratch/kocevski/350793/ltcube_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/350793/Model_4FGL_J0037.8+1239_daily_bin1673.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0037.8+1239'

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  4.891e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
161        Index:  2.216e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/350793/ft1_filtered_4FGL_J0037.8+1239_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/350793/ft2_4FGL_J0037.8+1239_daily_bin1673.fits
Exposure map: /scratch/kocevski/350793/expmap_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.fits
Exposure cube: /scratch/kocevski/350793/ltcube_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/350793/Model_4FGL_J0037.8+1239_daily_bin1673.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) = 4141.52897674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.137       1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.377       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20911E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.873       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.527       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8697       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11171E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .29713E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    755.66       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2582       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4141.527     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1922 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0771       -.27978E-06** at limit **
   2  Prefactor     .10000E-03    5.4925       -.13669E-06** at limit **
   3  norm          10.132        6.1013        .62468E-07   -.82038E-04
   4  Prefactor     50.378        59.147        .31547E-06   -.19717E-05
   5  Prefactor     .10000E-03    3.5958       -.48781E-08** at limit **
   6  Prefactor     .10000E-03    2.3495        .16392E-06** at limit **
   7  norm          10.873        9.5200        .10157E-05    .13105E-03
   8  Prefactor     .10000E-03    15.115       -.29657E-06** at limit **
   9  Prefactor     .10000E-03    11.755        .68987E-07** at limit **
  10  norm          .10000E-03    8.9860       -.10366E-06** at limit **
  11  Prefactor     13.524        10.433        .14043E-06   -.14056E-04
  12  Prefactor     7.8600        12.221        .28262E-06    .88460E-05
  13  Prefactor     .10000E-03    6.1129        .34259E-05** at limit **
  14  norm          .10000E-03    129.13       -.21014E-04** at limit **
  15  Prefactor     .10000E-03    36.799        .40643E-06** at limit **
  16  Prefactor     755.49        298.04        .81293E-05    .29449E-04
  17  Prefactor     .10000E-03    81.894       -.58368E-05** at limit **
  18  Normalizat    1.2586        .26428       -.27375E-05   -.33893E-05
  19  Prefactor     .81928        .17544        .81267E-06   -.23775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.132
  Prefactor  = 50.3784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.524
  Prefactor  = 7.86004
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 755.488
  Prefactor  = 0.000100001
  Normalizat = 1.25865
  Prefactor  = 0.819283
 **********
 **   18 **HESSE 
 **********

 FCN=   4141.527     FROM HESSE     STATUS=OK           264 CALLS     2186 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1053        .15490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5230        .14727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.132        6.1061        .11847E-03   -1.5071    
   4  Prefactor     50.378        59.130        .56502E-04   -1.4287    
   5  Prefactor     .10000E-03    3.5977        .11918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9424        .19093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.873        9.5787        .60751E-03   -1.5048    
   8  Prefactor     .10000E-03    15.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.0344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.524        10.434        .10891E-03   -1.4972    
  12  Prefactor     7.8600        12.216        .14293E-03   -1.5147    
  13  Prefactor     .10000E-03    6.2841        .30881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    126.90        .62621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     755.49        298.96        .75671E-04   -1.0139    
  17  Prefactor     .10000E-03    83.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2586        .30093        .27967E-03   -.84809    
  19  Prefactor     .81928        .20100        .23005E-03   -.99021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56646e-10
Minuit parameter uncertainties:
  1  3.61482e-06
  2  6.76135e-06
  3  6.10651
  4  59.1995
  5  2.67968e-06
  6  8.34771e-05
  7  9.58001
  8  3.63758e-07
  9  1.27215e-05
  10  2.00228e-06
  11  10.4358
  12  12.2203
  13  6.26492e-06
  14  0.00100074
  15  4.53291e-05
  16  299.604
  17  0.000501975
  18  0.301344
  19  0.201181
Done.

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

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  1.000e-04  1.272e-05  1.000e-04  1.000e+04 ( 1.000e-13)
161        Index:  2.216e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  8.193e-01  2.012e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.259e+00  3.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 9.470 12.653
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350793/likelihoodResults_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.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) = 4141.52745155
delta logL = -0.000404398950195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4141.52704715
delta logL = 5.78893377678e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4141.527     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1424.2        .90712E-02** at limit **
   2  Index         2.2302        7.9732        .50000       -.52561E-05
   3  Normalizat    1.2586        .89538E-01    .63226E-01   -.60651E-05
   4  Prefactor     .81929        .61098E-01    .43968E-01   -.25421E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23019
  Normalizat = 1.25864
  Prefactor  = 0.819286
 **********
 **   18 **HESSE 
 **********

 FCN=   4141.527     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2164.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2302        5.7416        .50000       -.58712    
   3  Normalizat    1.2586        .14475        .27967E-03   -.84809    
   4  Prefactor     .81929        .98909E-01    .23005E-03   -.99021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.06389e-09
Minuit parameter uncertainties:
  1  0.000235293
  2  58.7097
  3  0.144795
  4  0.0989301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350793': 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) = 4141.52704713
delta logL = 1.80643837666e-08

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  1.000e-04  2.353e-04  1.000e-04  1.000e+04 ( 1.000e-13)
161        Index:  2.230e+00  5.871e+01  0.000e+00  1.000e+01 (-1.000e+00)
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  8.193e-01  9.893e-02  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.259e+00  1.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 9.470 12.653

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/350793/cmap_HighResolution_672969601_673228801_4FGL_J0037.8+1239_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2022-05-03 00:17:36.439604', job_id='350793', GAL2='0.82', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1651562256.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1673' AND source_name='4FGL J0037.8+1239' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:17:36 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0177>
Subject: Job 350794: <4FGL_J0037.8+1239_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0037.8+1239_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:21 2022
Job was executed on host(s) <bullet0177>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:06:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:06:01 2022
Terminated at Tue May  3 00:16:44 2022
Results reported at Tue May  3 00:16:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0037.8+1239_daily_bin1673 9.4695 12.6527 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0037.8+1239 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   484.32 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             307.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   18698 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            683 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 350793: <4FGL_J0037.8+1239_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0037.8+1239_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:21 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:06:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:06:01 2022
Terminated at Tue May  3 00:17:37 2022
Results reported at Tue May  3 00:17:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0037.8+1239_daily_bin1673 9.4695 12.6527 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0037.8+1239 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   485.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            736 sec.

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

