/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 4 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1301.6+3336_daily_bin188
RA = 195.418, Dec = 33.6097
tmin = 288057601, tmax = 288316801
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='101216', job_status='RUN', time_executed='2021-09-06 14:50:50.127185', time_epoch_executed='1630965050.13' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101216/ft1_4FGL_J1301.6+3336_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101216/ft2_4FGL_J1301.6+3336_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101216/ft1_4FGL_J1301.6+3336_daily_bin188.fits outfile=/scratch/kocevski/101216/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin188.fits ra=195.418 dec=33.6097 rad=12.0 tmin=288057601.0 tmax=288316801.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.63
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101216/ft2_4FGL_J1301.6+3336_daily_bin188.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/101216/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin188.fits evtable="EVENTS" outfile="/scratch/kocevski/101216/ft1_filtered_4FGL_J1301.6+3336_daily_bin188.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101216/ft1_filtered_4FGL_J1301.6+3336_daily_bin188.fits" evtable="EVENTS" scfile=/scratch/kocevski/101216/ft2_4FGL_J1301.6+3336_daily_bin188.fits sctable="SC_DATA" outfile=/scratch/kocevski/101216/ltcube_288057601_288316801_4FGL_J1301.6+3336_daily_bin188.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/101216/ft2_4FGL_J1301.6+3336_daily_bin188.fits
.....................!
real 11.90
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101216/ft1_filtered_4FGL_J1301.6+3336_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/101216/ft2_4FGL_J1301.6+3336_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/101216/ltcube_288057601_288316801_4FGL_J1301.6+3336_daily_bin188.fits outfile=/scratch/kocevski/101216/expmap_288057601_288316801_4FGL_J1301.6+3336_daily_bin188.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/101216/ltcube_288057601_288316801_4FGL_J1301.6+3336_daily_bin188.fits
.....................!
real 193.56
user 187.23
sys 5.89

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/101216/ft1_filtered_4FGL_J1301.6+3336_daily_bin188.fits scfile=/scratch/kocevski/101216/ft2_4FGL_J1301.6+3336_daily_bin188.fits outfile=/scratch/kocevski/101216/cmap_288057601_288316801_4FGL_J1301.6+3336_daily_bin188.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101216/ft1_filtered_4FGL_J1301.6+3336_daily_bin188.fits scfile=/scratch/kocevski/101216/ft2_4FGL_J1301.6+3336_daily_bin188.fits outfile=/scratch/kocevski/101216/cmap_HighResolution_288057601_288316801_4FGL_J1301.6+3336_daily_bin188.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.418 yref=33.6097 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8979       1.0000         .10000E-03   10000.    
     2 'norm      '    3.6694       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11966E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9402       1.0000         .10000E-03   10000.    
     6 'norm      '    .18731E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.368       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.984       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.002       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3071       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.094       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.086       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1821       1.0000         .10000E-03   10000.    
    18 'norm      '    20.376       1.0000         .10000E-03   10000.    
    19 'norm      '    7.4720       1.0000         .10000E-03   10000.    
    20 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21315E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .51618E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .93243E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2325       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3685       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71164       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=   5973.058     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     4025 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8978        105.60       -.10195E-04    .16901E-05
   2  norm          3.6694        2.3729        .50984E-07    .89054E-04
   3  Prefactor     8.6370        9.9809       -.13682E-06   -.33404E-04
   4  Prefactor     .10000E-03    1.0905       -.12535E-07** at limit **
   5  Prefactor     2.9405        1.9254        .55701E-07    .46932E-04
   6  norm          .10000E-03    4.1339        .42436E-06** at limit **
   7  Prefactor     17.373        12.683       -.16793E-05    .10961E-03
   8  Prefactor     20.987        19.659        .20715E-05   -.99773E-04
   9  Prefactor     30.729        89.525       -.81249E-06    .80177E-05
  10  Prefactor     .10000E-03    8.8285       -.44417E-07** at limit **
  11  Prefactor     .10000E-03    6.0151       -.33422E-07** at limit **
  12  norm          1.3156        3.9057       -.95961E-06   -.84056E-03
  13  Prefactor     .10000E-03    24.774       -.87982E-05** at limit **
  14  Prefactor     .10000E-03    23.002        .75436E-05** at limit **
  15  norm          10.096        5.2972       -.13185E-06   -.12555E-03
  16  Prefactor     13.084        16.309       -.13576E-05    .29143E-04
  17  norm          1.1822        3.1082       -.42993E-06   -.67071E-03
  18  norm          20.378        14.849       -.16717E-05    .14504E-03
  19  norm          7.4697        4.6373       -.34778E-07   -.14321E-03
  20  norm          .10000E-03    4.1039       -.18003E-07** at limit **
  21  norm          .10000E-03    26.970        .52645E-05** at limit **
  22  Prefactor     .10000E-03    2.2883        .67518E-07** at limit **
  23  Prefactor     .10000E-03    14.414       -.33838E-06** at limit **
  24  Prefactor     .10000E-03    168.02        .21245E-05** at limit **
  25  Prefactor     .10000E-03    17.091       -.13657E-05** at limit **
  26  Prefactor     .10000E-03    7.3020       -.24152E-07** at limit **
  27  Prefactor     .10000E-03    26.655       -.32351E-05** at limit **
  28  Prefactor     4.2325        4.7395       -.23717E-06   -.28787E-03
  29  Normalizat    1.3683        .19064        .77250E-06   -.51870E-04
  30  Prefactor     .71166        .22236        .41549E-06   -.27740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8978
  norm       = 3.66943
  Prefactor  = 8.63703
  Prefactor  = 0.000100002
  Prefactor  = 2.94046
  norm       = 0.000100003
  Prefactor  = 17.3726
  Prefactor  = 20.9865
  Prefactor  = 30.7294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31565
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 10.0958
  Prefactor  = 13.0838
  norm       = 1.18219
  norm       = 20.378
  norm       = 7.46965
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.23255
  Normalizat = 1.36835
  Prefactor  = 0.711661
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.058     FROM HESSE     STATUS=OK           594 CALLS     4619 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8978        106.35        .23871E-03   -1.5367    
   2  norm          3.6694        2.3256        .90446E-04   -1.5325    
   3  Prefactor     8.6370        9.9544        .13641E-03   -1.5120    
   4  Prefactor     .10000E-03    13.337        .15248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9405        1.9216        .83311E-04   -1.5365    
   6  norm          .10000E-03    14.342        .30197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.373        12.621        .96106E-04   -1.4874    
   8  Prefactor     20.987        19.576        .87438E-04   -1.4791    
   9  Prefactor     30.729        88.567        .71961E-04   -1.4599    
  10  Prefactor     .10000E-03    8.9271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.0720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3156        3.9616        .24787E-03   -1.5479    
  13  Prefactor     .10000E-03    24.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.096        5.2978        .12335E-03   -1.5072    
  16  Prefactor     13.084        16.149        .11073E-03   -1.4984    
  17  norm          1.1822        3.0609        .21347E-03   -1.5491    
  18  norm          20.378        14.796        .88731E-04   -1.4805    
  19  norm          7.4697        4.4430        .11838E-03   -1.5161    
  20  norm          .10000E-03    4.1163        .15226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    27.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.3624        .20153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    67.345        .50337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    170.97        .20808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.3068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.2325        4.7464        .17125E-03   -1.5296    
  29  Normalizat    1.3683        .22353        .22463E-03   -.81549    
  30  Prefactor     .71166        .25866        .35258E-03   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80026e-09
