/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 3 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 = 7408
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1501.0+2238_daily_bin601
RA = 225.257, Dec = 22.6364
tmin = 395107201, tmax = 395366401
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='934769', job_status='RUN', time_executed='2021-09-10 17:41:18.619429', time_epoch_executed='1631320878.62' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934769

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

Retrieving the FT1 file...

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

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

Retrieving 55 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934769/ft1_4FGL_J1501.0+2238_daily_bin601.fits


Retrieving the FT1 file...

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

Retrieving 55 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934769/ft2_4FGL_J1501.0+2238_daily_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934769/ft1_4FGL_J1501.0+2238_daily_bin601.fits outfile=/scratch/kocevski/934769/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin601.fits ra=225.257 dec=22.6364 rad=12.0 tmin=395107201.0 tmax=395366401.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 8.02
user 7.72
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934769/ft2_4FGL_J1501.0+2238_daily_bin601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934769/ft2_4FGL_J1501.0+2238_daily_bin601.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/934769/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin601.fits evtable="EVENTS" outfile="/scratch/kocevski/934769/ft1_filtered_4FGL_J1501.0+2238_daily_bin601.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934769/ft1_filtered_4FGL_J1501.0+2238_daily_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/934769/ft2_4FGL_J1501.0+2238_daily_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/934769/ltcube_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.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/934769/ft2_4FGL_J1501.0+2238_daily_bin601.fits
.....................!
real 11.29
user 10.89
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934769/ft1_filtered_4FGL_J1501.0+2238_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/934769/ft2_4FGL_J1501.0+2238_daily_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/934769/ltcube_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.fits outfile=/scratch/kocevski/934769/expmap_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.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/934769/ltcube_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.fits
.....................!
real 190.85
user 185.49
sys 4.99

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

Setting source of interest to:
4FGL J1501.0+2238 @ 225.257 22.6364

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934769/ft1_filtered_4FGL_J1501.0+2238_daily_bin601.fits scfile=/scratch/kocevski/934769/ft2_4FGL_J1501.0+2238_daily_bin601.fits outfile=/scratch/kocevski/934769/cmap_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.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=225.257 yref=22.6364 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934769/ft1_filtered_4FGL_J1501.0+2238_daily_bin601.fits scfile=/scratch/kocevski/934769/ft2_4FGL_J1501.0+2238_daily_bin601.fits outfile=/scratch/kocevski/934769/cmap_HighResolution_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.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=225.257 yref=22.6364 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934769/ft1_filtered_4FGL_J1501.0+2238_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/934769/ft2_4FGL_J1501.0+2238_daily_bin601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934769/Model_4FGL_J1501.0+2238_daily_bin601.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/934769/ft1_filtered_4FGL_J1501.0+2238_daily_bin601.fits.....................!
real 52.67
user 51.32
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934769/ft1_filtered_4FGL_J1501.0+2238_daily_bin601.fits', '/scratch/kocevski/934769/ft2_4FGL_J1501.0+2238_daily_bin601.fits', expMap='/scratch/kocevski/934769/expmap_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.fits', expCube='/scratch/kocevski/934769/ltcube_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934769/Model_4FGL_J1501.0+2238_daily_bin601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1501.0+2238'

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934769/ft1_filtered_4FGL_J1501.0+2238_daily_bin601.fits
Spacecraft file(s): /scratch/kocevski/934769/ft2_4FGL_J1501.0+2238_daily_bin601.fits
Exposure map: /scratch/kocevski/934769/expmap_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.fits
Exposure cube: /scratch/kocevski/934769/ltcube_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934769/Model_4FGL_J1501.0+2238_daily_bin601.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) = 6819.92845974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4894       1.0000         .10000E-03   10000.    
     2 'norm      '    6.2423       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6646       1.0000         .10000E-03   10000.    
     4 'norm      '    8.7737       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.774       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0048       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95847       1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.923       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.042       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23469       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0875       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.696       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93464       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6819.899     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2719 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4884        13.402        .90173E-07   -.98916E-05
   2  norm          6.2422        3.0308       -.24272E-07   -.20570E-05
   3  Prefactor     7.6634        9.8163        .70437E-07   -.20974E-04
   4  norm          8.7733        3.7291       -.11707E-08   -.18461E-04
   5  norm          .10000E-03    2.2745        .36877E-07** at limit **
   6  Prefactor     .10000E-03    14.423        .70088E-07** at limit **
   7  Prefactor     26.779        33.052        .53190E-06   -.15473E-04
   8  Prefactor     .10000E-03    9.6227       -.16966E-06** at limit **
   9  Prefactor     .10002E-03    165.07        .16730E-05** at limit **
  10  Prefactor     2.9813        181.97       -.94068E-05   -.55958E-04
  11  Prefactor     .96139        13.040        .47976E-05   -.73360E-04
  12  norm          .10000E-03    21.833       -.10082E-06** at limit **
  13  Prefactor     .10000E-03    26.599        .14611E-06** at limit **
  14  Prefactor     .10000E-03    1.8384        .15510E-07** at limit **
  15  norm          10.930        2.2501       -.53735E-07    .13187E-02
  16  Prefactor     32.026        36.426       -.16373E-05   -.14040E-03
  17  Prefactor     .15668        9.1500       -.92684E-06    .42014E-03
  18  Prefactor     .10000E-03    41.605        .27405E-07** at limit **
  19  Prefactor     2.0877        1.6452       -.16169E-07    .10183E-03
  20  Prefactor     14.694        28.871       -.16132E-06   -.23392E-04
  21  Normalizat    .93471        .21025       -.14480E-06    .10494E-04
  22  Prefactor     1.1099        .14725       -.94103E-07   -.26642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.48845
  norm       = 6.24218
  Prefactor  = 7.66341
  norm       = 8.77326
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7792
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 2.98128
  Prefactor  = 0.961391
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9299
  Prefactor  = 32.0263
  Prefactor  = 0.156678
  Prefactor  = 0.0001
  Prefactor  = 2.08775
  Prefactor  = 14.6937
  Normalizat = 0.934715
  Prefactor  = 1.10987
 **********
 **   18 **HESSE 
 **********

 FCN=   6819.899     FROM HESSE     STATUS=OK           352 CALLS     3071 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4884        13.318        .15754E-03   -1.5198    
   2  norm          6.2422        3.0312        .48541E-03   -1.5208    
   3  Prefactor     7.6634        9.7632        .14485E-03   -1.5154    
   4  norm          8.7733        3.7277        .99549E-04   -1.5115    
   5  norm          .10000E-03    2.2979        .12160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.779        32.961        .77422E-04   -1.4673    
   8  Prefactor     .10000E-03    9.6358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    177.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9813        204.41        .23415E-03   -1.5363    
  11  Prefactor     .96139        13.945        .52072E-03   -1.5512    
  12  norm          .10000E-03    21.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8401        .10935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.930        2.5040        .46424E-04   -1.5047    
  16  Prefactor     32.026        36.899        .70787E-04   -1.4576    
  17  Prefactor     .15668        25.739        .59296E-01   -1.5629    
  18  Prefactor     .10000E-03    41.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0877        1.6501        .91259E-04   -1.5419    
  20  Prefactor     14.694        28.893        .10448E-03   -1.4941    
  21  Normalizat    .93471        .24389        .32186E-03   -.95251    
  22  Prefactor     1.1099        .17065        .21327E-03   -.89152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95768e-09
