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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin907
RA = 195.418, Dec = 33.6097
tmin = 474422401, tmax = 474681601
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='104726', job_status='RUN', time_executed='2021-09-06 15:01:02.696148', time_epoch_executed='1630965662.7' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104726/ft1_4FGL_J1301.6+3336_daily_bin907.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104726/ft2_4FGL_J1301.6+3336_daily_bin907.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104726/ft1_4FGL_J1301.6+3336_daily_bin907.fits outfile=/scratch/kocevski/104726/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin907.fits ra=195.418 dec=33.6097 rad=12.0 tmin=474422401.0 tmax=474681601.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.45
user 3.19
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104726/ft2_4FGL_J1301.6+3336_daily_bin907.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/104726/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin907.fits evtable="EVENTS" outfile="/scratch/kocevski/104726/ft1_filtered_4FGL_J1301.6+3336_daily_bin907.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.56
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104726/ft1_filtered_4FGL_J1301.6+3336_daily_bin907.fits" evtable="EVENTS" scfile=/scratch/kocevski/104726/ft2_4FGL_J1301.6+3336_daily_bin907.fits sctable="SC_DATA" outfile=/scratch/kocevski/104726/ltcube_474422401_474681601_4FGL_J1301.6+3336_daily_bin907.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/104726/ft2_4FGL_J1301.6+3336_daily_bin907.fits
.....................!
real 11.84
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104726/ft1_filtered_4FGL_J1301.6+3336_daily_bin907.fits evtable="EVENTS" scfile=/scratch/kocevski/104726/ft2_4FGL_J1301.6+3336_daily_bin907.fits sctable="SC_DATA" expcube=/scratch/kocevski/104726/ltcube_474422401_474681601_4FGL_J1301.6+3336_daily_bin907.fits outfile=/scratch/kocevski/104726/expmap_474422401_474681601_4FGL_J1301.6+3336_daily_bin907.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/104726/ltcube_474422401_474681601_4FGL_J1301.6+3336_daily_bin907.fits
.....................!
real 191.31
user 185.99
sys 4.73

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/104726/ft1_filtered_4FGL_J1301.6+3336_daily_bin907.fits scfile=/scratch/kocevski/104726/ft2_4FGL_J1301.6+3336_daily_bin907.fits outfile=/scratch/kocevski/104726/cmap_474422401_474681601_4FGL_J1301.6+3336_daily_bin907.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104726/ft1_filtered_4FGL_J1301.6+3336_daily_bin907.fits scfile=/scratch/kocevski/104726/ft2_4FGL_J1301.6+3336_daily_bin907.fits outfile=/scratch/kocevski/104726/cmap_HighResolution_474422401_474681601_4FGL_J1301.6+3336_daily_bin907.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.860       1.0000         .10000E-03   10000.    
     2 'norm      '    11.998       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6634       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9956       1.0000         .10000E-03   10000.    
     6 'norm      '    9.9538       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8975       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0867       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6023       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4320       1.0000         .10000E-03   10000.    
    18 'norm      '    8.5320       1.0000         .10000E-03   10000.    
    19 'norm      '    4.7685       1.0000         .10000E-03   10000.    
    20 'norm      '    21.004       1.0000         .10000E-03   10000.    
    21 'norm      '    11.361       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5845       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.616       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.0334       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.661       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10973E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.4560       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .61004       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1600       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=   5562.629     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3999 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.810        35.568       -.13164E-04   -.29574E-03
   2  norm          11.998        4.0001        .17249E-06   -.14604E-04
   3  Prefactor     .44181        4.5581        .96229E-06   -.44516E-04
   4  Prefactor     1.6636        1.7229        .14874E-06    .77926E-04
   5  Prefactor     9.9964        3.2220        .49430E-07   -.38517E-04
   6  norm          9.9540        4.3682       -.12175E-07    .11543E-04
   7  Prefactor     .10000E-03    20.940        .38621E-06** at limit **
   8  Prefactor     .10000E-03    14.661       -.37699E-06** at limit **
   9  Prefactor     .10000E-03    139.09        .10888E-04** at limit **
  10  Prefactor     2.8954        5.3749        .13048E-05   -.18811E-02
  11  Prefactor     .10000E-03    1.6422       -.16086E-06** at limit **
  12  norm          5.0860        4.1837       -.14109E-07   -.46211E-04
  13  Prefactor     .10000E-03    13.982        .12237E-05** at limit **
  14  Prefactor     .10000E-03    17.668       -.37543E-06** at limit **
  15  norm          .10000E-03    1.7149       -.25898E-06** at limit **
  16  Prefactor     7.6031        8.0006       -.10740E-06    .91726E-05
  17  norm          4.4322        4.7275        .26543E-06   -.14990E-02
  18  norm          8.5321        8.7765       -.36945E-07    .81413E-05
  19  norm          4.7691        5.3052        .50004E-06   -.16635E-02
  20  norm          21.002        11.999       -.52659E-06   -.17414E-04
  21  norm          11.362        12.447        .76206E-07    .15016E-04
  22  Prefactor     1.5845        3.1424        .43081E-07   -.11730E-03
  23  Prefactor     25.619        16.704        .44938E-06    .45704E-04
  24  Prefactor     9.0280        86.261       -.77934E-05   -.15990E-04
  25  Prefactor     .10000E-03    13.086       -.62116E-06** at limit **
  26  Prefactor     25.663        19.131       -.94682E-07    .15513E-04
  27  Prefactor     .10000E-03    81.251       -.21468E-05** at limit **
  28  Prefactor     2.4559        2.7912       -.10164E-06   -.67296E-04
  29  Normalizat    .60989        .15967        .10010E-05   -.38609E-04
  30  Prefactor     1.1603        .20196        .18482E-06    .35787E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.8104
  norm       = 11.9983
  Prefactor  = 0.441809
  Prefactor  = 1.6636
  Prefactor  = 9.99642
  norm       = 9.95404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.89536
  Prefactor  = 0.0001
  norm       = 5.08597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.60307
  norm       = 4.43219
  norm       = 8.53209
  norm       = 4.76912
  norm       = 21.0025
  norm       = 11.3616
  Prefactor  = 1.58453
  Prefactor  = 25.6187
  Prefactor  = 9.02803
  Prefactor  = 0.0001
  Prefactor  = 25.6634
  Prefactor  = 0.0001
  Prefactor  = 2.45593
  Normalizat = 0.609888
  Prefactor  = 1.16028
 **********
 **   18 **HESSE 
 **********

 FCN=   5562.629     FROM HESSE     STATUS=OK           596 CALLS     4595 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.810        36.026        .67874E-04   -1.4527    
   2  norm          11.998        3.9932        .80062E-04   -1.5015    
   3  Prefactor     .44181        10.398        .30533E-02   -1.5575    
   4  Prefactor     1.6636        1.7274        .94382E-04   -1.5450    
   5  Prefactor     9.9964        3.2175        .71356E-04   -1.5076    
   6  norm          9.9540        4.3680        .10039E-03   -1.5077    
   7  Prefactor     .10000E-03    21.802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    139.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8954        7.8358        .11936E-02   -1.5368    
  11  Prefactor     .10000E-03    1.6466        .93336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0860        4.1799        .13239E-03   -1.5257    
  13  Prefactor     .10000E-03    13.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7362        .95354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6031        8.0035        .14545E-03   -1.5156    
  17  norm          4.4322        4.9271        .82846E-03   -1.5287    
  18  norm          8.5321        8.7792        .13724E-03   -1.5124    
  19  norm          4.7691        5.7016        .70172E-03   -1.5271    
  20  norm          21.002        12.408        .87397E-04   -1.4791    
  21  norm          11.362        12.447        .11886E-03   -1.5034    
  22  Prefactor     1.5845        3.0488        .16108E-03   -1.5456    
  23  Prefactor     25.619        16.585        .79149E-04   -1.4695    
  24  Prefactor     9.0280        85.431        .13335E-03   -1.5107    
  25  Prefactor     .10000E-03    13.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     25.663        19.129        .79079E-04   -1.4694    
  27  Prefactor     .10000E-03    81.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.4559        2.7821        .12891E-03   -1.5395    
  29  Normalizat    .60989        .19034        .26804E-03   -1.0757    
  30  Prefactor     1.1603        .24171        .25664E-03   -.87562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75178e-08
