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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin200
RA = 225.257, Dec = 22.6364
tmin = 291168001, tmax = 291427201
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='932105', job_status='RUN', time_executed='2021-09-10 17:31:51.017684', time_epoch_executed='1631320311.02' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932105

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932105/ft1_4FGL_J1501.0+2238_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932105/ft2_4FGL_J1501.0+2238_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932105/ft1_4FGL_J1501.0+2238_daily_bin200.fits outfile=/scratch/kocevski/932105/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin200.fits ra=225.257 dec=22.6364 rad=12.0 tmin=291168001.0 tmax=291427201.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.43
user 3.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/932105/ft2_4FGL_J1501.0+2238_daily_bin200.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/932105/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin200.fits evtable="EVENTS" outfile="/scratch/kocevski/932105/ft1_filtered_4FGL_J1501.0+2238_daily_bin200.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932105/ft1_filtered_4FGL_J1501.0+2238_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/932105/ft2_4FGL_J1501.0+2238_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/932105/ltcube_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.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/932105/ft2_4FGL_J1501.0+2238_daily_bin200.fits
.....................!
real 11.90
user 11.58
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932105/ft1_filtered_4FGL_J1501.0+2238_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/932105/ft2_4FGL_J1501.0+2238_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/932105/ltcube_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.fits outfile=/scratch/kocevski/932105/expmap_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.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/932105/ltcube_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.fits
.....................!
real 189.68
user 184.92
sys 4.37

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/932105/ft1_filtered_4FGL_J1501.0+2238_daily_bin200.fits scfile=/scratch/kocevski/932105/ft2_4FGL_J1501.0+2238_daily_bin200.fits outfile=/scratch/kocevski/932105/cmap_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932105/ft1_filtered_4FGL_J1501.0+2238_daily_bin200.fits scfile=/scratch/kocevski/932105/ft2_4FGL_J1501.0+2238_daily_bin200.fits outfile=/scratch/kocevski/932105/cmap_HighResolution_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.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.54
user 0.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/932105/ft1_filtered_4FGL_J1501.0+2238_daily_bin200.fits', '/scratch/kocevski/932105/ft2_4FGL_J1501.0+2238_daily_bin200.fits', expMap='/scratch/kocevski/932105/expmap_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.fits', expCube='/scratch/kocevski/932105/ltcube_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/932105/Model_4FGL_J1501.0+2238_daily_bin200.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/932105/ft1_filtered_4FGL_J1501.0+2238_daily_bin200.fits
Spacecraft file(s): /scratch/kocevski/932105/ft2_4FGL_J1501.0+2238_daily_bin200.fits
Exposure map: /scratch/kocevski/932105/expmap_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.fits
Exposure cube: /scratch/kocevski/932105/ltcube_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/932105/Model_4FGL_J1501.0+2238_daily_bin200.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) = 6594.22318902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7599       1.0000         .10000E-03   10000.    
     2 'norm      '    7.6040       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.899       1.0000         .10000E-03   10000.    
     4 'norm      '    .39719       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.256       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.314       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.267       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.367       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.3043       1.0000         .10000E-03   10000.    
    16 'Prefactor '    119.64       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    95.597       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2766       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.888       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70403       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0156       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=   6594.214     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2353 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7605        8.5498       -.51024E-06   -.21626E-04
   2  norm          7.6039        3.2556        .45952E-08   -.55030E-04
   3  Prefactor     10.897        8.2914        .15772E-05    .96691E-05
   4  norm          .39921        1.9883        .37530E-06   -.33398E-03
   5  norm          .10000E-03    1.9935        .10250E-06** at limit **
   6  Prefactor     20.252        23.635        .22578E-06   -.28623E-04
   7  Prefactor     24.314        25.380       -.44852E-06   -.31536E-04
   8  Prefactor     .10000E-03    4.8943        .34545E-07** at limit **
   9  Prefactor     20.268        19.542        .48526E-07   -.50213E-05
  10  Prefactor     .10000E-03    10.386        .18871E-07** at limit **
  11  Prefactor     12.368        7.9654        .56723E-07   -.10341E-04
  12  norm          .10000E-03    22.529       -.50860E-07** at limit **
  13  Prefactor     .10000E-03    21.506        .13408E-06** at limit **
  14  Prefactor     .10000E-03    2.8025        .96592E-07** at limit **
  15  norm          5.3054        1.4829        .72400E-08   -.17629E-03
  16  Prefactor     119.64        44.499        .16981E-06   -.11522E-04
  17  Prefactor     .10000E-03    6.7154        .41527E-06** at limit **
  18  Prefactor     95.611        46.361        .30012E-07    .47412E-04
  19  Prefactor     1.2736        2.2882        .62102E-06    .87122E-04
  20  Prefactor     27.861        36.933       -.24320E-06   -.91891E-04
  21  Normalizat    .70420        .19420       -.19276E-05   -.42043E-04
  22  Prefactor     1.0156        .13612        .47912E-06   -.15337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.76052
  norm       = 7.60393
  Prefactor  = 10.8973
  norm       = 0.399207
  norm       = 0.0001
  Prefactor  = 20.252
  Prefactor  = 24.3137
  Prefactor  = 0.0001
  Prefactor  = 20.2677
  Prefactor  = 0.0001
  Prefactor  = 12.3676
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.30536
  Prefactor  = 119.64
  Prefactor  = 0.0001
  Prefactor  = 95.6112
  Prefactor  = 1.27363
  Prefactor  = 27.8611
  Normalizat = 0.704204
  Prefactor  = 1.01558
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.214     FROM HESSE     STATUS=OK           346 CALLS     2699 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7605        8.5369        .16735E-03   -1.5228    
   2  norm          7.6039        3.2543        .92225E-04   -1.5156    
   3  Prefactor     10.897        8.3045        .60679E-03   -1.5048    
   4  norm          .39921        3.3218        .20819E-02   -1.5582    
   5  norm          .10000E-03    2.0311        .11197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.252        23.703        .88993E-04   -1.4808    
   7  Prefactor     24.314        25.317        .81236E-04   -1.4721    
   8  Prefactor     .10000E-03    4.9003        .17544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.268        19.531        .88968E-04   -1.4807    
  10  Prefactor     .10000E-03    10.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.368        7.9671        .11391E-03   -1.5004    
  12  norm          .10000E-03    22.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8152        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.3054        1.4831        .49416E-04   -1.5247    
  16  Prefactor     119.64        44.498        .36791E-04   -1.3516    
  17  Prefactor     .10000E-03    6.7480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     95.611        46.260        .20554E-03   -1.3749    
  19  Prefactor     1.2736        2.2741        .15717E-03   -1.5482    
  20  Prefactor     27.861        36.915        .75863E-04   -1.4652    
  21  Normalizat    .70420        .21835        .31987E-03   -1.0373    
  22  Prefactor     1.0156        .15633        .19824E-03   -.92212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59256e-08
