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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin634
RA = 195.418, Dec = 33.6097
tmin = 403660801, tmax = 403920001
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='103143', job_status='RUN', time_executed='2021-09-06 14:56:09.591532', time_epoch_executed='1630965369.59' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103143/ft1_4FGL_J1301.6+3336_daily_bin634.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103143/ft2_4FGL_J1301.6+3336_daily_bin634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103143/ft1_4FGL_J1301.6+3336_daily_bin634.fits outfile=/scratch/kocevski/103143/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin634.fits ra=195.418 dec=33.6097 rad=12.0 tmin=403660801.0 tmax=403920001.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 7.66
user 7.30
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103143/ft1_filtered_4FGL_J1301.6+3336_daily_bin634.fits" evtable="EVENTS" scfile=/scratch/kocevski/103143/ft2_4FGL_J1301.6+3336_daily_bin634.fits sctable="SC_DATA" outfile=/scratch/kocevski/103143/ltcube_403660801_403920001_4FGL_J1301.6+3336_daily_bin634.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/103143/ft2_4FGL_J1301.6+3336_daily_bin634.fits
.....................!
real 11.50
user 11.09
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103143/ft1_filtered_4FGL_J1301.6+3336_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/103143/ft2_4FGL_J1301.6+3336_daily_bin634.fits sctable="SC_DATA" expcube=/scratch/kocevski/103143/ltcube_403660801_403920001_4FGL_J1301.6+3336_daily_bin634.fits outfile=/scratch/kocevski/103143/expmap_403660801_403920001_4FGL_J1301.6+3336_daily_bin634.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/103143/ltcube_403660801_403920001_4FGL_J1301.6+3336_daily_bin634.fits
.....................!
real 191.47
user 185.40
sys 4.95

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/103143/ft1_filtered_4FGL_J1301.6+3336_daily_bin634.fits scfile=/scratch/kocevski/103143/ft2_4FGL_J1301.6+3336_daily_bin634.fits outfile=/scratch/kocevski/103143/cmap_403660801_403920001_4FGL_J1301.6+3336_daily_bin634.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103143/ft1_filtered_4FGL_J1301.6+3336_daily_bin634.fits scfile=/scratch/kocevski/103143/ft2_4FGL_J1301.6+3336_daily_bin634.fits outfile=/scratch/kocevski/103143/cmap_HighResolution_403660801_403920001_4FGL_J1301.6+3336_daily_bin634.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.418 yref=33.6097 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7823       1.0000         .10000E-03   10000.    
     2 'norm      '    18.956       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11184E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5234       1.0000         .10000E-03   10000.    
     6 'norm      '    9.9874       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0139       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5837       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .68215       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4019       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12501E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1119       1.0000         .10000E-03   10000.    
    15 'norm      '    14.945       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.007       1.0000         .10000E-03   10000.    
    17 'norm      '    .20554       1.0000         .10000E-03   10000.    
    18 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    75.112       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.417       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3818       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2510       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72474       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=   4867.380     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3360 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7879        122.49        .10540E-04    .38696E-05
   2  norm          18.954        5.8213        .11143E-05    .11093E-02
   3  Prefactor     .10000E-03    3.4522       -.12050E-06** at limit **
   4  Prefactor     .10000E-03    2.1167       -.93606E-06** at limit **
   5  Prefactor     5.5237        3.6538       -.46536E-06    .30867E-03
   6  norm          9.9884        6.9856       -.43323E-07    .40345E-04
   7  Prefactor     9.0155        15.690        .11173E-06   -.91583E-05
   8  Prefactor     .10000E-03    12.142        .26775E-06** at limit **
   9  Prefactor     .10000E-03    99.661        .17502E-04** at limit **
  10  Prefactor     4.5848        8.3705       -.59656E-07   -.97652E-05
  11  Prefactor     .68250        1.4691        .82829E-06   -.22902E-02
  12  norm          2.4088        5.6516       -.28819E-05   -.13953E-03
  13  Prefactor     .10002E-03    266.20       -.14863E-03** at limit **
  14  Prefactor     9.0682        19.480        .51802E-05    .30005E-04
  15  norm          14.946        6.1591       -.36499E-07    .23227E-05
  16  Prefactor     16.008        15.058       -.20730E-06    .42081E-04
  17  norm          .20244        3.8521       -.60119E-07   -.65148E-04
  18  norm          .10000E-03    10.627       -.62897E-06** at limit **
  19  norm          .10000E-03    1.6609       -.34136E-07** at limit **
  20  norm          .10000E-03    2.2233       -.28664E-07** at limit **
  21  norm          75.116        35.308        .11192E-05    .59916E-06
  22  Prefactor     .10000E-03    .87685       -.26226E-07** at limit **
  23  Prefactor     .10000E-03    4.6080       -.52514E-07** at limit **
  24  Prefactor     28.421        32.958        .19994E-05    .79350E-05
  25  Prefactor     .10000E-03    7.9521        .85860E-06** at limit **
  26  Prefactor     .10000E-03    32.682        .53948E-05** at limit **
  27  Prefactor     .10000E-03    38.395       -.90066E-05** at limit **
  28  Prefactor     3.3824        4.4027       -.21156E-05   -.67984E-04
  29  Normalizat    1.2508        .20165        .86822E-07    .45158E-03
  30  Prefactor     .72480        .24012        .22400E-06    .27534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.7879
  norm       = 18.9543
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.52368
  norm       = 9.98837
  Prefactor  = 9.01554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.5848
  Prefactor  = 0.682495
  norm       = 2.40883
  Prefactor  = 0.000100024
  Prefactor  = 9.06816
  norm       = 14.9462
  Prefactor  = 16.0077
  norm       = 0.202444
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 75.1156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38243
  Normalizat = 1.25078
  Prefactor  = 0.724802
 **********
 **   18 **HESSE 
 **********

 FCN=   4867.380     FROM HESSE     STATUS=OK           592 CALLS     3952 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7879        122.51        .24395E-03   -1.5374    
   2  norm          18.954        5.4711        .83105E-04   -1.4837    
   3  Prefactor     .10000E-03    3.4577        .12659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8923        .18287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5237        3.6393        .99659E-04   -1.5238    
   6  norm          9.9884        6.9807        .12679E-03   -1.5076    
   7  Prefactor     9.0155        15.666        .66749E-03   -1.5107    
   8  Prefactor     .10000E-03    12.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    99.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5848        8.3661        .18801E-03   -1.5280    
  11  Prefactor     .68250        5.3562        .55080E-01   -1.5543    
  12  norm          2.4088        5.6138        .23279E-03   -1.5398    
  13  Prefactor     .10002E-03    264.69        .41217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0682        19.389        .13277E-03   -1.5106    
  15  norm          14.946        6.1589        .10360E-03   -1.4935    
  16  Prefactor     16.008        15.243        .10011E-03   -1.4908    
  17  norm          .20244        12.348        .25919E-02   -1.5618    
  18  norm          .10000E-03    10.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6727        .87737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2277        .10158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          75.116        35.302        .46329E-04   -1.3972    
  22  Prefactor     .10000E-03    .87824        .63790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.6124        .14626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.421        32.958        .75154E-04   -1.4641    
  25  Prefactor     .10000E-03    7.9671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    32.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    38.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.3824        4.4006        .16154E-03   -1.5340    
  29  Normalizat    1.2508        .24012        .22995E-03   -.85048    
  30  Prefactor     .72480        .28419        .34776E-03   -1.0256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99235e-08
