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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1083
RA = 195.418, Dec = 33.6097
tmin = 520041601, tmax = 520300801
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='106792', job_status='RUN', time_executed='2021-09-06 15:07:57.985199', time_epoch_executed='1630966077.99' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106792/ft1_4FGL_J1301.6+3336_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106792/ft2_4FGL_J1301.6+3336_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106792/ft1_4FGL_J1301.6+3336_daily_bin1083.fits outfile=/scratch/kocevski/106792/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1083.fits ra=195.418 dec=33.6097 rad=12.0 tmin=520041601.0 tmax=520300801.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 4.25
user 4.01
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106792/ft1_filtered_4FGL_J1301.6+3336_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/106792/ft2_4FGL_J1301.6+3336_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/106792/ltcube_520041601_520300801_4FGL_J1301.6+3336_daily_bin1083.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/106792/ft2_4FGL_J1301.6+3336_daily_bin1083.fits
.....................!
real 11.90
user 11.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106792/ft1_filtered_4FGL_J1301.6+3336_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/106792/ft2_4FGL_J1301.6+3336_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/106792/ltcube_520041601_520300801_4FGL_J1301.6+3336_daily_bin1083.fits outfile=/scratch/kocevski/106792/expmap_520041601_520300801_4FGL_J1301.6+3336_daily_bin1083.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/106792/ltcube_520041601_520300801_4FGL_J1301.6+3336_daily_bin1083.fits
.....................!
real 189.91
user 184.93
sys 4.53

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/106792/ft1_filtered_4FGL_J1301.6+3336_daily_bin1083.fits scfile=/scratch/kocevski/106792/ft2_4FGL_J1301.6+3336_daily_bin1083.fits outfile=/scratch/kocevski/106792/cmap_520041601_520300801_4FGL_J1301.6+3336_daily_bin1083.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/106792/ft1_filtered_4FGL_J1301.6+3336_daily_bin1083.fits scfile=/scratch/kocevski/106792/ft2_4FGL_J1301.6+3336_daily_bin1083.fits outfile=/scratch/kocevski/106792/cmap_HighResolution_520041601_520300801_4FGL_J1301.6+3336_daily_bin1083.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 1.31
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.4395       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8871       1.0000         .10000E-03   10000.    
     6 'norm      '    10.965       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.552       1.0000         .10000E-03   10000.    
    15 'norm      '    12.044       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.821       1.0000         .10000E-03   10000.    
    18 'norm      '    14.597       1.0000         .10000E-03   10000.    
    19 'norm      '    .93204       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.3694       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3406       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .54869       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=   4927.790     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3861 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.202        .10514E-04** at limit **
   2  norm          8.4401        4.5305       -.24154E-07   -.13453E-03
   3  Prefactor     .10000E-03    7.3824       -.38559E-06** at limit **
   4  Prefactor     5.3590        3.1523        .37763E-07   -.36623E-04
   5  Prefactor     1.8870        1.4728        .67687E-08    .90201E-04
   6  norm          10.965        4.9870       -.22704E-06    .81569E-05
   7  Prefactor     .10000E-03    3.3703        .68716E-08** at limit **
   8  Prefactor     .10000E-03    5.8264       -.28574E-05** at limit **
   9  Prefactor     .10000E-03    192.07       -.18779E-04** at limit **
  10  Prefactor     .10000E-03    2.3832        .14889E-06** at limit **
  11  Prefactor     .10000E-03    5.6232        .15810E-05** at limit **
  12  norm          5.5458        4.9888       -.12630E-05    .58830E-04
  13  Prefactor     .10000E-03    50.283        .14927E-04** at limit **
  14  Prefactor     17.493        27.525        .95893E-05    .40460E-04
  15  norm          12.045        5.0142       -.50454E-06    .11070E-04
  16  Prefactor     .10000E-03    10.691       -.12253E-05** at limit **
  17  norm          11.824        6.8321       -.51012E-06   -.34650E-05
  18  norm          14.597        13.585        .55593E-07   -.21561E-04
  19  norm          .93773        2.2908       -.69388E-06   -.15253E-02
  20  norm          .10000E-03    3.0293        .22392E-06** at limit **
  21  norm          .10000E-03    18.246       -.24505E-06** at limit **
  22  Prefactor     .10000E-03    2.1731        .42514E-07** at limit **
  23  Prefactor     .10000E-03    9.5612       -.48421E-06** at limit **
  24  Prefactor     .10000E-03    36.512       -.98937E-05** at limit **
  25  Prefactor     7.3707        13.014       -.26712E-07   -.47947E-04
  26  Prefactor     .10000E-03    10.364        .18371E-05** at limit **
  27  Prefactor     .10000E-03    45.031       -.12024E-04** at limit **
  28  Prefactor     .10000E-03    5.9156        .97516E-06** at limit **
  29  Normalizat    1.3403        .19285       -.83457E-06    .32094E-04
  30  Prefactor     .54895        .23046        .85782E-07   -.53318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.44007
  Prefactor  = 0.0001
  Prefactor  = 5.35896
  Prefactor  = 1.887
  norm       = 10.9652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.54583
  Prefactor  = 0.0001
  Prefactor  = 17.4925
  norm       = 12.0449
  Prefactor  = 0.0001
  norm       = 11.8244
  norm       = 14.597
  norm       = 0.937734
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3403
  Prefactor  = 0.548947
 **********
 **   18 **HESSE 
 **********

 FCN=   4927.790     FROM HESSE     STATUS=OK           582 CALLS     4443 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.4401        4.5408        .96963E-04   -1.5127    
   3  Prefactor     .10000E-03    7.4654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3590        3.1612        .85381E-04   -1.5245    
   5  Prefactor     1.8870        1.4733        .72997E-04   -1.5433    
   6  norm          10.965        4.9853        .10281E-03   -1.5046    
   7  Prefactor     .10000E-03    3.3782        .12586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8177        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    192.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3888        .10584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7384        .16233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5458        4.9602        .13459E-03   -1.5237    
  13  Prefactor     .10000E-03    50.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.493        27.545        .95599E-04   -1.4871    
  15  norm          12.045        5.0148        .98180E-04   -1.5014    
  16  Prefactor     .10000E-03    10.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.824        6.8212        .11651E-03   -1.5020    
  18  norm          14.597        13.585        .10483E-03   -1.4944    
  19  norm          .93773        1.8972        .16163E-02   -1.5514    
  20  norm          .10000E-03    3.0589        .11904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    18.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.2249        .20182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.6386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    36.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.3707        13.002        .14775E-03   -1.5165    
  26  Prefactor     .10000E-03    10.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    44.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.1718        .33310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3403        .21384        .20254E-03   -.82371    
  30  Prefactor     .54895        .25420        .36664E-03   -1.0978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57808e-10
