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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1027
RA = 225.257, Dec = 22.6364
tmin = 505526401, tmax = 505785601
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='936530', job_status='RUN', time_executed='2021-09-10 17:47:02.806786', time_epoch_executed='1631321222.81' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936530

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936530/ft1_4FGL_J1501.0+2238_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936530/ft2_4FGL_J1501.0+2238_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936530/ft1_4FGL_J1501.0+2238_daily_bin1027.fits outfile=/scratch/kocevski/936530/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1027.fits ra=225.257 dec=22.6364 rad=12.0 tmin=505526401.0 tmax=505785601.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.28
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936530/ft2_4FGL_J1501.0+2238_daily_bin1027.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/936530/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1027.fits evtable="EVENTS" outfile="/scratch/kocevski/936530/ft1_filtered_4FGL_J1501.0+2238_daily_bin1027.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936530/ft1_filtered_4FGL_J1501.0+2238_daily_bin1027.fits" evtable="EVENTS" scfile=/scratch/kocevski/936530/ft2_4FGL_J1501.0+2238_daily_bin1027.fits sctable="SC_DATA" outfile=/scratch/kocevski/936530/ltcube_505526401_505785601_4FGL_J1501.0+2238_daily_bin1027.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/936530/ft2_4FGL_J1501.0+2238_daily_bin1027.fits
.....................!
real 12.80
user 12.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936530/ft1_filtered_4FGL_J1501.0+2238_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/936530/ft2_4FGL_J1501.0+2238_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/936530/ltcube_505526401_505785601_4FGL_J1501.0+2238_daily_bin1027.fits outfile=/scratch/kocevski/936530/expmap_505526401_505785601_4FGL_J1501.0+2238_daily_bin1027.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/936530/ltcube_505526401_505785601_4FGL_J1501.0+2238_daily_bin1027.fits
.....................!
real 192.91
user 187.01
sys 5.55

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/936530/ft1_filtered_4FGL_J1501.0+2238_daily_bin1027.fits scfile=/scratch/kocevski/936530/ft2_4FGL_J1501.0+2238_daily_bin1027.fits outfile=/scratch/kocevski/936530/cmap_505526401_505785601_4FGL_J1501.0+2238_daily_bin1027.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936530/ft1_filtered_4FGL_J1501.0+2238_daily_bin1027.fits scfile=/scratch/kocevski/936530/ft2_4FGL_J1501.0+2238_daily_bin1027.fits outfile=/scratch/kocevski/936530/cmap_HighResolution_505526401_505785601_4FGL_J1501.0+2238_daily_bin1027.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2403       1.0000         .10000E-03   10000.    
     2 'norm      '    8.6688       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17282E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.676       1.0000         .10000E-03   10000.    
     5 'norm      '    10.366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5415       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0606       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.243       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7170       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2782       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.061       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.593       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.267       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4129       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .60882       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=   6920.114     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2334 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2394        5.2622        .73934E-06    .73645E-04
   2  norm          8.6689        3.5734        .11255E-06    .68403E-06
   3  Prefactor     .10001E-03    7.1532        .38757E-05** at limit **
   4  norm          10.675        3.6481        .11425E-06    .17474E-03
   5  norm          10.366        5.3699        .70108E-08   -.48418E-05
   6  Prefactor     .10000E-03    9.8841        .62789E-06** at limit **
   7  Prefactor     .10000E-03    16.948       -.93517E-06** at limit **
   8  Prefactor     2.5412        15.379        .79702E-05    .10919E-03
   9  Prefactor     .10000E-03    9.4420       -.53905E-06** at limit **
  10  Prefactor     .10000E-03    23.300        .11300E-05** at limit **
  11  Prefactor     2.0616        6.7860        .40287E-06    .35705E-05
  12  norm          .10000E-03    14.385        .12602E-05** at limit **
  13  Prefactor     21.236        32.524        .16070E-05   -.44694E-05
  14  Prefactor     6.7176        7.8510        .12726E-05    .98296E-04
  15  norm          3.4434        1.5429        .88469E-08   -.11048E-04
  16  Prefactor     5.2783        44.932        .16185E-06   -.64645E-05
  17  Prefactor     11.061        10.689        .40692E-07    .29741E-05
  18  Prefactor     48.593        31.132       -.64559E-07    .57433E-06
  19  Prefactor     .10000E-03    .60593        .14397E-08** at limit **
  20  Prefactor     34.267        32.971        .17629E-06   -.39740E-05
  21  Normalizat    1.4128        .18781       -.43851E-06    .13341E-03
  22  Prefactor     .60880        .12715       -.28227E-06    .75805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23936
  norm       = 8.6689
  Prefactor  = 0.000100007
  norm       = 10.6753
  norm       = 10.366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.54117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.0616
  norm       = 0.0001
  Prefactor  = 21.2357
  Prefactor  = 6.71756
  norm       = 3.44338
  Prefactor  = 5.27833
  Prefactor  = 11.0608
  Prefactor  = 48.5934
  Prefactor  = 0.0001
  Prefactor  = 34.2665
  Normalizat = 1.41284
  Prefactor  = 0.608797
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.114     FROM HESSE     STATUS=OK           348 CALLS     2682 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2394        5.2255        .22501E-03   -1.5348    
   2  norm          8.6689        3.5744        .96968E-04   -1.5119    
   3  Prefactor     .10001E-03    17.135        .33317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.675        3.6403        .88873E-04   -1.5054    
   5  norm          10.366        5.3733        .12445E-03   -1.5064    
   6  Prefactor     .10000E-03    9.8916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5412        17.268        .12808E-02   -1.5389    
   9  Prefactor     .10000E-03    9.4595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0616        6.7775        .28788E-03   -1.5421    
  12  norm          .10000E-03    14.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.236        32.486        .86904E-04   -1.4786    
  14  Prefactor     6.7176        7.9685        .77411E-03   -1.5190    
  15  norm          3.4434        1.5533        .57661E-04   -1.5337    
  16  Prefactor     5.2783        44.863        .17495E-03   -1.5248    
  17  Prefactor     11.061        10.762        .12046E-03   -1.5043    
  18  Prefactor     48.593        31.126        .57525E-04   -1.4313    
  19  Prefactor     .10000E-03    .61610        .63221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.267        32.974        .68457E-04   -1.4537    
  21  Normalizat    1.4128        .21778        .24551E-03   -.80258    
  22  Prefactor     .60880        .14619        .24668E-03   -1.0722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26691e-10
