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


Performing analysis on: 4FGL_J0502.5+1340_daily_bin1318
RA = 75.6341, Dec = 13.6685
tmin = 580953601, tmax = 581212801
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='927718', job_status='RUN', time_executed='2021-08-21 18:18:52.500783', time_epoch_executed='1629595132.5' WHERE source_name='4FGL J0502.5+1340' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927718/ft1_4FGL_J0502.5+1340_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927718/ft1_4FGL_J0502.5+1340_daily_bin1318.fits outfile=/scratch/kocevski/927718/ft1_filteredMKT_4FGL_J0502.5+1340_daily_bin1318.fits ra=75.6341 dec=13.6685 rad=12.0 tmin=580953601.0 tmax=581212801.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 2.96
user 2.77
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.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/927718/ft1_filteredMKT_4FGL_J0502.5+1340_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/927718/ft1_filtered_4FGL_J0502.5+1340_daily_bin1318.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927718/ft1_filtered_4FGL_J0502.5+1340_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/927718/ltcube_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.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/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.fits
.....................!
real 12.07
user 11.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927718/ft1_filtered_4FGL_J0502.5+1340_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/927718/ltcube_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.fits outfile=/scratch/kocevski/927718/expmap_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.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/927718/ltcube_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.fits
.....................!
real 190.37
user 185.78
sys 4.24

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
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 161 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0502.5+1340 @ 75.6341 13.6685

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/927718/ft1_filtered_4FGL_J0502.5+1340_daily_bin1318.fits scfile=/scratch/kocevski/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.fits outfile=/scratch/kocevski/927718/cmap_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.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=75.6341 yref=13.6685 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927718/ft1_filtered_4FGL_J0502.5+1340_daily_bin1318.fits scfile=/scratch/kocevski/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.fits outfile=/scratch/kocevski/927718/cmap_HighResolution_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.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=75.6341 yref=13.6685 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/927718/ft1_filtered_4FGL_J0502.5+1340_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/927718/Model_4FGL_J0502.5+1340_daily_bin1318.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
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/927718/ft1_filtered_4FGL_J0502.5+1340_daily_bin1318.fits.....................!
real 75.96
user 74.59
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/927718/ft1_filtered_4FGL_J0502.5+1340_daily_bin1318.fits', '/scratch/kocevski/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.fits', expMap='/scratch/kocevski/927718/expmap_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.fits', expCube='/scratch/kocevski/927718/ltcube_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/927718/Model_4FGL_J0502.5+1340_daily_bin1318.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0502.5+1340'

4FGL J0502.5+1340
   Spectrum: PowerLaw
218    Prefactor:  1.139e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
219        Index:  2.232e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
220        Scale:  1.884e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/927718/ft1_filtered_4FGL_J0502.5+1340_daily_bin1318.fits
Spacecraft file(s): /scratch/kocevski/927718/ft2_4FGL_J0502.5+1340_daily_bin1318.fits
Exposure map: /scratch/kocevski/927718/expmap_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.fits
Exposure cube: /scratch/kocevski/927718/ltcube_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/927718/Model_4FGL_J0502.5+1340_daily_bin1318.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) = 2830.86699706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6060.9       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22311E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12852E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    9.9288       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.586       1.0000         .10000E-03   10000.    
    11 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    28.747       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2659       1.0000         .10000E-03   10000.    
    14 'norm      '    .16689E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2823       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9134       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .71689       1.0000         .10000E-03   10000.    
    22 'norm      '    24.366       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    88.198       1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.264       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.0445       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89393       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0599       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2828.271     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3818 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    181.28       -.58060E-06** at limit **
   2  Prefactor    10000.0        7839.6        .11993E-04** at limit **
   3  Prefactor     6055.3        4079.1       -.12753E-05   -.60460E-05
   4  norm          .10000E-03    10.192        .63091E-06** at limit **
   5  Prefactor     .10000E-03    233.53        .14235E-05** at limit **
   6  Prefactor     .10000E-03    135.38        .61708E-05** at limit **
   7  norm          9.9766        25.445        .16472E-05    .81594E-06
   8  Prefactor     .10000E-03    114.79        .15332E-05** at limit **
   9  Prefactor     .10000E-03    81.343        .55206E-06** at limit **
  10  Prefactor     22.717        55.742        .53361E-07   -.41862E-04
  11  norm          .10000E-03    .63722        .17820E-06** at limit **
  12  norm          28.737        13.126        .46115E-06   -.10778E-03
  13  Prefactor     2.2596        12.821        .18459E-05    .31944E-04
  14  norm          .10000E-03    34.324       -.91943E-06** at limit **
  15  Prefactor     .10000E-03    12.646       -.82973E-06** at limit **
  16  Prefactor     .10000E-03    146.28       -.59245E-06** at limit **
  17  norm          3.2894        7.6804        .80906E-05    .14293E-04
  18  Prefactor     1.4837        1589.2       -.37959E-04    .12376E-04
  19  norm          .10000E-03    13.364        .73469E-06** at limit **
  20  norm          .10000E-03    1.3314        .12052E-05** at limit **
  21  Prefactor     .71731        .34908        .17016E-06    .68607E-02
  22  norm          24.364        12.293       -.17419E-05    .67224E-03
  23  Prefactor     .10000E-03    1.0284       -.98101E-06** at limit **
  24  Prefactor     88.514        155.18       -.14145E-04   -.49919E-05
  25  Prefactor     23.937        321.57        .32273E-04   -.20486E-04
  26  Prefactor     .10000E-03    23.950        .49889E-06** at limit **
  27  Prefactor     5.0573        13.094        .10437E-05    .16721E-03
  28  Normalizat    .89400        .94413       -.26474E-04   -.70041E-05
  29  Prefactor     1.0599        .17717        .18714E-05    .16990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 6055.35
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 9.97662
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 22.717
  norm       = 0.0001
  norm       = 28.7373
  Prefactor  = 2.25957
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.28938
  Prefactor  = 1.48366
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.717312
  norm       = 24.3636
  Prefactor  = 0.000100001
  Prefactor  = 88.5135
  Prefactor  = 23.9372
  Prefactor  = 0.0001
  Prefactor  = 5.05728
  Normalizat = 0.894004
  Prefactor  = 1.05985
 **********
 **   18 **HESSE 
 **********

 FCN=   2828.271     FROM HESSE     STATUS=OK           541 CALLS     4359 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    181.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        7836.3        .18226E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6055.3        4069.3        .40932E-04    .21267    
   4  norm          .10000E-03    10.251        .16585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    233.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    138.36        .20588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.9766        25.342        .12717E-03   -1.5076    
   8  Prefactor     .10000E-03    114.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    81.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.717        55.714        .84283E-04   -1.4754    
  11  norm          .10000E-03    .64215        .41400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          28.737        13.066        .74723E-04   -1.4635    
  13  Prefactor     2.2596        12.642        .27286E-03   -1.5407    
  14  norm          .10000E-03    34.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    146.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2894        7.6430        .10625E-02   -1.5345    
  18  Prefactor     1.4837        1725.8        .30050E-02   -1.5464    
  19  norm          .10000E-03    13.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.3539        .60031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .71731        .35931        .14055E-04   -1.5539    
  22  norm          24.364        12.867        .81150E-04   -1.4720    
  23  Prefactor     .10000E-03    1.3028        .96823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     88.514        151.83        .42782E-04   -1.3824    
  25  Prefactor     23.937        313.29        .81321E-04   -1.4729    
  26  Prefactor     .10000E-03    23.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.0573        13.008        .17903E-03   -1.5258    
  28  Normalizat    .89400        .90580        .94668E-03   -.96671    
  29  Prefactor     1.0599        .18162        .16805E-03   -.90760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50981e-09