Minuit parameter uncertainties:
  1  1.44765e-06
  2  4.54101
  3  7.62829e-06
  4  3.16127
  5  1.47338
  6  4.98551
  7  1.69555e-06
  8  1.54866e-06
  9  0.00021093
  10  1.53274e-06
  11  1.60449e-05
  12  4.96053
  13  2.1178e-06
  14  27.5653
  15  5.01498
  16  1.64326e-05
  17  6.82161
  18  13.588
  19  1.8973
  20  7.5959e-06
  21  2.0384e-05
  22  2.06055e-06
  23  4.05342e-06
  24  1.35208e-05
  25  13.0072
  26  4.12464e-06
  27  2.63786e-05
  28  3.50543e-06
  29  0.213978
  30  0.254727
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.749e+01  2.757e+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:  5.489e-01  2.547e-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.340e+00  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/106792/likelihoodResults_520041601_520300801_4FGL_J1301.6+3336_daily_bin1083.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) = 4927.72075981
delta logL = 0.0694084420038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4927.71858984
delta logL = 0.071578414053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.071       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0851       1.0000          .0000       10.000    
     3 'Normalizat'    1.3262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56111       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=   4927.719     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      299 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.065        33.567        .12041E-03   -.36087E-03
   2  Index         3.0863        1.8470        .86557E-02   -.78244E-04
   3  Normalizat    1.3260        .21715        .20340E-03    .92256E-04
   4  Prefactor     .56122        .25756        .36291E-03    .78317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0649
  Index      = 3.08634
  Normalizat = 1.326
  Prefactor  = 0.561217
 **********
 **   18 **HESSE 
 **********

 FCN=   4927.719     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.065        25.203        .48162E-05   -1.5043    
   2  Index         3.0863        1.4008        .34623E-03   -.39275    
   3  Normalizat    1.3260        .21654        .40681E-04   -.82794    
   4  Prefactor     .56122        .25672        .14516E-04   -1.0924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06394e-10
Minuit parameter uncertainties:
  1  25.2275
  2  1.42316
  3  0.21669
  4  0.257255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106792': 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) = 4927.71858893
delta logL = 0.0715793207783

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.106e+01  2.523e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.086e+00  1.423e+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:  5.612e-01  2.573e-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.326e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
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/106792/cmap_HighResolution_520041601_520300801_4FGL_J1301.6+3336_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.29e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-06 15:21:33.750129', job_id='106792', GAL2='0.56', fit_tolerance='1e-08', EG2='1.33', EG='1.34', time_epoch_completed='1630966893.75', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='7.16e-02', ts2='0.80', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1083' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:21:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 106792: <4FGL_J1301.6+3336_daily_bin1083> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1083> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 15:06:03 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:06: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 15:06:05 2021
Terminated at Mon Sep  6 15:21:34 2021
Results reported at Mon Sep  6 15:21:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1083 195.418 33.6097 520041601 520300801 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 :                                   729.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