Minuit parameter uncertainties:
  1  8.53869
  2  3.25434
  3  8.30536
  4  2.30299
  5  2.33592e-06
  6  23.7141
  7  25.3278
  8  8.07326e-07
  9  19.5376
  10  1.51603e-06
  11  7.96777
  12  3.77e-05
  13  5.38078e-05
  14  2.34081e-06
  15  1.4831
  16  44.51
  17  7.08271e-06
  18  46.2773
  19  2.27427
  20  36.9453
  21  0.218617
  22  0.1564
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.237e+01  7.968e+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.016e+00  1.564e-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:  7.042e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.89
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.78e-05

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) = 6594.21424106
delta logL = 0.000152039926434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6594.21417373
delta logL = 0.000219370876948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.470       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9911       1.0000          .0000       10.000    
     3 'Normalizat'    .70458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0156       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.

 FCN=   6594.214     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      222 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.480        183.73        .28358E-02    .37099E-04
   2  Index         1.9919        3.1226        .17022        .78739E-04
   3  Normalizat    .70456        .98843E-01    .72252E-01    .27125E-04
   4  Prefactor     1.0155        .54269E-01    .42610E-01   -.57552E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4797
  Index      = 1.99194
  Normalizat = 0.704564
  Prefactor  = 1.01548
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.214     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.480        9.8680        .11343E-03   -1.5001    
   2  Index         1.9919        .47362        .58576E-02   -.64552    
   3  Normalizat    .70456        .20769        .31979E-03   -1.0371    
   4  Prefactor     1.0155        .15315        .19825E-03   -.92215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41088e-09
Minuit parameter uncertainties:
  1  9.86933
  2  0.474735
  3  0.207919
  4  0.15322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932105': 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) = 6594.21416873
delta logL = 0.000224372344746

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.248e+01  9.869e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.992e+00  4.747e-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.015e+00  1.532e-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:  7.046e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.89
Ra Dec: 225.257 22.636
Photon Index (Free Index): 1.99 +/- 0.47
Photon Flux (Free Index): 3.97e-08 +/- 3.09e-08
Energy Flux (Free Index): 2.80e-05 +/- 2.75e-05

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/932105/cmap_HighResolution_291168001_291427201_4FGL_J1501.0+2238_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='2.80e-05', photon_flux_error='2.58e-08', dlogl='2.24e-04', energy_flux='2.76e-05', photon_flux2='3.97e-08', job_status='DONE', time_completed='2021-09-10 17:41:16.255977', photon_index_error2='0.47', photon_index2='1.99', ts='4.89', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.75e-05', EG='0.70', time_epoch_completed='1631320876.26', return_code='0', job_id='932105', GAL2='1.02', EG2='0.70', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='3.09e-08', ts2='4.89', photon_index='2.00' WHERE bin_id='200' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:41:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 932105: <4FGL_J1501.0+2238_daily_bin200> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin200> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 17:31:38 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:31:40 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:31:40 2021
Terminated at Fri Sep 10 17:41:17 2021
Results reported at Fri Sep 10 17:41:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin200 225.257 22.6364 291168001 291427201 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 :                                   559.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   576 sec.
    Turnaround time :                            579 sec.

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

