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


Performing analysis on: 4FGL_J0024.7+0349_daily_bin1679
RA = 6.1975, Dec = 3.8321
tmin = 674524801, tmax = 674784001
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='424595', job_status='RUN', time_executed='2022-05-21 00:07:59.084557', time_epoch_executed='1653116879.08' WHERE source_name='4FGL J0024.7+0349' and cadence='daily' and bin_id='1679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424595

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424595/ft1_4FGL_J0024.7+0349_daily_bin1679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424595/ft1_4FGL_J0024.7+0349_daily_bin1679.fits outfile=/scratch/kocevski/424595/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin1679.fits ra=6.1975 dec=3.8321 rad=12.0 tmin=674524801.0 tmax=674784001.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.68
user 3.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.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/424595/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin1679.fits evtable="EVENTS" outfile="/scratch/kocevski/424595/ft1_filtered_4FGL_J0024.7+0349_daily_bin1679.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.34
sys 0.15

Number of photons that the gtmktime cut: 736

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424595/ft1_filtered_4FGL_J0024.7+0349_daily_bin1679.fits" evtable="EVENTS" scfile=/scratch/kocevski/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.fits sctable="SC_DATA" outfile=/scratch/kocevski/424595/ltcube_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.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/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.fits
.....................!
real 15.87
user 15.44
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424595/ft1_filtered_4FGL_J0024.7+0349_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.fits sctable="SC_DATA" expcube=/scratch/kocevski/424595/ltcube_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.fits outfile=/scratch/kocevski/424595/expmap_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.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/424595/ltcube_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.fits
.....................!
real 193.63
user 187.44
sys 5.59

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

Setting source of interest to:
4FGL J0024.7+0349 @ 6.1975 3.8321

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/424595/ft1_filtered_4FGL_J0024.7+0349_daily_bin1679.fits scfile=/scratch/kocevski/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.fits outfile=/scratch/kocevski/424595/cmap_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.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=6.1975 yref=3.8321 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424595/ft1_filtered_4FGL_J0024.7+0349_daily_bin1679.fits scfile=/scratch/kocevski/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.fits outfile=/scratch/kocevski/424595/cmap_HighResolution_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.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=6.1975 yref=3.8321 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/424595/ft1_filtered_4FGL_J0024.7+0349_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/424595/Model_4FGL_J0024.7+0349_daily_bin1679.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/424595/ft1_filtered_4FGL_J0024.7+0349_daily_bin1679.fits.....................!
real 83.15
user 81.59
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/424595/ft1_filtered_4FGL_J0024.7+0349_daily_bin1679.fits', '/scratch/kocevski/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.fits', expMap='/scratch/kocevski/424595/expmap_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.fits', expCube='/scratch/kocevski/424595/ltcube_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/424595/Model_4FGL_J0024.7+0349_daily_bin1679.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0024.7+0349'

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  1.144e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
119        Index:  2.391e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/424595/ft1_filtered_4FGL_J0024.7+0349_daily_bin1679.fits
Spacecraft file(s): /scratch/kocevski/424595/ft2_4FGL_J0024.7+0349_daily_bin1679.fits
Exposure map: /scratch/kocevski/424595/expmap_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.fits
Exposure cube: /scratch/kocevski/424595/ltcube_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/424595/Model_4FGL_J0024.7+0349_daily_bin1679.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) = 7947.74578195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27214E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5925       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3102       1.0000         .10000E-03   10000.    
     7 'norm      '    6.1256       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    31.693       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.641       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9472       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0349       1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    95.755       1.0000         .10000E-03   10000.    
    17 'norm      '    46.315       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.033       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6038       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0259       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79043       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7947.734     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2356 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.152       -.28512E-06** at limit **
   2  Prefactor     30.714        25.910        .28366E-05    .37418E-04
   3  Prefactor     .10000E-03    3.9764       -.67520E-06** at limit **
   4  norm          2.5993        4.2880        .47104E-05    .35957E-04
   5  Prefactor     .10000E-03    6.6934       -.14398E-06** at limit **
   6  norm          1.3065        3.7744        .14574E-06   -.74081E-04
   7  norm          6.1256        3.9011        .39562E-06   -.14390E-04
   8  Prefactor     .10000E-03    4.1918       -.38081E-06** at limit **
   9  norm          31.688        12.653       -.27678E-06   -.30947E-04
  10  norm          .10000E-03    4.5747        .46132E-06** at limit **
  11  Prefactor     .10000E-03    23.357       -.14445E-05** at limit **
  12  Prefactor     10.641        6.1830        .36135E-06    .29975E-04
  13  Prefactor     4.9474        2.7747        .13514E-06   -.25083E-04
  14  Prefactor     2.0349        3.9013        .41740E-06    .49147E-04
  15  norm          .10000E-03    14.407        .15929E-05** at limit **
  16  Prefactor     95.724        104.96        .96903E-05    .57571E-05
  17  norm          46.315        4.5731       -.11356E-06    .37506E-04
  18  Prefactor     46.019        37.980        .53972E-05    .31203E-06
  19  Prefactor     6.5994        18.753        .25215E-05   -.16220E-04
  20  Prefactor     6.0249        10.889        .15344E-05   -.29778E-05
  21  Normalizat    .79035        .20245       -.49034E-05    .74788E-04
  22  Prefactor     .92173        .13389       -.22160E-06   -.19688E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.7142
  Prefactor  = 0.000100001
  norm       = 2.59929
  Prefactor  = 0.0001
  norm       = 1.30649
  norm       = 6.12558
  Prefactor  = 0.0001
  norm       = 31.6882
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6412
  Prefactor  = 4.94735
  Prefactor  = 2.03494
  norm       = 0.0001
  Prefactor  = 95.7237
  norm       = 46.3155
  Prefactor  = 46.0189
  Prefactor  = 6.59936
  Prefactor  = 6.02491
  Normalizat = 0.790349
  Prefactor  = 0.921727
 **********
 **   18 **HESSE 
 **********

 FCN=   7947.734     FROM HESSE     STATUS=OK           348 CALLS     2704 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.714        25.945        .72250E-04   -1.4599    
   3  Prefactor     .10000E-03    20.532        .27745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5993        4.2974        .83988E-03   -1.5386    
   5  Prefactor     .10000E-03    6.7126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3065        3.0708        .22545E-03   -1.5479    
   7  norm          6.1256        3.9002        .13543E-03   -1.5213    
   8  Prefactor     .10000E-03    4.2060        .17825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          31.688        12.676        .71175E-04   -1.4582    
  10  norm          .10000E-03    4.5800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.641        6.1832        .12282E-03   -1.5055    
  13  Prefactor     4.9474        2.7741        .10632E-03   -1.5263    
  14  Prefactor     2.0349        3.8897        .23053E-03   -1.5423    
  15  norm          .10000E-03    14.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     95.724        105.03        .41075E-04   -1.3748    
  17  norm          46.315        4.5813        .54479E-04   -1.4346    
  18  Prefactor     46.019        37.959        .59095E-04   -1.4350    
  19  Prefactor     6.5994        18.737        .15616E-03   -1.5194    
  20  Prefactor     6.0249        10.871        .81783E-03   -1.5217    
  21  Normalizat    .79035        .23174        .34600E-03   -1.0043    
  22  Prefactor     .92173        .15510        .23386E-03   -.95386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28369e-10
