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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin86
RA = 195.418, Dec = 33.6097
tmin = 261619201, tmax = 261878401
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='99775', job_status='RUN', time_executed='2021-09-06 14:46:36.140241', time_epoch_executed='1630964796.14' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99775/ft1_4FGL_J1301.6+3336_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99775/ft2_4FGL_J1301.6+3336_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99775/ft1_4FGL_J1301.6+3336_daily_bin86.fits outfile=/scratch/kocevski/99775/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin86.fits ra=195.418 dec=33.6097 rad=12.0 tmin=261619201.0 tmax=261878401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.42
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99775/ft2_4FGL_J1301.6+3336_daily_bin86.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/99775/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/99775/ft1_filtered_4FGL_J1301.6+3336_daily_bin86.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99775/ft1_filtered_4FGL_J1301.6+3336_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/99775/ft2_4FGL_J1301.6+3336_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/99775/ltcube_261619201_261878401_4FGL_J1301.6+3336_daily_bin86.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/99775/ft2_4FGL_J1301.6+3336_daily_bin86.fits
.....................!
real 12.68
user 12.23
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99775/ft1_filtered_4FGL_J1301.6+3336_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/99775/ft2_4FGL_J1301.6+3336_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/99775/ltcube_261619201_261878401_4FGL_J1301.6+3336_daily_bin86.fits outfile=/scratch/kocevski/99775/expmap_261619201_261878401_4FGL_J1301.6+3336_daily_bin86.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/99775/ltcube_261619201_261878401_4FGL_J1301.6+3336_daily_bin86.fits
.....................!
real 191.51
user 184.98
sys 4.01

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/99775/ft1_filtered_4FGL_J1301.6+3336_daily_bin86.fits scfile=/scratch/kocevski/99775/ft2_4FGL_J1301.6+3336_daily_bin86.fits outfile=/scratch/kocevski/99775/cmap_261619201_261878401_4FGL_J1301.6+3336_daily_bin86.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99775/ft1_filtered_4FGL_J1301.6+3336_daily_bin86.fits scfile=/scratch/kocevski/99775/ft2_4FGL_J1301.6+3336_daily_bin86.fits outfile=/scratch/kocevski/99775/cmap_HighResolution_261619201_261878401_4FGL_J1301.6+3336_daily_bin86.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.650       1.0000         .10000E-03   10000.    
     2 'norm      '    .97912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8414       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .78242       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7709       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8538       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.614       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.458       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6016       1.0000         .10000E-03   10000.    
    12 'norm      '    .49715E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.265       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.348       1.0000         .10000E-03   10000.    
    15 'norm      '    13.491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    23.682       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.1672       1.0000         .10000E-03   10000.    
    20 'norm      '    .37882E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.8833       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.495       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.251       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.360       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .53242       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1333       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69374       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=   7257.227     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3952 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.636        35.997        .25806E-06   -.90511E-04
   2  norm          .97914        1.0772       -.21531E-07   -.27016E-04
   3  Prefactor     3.8419        7.3997        .32215E-05   -.19380E-03
   4  Prefactor     .78241        1.1174        .19762E-07   -.37075E-04
   5  Prefactor     4.7710        2.0081        .13670E-07   -.60168E-04
   6  norm          1.8543        3.4821        .29059E-06   -.22792E-04
   7  Prefactor     15.611        8.8207       -.14605E-07   -.21296E-04
   8  Prefactor     .10000E-03    5.2667        .24190E-07** at limit **
   9  Prefactor     .10000E-03    46.565        .23139E-06** at limit **
  10  Prefactor     14.458        6.9399        .35231E-07   -.81795E-05
  11  Prefactor     5.6017        4.3554        .11543E-06   -.15254E-03
  12  norm          .10000E-03    2.5095        .12707E-05** at limit **
  13  Prefactor     34.269        54.083        .50018E-06    .96769E-05
  14  Prefactor     22.291        25.634       -.19572E-05   -.50515E-03
  15  norm          13.491        4.5159       -.11475E-07   -.28648E-04
  16  Prefactor     .10000E-03    5.4298       -.13412E-06** at limit **
  17  norm          23.684        7.0771        .13087E-06   -.48595E-03
  18  norm          .10000E-03    9.8200       -.47780E-06** at limit **
  19  norm          7.1662        4.4104       -.21659E-06   -.25608E-02
  20  norm          .10000E-03    5.6201        .13076E-05** at limit **
  21  norm          8.8819        17.698        .99510E-06   -.21527E-04
  22  Prefactor     .10000E-03    1.4082       -.64623E-07** at limit **
  23  Prefactor     .10000E-03    18.136        .41809E-07** at limit **
  24  Prefactor     25.471        34.946        .15090E-05   -.96091E-04
  25  Prefactor     .10000E-03    9.5835        .48841E-06** at limit **
  26  Prefactor     15.254        16.290        .25186E-06   -.60949E-04
  27  Prefactor     23.325        42.907        .38704E-05   -.11941E-03
  28  Prefactor     .53073        2.1787        .80885E-06   -.40433E-03
  29  Normalizat    1.1331        .16527       -.64386E-06   -.52506E-03
  30  Prefactor     .69388        .19345       -.66603E-06   -.32323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.6357
  norm       = 0.979142
  Prefactor  = 3.84195
  Prefactor  = 0.782407
  Prefactor  = 4.77098
  norm       = 1.85433
  Prefactor  = 15.611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4583
  Prefactor  = 5.60169
  norm       = 0.000100001
  Prefactor  = 34.2686
  Prefactor  = 22.2905
  norm       = 13.4905
  Prefactor  = 0.0001
  norm       = 23.6836
  norm       = 0.0001
  norm       = 7.16624
  norm       = 0.0001
  norm       = 8.88193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4711
  Prefactor  = 0.0001
  Prefactor  = 15.2543
  Prefactor  = 23.3252
  Prefactor  = 0.530731
  Normalizat = 1.13314
  Prefactor  = 0.69388
 **********
 **   18 **HESSE 
 **********

 FCN=   7257.227     FROM HESSE     STATUS=OK           590 CALLS     4542 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.636        35.882        .50696E-04   -1.4123    
   2  norm          .97914        1.0819        .88888E-04   -1.5510    
   3  Prefactor     3.8419        7.4249        .10296E-02   -1.5316    
   4  Prefactor     .78241        1.1159        .49497E-04   -1.5531    
   5  Prefactor     4.7710        2.0059        .74814E-04   -1.5271    
   6  norm          1.8543        3.4636        .20929E-03   -1.5436    
   7  Prefactor     15.611        8.8180        .10136E-03   -1.4918    
   8  Prefactor     .10000E-03    5.2693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.458        6.9396        .10534E-03   -1.4947    
  11  Prefactor     5.6017        4.3525        .15171E-03   -1.5235    
  12  norm          .10000E-03    8.6662        .23460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.269        54.130        .68459E-04   -1.4537    
  14  Prefactor     22.291        24.356        .84729E-04   -1.4763    
  15  norm          13.491        4.5150        .99351E-04   -1.4973    
  16  Prefactor     .10000E-03    5.4354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          23.684        7.0726        .82311E-04   -1.4734    
  18  norm          .10000E-03    9.8343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.1662        3.9574        .58186E-03   -1.5173    
  20  norm          .10000E-03    13.621        .33846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.8819        17.691        .67240E-03   -1.5112    
  22  Prefactor     .10000E-03    1.4258        .98521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.471        34.726        .79337E-04   -1.4698    
  25  Prefactor     .10000E-03    9.7530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.254        16.282        .10256E-03   -1.4927    
  27  Prefactor     23.325        41.724        .82876E-04   -1.4742    
  28  Prefactor     .53073        6.5788        .22998E-02   -1.5562    
  29  Normalizat    1.1331        .18968        .22492E-03   -.88695    
  30  Prefactor     .69388        .21982        .33862E-03   -1.0377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03801e-09
