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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1024
RA = 195.418, Dec = 33.6097
tmin = 504748801, tmax = 505008001
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='106690', job_status='RUN', time_executed='2021-09-06 15:09:31.827233', time_epoch_executed='1630966171.83' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106690/ft1_4FGL_J1301.6+3336_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106690/ft2_4FGL_J1301.6+3336_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106690/ft1_4FGL_J1301.6+3336_daily_bin1024.fits outfile=/scratch/kocevski/106690/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1024.fits ra=195.418 dec=33.6097 rad=12.0 tmin=504748801.0 tmax=505008001.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 8.30
user 7.93
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/106690/ft2_4FGL_J1301.6+3336_daily_bin1024.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/106690/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1024.fits evtable="EVENTS" outfile="/scratch/kocevski/106690/ft1_filtered_4FGL_J1301.6+3336_daily_bin1024.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106690/ft1_filtered_4FGL_J1301.6+3336_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/106690/ft2_4FGL_J1301.6+3336_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/106690/ltcube_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.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/106690/ft2_4FGL_J1301.6+3336_daily_bin1024.fits
.....................!
real 11.72
user 11.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106690/ft1_filtered_4FGL_J1301.6+3336_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/106690/ft2_4FGL_J1301.6+3336_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/106690/ltcube_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.fits outfile=/scratch/kocevski/106690/expmap_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.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/106690/ltcube_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.fits
.....................!
real 190.47
user 184.90
sys 4.69

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/106690/ft1_filtered_4FGL_J1301.6+3336_daily_bin1024.fits scfile=/scratch/kocevski/106690/ft2_4FGL_J1301.6+3336_daily_bin1024.fits outfile=/scratch/kocevski/106690/cmap_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106690/ft1_filtered_4FGL_J1301.6+3336_daily_bin1024.fits scfile=/scratch/kocevski/106690/ft2_4FGL_J1301.6+3336_daily_bin1024.fits outfile=/scratch/kocevski/106690/cmap_HighResolution_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.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.55
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/106690/ft1_filtered_4FGL_J1301.6+3336_daily_bin1024.fits', '/scratch/kocevski/106690/ft2_4FGL_J1301.6+3336_daily_bin1024.fits', expMap='/scratch/kocevski/106690/expmap_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.fits', expCube='/scratch/kocevski/106690/ltcube_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/106690/Model_4FGL_J1301.6+3336_daily_bin1024.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/106690/ft1_filtered_4FGL_J1301.6+3336_daily_bin1024.fits
Spacecraft file(s): /scratch/kocevski/106690/ft2_4FGL_J1301.6+3336_daily_bin1024.fits
Exposure map: /scratch/kocevski/106690/expmap_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.fits
Exposure cube: /scratch/kocevski/106690/ltcube_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/106690/Model_4FGL_J1301.6+3336_daily_bin1024.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) = 4440.8796184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.351       1.0000         .10000E-03   10000.    
     2 'norm      '    13.221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1908       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17506E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.8325       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0534       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4657       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8338       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10620E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.599       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1680       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    46.304       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6062       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    59.029       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.143       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1080       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73271       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=   4440.871     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3893 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.370        59.768        .51604E-05    .67680E-04
   2  norm          13.221        5.0210       -.72468E-07    .49967E-03
   3  Prefactor     .10000E-03    6.6685        .38209E-06** at limit **
   4  Prefactor     2.1905        2.8147        .55092E-07    .24563E-03
   5  Prefactor     .10028E-03    1.5569       -.74439E-06** at limit **
   6  norm          4.8329        4.1370        .27517E-06    .18135E-03
   7  Prefactor     7.0555        11.263       -.98481E-07    .15313E-03
   8  Prefactor     5.4572        14.870        .34754E-05    .19360E-03
   9  Prefactor     .10000E-03    32.678        .50145E-05** at limit **
  10  Prefactor     1.8364        20.121        .67970E-06   -.33712E-04
  11  Prefactor     .10025E-03    10.752       -.73374E-05** at limit **
  12  norm          1.3491        6.8103        .17511E-05   -.26030E-04
  13  Prefactor     .10000E-03    22.829       -.11163E-05** at limit **
  14  Prefactor     45.601        36.588        .90858E-06    .26251E-03
  15  norm          .10000E-03    1.8649        .13380E-09** at limit **
  16  Prefactor     5.1165        24.380        .96237E-05    .33605E-03
  17  norm          .10000E-03    2.1233       -.38368E-06** at limit **
  18  norm          .10000E-03    11.544        .99821E-06** at limit **
  19  norm          .10000E-03    1.4109       -.23172E-07** at limit **
  20  norm          .10000E-03    1.7721       -.35879E-08** at limit **
  21  norm          46.320        29.794        .20276E-05    .10018E-03
  22  Prefactor     5.6057        4.5245       -.24537E-06    .43329E-03
  23  Prefactor     .10000E-03    8.4349       -.26961E-06** at limit **
  24  Prefactor     59.079        73.525        .10627E-04    .13772E-03
  25  Prefactor     .10000E-03    8.5835       -.14328E-06** at limit **
  26  Prefactor     26.154        27.149        .14052E-05    .57325E-04
  27  Prefactor     .10000E-03    23.455       -.40383E-06** at limit **
  28  Prefactor     .10000E-03    4.2114       -.46339E-07** at limit **
  29  Normalizat    1.1081        .20193        .46590E-06    .61188E-03
  30  Prefactor     .73249        .23674       -.84385E-06    .40384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3704
  norm       = 13.2214
  Prefactor  = 0.0001
  Prefactor  = 2.19049
  Prefactor  = 0.000100278
  norm       = 4.83289
  Prefactor  = 7.05546
  Prefactor  = 5.45721
  Prefactor  = 0.0001
  Prefactor  = 1.83638
  Prefactor  = 0.000100251
  norm       = 1.34909
  Prefactor  = 0.0001
  Prefactor  = 45.6013
  norm       = 0.0001
  Prefactor  = 5.11649
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 46.3196
  Prefactor  = 5.60573
  Prefactor  = 0.0001
  Prefactor  = 59.0788
  Prefactor  = 0.0001
  Prefactor  = 26.1537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10811
  Prefactor  = 0.732485
 **********
 **   18 **HESSE 
 **********

 FCN=   4440.871     FROM HESSE     STATUS=OK           580 CALLS     4473 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.370        59.771        .68373E-04   -1.4535    
   2  norm          13.221        4.9885        .80852E-04   -1.4981    
   3  Prefactor     .10000E-03    6.7863        .16791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1905        2.7958        .11244E-03   -1.5412    
   5  Prefactor     .10028E-03    21.415        .15424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.8329        4.1323        .12195E-03   -1.5268    
   7  Prefactor     7.0555        11.091        .15105E-03   -1.5177    
   8  Prefactor     5.4572        14.877        .17187E-03   -1.5241    
   9  Prefactor     .10000E-03    32.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8364        20.170        .30815E-03   -1.5437    
  11  Prefactor     .10025E-03    34.087        .36643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3491        6.4461        .29507E-03   -1.5476    
  13  Prefactor     .10000E-03    22.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.601        35.827        .59375E-04   -1.4356    
  15  norm          .10000E-03    1.8712        .88811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1165        26.049        .17684E-03   -1.5256    
  17  norm          .10000E-03    2.1289        .94868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4183        .77256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7728        .86634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          46.320        29.792        .58923E-04   -1.4346    
  22  Prefactor     5.6057        4.5189        .11470E-03   -1.5234    
  23  Prefactor     .10000E-03    8.4572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     59.079        73.627        .26110E-03   -1.4169    
  25  Prefactor     .10000E-03    8.5950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     26.154        27.136        .78349E-04   -1.4685    
  27  Prefactor     .10000E-03    23.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.2656        .13348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1081        .23855        .21981E-03   -.89492    
  30  Prefactor     .73249        .27696        .31374E-03   -1.0227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07022e-08
