/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 215 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 = 7417
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1301.6+3336_daily_bin89
RA = 195.418, Dec = 33.6097
tmin = 262396801, tmax = 262656001
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='101059', job_status='RUN', time_executed='2021-09-06 14:54:24.103616', time_epoch_executed='1630965264.1' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101059

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101059/ft1_4FGL_J1301.6+3336_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101059/ft2_4FGL_J1301.6+3336_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101059/ft1_4FGL_J1301.6+3336_daily_bin89.fits outfile=/scratch/kocevski/101059/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin89.fits ra=195.418 dec=33.6097 rad=12.0 tmin=262396801.0 tmax=262656001.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 1.42
user 1.24
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101059/ft1_filtered_4FGL_J1301.6+3336_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/101059/ft2_4FGL_J1301.6+3336_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/101059/ltcube_262396801_262656001_4FGL_J1301.6+3336_daily_bin89.fits outfile=/scratch/kocevski/101059/expmap_262396801_262656001_4FGL_J1301.6+3336_daily_bin89.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/101059/ltcube_262396801_262656001_4FGL_J1301.6+3336_daily_bin89.fits
.....................!
real 191.60
user 186.57
sys 4.60

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/101059/ft1_filtered_4FGL_J1301.6+3336_daily_bin89.fits scfile=/scratch/kocevski/101059/ft2_4FGL_J1301.6+3336_daily_bin89.fits outfile=/scratch/kocevski/101059/cmap_262396801_262656001_4FGL_J1301.6+3336_daily_bin89.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.62
user 0.37
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101059/ft1_filtered_4FGL_J1301.6+3336_daily_bin89.fits scfile=/scratch/kocevski/101059/ft2_4FGL_J1301.6+3336_daily_bin89.fits outfile=/scratch/kocevski/101059/cmap_HighResolution_262396801_262656001_4FGL_J1301.6+3336_daily_bin89.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9948       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91869       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3277       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3440       1.0000         .10000E-03   10000.    
    12 'norm      '    6.6377       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.163       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.235       1.0000         .10000E-03   10000.    
    15 'norm      '    9.1960       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .19760E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    18.612       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3919       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17599E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    33.375       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1264       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .63479       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=   4977.849     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3885 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9996        40.131        .47772E-05   -.33963E-05
   2  norm          .10000E-03    1.0552       -.47001E-08** at limit **
   3  Prefactor     .10000E-03    5.1606       -.20214E-06** at limit **
   4  Prefactor     .91914        1.4054        .48575E-07   -.35419E-04
   5  Prefactor     4.3280        2.2375       -.32851E-07   -.77871E-04
   6  norm          .10000E-03    .85190        .69795E-07** at limit **
   7  Prefactor     18.967        11.017        .74617E-07    .11443E-04
   8  Prefactor     .10000E-03    8.0929       -.21136E-05** at limit **
   9  Prefactor     .10000E-03    23.886        .55866E-05** at limit **
  10  Prefactor     .10000E-03    6.4220        .32649E-05** at limit **
  11  Prefactor     7.3441        5.2496        .28591E-07    .97364E-04
  12  norm          6.6339        6.0649        .80162E-06    .22059E-03
  13  Prefactor     40.165        39.881        .24718E-05    .53983E-04
  14  Prefactor     21.225        24.324       -.39285E-05    .39700E-04
  15  norm          9.1965        4.4245        .16033E-05    .51804E-03
  16  Prefactor     .10000E-03    9.8768        .36555E-05** at limit **
  17  norm          .10000E-03    2.1151        .76565E-07** at limit **
  18  norm          .10000E-03    5.7978       -.21664E-05** at limit **
  19  norm          .10028E-03    3.5674       -.14786E-05** at limit **
  20  norm          18.585        9.7072        .13126E-06    .12669E-02
  21  norm          .10000E-03    8.3279       -.22770E-05** at limit **
  22  Prefactor     .10000E-03    2.2972        .13483E-06** at limit **
  23  Prefactor     4.3859        18.090        .39397E-06    .11195E-03
  24  Prefactor     .10000E-03    23.276       -.27452E-05** at limit **
  25  Prefactor     .10000E-03    11.827        .19977E-05** at limit **
  26  Prefactor     .10000E-03    71.339       -.23019E-06** at limit **
  27  Prefactor     33.378        67.802        .33627E-05    .21922E-04
  28  Prefactor     .10000E-03    .93638       -.20641E-07** at limit **
  29  Normalizat    1.1264        .17732        .45980E-06    .21824E-03
  30  Prefactor     .63470        .20867       -.13151E-05    .11331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.99958
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.919138
  Prefactor  = 4.32801
  norm       = 0.0001
  Prefactor  = 18.9667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.34409
  norm       = 6.63393
  Prefactor  = 40.1654
  Prefactor  = 21.2245
  norm       = 9.19653
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100282
  norm       = 18.5847
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3777
  Prefactor  = 0.0001
  Normalizat = 1.12643
  Prefactor  = 0.634702
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.849     FROM HESSE     STATUS=OK           586 CALLS     4471 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9996        39.882        .20179E-03   -1.5308    
   2  norm          .10000E-03    1.0740        .70637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2215        .15648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .91914        1.2069        .99811E-03   -1.5516    
   5  Prefactor     4.3280        2.2317        .72332E-04   -1.5292    
   6  norm          .10000E-03    .85227        .63595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.967        11.008        .91968E-04   -1.4837    
   8  Prefactor     .10000E-03    8.0996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5108        .17390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3441        5.2534        .13251E-03   -1.5166    
  12  norm          6.6339        6.0049        .14474E-03   -1.5193    
  13  Prefactor     40.165        39.912        .63249E-04   -1.4440    
  14  Prefactor     21.225        24.249        .86920E-04   -1.4786    
  15  norm          9.1965        4.4172        .99242E-04   -1.5101    
  16  Prefactor     .10000E-03    9.9426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1280        .10019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.8109        .16605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10028E-03    19.123        .20223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.585        8.5088        .92838E-04   -1.4845    
  21  norm          .10000E-03    8.3508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7213        .19166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.3859        16.225        .19218E-03   -1.5289    
  24  Prefactor     .10000E-03    23.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    74.358        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     33.378        67.911        .69362E-04   -1.4552    
  28  Prefactor     .10000E-03    .93700        .66674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1264        .20531        .20445E-03   -.88908    
  30  Prefactor     .63470        .23974        .32155E-03   -1.0614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49471e-08
