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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1406
RA = 195.418, Dec = 33.6097
tmin = 603763201, tmax = 604022401
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='108235', job_status='RUN', time_executed='2021-09-06 15:10:47.687541', time_epoch_executed='1630966247.69' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108235/ft1_4FGL_J1301.6+3336_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108235/ft2_4FGL_J1301.6+3336_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108235/ft1_4FGL_J1301.6+3336_daily_bin1406.fits outfile=/scratch/kocevski/108235/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1406.fits ra=195.418 dec=33.6097 rad=12.0 tmin=603763201.0 tmax=604022401.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.20
user 3.95
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/108235/ft1_filtered_4FGL_J1301.6+3336_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/108235/ft2_4FGL_J1301.6+3336_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/108235/ltcube_603763201_604022401_4FGL_J1301.6+3336_daily_bin1406.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/108235/ft2_4FGL_J1301.6+3336_daily_bin1406.fits
.....................!
real 11.99
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108235/ft1_filtered_4FGL_J1301.6+3336_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/108235/ft2_4FGL_J1301.6+3336_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/108235/ltcube_603763201_604022401_4FGL_J1301.6+3336_daily_bin1406.fits outfile=/scratch/kocevski/108235/expmap_603763201_604022401_4FGL_J1301.6+3336_daily_bin1406.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/108235/ltcube_603763201_604022401_4FGL_J1301.6+3336_daily_bin1406.fits
.....................!
real 190.11
user 185.02
sys 4.39

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/108235/ft1_filtered_4FGL_J1301.6+3336_daily_bin1406.fits scfile=/scratch/kocevski/108235/ft2_4FGL_J1301.6+3336_daily_bin1406.fits outfile=/scratch/kocevski/108235/cmap_603763201_604022401_4FGL_J1301.6+3336_daily_bin1406.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108235/ft1_filtered_4FGL_J1301.6+3336_daily_bin1406.fits scfile=/scratch/kocevski/108235/ft2_4FGL_J1301.6+3336_daily_bin1406.fits outfile=/scratch/kocevski/108235/cmap_HighResolution_603763201_604022401_4FGL_J1301.6+3336_daily_bin1406.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    7.6884       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1393       1.0000         .10000E-03   10000.    
     6 'norm      '    12.349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.813       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.283       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5462       1.0000         .10000E-03   10000.    
    12 'norm      '    7.1929       1.0000         .10000E-03   10000.    
    13 'Prefactor '    110.67       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .23033       1.0000         .10000E-03   10000.    
    16 'Prefactor '    97.580       1.0000         .10000E-03   10000.    
    17 'norm      '    .17968E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    39.644       1.0000         .10000E-03   10000.    
    20 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.984       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .24657       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.522       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.3369       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .74792       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87340       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4732.871     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     3283 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1363        .10413E-05** at limit **
   2  norm          7.6883        3.9391        .45381E-07    .33472E-04
   3  Prefactor     2.4903        1.0483       -.15299E-07   -.44493E-04
   4  Prefactor     .10000E-03    1.2882        .83520E-06** at limit **
   5  Prefactor     2.1398        2.8546        .76987E-08    .19199E-03
   6  norm          12.349        1.0442       -.76963E-08   -.32354E-03
   7  Prefactor     .10000E-03    4.2418        .54533E-07** at limit **
   8  Prefactor     12.814        1.0015        .82928E-09    .39667E-04
   9  Prefactor     49.283        1.0023        .12486E-08   -.15571E-03
  10  Prefactor     .10000E-03    4.1476       -.51776E-06** at limit **
  11  Prefactor     5.5459        1.0716        .32061E-07   -.10860E-03
  12  norm          7.1928        1.0160       -.27125E-08    .70468E-03
  13  Prefactor     110.67        1.0050       -.12889E-08    .62448E-03
  14  Prefactor     .10017E-03    6.4652       -.10920E-05** at limit **
  15  norm          .22123        .55468        .58011E-07    .18715E-03
  16  Prefactor     97.562        2.0156       -.12626E-07    .53847E-02
  17  norm          .11281E-03    67.932        .20556E-06** at limit **
  18  norm          .10000E-03    5.7008       -.15833E-06** at limit **
  19  norm          39.648        1.4449        .11906E-07   -.13890E-02
  20  norm          .10001E-03    11.847        .74460E-06** at limit **
  21  norm          11.989        1.1117        .90404E-08   -.35590E-03
  22  Prefactor     .27273        2.2676       -.33795E-06   -.20453E-03
  23  Prefactor     .10003E-03    6.2320        .10596E-05** at limit **
  24  Prefactor     .11646E-03    37.743        .11728E-05** at limit **
  25  Prefactor     12.522        1.0273       -.11729E-07    .41414E-03
  26  Prefactor     .10012E-03    7.8034       -.17179E-05** at limit **
  27  Prefactor     .10009E-03    18.660        .12010E-05** at limit **
  28  Prefactor     1.3370        3.1757       -.46046E-06   -.10185E-03
  29  Normalizat    .74791        .21245        .81046E-06    .41351E-03
  30  Prefactor     .87341        .25638        .15880E-05    .38469E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.68834
  Prefactor  = 2.49025
  Prefactor  = 0.0001
  Prefactor  = 2.13984
  norm       = 12.3493
  Prefactor  = 0.0001
  Prefactor  = 12.8137
  Prefactor  = 49.2835
  Prefactor  = 0.0001
  Prefactor  = 5.54594
  norm       = 7.1928
  Prefactor  = 110.666
  Prefactor  = 0.000100167
  norm       = 0.221233
  Prefactor  = 97.562
  norm       = 0.00011281
  norm       = 0.0001
  norm       = 39.6478
  norm       = 0.000100009
  norm       = 11.9886
  Prefactor  = 0.272732
  Prefactor  = 0.000100031
  Prefactor  = 0.000116462
  Prefactor  = 12.5224
  Prefactor  = 0.000100125
  Prefactor  = 0.00010009
  Prefactor  = 1.33699
  Normalizat = 0.747908
  Prefactor  = 0.873411
 **********
 **   18 **HESSE 
 **********

 FCN=   4732.871     FROM HESSE     STATUS=OK           666 CALLS     3949 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.6883        3.9589        .36156E-02   -1.5153    
   3  Prefactor     2.4903        7.0253        .64758E-02   -1.5392    
   4  Prefactor     .10000E-03    1.2839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1398        2.9071        .70452E-02   -1.5415    
   6  norm          12.349        6.7000        .28497E-02   -1.5005    
   7  Prefactor     .10000E-03    4.2383        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.814        14.025        .27976E-02   -1.4992    
   9  Prefactor     49.283        67.857        .14281E-02   -1.4303    
  10  Prefactor     .10000E-03    4.1359        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5459        8.4671        .42649E-02   -1.5237    
  12  norm          7.1928        5.1746        .37391E-02   -1.5172    
  13  Prefactor     110.67        62.052        .95590E-03   -1.3600    
  14  Prefactor     .10017E-03    10.500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .22123        2.8382        .64739E-01   -1.5614    
  16  Prefactor     97.562        33.957        .10173E-02   -1.3729    
  17  norm          .11281E-03    9.9940        .64068E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.6956        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          39.648        8.2809        .15915E-02   -1.4448    
  20  norm          .10001E-03    17.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.989        26.825        .28930E-02   -1.5015    
  22  Prefactor     .27273        3.3384        .72351E-01   -1.5604    
  23  Prefactor     .10003E-03    14.299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .11646E-03    86.881        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.522        17.483        .28300E-02   -1.5000    
  26  Prefactor     .10012E-03    9.9929        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10009E-03    21.819        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.3370        3.2223        .94835E-02   -1.5477    
  29  Normalizat    .74791        .18995        .42927E-01   -1.0203    
  30  Prefactor     .87341        .22119        .65434E-01   -.97076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28989e-07
