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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin941
RA = 195.418, Dec = 33.6097
tmin = 483235201, tmax = 483494401
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='104784', job_status='RUN', time_executed='2021-09-06 15:01:00.828790', time_epoch_executed='1630965660.83' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104784

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104784/ft1_4FGL_J1301.6+3336_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104784/ft2_4FGL_J1301.6+3336_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104784/ft1_4FGL_J1301.6+3336_daily_bin941.fits outfile=/scratch/kocevski/104784/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin941.fits ra=195.418 dec=33.6097 rad=12.0 tmin=483235201.0 tmax=483494401.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.47
user 3.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104784/ft2_4FGL_J1301.6+3336_daily_bin941.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/104784/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin941.fits evtable="EVENTS" outfile="/scratch/kocevski/104784/ft1_filtered_4FGL_J1301.6+3336_daily_bin941.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.50
user 0.36
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104784/ft1_filtered_4FGL_J1301.6+3336_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/104784/ft2_4FGL_J1301.6+3336_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/104784/ltcube_483235201_483494401_4FGL_J1301.6+3336_daily_bin941.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/104784/ft2_4FGL_J1301.6+3336_daily_bin941.fits
.....................!
real 11.70
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104784/ft1_filtered_4FGL_J1301.6+3336_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/104784/ft2_4FGL_J1301.6+3336_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/104784/ltcube_483235201_483494401_4FGL_J1301.6+3336_daily_bin941.fits outfile=/scratch/kocevski/104784/expmap_483235201_483494401_4FGL_J1301.6+3336_daily_bin941.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/104784/ltcube_483235201_483494401_4FGL_J1301.6+3336_daily_bin941.fits
.....................!
real 190.71
user 186.04
sys 4.17

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/104784/ft1_filtered_4FGL_J1301.6+3336_daily_bin941.fits scfile=/scratch/kocevski/104784/ft2_4FGL_J1301.6+3336_daily_bin941.fits outfile=/scratch/kocevski/104784/cmap_483235201_483494401_4FGL_J1301.6+3336_daily_bin941.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.64
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104784/ft1_filtered_4FGL_J1301.6+3336_daily_bin941.fits scfile=/scratch/kocevski/104784/ft2_4FGL_J1301.6+3336_daily_bin941.fits outfile=/scratch/kocevski/104784/cmap_HighResolution_483235201_483494401_4FGL_J1301.6+3336_daily_bin941.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.65
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.066       1.0000         .10000E-03   10000.    
     2 'norm      '    7.1875       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29350E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8375       1.0000         .10000E-03   10000.    
     6 'norm      '    .10364E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.256       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1637       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52100E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    46.377       1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.959       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.541       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7431       1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3177       1.0000         .10000E-03   10000.    
    20 'norm      '    .12221E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.833       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.915       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .22657E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1166       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .64347       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=   5958.764     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3959 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.047        39.291        .66770E-06    .13632E-03
   2  norm          7.1877        3.8843       -.17261E-07    .14398E-03
   3  Prefactor     .10001E-03    8.5292       -.28332E-05** at limit **
   4  Prefactor     4.8401        3.4317        .32577E-07    .26524E-03
   5  Prefactor     2.8371        2.4457        .43322E-07    .30685E-03
   6  norm          .10000E-03    5.4455        .10449E-06** at limit **
   7  Prefactor     14.256        11.285        .26165E-07    .37343E-04
   8  Prefactor     .10000E-03    6.5756        .34721E-06** at limit **
   9  Prefactor     .10000E-03    41.638       -.38803E-06** at limit **
  10  Prefactor     2.1630        6.6156        .80836E-06    .46536E-03
  11  Prefactor     .10000E-03    12.469       -.55973E-05** at limit **
  12  norm          46.381        8.6972        .51830E-07    .27579E-03
  13  Prefactor     74.935        46.843        .84364E-06    .76052E-04
  14  Prefactor     .10000E-03    20.207       -.35031E-06** at limit **
  15  norm          .10000E-03    1.9984        .67480E-07** at limit **
  16  Prefactor     14.571        18.164       -.26087E-06    .29484E-03
  17  norm          2.7424        4.5918        .85674E-07    .42133E-03
  18  norm          .10000E-03    3.6278       -.55641E-07** at limit **
  19  norm          1.3106        3.3746       -.11893E-05   -.18063E-03
  20  norm          .10000E-03    4.2542        .63152E-06** at limit **
  21  norm          15.834        16.686        .40930E-07    .16177E-05
  22  Prefactor     .10000E-03    1.4694        .73830E-07** at limit **
  23  Prefactor     17.921        13.982        .10822E-06   -.99635E-04
  24  Prefactor     .10000E-03    115.00        .51147E-06** at limit **
  25  Prefactor     .10000E-03    6.1560       -.25909E-06** at limit **
  26  Prefactor     .10000E-03    16.186        .11152E-06** at limit **
  27  Prefactor     .10000E-03    24.286        .86376E-06** at limit **
  28  Prefactor     .10000E-03    3.3883        .23776E-05** at limit **
  29  Normalizat    1.1167        .16716        .80776E-06    .23199E-03
  30  Prefactor     .64348        .19682       -.15558E-05   -.30657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.0474
  norm       = 7.18766
  Prefactor  = 0.000100014
  Prefactor  = 4.84014
  Prefactor  = 2.83712
  norm       = 0.0001
  Prefactor  = 14.2557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16302
  Prefactor  = 0.000100002
  norm       = 46.3807
  Prefactor  = 74.9352
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5707
  norm       = 2.74241
  norm       = 0.0001
  norm       = 1.31056
  norm       = 0.0001
  norm       = 15.8342
  Prefactor  = 0.0001
  Prefactor  = 17.9209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11669
  Prefactor  = 0.64348
 **********
 **   18 **HESSE 
 **********

 FCN=   5958.764     FROM HESSE     STATUS=OK           590 CALLS     4549 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.047        39.227        .61808E-04   -1.4410    
   2  norm          7.1877        3.9108        .95090E-04   -1.5172    
   3  Prefactor     .10001E-03    42.088        .36399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8401        3.4513        .10207E-03   -1.5268    
   5  Prefactor     2.8371        2.4320        .10427E-03   -1.5371    
   6  norm          .10000E-03    5.6870        .35153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.256        11.265        .10608E-03   -1.4953    
   8  Prefactor     .10000E-03    6.5890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1630        6.7213        .28001E-03   -1.5414    
  11  Prefactor     .10000E-03    16.573        .27552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          46.381        8.6814        .58877E-04   -1.4345    
  13  Prefactor     74.935        47.008        .23188E-03   -1.3974    
  14  Prefactor     .10000E-03    20.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0231        .10650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.571        17.026        .10504E-03   -1.4944    
  17  norm          2.7424        4.5432        .19411E-03   -1.5377    
  18  norm          .10000E-03    3.6300        .14361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3106        3.5203        .21761E-03   -1.5479    
  20  norm          .10000E-03    9.3456        .29130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.834        16.682        .10066E-03   -1.4912    
  22  Prefactor     .10000E-03    1.4814        .90993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.921        13.862        .94625E-04   -1.4861    
  24  Prefactor     .10000E-03    116.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.1744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    24.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.9322        .20914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1167        .19030        .21500E-03   -.89218    
  30  Prefactor     .64348        .22391        .33491E-03   -1.0579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51489e-09
