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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1165
RA = 195.418, Dec = 33.6097
tmin = 541296001, tmax = 541555201
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='106947', job_status='RUN', time_executed='2021-09-06 15:06:32.624548', time_epoch_executed='1630965992.62' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106947

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106947/ft1_4FGL_J1301.6+3336_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106947/ft2_4FGL_J1301.6+3336_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106947/ft1_4FGL_J1301.6+3336_daily_bin1165.fits outfile=/scratch/kocevski/106947/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1165.fits ra=195.418 dec=33.6097 rad=12.0 tmin=541296001.0 tmax=541555201.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.82
user 3.57
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106947/ft1_filtered_4FGL_J1301.6+3336_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/106947/ft2_4FGL_J1301.6+3336_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/106947/ltcube_541296001_541555201_4FGL_J1301.6+3336_daily_bin1165.fits outfile=/scratch/kocevski/106947/expmap_541296001_541555201_4FGL_J1301.6+3336_daily_bin1165.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/106947/ltcube_541296001_541555201_4FGL_J1301.6+3336_daily_bin1165.fits
.....................!
real 191.50
user 185.34
sys 5.62

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/106947/ft1_filtered_4FGL_J1301.6+3336_daily_bin1165.fits scfile=/scratch/kocevski/106947/ft2_4FGL_J1301.6+3336_daily_bin1165.fits outfile=/scratch/kocevski/106947/cmap_541296001_541555201_4FGL_J1301.6+3336_daily_bin1165.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106947/ft1_filtered_4FGL_J1301.6+3336_daily_bin1165.fits scfile=/scratch/kocevski/106947/ft2_4FGL_J1301.6+3336_daily_bin1165.fits outfile=/scratch/kocevski/106947/cmap_HighResolution_541296001_541555201_4FGL_J1301.6+3336_daily_bin1165.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.008       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3764       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5313       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6496       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6480       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.383       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48455E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.2585       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.908       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9097       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.096       1.0000         .10000E-03   10000.    
    18 'norm      '    4.5209       1.0000         .10000E-03   10000.    
    19 'norm      '    .11665E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.7046       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0056       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.2709       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11086       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .81342       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4298       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=   6151.941     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3915 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.002        52.004       -.13431E-07   -.16489E-04
   2  norm          7.3764        3.6672       -.72048E-07   -.12361E-03
   3  Prefactor     .67050        7.2387        .28881E-06    .35319E-04
   4  Prefactor     3.5313        2.4025       -.16341E-06   -.12611E-03
   5  Prefactor     2.6498        2.0521       -.36716E-06   -.26093E-03
   6  norm          .10000E-03    1.2586       -.69763E-08** at limit **
   7  Prefactor     3.6463        9.8687        .10393E-04   -.12218E-03
   8  Prefactor     .10000E-03    6.7400        .11804E-06** at limit **
   9  Prefactor     30.163        95.876       -.46179E-05   -.15787E-03
  10  Prefactor     .10002E-03    7.2527        .13955E-05** at limit **
  11  Prefactor     .10000E-03    2.8569        .25233E-06** at limit **
  12  norm          5.2602        6.3550        .21773E-06   -.15265E-03
  13  Prefactor     10.901        55.491       -.32558E-06   -.13031E-04
  14  Prefactor     2.9237        81.230       -.15972E-05   -.18497E-04
  15  norm          .10000E-03    1.1998        .83854E-07** at limit **
  16  Prefactor     .10000E-03    33.526        .14969E-05** at limit **
  17  norm          18.088        7.9907        .21741E-06   -.21799E-03
  18  norm          4.5209        9.8686        .47952E-05   -.75531E-04
  19  norm          .10000E-03    2.7617        .54063E-06** at limit **
  20  norm          .10000E-03    2.8495        .22271E-06** at limit **
  21  norm          6.7025        18.145        .75373E-06   -.22265E-04
  22  Prefactor     .10000E-03    2.8268        .33316E-06** at limit **
  23  Prefactor     3.0223        23.611        .98308E-06   -.61416E-04
  24  Prefactor     .10000E-03    21.189        .40582E-07** at limit **
  25  Prefactor     .10000E-03    9.3371        .48129E-06** at limit **
  26  Prefactor     .10000E-03    12.182        .55706E-06** at limit **
  27  Prefactor     8.2414        102.21        .26455E-06   -.22461E-04
  28  Prefactor     .96924E-01    2.2318       -.10794E-07    .27642E-03
  29  Normalizat    .81382        .18881        .10236E-05   -.42649E-03
  30  Prefactor     1.4294        .22578       -.38564E-05   -.16804E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0023
  norm       = 7.37636
  Prefactor  = 0.670495
  Prefactor  = 3.53129
  Prefactor  = 2.64977
  norm       = 0.0001
  Prefactor  = 3.64625
  Prefactor  = 0.0001
  Prefactor  = 30.1626
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 5.26018
  Prefactor  = 10.9005
  Prefactor  = 2.92374
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.0883
  norm       = 4.52087
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.70246
  Prefactor  = 0.0001
  Prefactor  = 3.0223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.24141
  Prefactor  = 0.0969241
  Normalizat = 0.813824
  Prefactor  = 1.42939
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.941     FROM HESSE     STATUS=OK           596 CALLS     4511 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.002        51.751        .85381E-04   -1.4769    
   2  norm          7.3764        3.6661        .97898E-04   -1.5165    
   3  Prefactor     .67050        22.170        .39453E-02   -1.5544    
   4  Prefactor     3.5313        2.4048        .93450E-04   -1.5332    
   5  Prefactor     2.6498        2.0473        .94023E-04   -1.5382    
   6  norm          .10000E-03    1.2635        .85930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6463        9.8884        .10575E-02   -1.5326    
   8  Prefactor     .10000E-03    6.7429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.163        96.615        .36344E-03   -1.4609    
  10  Prefactor     .10002E-03    32.278        .40461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8670        .12945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.2602        6.2157        .17528E-03   -1.5249    
  13  Prefactor     10.901        55.459        .12131E-03   -1.5048    
  14  Prefactor     2.9237        75.924        .23819E-03   -1.5366    
  15  norm          .10000E-03    1.2032        .83887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.088        7.9382        .94151E-04   -1.4857    
  18  norm          4.5209        9.8470        .94673E-03   -1.5283    
  19  norm          .10000E-03    5.5314        .24108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8612        .12917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.7025        18.166        .15497E-03   -1.5190    
  22  Prefactor     .10000E-03    2.8677        .25490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0223        22.145        .23412E-03   -1.5360    
  24  Prefactor     .10000E-03    21.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.3689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.2414        103.27        .13940E-03   -1.5134    
  28  Prefactor     .96924E-01    32.049        .22454E-02   -1.5646    
  29  Normalizat    .81382        .22356        .27269E-03   -.99558    
  30  Prefactor     1.4294        .26822        .26519E-03   -.79537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18992e-09