Minuit parameter uncertainties:
  1  13.324
  2  3.03132
  3  9.76526
  4  3.7278
  5  9.4882e-07
  6  2.90221e-06
  7  32.983
  8  9.7892e-06
  9  0.00355441
  10  49.5481
  11  7.32476
  12  1.02773e-05
  13  3.65799e-05
  14  3.72117e-07
  15  2.50406
  16  36.9255
  17  4.0168
  18  6.40461e-05
  19  1.65009
  20  28.9207
  21  0.244181
  22  0.170731
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  9.614e-01  7.325e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.110e+00  1.707e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  9.347e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934769/likelihoodResults_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.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) = 6819.76612841
delta logL = 0.132746645797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6819.73025884
delta logL = 0.168616211439

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6819.730     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      316 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0737        6.8027        .11554E-02   -.13962E-04
   2  Index         1.2918        .91985        .17001E-01   -.19065E-03
   3  Normalizat    .93809        .23191        .32129E-03    .58137E-04
   4  Prefactor     1.1061        .16725        .21354E-03   -.63983E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07367
  Index      = 1.29184
  Normalizat = 0.93809
  Prefactor  = 1.10605
 **********
 **   18 **HESSE 
 **********

 FCN=   6819.730     FROM HESSE     STATUS=OK            27 CALLS      343 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0737        6.9358        .46218E-04   -1.5357    
   2  Index         1.2918        .93802        .34002E-02   -.83550    
   3  Normalizat    .93809        .23210        .12851E-04   -.95134    
   4  Prefactor     1.1061        .16739        .42708E-04   -.89273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33065e-11
Minuit parameter uncertainties:
  1  6.93762
  2  0.950703
  3  0.232345
  4  0.16747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934769': 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) = 6819.73025801
delta logL = 0.168617041306

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.074e+00  6.938e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.292e+00  9.507e-01  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.106e+00  1.675e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  9.381e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 225.257 22.636

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/934769/cmap_HighResolution_395107201_395366401_4FGL_J1501.0+2238_daily_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-09-10 17:52:40.541546', job_id='934769', GAL2='1.11', fit_tolerance='1e-08', EG2='0.94', EG='0.93', time_epoch_completed='1631321560.54', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.69e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='601' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:52:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 934769: <4FGL_J1501.0+2238_daily_bin601> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin601> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 17:41:05 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:41:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 17:41:07 2021
Terminated at Fri Sep 10 17:52:41 2021
Results reported at Fri Sep 10 17:52:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin601 225.257 22.6364 395107201 395366401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1501.0+2238 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   677.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            696 sec.

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

