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


Performing analysis on: 4FGL_J1502.5+5552_daily_bin37
RA = 225.626, Dec = 55.8797
tmin = 248918401, tmax = 249177601
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='939351', job_status='RUN', time_executed='2021-09-10 17:56:31.050858', time_epoch_executed='1631321791.05' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939351

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939351/ft1_4FGL_J1502.5+5552_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939351/ft2_4FGL_J1502.5+5552_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939351/ft1_4FGL_J1502.5+5552_daily_bin37.fits outfile=/scratch/kocevski/939351/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin37.fits ra=225.626 dec=55.8797 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.95
user 1.78
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/939351/ft2_4FGL_J1502.5+5552_daily_bin37.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/939351/ft2_4FGL_J1502.5+5552_daily_bin37.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/939351/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/939351/ft1_filtered_4FGL_J1502.5+5552_daily_bin37.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 2.96
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/939351/ft1_filtered_4FGL_J1502.5+5552_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/939351/ft2_4FGL_J1502.5+5552_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/939351/ltcube_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.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/939351/ft2_4FGL_J1502.5+5552_daily_bin37.fits
.....................!
real 14.23
user 12.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939351/ft1_filtered_4FGL_J1502.5+5552_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/939351/ft2_4FGL_J1502.5+5552_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/939351/ltcube_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.fits outfile=/scratch/kocevski/939351/expmap_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.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/939351/ltcube_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.fits
.....................!
real 190.03
user 185.27
sys 4.39

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