Minuit parameter uncertainties:
  1  36.0485
  2  3.9933
  3  4.28696
  4  1.72742
  5  3.21754
  6  4.36813
  7  5.51709e-05
  8  2.08805e-05
  9  0.000738539
  10  7.83858
  11  2.51296e-06
  12  4.18014
  13  3.07447e-05
  14  3.39531e-05
  15  5.82701e-06
  16  8.00465
  17  4.9275
  18  8.78052
  19  5.70222
  20  12.4093
  21  12.4496
  22  3.04908
  23  16.5884
  24  55.6481
  25  3.4488e-05
  26  19.1336
  27  0.000213811
  28  2.78228
  29  0.190546
  30  0.241935
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.395e-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:  1.160e+00  2.419e-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:  6.099e-01  1.905e-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: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104726/likelihoodResults_474422401_474681601_4FGL_J1301.6+3336_daily_bin907.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) = 5562.62879617
delta logL = -0.000268722311375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5562.62852784
delta logL = -3.8962571125e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6982       1.0000          .0000       10.000    
     3 'Normalizat'    .60989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1603       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.

 FCN=   5562.629     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      245 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.531        .90712E-02** at limit **
   2  Index         2.6714        6.2434        .50000        .15463E-04
   3  Normalizat    .60989        .15420        .60588E-01    .21317E-04
   4  Prefactor     1.1603        .19922        .58038E-01   -.40506E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.6714
  Normalizat = 0.609888
  Prefactor  = 1.16028
 **********
 **   18 **HESSE 
 **********

 FCN=   5562.629     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6714        6.3352        .50000       -.48445    
   3  Normalizat    .60989        .18271        .26804E-03   -1.0757    
   4  Prefactor     1.1603        .23633        .25664E-03   -.87563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44562e-10
Minuit parameter uncertainties:
  1  0.00016311
  2  4.89632
  3  0.182893
  4  0.236546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104726': 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) = 5562.62852772
delta logL = -2.70852979156e-07

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.631e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.671e+00  4.896e+00  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:  1.160e+00  2.365e-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:  6.099e-01  1.829e-01  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/104726/cmap_HighResolution_474422401_474681601_4FGL_J1301.6+3336_daily_bin907.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-06 15:14:02.112036', job_id='104726', GAL2='1.16', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630966442.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-2.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='907' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:14:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 104726: <4FGL_J1301.6+3336_daily_bin907> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin907> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 15:00:44 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:00:45 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:00:45 2021
Terminated at Mon Sep  6 15:14:02 2021
Results reported at Mon Sep  6 15:14:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin907 195.418 33.6097 474422401 474681601 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 :                                   769.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            798 sec.

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