Minuit parameter uncertainties:
  1  39.2509
  2  3.91099
  3  0.00151334
  4  3.45148
  5  2.43208
  6  1.41311e-05
  7  11.2662
  8  2.45577e-05
  9  3.03997e-05
  10  6.72369
  11  0.000398401
  12  8.68163
  13  47.0315
  14  3.06636e-05
  15  7.31774e-06
  16  17.0313
  17  4.54378
  18  1.10825e-05
  19  3.52089
  20  1.40661e-05
  21  16.6865
  22  6.90848e-06
  23  13.8647
  24  0.000263852
  25  4.21893e-08
  26  5.41128e-05
  27  0.000116478
  28  6.23181e-05
  29  0.190416
  30  0.224227
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  6.435e-01  2.242e-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.117e+00  1.904e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104784/likelihoodResults_483235201_483494401_4FGL_J1301.6+3336_daily_bin941.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) = 5958.76448409
delta logL = -0.000235098539633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5958.76425079
delta logL = -1.79725248017e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1638       1.0000          .0000       10.000    
     3 'Normalizat'    1.1167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64348       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=   5958.764     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10775E-03    3.7405        .18142E-01** at limit **
   2  Index         2.9992        6.4287        .50000        .17999E-04
   3  Normalizat    1.1167        .21035E-02    .21500E-03    .88867E-04
   4  Prefactor     .64348        .25588E-02    .33491E-03    .61101E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107749
  Index      = 2.9992
  Normalizat = 1.11669
  Prefactor  = 0.643482
 **********
 **   18 **HESSE 
 **********

 FCN=   5958.764     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10775E-03    474.87        .55392E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9992        8.4456        .50000       -.41169    
   3  Normalizat    1.1167        .24385E-01    .43000E-04   -.89218    
   4  Prefactor     .64348        .29661E-01    .13396E-04   -1.0579    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11086e-08
Minuit parameter uncertainties:
  1  0.122299
  2  1112.8
  3  0.0243851
  4  0.0296613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104784': 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) = 5958.76425038
delta logL = -1.39156054502e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.077e-04  1.223e-01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.999e+00  1.113e+03  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.435e-01  2.966e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.117e+00  2.439e-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/104784/cmap_HighResolution_483235201_483494401_4FGL_J1301.6+3336_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-09-06 15:15:10.638557', job_id='104784', GAL2='0.64', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630966510.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='-1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='941' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:15:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 104784: <4FGL_J1301.6+3336_daily_bin941> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin941> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 15:00:47 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:00:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 15:00:49 2021
Terminated at Mon Sep  6 15:15:11 2021
Results reported at Mon Sep  6 15:15:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin941 195.418 33.6097 483235201 483494401 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 :                                   838.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

