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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1278
RA = 195.418, Dec = 33.6097
tmin = 570585601, tmax = 570844801
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='107131', job_status='RUN', time_executed='2021-09-06 15:10:20.721946', time_epoch_executed='1630966220.72' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107131/ft1_4FGL_J1301.6+3336_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107131/ft1_4FGL_J1301.6+3336_daily_bin1278.fits outfile=/scratch/kocevski/107131/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1278.fits ra=195.418 dec=33.6097 rad=12.0 tmin=570585601.0 tmax=570844801.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.08
user 2.82
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.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/107131/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1278.fits evtable="EVENTS" outfile="/scratch/kocevski/107131/ft1_filtered_4FGL_J1301.6+3336_daily_bin1278.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107131/ft1_filtered_4FGL_J1301.6+3336_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/107131/ltcube_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.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/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.fits
.....................!
real 12.37
user 12.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107131/ft1_filtered_4FGL_J1301.6+3336_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/107131/ltcube_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.fits outfile=/scratch/kocevski/107131/expmap_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.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/107131/ltcube_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.fits
.....................!
real 193.32
user 186.11
sys 4.82

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

Setting source of interest to:
4FGL J1301.6+3336 @ 195.418 33.6097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/107131/ft1_filtered_4FGL_J1301.6+3336_daily_bin1278.fits scfile=/scratch/kocevski/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.fits outfile=/scratch/kocevski/107131/cmap_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.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=195.418 yref=33.6097 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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107131/ft1_filtered_4FGL_J1301.6+3336_daily_bin1278.fits scfile=/scratch/kocevski/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.fits outfile=/scratch/kocevski/107131/cmap_HighResolution_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.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=195.418 yref=33.6097 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.64
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/107131/ft1_filtered_4FGL_J1301.6+3336_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/107131/Model_4FGL_J1301.6+3336_daily_bin1278.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/107131/ft1_filtered_4FGL_J1301.6+3336_daily_bin1278.fits.....................!
real 33.55
user 32.06
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/107131/ft1_filtered_4FGL_J1301.6+3336_daily_bin1278.fits', '/scratch/kocevski/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.fits', expMap='/scratch/kocevski/107131/expmap_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.fits', expCube='/scratch/kocevski/107131/ltcube_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/107131/Model_4FGL_J1301.6+3336_daily_bin1278.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1301.6+3336'

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.837e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/107131/ft1_filtered_4FGL_J1301.6+3336_daily_bin1278.fits
Spacecraft file(s): /scratch/kocevski/107131/ft2_4FGL_J1301.6+3336_daily_bin1278.fits
Exposure map: /scratch/kocevski/107131/expmap_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.fits
Exposure cube: /scratch/kocevski/107131/ltcube_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/107131/Model_4FGL_J1301.6+3336_daily_bin1278.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) = 3276.61975532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    18.190       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19877E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    24.906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    144.21       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7955       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52408E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5877       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.6034       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.597       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    62.598       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.2525       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3486       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .36094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3276.601     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4050 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.08       -.16333E-05** at limit **
   2  norm          18.192        8.2081        .86154E-07    .13252E-03
   3  Prefactor     .10000E-03    7.3577        .13351E-06** at limit **
   4  Prefactor     .10000E-03    4.1091        .70690E-08** at limit **
   5  Prefactor     .10000E-03    1.7659        .83626E-07** at limit **
   6  norm          24.908        11.617       -.40622E-07    .43330E-04
   7  Prefactor     .10000E-03    17.691       -.31996E-06** at limit **
   8  Prefactor     .10000E-03    15.977        .69871E-06** at limit **
   9  Prefactor     144.23        130.63        .12936E-06    .12743E-04
  10  Prefactor     .10000E-03    3.2020        .46689E-07** at limit **
  11  Prefactor     9.8032        11.264       -.10055E-05    .21513E-04
  12  norm          .10000E-03    3.3403       -.35772E-06** at limit **
  13  Prefactor     .10000E-03    325.23       -.93043E-06** at limit **
  14  Prefactor     .10000E-03    14.820        .10746E-06** at limit **
  15  norm          .10000E-03    1.6049        .96688E-07** at limit **
  16  Prefactor     .10000E-03    172.15        .53387E-05** at limit **
  17  norm          2.5900        5.7001       -.23202E-06   -.16316E-04
  18  norm          .10000E-03    5.8807        .63618E-07** at limit **
  19  norm          .10000E-03    2.3466        .13851E-06** at limit **
  20  norm          4.6035        4.8369       -.23880E-08    .52874E-05
  21  norm          .10000E-03    10.712        .52433E-06** at limit **
  22  Prefactor     .10000E-03    2.6463       -.73262E-07** at limit **
  23  Prefactor     .10000E-03    11.747       -.30229E-06** at limit **
  24  Prefactor     .10000E-03    43.276       -.15246E-06** at limit **
  25  Prefactor     11.601        14.940       -.28080E-06    .36396E-04
  26  Prefactor     .10000E-03    8.6730        .53983E-07** at limit **
  27  Prefactor     62.620        99.789       -.92647E-06    .14673E-04
  28  Prefactor     1.2529        3.1882       -.78767E-06   -.22815E-04
  29  Normalizat    1.3485        .25065        .31397E-05    .11956E-04
  30  Prefactor     .36106        .27261       -.50768E-05    .34807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.1921
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 24.9083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 144.228
  Prefactor  = 0.0001
  Prefactor  = 9.80322
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.59002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.60348
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6009
  Prefactor  = 0.0001
  Prefactor  = 62.6199
  Prefactor  = 1.25295
  Normalizat = 1.3485
  Prefactor  = 0.361058
 **********
 **   18 **HESSE 
 **********

 FCN=   3276.601     FROM HESSE     STATUS=OK           582 CALLS     4632 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.192        7.6962        .46954E-03   -1.4855    
   3  Prefactor     .10000E-03    7.3647        .15163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.987        .20844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7712        .74235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.908        11.606        .80268E-04   -1.4709    
   7  Prefactor     .10000E-03    17.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     144.23        130.48        .16776E-03   -1.3300    
  10  Prefactor     .10000E-03    3.2050        .10003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.8032        11.275        .12803E-03   -1.5082    
  12  norm          .10000E-03    3.3776        .10232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    326.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6106        .70795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    170.46        .56264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5900        5.6288        .18968E-03   -1.5386    
  18  norm          .10000E-03    5.8813        .13558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3568        .85128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.6035        4.8118        .12499E-03   -1.5279    
  21  norm          .10000E-03    10.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.6937        .90947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    43.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.601        14.912        .11764E-03   -1.5027    
  26  Prefactor     .10000E-03    8.6797        .16463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     62.620        100.08        .50717E-04   -1.4124    
  28  Prefactor     1.2529        3.1719        .15572E-03   -1.5484    
  29  Normalizat    1.3485        .25230        .19197E-03   -.82130    
  30  Prefactor     .36106        .27130        .40530E-03   -1.1884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22618e-11