Minuit parameter uncertainties:
  1  4.28319e-06
  2  25.9549
  3  0.000221834
  4  4.29796
  5  1.59483e-05
  6  3.07114
  7  3.90035
  8  1.41646e-05
  9  12.6769
  10  9.29045e-06
  11  0.000206041
  12  6.18355
  13  2.77414
  14  3.89023
  15  3.07918e-05
  16  105.235
  17  4.58129
  18  37.9787
  19  18.7537
  20  10.8747
  21  0.232027
  22  0.155178
Done.

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

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  1.000e-04  1.416e-05  1.000e-04  1.000e+04 ( 1.000e-13)
119        Index:  2.391e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.217e-01  1.552e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  7.903e-01  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 6.197 3.832
Photon Flux Upper Limit: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424595/likelihoodResults_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.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) = 7947.73479209
delta logL = -0.00113098631573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7947.73366106
delta logL = 4.33028617408e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3755       1.0000          .0000       10.000    
     3 'Normalizat'    .79030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92177       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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.

 FCN=   7947.734     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    44.629        .18006E-02** at limit **
   2  Index         2.3208        8.4832        .50000        .27181E-04
   3  Normalizat    .79035        .15311E-01    .34600E-03    .13537E-04
   4  Prefactor     .92173        .11188E-01    .23386E-03    .35439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101098
  Index      = 2.32078
  Normalizat = 0.790346
  Prefactor  = 0.921729
 **********
 **   18 **HESSE 
 **********

 FCN=   7947.734     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10110E-03    194.71        .36011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3208        6.2981        .50000       -.56551    
   3  Normalizat    .79035        .33366E-01    .13840E-04   -1.0043    
   4  Prefactor     .92173        .24379E-01    .93545E-05   -.95386    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.62724e-08
Minuit parameter uncertainties:
  1  0.0293417
  2  541.305
  3  0.0333664
  4  0.024379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424595': 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) = 7947.73366073
delta logL = 3.72310751118e-07

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  1.011e-04  2.934e-02  1.000e-04  1.000e+04 ( 1.000e-13)
119        Index:  2.321e+00  5.413e+02  0.000e+00  1.000e+01 (-1.000e+00)
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.217e-01  2.438e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  7.903e-01  3.337e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 6.197 3.832

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/424595/cmap_HighResolution_674524801_674784001_4FGL_J0024.7+0349_daily_bin1679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2022-05-21 00:20:17.959130', job_id='424595', GAL2='0.92', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1653117617.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1679' AND source_name='4FGL J0024.7+0349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 21 00:20:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 424595: <4FGL_J0024.7+0349_daily_bin1679> in cluster <slac> Done

Job <4FGL_J0024.7+0349_daily_bin1679> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat May 21 00:04:55 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat May 21 00:06:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat May 21 00:06:10 2022
Terminated at Sat May 21 00:20:18 2022
Results reported at Sat May 21 00:20:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0024.7+0349_daily_bin1679 6.1975 3.8321 674524801 674784001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0024.7+0349 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   740.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            923 sec.

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

