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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin912
RA = 195.418, Dec = 33.6097
tmin = 475718401, tmax = 475977601
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='104735', job_status='RUN', time_executed='2021-09-06 15:00:59.411312', time_epoch_executed='1630965659.41' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='912'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104735/ft1_4FGL_J1301.6+3336_daily_bin912.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104735/ft2_4FGL_J1301.6+3336_daily_bin912.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104735/ft1_4FGL_J1301.6+3336_daily_bin912.fits outfile=/scratch/kocevski/104735/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin912.fits ra=195.418 dec=33.6097 rad=12.0 tmin=475718401.0 tmax=475977601.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.50
user 3.27
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104735/ft1_filtered_4FGL_J1301.6+3336_daily_bin912.fits evtable="EVENTS" scfile=/scratch/kocevski/104735/ft2_4FGL_J1301.6+3336_daily_bin912.fits sctable="SC_DATA" expcube=/scratch/kocevski/104735/ltcube_475718401_475977601_4FGL_J1301.6+3336_daily_bin912.fits outfile=/scratch/kocevski/104735/expmap_475718401_475977601_4FGL_J1301.6+3336_daily_bin912.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/104735/ltcube_475718401_475977601_4FGL_J1301.6+3336_daily_bin912.fits
.....................!
real 189.80
user 184.97
sys 4.47

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/104735/ft1_filtered_4FGL_J1301.6+3336_daily_bin912.fits scfile=/scratch/kocevski/104735/ft2_4FGL_J1301.6+3336_daily_bin912.fits outfile=/scratch/kocevski/104735/cmap_475718401_475977601_4FGL_J1301.6+3336_daily_bin912.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104735/ft1_filtered_4FGL_J1301.6+3336_daily_bin912.fits scfile=/scratch/kocevski/104735/ft2_4FGL_J1301.6+3336_daily_bin912.fits outfile=/scratch/kocevski/104735/cmap_HighResolution_475718401_475977601_4FGL_J1301.6+3336_daily_bin912.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.068       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1457       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10879E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .13192E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0531       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2202       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8161       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.279       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0792       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.2278       1.0000         .10000E-03   10000.    
    20 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.037       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12347       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.655       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.1895       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2092       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74623       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=   6561.185     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3905 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.270        .87257E-07** at limit **
   2  norm          15.067        4.0810       -.84938E-08    .57495E-03
   3  Prefactor     .10000E-03    2.0247        .11269E-07** at limit **
   4  Prefactor     2.1456        1.9666       -.12269E-07    .18166E-03
   5  Prefactor     .10001E-03    1.1663       -.63579E-06** at limit **
   6  norm          .10004E-03    2.4601       -.14145E-05** at limit **
   7  Prefactor     .10000E-03    7.6285        .18784E-06** at limit **
   8  Prefactor     7.0503        13.892       -.45261E-07    .15640E-04
   9  Prefactor     .10002E-03    97.392       -.33119E-05** at limit **
  10  Prefactor     .10000E-03    4.3803        .13776E-06** at limit **
  11  Prefactor     2.2241        5.6146        .14939E-05    .27938E-03
  12  norm          3.8145        4.5599       -.52239E-06   -.30901E-04
  13  Prefactor     .10000E-03    14.237        .11146E-06** at limit **
  14  Prefactor     .10000E-03    8.1651       -.16521E-06** at limit **
  15  norm          .10000E-03    1.7327       -.39249E-08** at limit **
  16  Prefactor     11.246        20.162       -.21288E-05    .94092E-05
  17  norm          2.0802        5.4634        .11459E-05    .39617E-03
  18  norm          .10000E-03    3.8870        .77922E-07** at limit **
  19  norm          5.2249        3.5659        .16122E-05    .20104E-02
  20  norm          .10000E-03    3.7653       -.65821E-06** at limit **
  21  norm          13.038        16.156        .11851E-06   -.63504E-05
  22  Prefactor     .14368        2.2378       -.14174E-05    .14344E-02
  23  Prefactor     23.625        14.392       -.71223E-06    .43524E-03
  24  Prefactor     .10000E-03    20.957       -.84795E-07** at limit **
  25  Prefactor     5.1900        8.3420        .13458E-06    .35948E-04
  26  Prefactor     .10000E-03    11.366        .11997E-06** at limit **
  27  Prefactor     .10001E-03    78.535        .23947E-05** at limit **
  28  Prefactor     .10000E-03    .90298        .14981E-07** at limit **
  29  Normalizat    1.2088        .16741       -.10402E-05    .27228E-03
  30  Prefactor     .74651        .20134        .37931E-06    .15251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.0675
  Prefactor  = 0.0001
  Prefactor  = 2.14563
  Prefactor  = 0.000100009
  norm       = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 7.05025
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 2.22411
  norm       = 3.8145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2464
  norm       = 2.08016
  norm       = 0.0001
  norm       = 5.22492
  norm       = 0.0001
  norm       = 13.0381
  Prefactor  = 0.143679
  Prefactor  = 23.6255
  Prefactor  = 0.0001
  Prefactor  = 5.18997
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Normalizat = 1.20882
  Prefactor  = 0.746515
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.185     FROM HESSE     STATUS=OK           584 CALLS     4489 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.067        4.0346        .77858E-04   -1.4931    
   3  Prefactor     .10000E-03    2.0311        .11256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1456        1.9639        .10065E-03   -1.5415    
   5  Prefactor     .10001E-03    4.5101        .15784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10004E-03    9.3986        .21772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0503        13.867        .15105E-03   -1.5177    
   9  Prefactor     .10002E-03    97.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4126        .16557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2241        5.5582        .26978E-03   -1.5410    
  12  norm          3.8145        4.5485        .17856E-03   -1.5317    
  13  Prefactor     .10000E-03    14.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.1750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7657        .10408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.246        19.864        .11929E-03   -1.5037    
  17  norm          2.0802        5.3656        .25557E-03   -1.5420    
  18  norm          .10000E-03    3.8887        .15597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.2249        3.6091        .59200E-03   -1.5251    
  20  norm          .10000E-03    3.8345        .15427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.038        16.149        .11094E-03   -1.4986    
  22  Prefactor     .14368        16.162        .18418E-02   -1.5632    
  23  Prefactor     23.625        14.856        .82359E-04   -1.4735    
  24  Prefactor     .10000E-03    20.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.1900        8.3314        .17646E-03   -1.5252    
  26  Prefactor     .10000E-03    11.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    78.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .90540        .75167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2088        .19457        .21311E-03   -.86331    
  30  Prefactor     .74651        .23341        .32269E-03   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98606e-08