Setting source of interest to:
4FGL J1502.5+5552 @ 225.626 55.8797

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/939351/ft1_filtered_4FGL_J1502.5+5552_daily_bin37.fits scfile=/scratch/kocevski/939351/ft2_4FGL_J1502.5+5552_daily_bin37.fits outfile=/scratch/kocevski/939351/cmap_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.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.626 yref=55.8797 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939351/ft1_filtered_4FGL_J1502.5+5552_daily_bin37.fits scfile=/scratch/kocevski/939351/ft2_4FGL_J1502.5+5552_daily_bin37.fits outfile=/scratch/kocevski/939351/cmap_HighResolution_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.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.626 yref=55.8797 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/939351/ft1_filtered_4FGL_J1502.5+5552_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/939351/ft2_4FGL_J1502.5+5552_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/939351/Model_4FGL_J1502.5+5552_daily_bin37.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/939351/ft1_filtered_4FGL_J1502.5+5552_daily_bin37.fits.....................!
real 38.12
user 36.75
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/939351/ft1_filtered_4FGL_J1502.5+5552_daily_bin37.fits', '/scratch/kocevski/939351/ft2_4FGL_J1502.5+5552_daily_bin37.fits', expMap='/scratch/kocevski/939351/expmap_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.fits', expCube='/scratch/kocevski/939351/ltcube_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/939351/Model_4FGL_J1502.5+5552_daily_bin37.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1502.5+5552'

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  2.174e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
350        Scale:  1.250e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/939351/ft1_filtered_4FGL_J1502.5+5552_daily_bin37.fits
Spacecraft file(s): /scratch/kocevski/939351/ft2_4FGL_J1502.5+5552_daily_bin37.fits
Exposure map: /scratch/kocevski/939351/expmap_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.fits
Exposure cube: /scratch/kocevski/939351/ltcube_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/939351/Model_4FGL_J1502.5+5552_daily_bin37.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) = 4101.79203223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.888       1.0000         .10000E-03   10000.    
     2 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.243       1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.085       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.659       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7730       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.991       1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.271       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1650       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .82561       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20295E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.399       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.606       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.2392       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.350       1.0000         .10000E-03   10000.    
    27 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.906       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11188E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .79998       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .86207       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4101.760     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     5037 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.944        68.321       -.33027E-05   -.16030E-03
   2  norm          .10000E-03    68.717       -.92284E-06** at limit **
   3  norm          13.243        7.4208        .25512E-06   -.40209E-05
   4  Prefactor     58.102        686.23       -.16896E-05   -.24417E-05
   5  Prefactor     .10000E-03    47.600        .13284E-05** at limit **
   6  Prefactor     71.677        56.428       -.75705E-06   -.56860E-04
   7  Prefactor     5.7733        5.6514        .79786E-07    .42035E-04
   8  Prefactor     .10000E-03    16.794       -.27180E-06** at limit **
   9  Prefactor     .10000E-03    2.1985       -.97202E-08** at limit **
  10  Prefactor     .10000E-03    24.890        .90302E-06** at limit **
  11  Prefactor     17.996        31.725        .63544E-06   -.30770E-04
  12  Prefactor     65.323        96.404       -.27268E-05   -.27150E-04
  13  Prefactor     .10000E-03    127.71        .29786E-05** at limit **
  14  Prefactor     1.1159        135.80        .91503E-05    .13824E-03
  15  Prefactor     .10000E-03    54.591        .12528E-05** at limit **
  16  Prefactor     .10000E-03    15.426        .97424E-06** at limit **
  17  norm          .82677        1.3660       -.11237E-05   -.15711E-02
  18  Prefactor     .10066E-03    22.349        .57431E-05** at limit **
  19  Prefactor     .10001E-03    8.0434        .15382E-05** at limit **
  20  Prefactor     18.408        12.879       -.45344E-06   -.77489E-03
  21  norm          .10000E-03    1.2658        .20715E-07** at limit **
  22  Prefactor     45.604        27.451       -.36901E-07   -.34342E-05
  23  Prefactor     .10000E-03    27.318       -.16644E-06** at limit **
  24  norm          6.2398        4.0207       -.18276E-08    .78694E-04
  25  Prefactor     .10000E-03    69.241       -.96987E-06** at limit **
  26  Prefactor     27.350        12.048       -.78736E-07    .69997E-04
  27  norm          .10000E-03    3.2456        .29460E-07** at limit **
  28  Prefactor     21.909        28.736       -.85813E-07    .29172E-05
  29  Prefactor     .10000E-03    32.243       -.77525E-06** at limit **
  30  Prefactor     .10015E-03    11.646       -.33207E-05** at limit **
  31  Normalizat    .79989        .21438        .35810E-06   -.18496E-03
  32  Prefactor     .86210        .21161       -.17322E-06   -.54335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.9443
  norm       = 0.0001
  norm       = 13.2429
  Prefactor  = 58.1017
  Prefactor  = 0.0001
  Prefactor  = 71.6766
  Prefactor  = 5.7733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9958
  Prefactor  = 65.3233
  Prefactor  = 0.000100001
  Prefactor  = 1.11587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.826769
  Prefactor  = 0.000100659
  Prefactor  = 0.000100011
  Prefactor  = 18.4078
  norm       = 0.0001
  Prefactor  = 45.6038
  Prefactor  = 0.0001
  norm       = 6.23975
  Prefactor  = 0.0001
  Prefactor  = 27.3498
  norm       = 0.0001
  Prefactor  = 21.909
  Prefactor  = 0.0001
  Prefactor  = 0.000100148
  Normalizat = 0.799891
  Prefactor  = 0.862095
 **********
 **   18 **HESSE 
 **********

 FCN=   4101.760     FROM HESSE     STATUS=OK           665 CALLS     5702 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.944        68.755        .22751E-03   -1.3940    
   2  norm          .10000E-03    68.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.243        7.4202        .11007E-03   -1.4980    
   4  Prefactor     58.102        687.11        .52639E-04   -1.4182    
   5  Prefactor     .10000E-03    47.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     71.677        56.456        .47424E-04   -1.4013    
   7  Prefactor     5.7733        5.6449        .14397E-03   -1.5227    
   8  Prefactor     .10000E-03    16.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2220        .92186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.996        31.549        .94426E-04   -1.4859    
  12  Prefactor     65.323        96.498        .49675E-04   -1.4090    
  13  Prefactor     .10000E-03    128.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1159        18.673        .14759       -1.5497    
  15  Prefactor     .10000E-03    56.670        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .82677        1.3738        .10703E-02   -1.5526    
  18  Prefactor     .10066E-03    86.074        .40426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    32.633        .33169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.408        11.910        .93373E-04   -1.4850    
  21  norm          .10000E-03    1.2676        .70363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     45.604        27.405        .59370E-04   -1.4356    
  23  Prefactor     .10000E-03    27.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.2398        4.0138        .49290E-03   -1.5208    
  25  Prefactor     .10000E-03    69.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     27.350        12.038        .76604E-04   -1.4662    
  27  norm          .10000E-03    3.2498        .11262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     21.909        28.726        .85580E-04   -1.4771    
  29  Prefactor     .10000E-03    32.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10015E-03    51.403        .34764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .79989        .24457        .24272E-03   -1.0007    
  32  Prefactor     .86210        .24466        .25378E-03   -.97478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2145e-08