Minuit parameter uncertainties:
  1  51.8567
  2  3.6662
  3  7.71362
  4  2.40483
  5  2.04733
  6  1.98171e-06
  7  9.8928
  8  4.86791e-06
  9  97.1216
  10  0.00143363
  11  3.46189e-06
  12  6.21649
  13  49.2467
  14  29.8398
  15  9.49041e-07
  16  7.73205e-05
  17  7.93871
  18  9.85057
  19  3.91215e-05
  20  1.92507e-07
  21  18.1812
  22  4.09883e-06
  23  16.3702
  24  3.52075e-05
  25  1.96033e-06
  26  2.67836e-05
  27  58.4726
  28  3.52504
  29  0.223816
  30  0.26848
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.924e+00  2.984e+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:  1.429e+00  2.685e-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:  8.138e-01  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/106947/likelihoodResults_541296001_541555201_4FGL_J1301.6+3336_daily_bin1165.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) = 6151.94040033
delta logL = 0.000581921196499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6151.93950241
delta logL = 0.00147984548403

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5206       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3344       1.0000          .0000       10.000    
     3 'Normalizat'    .81555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6151.939     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      246 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5578        965.45        .53863E-02    .42289E-04
   2  Index         2.3523        3.4346        .50000       -.43328E-05
   3  Normalizat    .81507        .18479E-01    .43813E-01    .40136E-03
   4  Prefactor     1.4281        .22970E-01    .59989E-01   -.15528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55785
  Index      = 2.35232
  Normalizat = 0.815069
  Prefactor  = 1.42813
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.939     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5578        62.710        .21545E-03   -1.5331    
   2  Index         2.3523        3.3352        .17359E-01   -.55805    
   3  Normalizat    .81507        .21106        .27249E-03   -.99512    
   4  Prefactor     1.4281        .26263        .26528E-03   -.79573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66014e-09
Minuit parameter uncertainties:
  1  29.9102
  2  3.83788
  3  0.211275
  4  0.262876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106947': 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) = 6151.93948276
delta logL = 0.00149948968738

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.428e+00  2.629e-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:  8.151e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/106947/cmap_HighResolution_541296001_541555201_4FGL_J1301.6+3336_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-06 15:20:17.902096', job_id='106947', GAL2='1.43', fit_tolerance='1e-08', EG2='0.82', EG='0.81', time_epoch_completed='1630966817.9', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='1.50e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1165' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:20:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 106947: <4FGL_J1301.6+3336_daily_bin1165> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1165 195.418 33.6097 541296001 541555201 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 :                                   816.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