Minuit parameter uncertainties:
  1  2.80435e-05
  2  4.03463
  3  1.57938e-06
  4  1.96394
  5  0.000394586
  6  0.00124564
  7  6.08108e-05
  8  13.873
  9  0.00287002
  10  2.75756e-05
  11  5.55952
  12  4.54894
  13  4.28049e-05
  14  2.67615e-05
  15  1.44366e-06
  16  19.8758
  17  5.36683
  18  1.5465e-05
  19  3.60921
  20  8.11965e-05
  21  16.1548
  22  3.0475
  23  14.8586
  24  6.96595e-05
  25  8.33328
  26  3.80472e-05
  27  0.00195769
  28  9.31744e-07
  29  0.194691
  30  0.23372
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.676e-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:  7.465e-01  2.337e-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.209e+00  1.947e-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: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104735/likelihoodResults_475718401_475977601_4FGL_J1301.6+3336_daily_bin912.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6561.18563611
delta logL = -0.000582123344429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6561.18505432
delta logL = -3.33337993652e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5674       1.0000          .0000       10.000    
     3 'Normalizat'    1.2088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74659       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=   6561.185     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10368E-03    9.1342        .18142E-01** at limit **
   2  Index         2.4697        6.5352        .50000        .22142E-04
   3  Normalizat    1.2088        .38956E-02    .21311E-03    .65317E-04
   4  Prefactor     .74651        .47665E-02    .32269E-03    .36183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103678
  Index      = 2.46966
  Normalizat = 1.20882
  Prefactor  = 0.746515
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.185     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10368E-03    76.381        .24006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4697        7.9221        .50000       -.53062    
   3  Normalizat    1.2088        .11333E-01    .42622E-04   -.86331    
   4  Prefactor     .74651        .13867E-01    .12907E-04   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.59961e-09
Minuit parameter uncertainties:
  1  0.0335648
  2  346.836
  3  0.0113332
  4  0.0138667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104735': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6561.18505348
delta logL = 5.14090970682e-07

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.209e+00  1.133e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/104735/cmap_HighResolution_475718401_475977601_4FGL_J1301.6+3336_daily_bin912.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-06 15:15:21.439245', job_id='104735', GAL2='0.75', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630966521.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='5.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='912' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:15:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 104735: <4FGL_J1301.6+3336_daily_bin912> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin912> 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) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:00:46 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:46 2021
Terminated at Mon Sep  6 15:15:22 2021
Results reported at Mon Sep  6 15:15:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin912 195.418 33.6097 475718401 475977601 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 :                                   851.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            878 sec.

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

