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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin22
RA = 195.418, Dec = 33.6097
tmin = 245030401, tmax = 245289601
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='99696', job_status='RUN', time_executed='2021-09-06 14:48:07.075804', time_epoch_executed='1630964887.08' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99696/ft1_4FGL_J1301.6+3336_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99696/ft2_4FGL_J1301.6+3336_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99696/ft1_4FGL_J1301.6+3336_daily_bin22.fits outfile=/scratch/kocevski/99696/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin22.fits ra=195.418 dec=33.6097 rad=12.0 tmin=245030401.0 tmax=245289601.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.47
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99696/ft1_filtered_4FGL_J1301.6+3336_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/99696/ft2_4FGL_J1301.6+3336_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/99696/ltcube_245030401_245289601_4FGL_J1301.6+3336_daily_bin22.fits outfile=/scratch/kocevski/99696/expmap_245030401_245289601_4FGL_J1301.6+3336_daily_bin22.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/99696/ltcube_245030401_245289601_4FGL_J1301.6+3336_daily_bin22.fits
.....................!
real 190.33
user 184.69
sys 5.10

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/99696/ft1_filtered_4FGL_J1301.6+3336_daily_bin22.fits scfile=/scratch/kocevski/99696/ft2_4FGL_J1301.6+3336_daily_bin22.fits outfile=/scratch/kocevski/99696/cmap_245030401_245289601_4FGL_J1301.6+3336_daily_bin22.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99696/ft1_filtered_4FGL_J1301.6+3336_daily_bin22.fits scfile=/scratch/kocevski/99696/ft2_4FGL_J1301.6+3336_daily_bin22.fits outfile=/scratch/kocevski/99696/cmap_HighResolution_245030401_245289601_4FGL_J1301.6+3336_daily_bin22.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87378E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    33.056       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4771       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9828       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5220       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .50922E-02   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.063       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11530E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7904       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.599       1.0000         .10000E-03   10000.    
    17 'norm      '    .55862E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.6666       1.0000         .10000E-03   10000.    
    19 'norm      '    4.3343       1.0000         .10000E-03   10000.    
    20 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.113       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.927       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    76.724       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10916E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97792       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0557       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=   5592.116     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3991 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    166.83        .20767E-05** at limit **
   2  norm          33.052        6.2749       -.40282E-07   -.14599E-03
   3  Prefactor     2.4700        6.3587        .57935E-05   -.12133E-04
   4  Prefactor     .10000E-03    1.7506       -.24372E-07** at limit **
   5  Prefactor     4.9824        2.6998       -.69637E-08   -.49079E-04
   6  norm          1.5221        2.1520        .51631E-07    .71644E-05
   7  Prefactor     .10042E-03    5.5350       -.12611E-05** at limit **
   8  Prefactor     .10000E-03    6.9966       -.13808E-07** at limit **
   9  Prefactor     .10000E-03    42.534       -.22096E-06** at limit **
  10  Prefactor     .10000E-03    3.1522        .76588E-07** at limit **
  11  Prefactor     .10000E-03    5.3879        .15195E-07** at limit **
  12  norm          10.061        5.8981        .66976E-07   -.39791E-04
  13  Prefactor     .10000E-03    57.759        .22802E-05** at limit **
  14  Prefactor     .10000E-03    63.779        .43022E-06** at limit **
  15  norm          1.7908        3.0810        .24624E-06    .24874E-04
  16  Prefactor     10.599        20.386        .15482E-05    .74281E-04
  17  norm          .10000E-03    6.7063        .30251E-05** at limit **
  18  norm          7.6667        8.0679       -.36614E-06   -.20158E-04
  19  norm          4.3323        4.4102        .17095E-06    .79996E-05
  20  norm          .10000E-03    3.4747       -.28609E-07** at limit **
  21  norm          10.115        15.205        .16441E-06   -.52504E-05
  22  Prefactor     10.927        5.0442        .91292E-07    .24720E-03
  23  Prefactor     .10000E-03    11.416        .20708E-06** at limit **
  24  Prefactor     .10000E-03    76.471       -.33784E-05** at limit **
  25  Prefactor     .10000E-03    20.677        .44382E-06** at limit **
  26  Prefactor     .10000E-03    8.0333        .12995E-06** at limit **
  27  Prefactor     76.686        92.937        .47176E-05   -.12223E-04
  28  Prefactor     .10000E-03    2.6987        .40938E-06** at limit **
  29  Normalizat    .97798        .18983        .12382E-05    .25869E-04
  30  Prefactor     1.0555        .22663       -.33390E-05   -.17589E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 33.052
  Prefactor  = 2.47005
  Prefactor  = 0.0001
  Prefactor  = 4.9824
  norm       = 1.52207
  Prefactor  = 0.000100415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79085
  Prefactor  = 10.5987
  norm       = 0.000100002
  norm       = 7.66673
  norm       = 4.33232
  norm       = 0.0001
  norm       = 10.1145
  Prefactor  = 10.9273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.6858
  Prefactor  = 0.0001
  Normalizat = 0.977983
  Prefactor  = 1.05547
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.116     FROM HESSE     STATUS=OK           596 CALLS     4587 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    171.28        .41697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          33.052        6.2570        .69695E-04   -1.4558    
   3  Prefactor     2.4700        6.6265        .12989E-02   -1.5394    
   4  Prefactor     .10000E-03    1.7828        .96361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9824        2.6986        .85483E-04   -1.5262    
   6  norm          1.5221        2.1294        .12718E-03   -1.5461    
   7  Prefactor     .10042E-03    8.9361        .61179E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1603        .12967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.4286        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.061        5.8839        .12632E-03   -1.5073    
  13  Prefactor     .10000E-03    57.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    64.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7908        3.0556        .16587E-03   -1.5440    
  16  Prefactor     10.599        18.877        .12307E-03   -1.5057    
  17  norm          .10000E-03    14.847        .31478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.6667        8.0717        .72415E-03   -1.5154    
  19  norm          4.3323        4.3826        .14586E-03   -1.5292    
  20  norm          .10000E-03    3.4775        .13591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.115        15.199        .12600E-03   -1.5072    
  22  Prefactor     10.927        5.0178        .10372E-03   -1.5047    
  23  Prefactor     .10000E-03    11.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    76.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.0487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     76.686        93.332        .45843E-04   -1.3954    
  28  Prefactor     .10000E-03    5.6601        .23743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97798        .22664        .24701E-03   -.93772    
  30  Prefactor     1.0555        .27014        .29760E-03   -.90903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95561e-10