Minuit parameter uncertainties:
  1  59.8754
  2  4.98866
  3  3.08443e-05
  4  2.79592
  5  0.00487924
  6  4.13256
  7  11.0944
  8  14.8871
  9  0.000225243
  10  12.1768
  11  0.00585348
  12  5.89875
  13  4.46816e-05
  14  35.8441
  15  5.24828e-06
  16  23.1049
  17  5.28302e-06
  18  3.35808e-05
  19  8.93985e-06
  20  3.22298e-06
  21  29.8014
  22  4.51921
  23  6.55627e-05
  24  73.7411
  25  2.78323e-05
  26  27.1492
  27  3.22619e-05
  28  1.1822e-05
  29  0.238786
  30  0.277484
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.560e+01  3.584e+01  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:  7.325e-01  2.775e-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.108e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.80
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.07e-08 +/- 5.55e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.47e-05

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) = 4440.83504206
delta logL = 0.0360219393506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4440.8330311
delta logL = 0.0380328997198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.118       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8071       1.0000          .0000       10.000    
     3 'Normalizat'    1.0907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74678       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=   4440.833     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      288 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.115        40.461        .64086E-04    .25269E-03
   2  Index         2.8069        .84439        .61781E-02    .85202E-04
   3  Normalizat    1.0908        .24057        .22124E-03   -.13336E-03
   4  Prefactor     .74676        .27653        .31098E-03   -.13954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1153
  Index      = 2.80689
  Normalizat = 1.09075
  Prefactor  = 0.746761
 **********
 **   18 **HESSE 
 **********

 FCN=   4440.833     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.115        37.373        .12817E-04   -1.4456    
   2  Index         2.8069        .77892        .24712E-03   -.45406    
   3  Normalizat    1.0908        .23987        .44248E-04   -.90049    
   4  Prefactor     .74676        .27606        .12439E-04   -1.0172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79164e-10
Minuit parameter uncertainties:
  1  37.3955
  2  0.78287
  3  0.240106
  4  0.276565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106690': 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) = 4440.83303098
delta logL = 0.0380330215548

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  3.912e+01  3.740e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.807e+00  7.829e-01  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:  7.468e-01  2.766e-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.091e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.89
Ra Dec: 195.418 33.610
Photon Index (Free Index): 2.81 +/- 0.78
Photon Flux (Free Index): 8.42e-08 +/- 7.22e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.25e-05

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/106690/cmap_HighResolution_504748801_505008001_4FGL_J1301.6+3336_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.07e-08', energy_flux2='1.88e-05', photon_flux_error='5.55e-08', dlogl='3.80e-02', energy_flux='1.87e-05', photon_flux2='8.42e-08', job_status='DONE', time_completed='2021-09-06 15:22:11.059236', photon_index_error2='0.78', photon_index2='2.81', ts='4.80', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='1.11', time_epoch_completed='1630966931.06', return_code='0', job_id='106690', GAL2='0.75', EG2='1.09', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='7.22e-08', ts2='4.89', photon_index='2.59' WHERE bin_id='1024' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:22:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 106690: <4FGL_J1301.6+3336_daily_bin1024> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1024> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 15:05:55 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:05:57 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:05:57 2021
Terminated at Mon Sep  6 15:22:11 2021
Results reported at Mon Sep  6 15:22:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1024 195.418 33.6097 504748801 505008001 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 :                                   626.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             215.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