Minuit parameter uncertainties:
  1  35.8942
  2  1.08188
  3  7.42665
  4  1.11591
  5  2.00588
  6  3.46398
  7  8.81871
  8  1.32198e-06
  9  1.04367e-05
  10  6.93995
  11  4.3527
  12  0.000223562
  13  54.2078
  14  24.3666
  15  4.51514
  16  5.71644e-06
  17  7.07286
  18  4.64288e-05
  19  3.95756
  20  0.000119009
  21  17.7013
  22  3.6262e-08
  23  3.1179e-06
  24  34.7537
  25  5.06451e-05
  26  16.2867
  27  41.7764
  28  3.7373
  29  0.189793
  30  0.220096
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.229e+01  2.437e+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:  6.939e-01  2.201e-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.133e+00  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 9.12e-06 +/- 9.97e-06

TS (Fixed Index): 1.13
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99775/likelihoodResults_261619201_261878401_4FGL_J1301.6+3336_daily_bin86.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) = 7257.21647772
delta logL = 0.0103890194432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7257.21090534
delta logL = 0.0159614066633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.447       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7339       1.0000          .0000       10.000    
     3 'Normalizat'    1.1293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69741       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=   7257.211     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      245 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.443        29.552        .90823E-04    .68600E-03
   2  Index         2.7340        .88757        .87483E-02    .26371E-03
   3  Normalizat    1.1293        .18334        .22525E-03   -.68673E-03
   4  Prefactor     .69742        .21872        .33784E-03   -.45032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4433
  Index      = 2.73397
  Normalizat = 1.12929
  Prefactor  = 0.697422
 **********
 **   18 **HESSE 
 **********

 FCN=   7257.211     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.443        26.944        .18165E-04   -1.4826    
   2  Index         2.7340        .80940        .34993E-03   -.47036    
   3  Normalizat    1.1293        .18344        .45049E-04   -.88817    
   4  Prefactor     .69742        .21872        .13514E-04   -1.0363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95854e-09
Minuit parameter uncertainties:
  1  26.9611
  2  0.813916
  3  0.183539
  4  0.218992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99775': 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) = 7257.21090532
delta logL = 0.0159614250115

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.944e+01  2.696e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.734e+00  8.139e-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:  6.974e-01  2.190e-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.129e+00  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 195.418 33.610
Photon Index (Free Index): 2.73 +/- 0.81
Photon Flux (Free Index): 3.74e-08 +/- 4.06e-08
Energy Flux (Free Index): 8.76e-06 +/- 9.36e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/99775/cmap_HighResolution_261619201_261878401_4FGL_J1301.6+3336_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='8.76e-06', photon_flux_error='3.77e-08', dlogl='1.60e-02', energy_flux='9.12e-06', photon_flux2='3.74e-08', job_status='DONE', time_completed='2021-09-06 15:01:48.772190', photon_index_error2='0.81', photon_index2='2.73', ts='1.13', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='9.36e-06', EG='1.13', time_epoch_completed='1630965708.77', return_code='0', job_id='99775', GAL2='0.70', EG2='1.13', return_code2='0', energy_flux_error='9.97e-06', photon_flux_error2='4.06e-08', ts2='1.17', photon_index='2.59' WHERE bin_id='86' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 99775: <4FGL_J1301.6+3336_daily_bin86> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin86> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:46:04 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:46:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:46:05 2021
Terminated at Mon Sep  6 15:01:49 2021
Results reported at Mon Sep  6 15:01:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin86 195.418 33.6097 261619201 261878401 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 :                                   908.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            945 sec.

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