Minuit parameter uncertainties:
  1  0.000594632
  2  6.25716
  3  6.62843
  4  1.86251e-06
  5  2.69862
  6  2.12951
  7  0.00385228
  8  3.53497e-06
  9  4.71515e-05
  10  8.57486e-06
  11  9.0084e-06
  12  5.88423
  13  6.86833e-05
  14  6.32259e-05
  15  3.0559
  16  18.8876
  17  0.00033925
  18  8.07288
  19  4.38296
  20  2.96278e-06
  21  15.2046
  22  5.01796
  23  9.42558e-06
  24  6.84101e-05
  25  0.000122531
  26  1.74386e-05
  27  93.5105
  28  2.67444e-05
  29  0.226864
  30  0.270492
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.323e-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:  1.055e+00  2.705e-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:  9.780e-01  2.269e-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: 9.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99696/likelihoodResults_245030401_245289601_4FGL_J1301.6+3336_daily_bin22.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) = 5592.1160858
delta logL = -7.38304979677e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5592.11601214
delta logL = -1.76189132617e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9486       1.0000          .0000       10.000    
     3 'Normalizat'    .97798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0555       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=   5592.116     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      290 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10169E-03    194.95        .36285E-02** at limit **
   2  Index         2.8859        5.6624        .50000        .34480E-05
   3  Normalizat    .97798        .82157E-02    .24701E-03    .99094E-04
   4  Prefactor     1.0555        .10285E-01    .29760E-03    .59249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010169
  Index      = 2.88589
  Normalizat = 0.97798
  Prefactor  = 1.05547
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.116     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      319 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10169E-03    1057.8        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8859        5.9364        .50000       -.43656    
   3  Normalizat    .97798        .19700E-01    .98803E-05   -.93772    
   4  Prefactor     1.0555        .24661E-01    .11904E-04   -.90903    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.03584e-09
Minuit parameter uncertainties:
  1  0.0861184
  2  1004.51
  3  0.0197005
  4  0.0246613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99696': 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) = 5592.11601206
delta logL = -9.40071913647e-08

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.017e-04  8.612e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.886e+00  1.005e+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:  1.055e+00  2.466e-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:  9.780e-01  1.970e-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/99696/cmap_HighResolution_245030401_245289601_4FGL_J1301.6+3336_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', job_status='DONE', photon_flux_upper_limit='9.84e-08', time_completed='2021-09-06 15:01:29.252425', job_id='99696', GAL2='1.06', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630965689.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-9.40e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='22' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:01:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 99696: <4FGL_J1301.6+3336_daily_bin22> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin22 195.418 33.6097 245030401 245289601 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 :                                   796.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