Minuit parameter uncertainties:
  1  25.281
  2  2.37293e-07
  3  6.01521e-06
  4  1.20691
  5  2.23178
  6  3.89487e-07
  7  11.0088
  8  4.42794e-05
  9  0.000216751
  10  2.98185e-05
  11  5.25376
  12  6.00548
  13  39.9387
  14  24.2599
  15  4.4174
  16  9.99922e-05
  17  4.00378e-06
  18  4.31373e-05
  19  0.00464258
  20  8.50931
  21  5.9286e-05
  22  4.98841e-05
  23  16.2418
  24  9.98803e-05
  25  5.54632e-05
  26  2.713e-05
  27  68.0686
  28  3.7841e-08
  29  0.205453
  30  0.240124
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.122e+01  2.426e+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:  6.347e-01  2.401e-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.126e+00  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 8.68e-06 +/- 9.92e-06

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

Saving results to:
/scratch/kocevski/101059/likelihoodResults_262396801_262656001_4FGL_J1301.6+3336_daily_bin89.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) = 4977.7709666
delta logL = 0.0778558469419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4977.76809408
delta logL = 0.0807283705508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.125       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2667       1.0000          .0000       10.000    
     3 'Normalizat'    1.1349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62685       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=   4977.768     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      257 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.125        964.81        .18886E-02    .14980E-03
   2  Index         2.2668        5.8809        .24451        .25854E-04
   3  Normalizat    1.1347        .79610E-01    .36731E-01   -.39496E-06
   4  Prefactor     .62700        .75678E-01    .73028E-01    .16662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.1253
  Index      = 2.26677
  Normalizat = 1.13474
  Prefactor  = 0.626996
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.768     FROM HESSE     STATUS=OK            31 CALLS      288 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.125        31.616        .75543E-04   -1.4647    
   2  Index         2.2668        .76375        .84403E-02   -.57835    
   3  Normalizat    1.1347        .19689        .20379E-03   -.88644    
   4  Prefactor     .62700        .23753        .32328E-03   -1.0646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26282e-11
Minuit parameter uncertainties:
  1  31.6351
  2  0.768052
  3  0.197018
  4  0.237913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101059': 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) = 4977.76809387
delta logL = 0.0807285843321

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.813e+01  3.164e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.267e+00  7.681e-01  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:  6.270e-01  2.379e-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.135e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 195.418 33.610
Photon Index (Free Index): 2.27 +/- 0.77
Photon Flux (Free Index): 2.74e-08 +/- 3.21e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.37e-05

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/101059/cmap_HighResolution_262396801_262656001_4FGL_J1301.6+3336_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='1.09e-05', photon_flux_error='3.76e-08', dlogl='8.07e-02', energy_flux='8.68e-06', photon_flux2='2.74e-08', job_status='DONE', time_completed='2021-09-06 15:06:53.724005', photon_index_error2='0.77', photon_index2='2.27', ts='1.42', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.37e-05', EG='1.13', time_epoch_completed='1630966013.72', return_code='0', job_id='101059', GAL2='0.63', EG2='1.13', return_code2='0', energy_flux_error='9.92e-06', photon_flux_error2='3.21e-08', ts2='1.59', photon_index='2.59' WHERE bin_id='89' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:06:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 101059: <4FGL_J1301.6+3336_daily_bin89> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin89> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 14:50:22 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:50:23 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:50:23 2021
Terminated at Mon Sep  6 15:06:54 2021
Results reported at Mon Sep  6 15:06:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin89 195.418 33.6097 262396801 262656001 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 :                                   726.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