Minuit parameter uncertainties:
  1  68.825
  2  0.0002333
  3  7.42076
  4  405.579
  5  0.000267371
  6  56.4983
  7  5.64543
  8  2.13704e-05
  9  4.59159e-06
  10  9.66407e-05
  11  31.5783
  12  96.7302
  13  0.000581923
  14  9.13226
  15  9.53534e-05
  16  0.000119216
  17  1.37387
  18  0.0150856
  19  0.00119903
  20  11.9118
  21  8.10575e-07
  22  27.4121
  23  3.21169e-05
  24  4.01402
  25  0.000265438
  26  12.0394
  27  2.39608e-09
  28  28.7437
  29  0.000126996
  30  0.00551494
  31  0.244905
  32  0.244976
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.007e-04  1.509e-02  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
350        Scale:  1.250e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.621e-01  2.450e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  7.999e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 225.626 55.880
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/939351/likelihoodResults_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.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) = 4101.76030653
delta logL = -5.46756464246e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4101.76030652
delta logL = -5.46625569768e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96335E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4108       1.0000          .0000       10.000    
     3 'Normalizat'    .79988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4101.760     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      218 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    3.6754        .90715E-01** at limit **
   2  Index         2.5412        2.6971        .50000       -.13168E-04
   3  Normalizat    .79989        .31225E-02    .43609E-01    .30481E-03
   4  Prefactor     .86209        .33987E-02    .44520E-01    .27466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100577
  Index      = 2.54119
  Normalizat = 0.799894
  Prefactor  = 0.862094
 **********
 **   18 **HESSE 
 **********

 FCN=   4101.760     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      257 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10058E-03    9.8235        .56209E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5412        3.0124        .50000       -.51411    
   3  Normalizat    .79989        .35688E-02    .24273E-03   -1.0007    
   4  Prefactor     .86209        .38849E-02    .25377E-03   -.97479    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.88108e-12
Minuit parameter uncertainties:
  1  0.00476175
  2  3.32679
  3  0.00356875
  4  0.00388488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939351': 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) = 4101.76025146
delta logL = 3.95505594497e-07

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.006e-04  4.762e-03  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.541e+00  3.327e+00  0.000e+00  1.000e+01 (-1.000e+00)
350        Scale:  1.250e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.621e-01  3.885e-03  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  7.999e-01  3.569e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.626 55.880

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/939351/cmap_HighResolution_248918401_249177601_4FGL_J1502.5+5552_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-10 18:10:18.248259', job_id='939351', GAL2='0.86', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1631322618.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='37' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:10:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 939351: <4FGL_J1502.5+5552_daily_bin37> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin37> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 17:56:17 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:56:18 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:56:18 2021
Terminated at Fri Sep 10 18:10:19 2021
Results reported at Fri Sep 10 18:10:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin37 225.626 55.8797 248918401 249177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1502.5+5552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   821.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