Minuit parameter uncertainties:
  1  0.000987121
  2  0.120449
  3  4808.22
  4  2.97862e-05
  5  0.00161624
  6  0.000831211
  7  25.3694
  8  0.00085107
  9  4.89795e-05
  10  55.8424
  11  5.24965e-06
  12  13.0673
  13  10.6927
  14  7.12717e-05
  15  2.96066e-05
  16  0.000813429
  17  7.64529
  18  104.373
  19  1.79058e-06
  20  1.1752e-05
  21  0.359313
  22  12.8681
  23  7.14276e-05
  24  152.503
  25  174.328
  26  3.03503e-06
  27  13.0155
  28  0.921934
  29  0.181721
Done.

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

Extracting fit parameters...

4FGL J0502.5+1340
   Spectrum: PowerLaw
218    Prefactor:  2.272e+01  5.584e+01  1.000e-04  1.000e+04 ( 1.000e-13)
219        Index:  2.232e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
220        Scale:  1.884e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.060e+00  1.817e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  8.940e-01  9.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 75.634 13.668
Photon Flux Upper Limit: 9.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927718/likelihoodResults_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.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) = 2828.25915808
delta logL = 0.0120589564908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2828.25301498
delta logL = 0.0182020575494

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2828.253     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      278 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.626        74.332        .98244E-04    .13408E-03
   2  Index         2.5391        2.0806        .88829E-02    .68901E-04
   3  Normalizat    .87191        .87460        .95683E-03    .88530E-04
   4  Prefactor     1.0615        .17163        .16791E-03    .63477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6261
  Index      = 2.53912
  Normalizat = 0.871909
  Prefactor  = 1.06147
 **********
 **   18 **HESSE 
 **********

 FCN=   2828.253     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.626        55.147        .19649E-04   -1.4892    
   2  Index         2.5391        1.6589        .35531E-03   -.51459    
   3  Normalizat    .87191        .86983        .38273E-04   -.97454    
   4  Prefactor     1.0615        .17082        .33581E-04   -.90708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53696e-10
Minuit parameter uncertainties:
  1  55.317
  2  1.70191
  3  0.884411
  4  0.170906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927718': 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) = 2828.25301385
delta logL = 0.0182031924887

Extracting fit parameters...

4FGL J0502.5+1340
   Spectrum: PowerLaw
218    Prefactor:  1.663e+01  5.532e+01  1.000e-04  1.000e+04 ( 1.000e-13)
219        Index:  2.539e+00  1.702e+00  0.000e+00  1.000e+01 (-1.000e+00)
220        Scale:  1.884e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.061e+00  1.709e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  8.719e-01  8.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 75.634 13.668

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/927718/cmap_HighResolution_580953601_581212801_4FGL_J0502.5+1340_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-02', job_status='DONE', photon_flux_upper_limit='9.13e-07', time_completed='2021-08-21 18:29:17.136050', job_id='927718', GAL2='1.06', fit_tolerance='1e-08', EG2='0.87', EG='0.89', time_epoch_completed='1629595757.14', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.82e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1318' AND source_name='4FGL J0502.5+1340' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 18:29:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 927718: <4FGL_J0502.5+1340_daily_bin1318> in cluster <slac> Done

Job <4FGL_J0502.5+1340_daily_bin1318> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 18:15:27 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 18:15:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 18:15:28 2021
Terminated at Sat Aug 21 18:29:17 2021
Results reported at Sat Aug 21 18:29:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0502.5+1340_daily_bin1318 75.6341 13.6685 580953601 581212801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0502.5+1340 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   563.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            830 sec.

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