Minuit parameter uncertainties:
  1  37.0424
  2  5.47127
  3  6.46214e-06
  4  0.000188376
  5  3.63948
  6  6.98128
  7  15.6734
  8  9.69127e-07
  9  0.000275573
  10  8.36823
  11  3.82411
  12  5.61505
  13  0.00502801
  14  19.4029
  15  6.15912
  16  15.2462
  17  3.16203
  18  4.68651e-05
  19  9.80905e-07
  20  1.29311e-07
  21  35.312
  22  3.23262e-07
  23  3.64275e-07
  24  32.9787
  25  4.80258e-06
  26  1.57388e-05
  27  2.70218e-05
  28  4.40099
  29  0.240336
  30  0.284761
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.248e-01  2.848e-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.251e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/103143/likelihoodResults_403660801_403920001_4FGL_J1301.6+3336_daily_bin634.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) = 4867.30067591
delta logL = 0.079352482182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4867.29689118
delta logL = 0.0831372124121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.229       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0770       1.0000          .0000       10.000    
     3 'Normalizat'    1.2576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71801       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=   4867.297     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      305 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.229        23.774        .11013E-03   -.11665E-03
   2  Index         2.0770        1.1173        .15344E-01   -.34151E-04
   3  Normalizat    1.2575        .23682        .22940E-03   -.39251E-03
   4  Prefactor     .71803        .28066        .34916E-03   -.16772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2294
  Index      = 2.07699
  Normalizat = 1.25755
  Prefactor  = 0.718029
 **********
 **   18 **HESSE 
 **********

 FCN=   4867.297     FROM HESSE     STATUS=OK            23 CALLS      328 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.229        23.659        .44051E-05   -1.4980    
   2  Index         2.0770        1.1125        .61376E-03   -.62439    
   3  Normalizat    1.2575        .23698        .45879E-04   -.84843    
   4  Prefactor     .71803        .28086        .13966E-04   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22405e-10
Minuit parameter uncertainties:
  1  23.6758
  2  1.12698
  3  0.237187
  4  0.281418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103143': 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) = 4867.29689118
delta logL = 0.0831372149632

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.323e+01  2.368e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.077e+00  1.127e+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:  7.180e-01  2.814e-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.258e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/103143/cmap_HighResolution_403660801_403920001_4FGL_J1301.6+3336_daily_bin634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-06 15:07:58.647108', job_id='103143', GAL2='0.72', fit_tolerance='1e-08', EG2='1.26', EG='1.25', time_epoch_completed='1630966078.65', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='8.31e-02', ts2='0.50', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='634' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:07:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 103143: <4FGL_J1301.6+3336_daily_bin634> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin634> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:55:57 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:55:58 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:55:58 2021
Terminated at Mon Sep  6 15:07:59 2021
Results reported at Mon Sep  6 15:07:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin634 195.418 33.6097 403660801 403920001 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 :                                   697.30 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            722 sec.

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