Minuit parameter uncertainties:
  1  5.22618
  2  3.57452
  3  0.000698577
  4  3.64042
  5  5.37359
  6  2.10914e-06
  7  2.82778e-05
  8  13.2536
  9  1.25604e-06
  10  2.10542e-05
  11  6.78001
  12  9.77409e-06
  13  32.5133
  14  7.96973
  15  1.55336
  16  30.8076
  17  10.7638
  18  31.1363
  19  6.11988e-07
  20  32.9913
  21  0.217923
  22  0.146277
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.062e+00  6.780e+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:  6.088e-01  1.463e-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:  1.413e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/936530/likelihoodResults_505526401_505785601_4FGL_J1501.0+2238_daily_bin1027.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) = 6920.11412442
delta logL = 5.45696821064e-12

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6920.11412442
delta logL = 8.18545231596e-12

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0616       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0017       1.0000          .0000       10.000    
     3 'Normalizat'    1.4128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60880       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6920.114     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      252 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0616        7.6159        .14390E-02    .51701E-03
   2  Index         2.0017        1.5771        .40379E-02    .13889E-04
   3  Normalizat    1.4128        .20872        .24551E-03    .69674E-04
   4  Prefactor     .60880        .14508        .24668E-03    .40556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0616
  Index      = 2.00172
  Normalizat = 1.41284
  Prefactor  = 0.608797
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.114     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0616        7.3588        .28780E-03   -1.5421    
   2  Index         2.0017        1.5269        .16152E-03   -.64307    
   3  Normalizat    1.4128        .20879        .49101E-04   -.80258    
   4  Prefactor     .60880        .14509        .98674E-05   -1.0722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90971e-11
Minuit parameter uncertainties:
  1  7.36204
  2  1.56666
  3  0.208914
  4  0.145182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936530': 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) = 6920.11412442
delta logL = 8.18545231596e-12

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.062e+00  7.362e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  1.567e+00  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:  6.088e-01  1.452e-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:  1.413e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/936530/cmap_HighResolution_505526401_505785601_4FGL_J1501.0+2238_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-03', job_status='DONE', photon_flux_upper_limit='6.60e-08', time_completed='2021-09-10 17:59:33.537973', job_id='936530', GAL2='0.61', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631321973.54', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='8.19e-12', ts2='0.11', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1027' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:59:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 936530: <4FGL_J1501.0+2238_daily_bin1027> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1027> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 10 17:46:47 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:46:48 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:46:48 2021
Terminated at Fri Sep 10 17:59:34 2021
Results reported at Fri Sep 10 17:59:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1027 225.257 22.6364 505526401 505785601 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 :                                   636.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

