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


Performing analysis on: 4FGL_J0502.5+1340_daily_bin1565
RA = 75.6341, Dec = 13.6685
tmin = 644976001, tmax = 645235201
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='929243', job_status='RUN', time_executed='2021-08-21 18:24:35.285594', time_epoch_executed='1629595475.29' WHERE source_name='4FGL J0502.5+1340' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929243

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929243/ft1_4FGL_J0502.5+1340_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929243/ft2_4FGL_J0502.5+1340_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929243/ft1_4FGL_J0502.5+1340_daily_bin1565.fits outfile=/scratch/kocevski/929243/ft1_filteredMKT_4FGL_J0502.5+1340_daily_bin1565.fits ra=75.6341 dec=13.6685 rad=12.0 tmin=644976001.0 tmax=645235201.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 10.99
user 2.76
sys 8.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929243/ft2_4FGL_J0502.5+1340_daily_bin1565.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/929243/ft1_filteredMKT_4FGL_J0502.5+1340_daily_bin1565.fits evtable="EVENTS" outfile="/scratch/kocevski/929243/ft1_filtered_4FGL_J0502.5+1340_daily_bin1565.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 8.48
user 0.31
sys 8.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929243/ft1_filtered_4FGL_J0502.5+1340_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/929243/ft2_4FGL_J0502.5+1340_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/929243/ltcube_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.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/929243/ft2_4FGL_J0502.5+1340_daily_bin1565.fits
.....................!
real 21.35
user 12.02
sys 9.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929243/ft1_filtered_4FGL_J0502.5+1340_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/929243/ft2_4FGL_J0502.5+1340_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/929243/ltcube_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.fits outfile=/scratch/kocevski/929243/expmap_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.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/929243/ltcube_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.fits
.....................!
real 199.88
user 185.65
sys 13.89

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/929243/ft1_filtered_4FGL_J0502.5+1340_daily_bin1565.fits scfile=/scratch/kocevski/929243/ft2_4FGL_J0502.5+1340_daily_bin1565.fits outfile=/scratch/kocevski/929243/cmap_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.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 8.27
user 0.37
sys 7.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929243/ft1_filtered_4FGL_J0502.5+1340_daily_bin1565.fits scfile=/scratch/kocevski/929243/ft2_4FGL_J0502.5+1340_daily_bin1565.fits outfile=/scratch/kocevski/929243/cmap_HighResolution_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.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 8.47
user 0.40
sys 8.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929243/ft1_filtered_4FGL_J0502.5+1340_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/929243/ft2_4FGL_J0502.5+1340_daily_bin1565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929243/Model_4FGL_J0502.5+1340_daily_bin1565.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/929243/ft1_filtered_4FGL_J0502.5+1340_daily_bin1565.fits.................................!
real 29.93
user 19.37
sys 10.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929243/ft1_filtered_4FGL_J0502.5+1340_daily_bin1565.fits', '/scratch/kocevski/929243/ft2_4FGL_J0502.5+1340_daily_bin1565.fits', expMap='/scratch/kocevski/929243/expmap_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.fits', expCube='/scratch/kocevski/929243/ltcube_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929243/Model_4FGL_J0502.5+1340_daily_bin1565.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/929243/ft1_filtered_4FGL_J0502.5+1340_daily_bin1565.fits
Spacecraft file(s): /scratch/kocevski/929243/ft2_4FGL_J0502.5+1340_daily_bin1565.fits
Exposure map: /scratch/kocevski/929243/expmap_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.fits
Exposure cube: /scratch/kocevski/929243/ltcube_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929243/Model_4FGL_J0502.5+1340_daily_bin1565.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) = 426.280401313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    209.90       1.0000         .10000E-03   10000.    
     4 'norm      '    51.216       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36030E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9999.9       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21236E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'norm      '    .42787E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    28.123       1.0000         .10000E-03   10000.    
    13 'Prefactor '    501.21       1.0000         .10000E-03   10000.    
    14 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    866.66       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12268E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10933E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.2514       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    43.714       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    137.10       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12495E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11370E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .47939       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=   425.6282     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     4245 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    101.54       -.61654E-06** at limit **
   2  Prefactor     .10000E-03    96.390        .61200E-04** at limit **
   3  Prefactor     210.08        263.15        .11695E-03    .13196E-04
   4  norm          51.187        30.166        .75467E-05   -.13167E-03
   5  Prefactor     .10000E-03    316.23        .34809E-04** at limit **
   6  Prefactor     .10000E-03    157.30       -.11288E-04** at limit **
   7  norm         10000.0        9652.4        .56616E-02** at limit **
   8  Prefactor     .10000E-03    270.36        .12801E-03** at limit **
   9  Prefactor     .10000E-03    146.54       -.55605E-05** at limit **
  10  Prefactor    10000.0        9916.0        .18913E-02** at limit **
  11  norm          .10009E-03    7.6815        .58191E-05** at limit **
  12  norm          28.131        37.326        .54213E-05   -.29661E-03
  13  Prefactor     501.67        504.31        .20697E-03   -.78800E-06
  14  norm         10000.0        7213.2        .43661E-03** at limit **
  15  Prefactor     880.70        7867.8        .49732E-02    .79997E-05
  16  Prefactor    10000.0        5878.4        .72249E-02** at limit **
  17  norm          .10000E-03    421.42       -.13468E-03** at limit **
  18  Prefactor     .10000E-03    505.29       -.29239E-03** at limit **
  19  norm          .10003E-03    106.68       -.43208E-04** at limit **
  20  norm          7.2319        11.856       -.12480E-04   -.51718E-03
  21  Prefactor     .10000E-03    .41189       -.44305E-07** at limit **
  22  norm          43.729        31.227       -.20506E-05    .10004E-04
  23  Prefactor     .10000E-03    3.9205       -.13228E-06** at limit **
  24  Prefactor     .10003E-03    262.04        .13230E-03** at limit **
  25  Prefactor     137.33        256.86        .19139E-03   -.78322E-04
  26  Prefactor     .10000E-03    110.23       -.56436E-04** at limit **
  27  Prefactor     .10000E-03    22.045       -.10905E-05** at limit **
  28  Normalizat    .10000E-01    .39913        .37982E-05** at limit **
  29  Prefactor     .47911        .17181       -.42298E-04    .60666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 210.081
  norm       = 51.1868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.000100094
  norm       = 28.1309
  Prefactor  = 501.667
  norm       = 10000
  Prefactor  = 880.703
  Prefactor  = 10000
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100032
  norm       = 7.2319
  Prefactor  = 0.0001
  norm       = 43.7289
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 137.334
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 0.479114
 **********
 **   18 **HESSE 
 **********

 FCN=   425.6282     FROM HESSE     STATUS=OK           529 CALLS     4774 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    101.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    96.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     210.08        263.12        .13952E-03   -1.2799    
   4  norm          51.187        30.158        .56039E-04   -1.4276    
   5  Prefactor     .10000E-03    316.22        .21046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    157.52        .21311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        9652.5        .18904E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    270.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    146.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        9916.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10009E-03    27.964        .10848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          28.131        37.002        .75545E-04   -1.4647    
  13  Prefactor     501.67        504.34        .91661E-04   -1.1190    
  14  norm         10000.0        7215.3        .20930E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     880.70        7830.6        .71087E-04   -.96819    
  16  Prefactor    10000.0        5831.1        .19348E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    421.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    505.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10003E-03    106.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.2319        11.894        .82893E-04   -1.5170    
  21  Prefactor     .10000E-03    .41619        .12865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          43.729        31.052        .60636E-04   -1.4384    
  23  Prefactor     .10000E-03    3.9216        .39917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10003E-03    261.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     137.33        257.40        .17199E-03   -1.3359    
  26  Prefactor     .10000E-03    110.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.047        .94684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .40305        .80030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .47911        .16991        .14154E-03   -1.1294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71812e-09