Minuit parameter uncertainties:
  1  35.1769
  2  2.32565
  3  9.95635
  4  0.000303238
  5  1.92168
  6  0.000433721
  7  12.6226
  8  19.5819
  9  88.9492
  10  6.98298e-06
  11  2.47575e-06
  12  3.9624
  13  0.000382133
  14  0.000286073
  15  5.29804
  16  16.1544
  17  3.06135
  18  14.7983
  19  4.44318
  20  2.5566e-06
  21  0.000295353
  22  1.49003e-05
  23  0.000475148
  24  0.000416654
  25  3.6521e-05
  26  1.75054e-06
  27  0.000136626
  28  4.74683
  29  0.223693
  30  0.259101
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.861e-04  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:  7.117e-01  2.591e-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.368e+00  2.237e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101216/likelihoodResults_288057601_288316801_4FGL_J1301.6+3336_daily_bin188.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) = 5973.05801708
delta logL = -0.000208915988878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5973.0578083
delta logL = -1.32822606247e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5034       1.0000          .0000       10.000    
     3 'Normalizat'    1.3684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71167       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=   5973.058     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      241 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2268.5        .90712E-02** at limit **
   2  Index         2.5171        8.6808        .50000       -.57590E-05
   3  Normalizat    1.3683        .57366E-01    .50810E-01   -.69547E-04
   4  Prefactor     .71166        .67449E-01    .79630E-01    .41763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.51709
  Normalizat = 1.36835
  Prefactor  = 0.711662
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.058     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5171        5.3328        .50000       -.51966    
   3  Normalizat    1.3683        .21555        .22463E-03   -.81549    
   4  Prefactor     .71166        .25311        .35258E-03   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2521e-10
Minuit parameter uncertainties:
  1  0.000612546
  2  8.42278
  3  0.215691
  4  0.25352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101216': 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) = 5973.05780827
delta logL = -1.03509592009e-07

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.125e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.517e+00  8.423e+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:  7.117e-01  2.535e-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.368e+00  2.157e-01  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/101216/cmap_HighResolution_288057601_288316801_4FGL_J1301.6+3336_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2021-09-06 15:04:22.137800', job_id='101216', GAL2='0.71', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630965862.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-1.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='188' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:04:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 101216: <4FGL_J1301.6+3336_daily_bin188> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin188 195.418 33.6097 288057601 288316801 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 :                                   808.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            827 sec.

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