Minuit parameter uncertainties:
  1  0.000146252
  2  3.95906
  3  7.02763
  4  2.94545e-05
  5  2.90734
  6  6.70042
  7  1.78276e-05
  8  14.0288
  9  67.9639
  10  1.52811e-05
  11  8.46893
  12  5.17496
  13  62.0889
  14  0.00265082
  15  1.58455
  16  33.9637
  17  0.0226334
  18  5.15343e-06
  19  8.28115
  20  0.000779018
  21  26.8523
  22  1.90818
  23  0.00132189
  24  0.0757468
  25  17.4902
  26  0.00223405
  27  0.00280291
  28  3.22271
  29  0.190121
  30  0.221414
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.002e-04  2.651e-03  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:  8.734e-01  2.214e-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:  7.479e-01  1.901e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/108235/likelihoodResults_603763201_604022401_4FGL_J1301.6+3336_daily_bin1406.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) = 4732.87173172
delta logL = -0.000452829931419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4732.87127881
delta logL = 8.07112883194e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5699       1.0000          .0000       10.000    
     3 'Normalizat'    .74790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87342       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=   4732.871     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      255 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.015        .18142E-01** at limit **
   2  Index         2.0144        5.1581        .50000        .32048E-06
   3  Normalizat    .74791        .70100E-02    .25705E-03    .16902E-02
   4  Prefactor     .87341        .85223E-02    .28943E-03    .15161E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01435
  Normalizat = 0.747911
  Prefactor  = 0.873414
 **********
 **   18 **HESSE 
 **********

 FCN=   4732.871     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    254.07        .25392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0144        7.3700        .50000       -.63992    
   3  Normalizat    .74791        .19249E-01    .51410E-04   -1.0203    
   4  Prefactor     .87341        .23402E-01    .57885E-04   -.97076    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.1954e-09
Minuit parameter uncertainties:
  1  0.000331653
  2  817.875
  3  0.0192497
  4  0.0234024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108235': 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) = 4732.87127762
delta logL = 1.26826398628e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.317e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.014e+00  8.179e+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:  8.734e-01  2.340e-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:  7.479e-01  1.925e-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/108235/cmap_HighResolution_603763201_604022401_4FGL_J1301.6+3336_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-09-06 15:22:09.455619', job_id='108235', GAL2='0.87', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630966929.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1406' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 108235: <4FGL_J1301.6+3336_daily_bin1406> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1406> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 15:10:28 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:10:30 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:10:30 2021
Terminated at Mon Sep  6 15:22:10 2021
Results reported at Mon Sep  6 15:22:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1406 195.418 33.6097 603763201 604022401 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 :                                   674.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