Minuit parameter uncertainties:
  1  2.28715e-05
  2  5.56166e-05
  3  264.62
  4  30.1674
  5  0.000129105
  6  0.000556931
  7  0.0169725
  8  1.93694e-05
  9  1.27825e-05
  10  0.0269218
  11  0.00324859
  12  37.0325
  13  508.934
  14  0.0362113
  15  7047.81
  16  0.704419
  17  0.00266633
  18  0.000395082
  19  0.00369266
  20  11.8983
  21  3.11614e-06
  22  31.0633
  23  2.68877e-05
  24  0.0058069
  25  259.546
  26  0.000833235
  27  0.000549434
  28  7.8167e-06
  29  0.170094
Done.

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

Extracting fit parameters...

4FGL J0502.5+1340
   Spectrum: PowerLaw
218    Prefactor:  1.000e+04  2.692e-02  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:  4.791e-01  1.701e-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:  1.000e-02  7.817e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.50
Ra Dec: 75.634 13.668
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.64e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929243/likelihoodResults_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.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) = 387.201166016
delta logL = 38.4269909116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 387.199025298
delta logL = 38.4291316302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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.

 FCN=   387.1990     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       49 TOTAL
                     EDM=   .39E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .78151E-01    .77011E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   387.1990     FROM HESSE     STATUS=OK             5 CALLS       54 TOTAL
                     EDM=   .39E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .78109E-01    .17021E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87025e-17
Minuit parameter uncertainties:
  1  9.74004e-10
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929243': 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) = 387.199025298
delta logL = 38.4291316302

Extracting fit parameters...

4FGL J0502.5+1340
   Spectrum: PowerLaw
218    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
219        Index:  1.000e+01  9.740e-10  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:  4.793e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 77.36
Ra Dec: 75.634 13.668
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.45e+04 +/- 1.72e-04
Energy Flux (Free Index): 7.21e+06 +/- 1.93e-02

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/929243/cmap_HighResolution_644976001_645235201_4FGL_J0502.5+1340_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.64e+04', comment='SUCCESS', energy_flux2='7.21e+06', dlogl='3.84e+01', photon_flux2='6.45e+04', job_status='DONE', time_completed='2021-08-21 18:32:23.736806', photon_index_error2='0.00', photon_index2='10.00', ts='0.50', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='1.93e-02', EG='0.01', time_epoch_completed='1629595943.74', return_code='0', job_id='929243', GAL2='0.48', EG2='0.01', return_code2='0', photon_flux_error2='1.72e-04', ts2='77.36', photon_index='2.23' WHERE bin_id='1565' AND source_name='4FGL J0502.5+1340' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 18:32:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 929243: <4FGL_J0502.5+1340_daily_bin1565> in cluster <slac> Done

Job <4FGL_J0502.5+1340_daily_bin1565> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 21 18:20:37 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 18:20:39 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:20:39 2021
Terminated at Sat Aug 21 18:32:25 2021
Results reported at Sat Aug 21 18:32:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0502.5+1340_daily_bin1565 75.6341 13.6685 644976001 645235201 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 :                                   577.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             214.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            708 sec.

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