Minuit parameter uncertainties:
  1  0.000126702
  2  7.69665
  3  5.56666e-06
  4  0.000344919
  5  1.9015e-06
  6  11.6071
  7  1.06355e-05
  8  1.58663e-05
  9  130.744
  10  1.40797e-06
  11  11.2773
  12  6.94143e-06
  13  0.00135351
  14  1.74805e-05
  15  8.21262e-07
  16  0.000251714
  17  5.62991
  18  5.90308e-07
  19  3.43932e-06
  20  4.81217
  21  1.24855e-05
  22  7.86282e-06
  23  1.15925e-05
  24  8.41008e-06
  25  14.9172
  26  1.10584e-06
  27  100.353
  28  3.17234
  29  0.252534
  30  0.272267
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.748e-05  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  3.611e-01  2.723e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.348e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 9.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107131/likelihoodResults_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.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) = 3276.60124328
delta logL = -0.000320402623856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3276.60092506
delta logL = -2.18568084165e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6015       1.0000          .0000       10.000    
     3 'Normalizat'    1.3485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   3276.601     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      288 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10278E-03    .19994        .56212E-01** at limit **
   2  Index         3.4938        6.1170        .50000        .16059E-04
   3  Normalizat    1.3485        .94473E-03    .19198E-03   -.19987E-04
   4  Prefactor     .36106        .10897E-02    .40530E-03   -.14600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010278
  Index      = 3.49377
  Normalizat = 1.3485
  Prefactor  = 0.361057
 **********
 **   18 **HESSE 
 **********

 FCN=   3276.601     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      319 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10278E-03    55.920        .27632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4938        5.5235        .50000       -.30600    
   3  Normalizat    1.3485        .12634E-01    .76790E-05   -.82130    
   4  Prefactor     .36106        .14573E-01    .16212E-04   -1.1884    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.25104e-08
Minuit parameter uncertainties:
  1  0.0249616
  2  432.472
  3  0.0126344
  4  0.0145728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107131': 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) = 3276.60092481
delta logL = -1.92991183212e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.028e-04  2.496e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.494e+00  4.325e+02  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  3.611e-01  1.457e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.348e+00  1.263e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.418 33.610

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/107131/cmap_HighResolution_570585601_570844801_4FGL_J1301.6+3336_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', job_status='DONE', photon_flux_upper_limit='9.56e-08', time_completed='2021-09-06 15:20:23.358958', job_id='107131', GAL2='0.36', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630966823.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.36', dlogl='-1.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1278' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:20:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 107131: <4FGL_J1301.6+3336_daily_bin1278> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1278> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 15:06:28 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:06:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 15:06:30 2021
Terminated at Mon Sep  6 15:20:24 2021
Results reported at Mon Sep  6 15:20:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1278 195.418 33.6097 570585601 570844801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1301.6+3336 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   593.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             206.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

