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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin555
RA = 195.418, Dec = 33.6097
tmin = 383184001, tmax = 383443201
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='103029', job_status='RUN', time_executed='2021-09-06 14:56:06.178373', time_epoch_executed='1630965366.18' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103029/ft1_4FGL_J1301.6+3336_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103029/ft2_4FGL_J1301.6+3336_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103029/ft1_4FGL_J1301.6+3336_daily_bin555.fits outfile=/scratch/kocevski/103029/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin555.fits ra=195.418 dec=33.6097 rad=12.0 tmin=383184001.0 tmax=383443201.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.48
user 3.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103029/ft1_filtered_4FGL_J1301.6+3336_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/103029/ft2_4FGL_J1301.6+3336_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/103029/ltcube_383184001_383443201_4FGL_J1301.6+3336_daily_bin555.fits outfile=/scratch/kocevski/103029/expmap_383184001_383443201_4FGL_J1301.6+3336_daily_bin555.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/103029/ltcube_383184001_383443201_4FGL_J1301.6+3336_daily_bin555.fits
.....................!
real 190.30
user 185.19
sys 4.38

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/103029/ft1_filtered_4FGL_J1301.6+3336_daily_bin555.fits scfile=/scratch/kocevski/103029/ft2_4FGL_J1301.6+3336_daily_bin555.fits outfile=/scratch/kocevski/103029/cmap_383184001_383443201_4FGL_J1301.6+3336_daily_bin555.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103029/ft1_filtered_4FGL_J1301.6+3336_daily_bin555.fits scfile=/scratch/kocevski/103029/ft2_4FGL_J1301.6+3336_daily_bin555.fits outfile=/scratch/kocevski/103029/cmap_HighResolution_383184001_383443201_4FGL_J1301.6+3336_daily_bin555.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.084       1.0000         .10000E-03   10000.    
     2 'norm      '    11.666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1192       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .91645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.131       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1702       1.0000         .10000E-03   10000.    
    18 'norm      '    9.6463       1.0000         .10000E-03   10000.    
    19 'norm      '    3.8607       1.0000         .10000E-03   10000.    
    20 'norm      '    .10936E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.2971       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.475       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.094       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .48109       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1251       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68421       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=   5409.051     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3904 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.081        43.780       -.20332E-05   -.51174E-04
   2  norm          11.666        3.8766       -.10418E-05   -.41213E-03
   3  Prefactor     .10000E-03    4.1866        .41695E-05** at limit **
   4  Prefactor     .10000E-03    1.7571        .22704E-06** at limit **
   5  Prefactor     .10000E-03    1.1667        .31019E-06** at limit **
   6  norm          2.1192        2.4000       -.65561E-07   -.16003E-04
   7  Prefactor     .10000E-03    2.9150       -.26828E-07** at limit **
   8  Prefactor     .10000E-03    8.4589        .20419E-05** at limit **
   9  Prefactor     .10000E-03    43.428        .18621E-05** at limit **
  10  Prefactor     1.2131        2.4915        .64268E-06   -.10993E-02
  11  Prefactor     .10000E-03    1.6366        .17637E-07** at limit **
  12  norm          .91594        3.3330       -.14073E-06   -.78134E-04
  13  Prefactor     .10000E-03    14.277       -.83909E-06** at limit **
  14  Prefactor     .10000E-03    7.3700       -.42263E-05** at limit **
  15  norm          11.131        4.8092        .73666E-07    .30807E-04
  16  Prefactor     .10000E-03    7.1376        .40026E-05** at limit **
  17  norm          3.1700        3.4847        .29855E-07   -.51161E-04
  18  norm          9.6462        9.1476        .58629E-07    .47703E-05
  19  norm          3.8612        2.9990       -.97363E-07   -.68001E-03
  20  norm          .10000E-03    4.3924        .85229E-06** at limit **
  21  norm          9.2964        15.423       -.77610E-07    .53627E-05
  22  Prefactor     .10000E-03    1.0543        .12286E-06** at limit **
  23  Prefactor     .10000E-03    7.2701       -.26716E-05** at limit **
  24  Prefactor     21.458        49.152       -.23774E-04   -.23370E-05
  25  Prefactor     22.104        16.682        .17808E-05    .22028E-03
  26  Prefactor     .38819        13.111       -.15511E-05    .11656E-03
  27  Prefactor     .10000E-03    43.163       -.37316E-06** at limit **
  28  Prefactor     .10000E-03    4.0502       -.41012E-05** at limit **
  29  Normalizat    1.1249        .16676        .50187E-06    .12992E-03
  30  Prefactor     .68445        .20687        .16134E-05    .54154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.0812
  norm       = 11.6661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21314
  Prefactor  = 0.0001
  norm       = 0.915937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1307
  Prefactor  = 0.0001
  norm       = 3.17001
  norm       = 9.64622
  norm       = 3.86116
  norm       = 0.000100001
  norm       = 9.29639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4583
  Prefactor  = 22.1041
  Prefactor  = 0.388189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12491
  Prefactor  = 0.68445
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.051     FROM HESSE     STATUS=OK           586 CALLS     4490 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.081        43.838        .42810E-04   -1.3828    
   2  norm          11.666        3.8224        .79557E-04   -1.5025    
   3  Prefactor     .10000E-03    4.2174        .14677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8025        .18935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0824        .15245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1192        2.3994        .11813E-03   -1.5417    
   7  Prefactor     .10000E-03    2.9182        .12263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.4654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2131        15.299        .20511E-02   -1.5488    
  11  Prefactor     .10000E-03    1.6400        .91877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .91594        3.2996        .24400E-03   -1.5517    
  13  Prefactor     .10000E-03    14.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.131        4.8417        .10184E-03   -1.5041    
  16  Prefactor     .10000E-03    7.1697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1700        3.4784        .13951E-03   -1.5352    
  18  norm          9.6462        9.1504        .12903E-03   -1.5087    
  19  norm          3.8612        2.6540        .95692E-04   -1.5315    
  20  norm          .10000E-03    7.2200        .26533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.2964        15.420        .13144E-03   -1.5098    
  22  Prefactor     .10000E-03    1.0731        .73701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.3323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.458        49.058        .86433E-04   -1.4781    
  25  Prefactor     22.104        16.719        .85215E-04   -1.4767    
  26  Prefactor     .38819        133.95        .50153E-02   -1.5583    
  27  Prefactor     .10000E-03    43.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.1858        .28832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1249        .19442        .20350E-03   -.88956    
  30  Prefactor     .68445        .24154        .31467E-03   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63706e-09
Minuit parameter uncertainties:
  1  43.8536
  2  3.82245
  3  1.38519e-06
  4  3.44137e-05
  5  3.38352e-05
  6  2.39955
  7  2.42335e-08
  8  2.58204e-06
  9  1.54137e-05
  10  8.61853
  11  1.14319e-06
  12  3.30023
  13  6.53852e-06
  14  5.20945e-06
  15  4.84189
  16  2.67579e-06
  17  3.47862
  18  9.15171
  19  2.6541
  20  0.000146432
  21  15.4271
  22  2.10387e-05
  23  6.28175e-05
  24  49.1508
  25  16.7225
  26  14.4528
  27  3.83712e-06
  28  7.36162e-06
  29  0.194541
  30  0.241909
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.209e-06  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.845e-01  2.419e-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.125e+00  1.945e-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: 5.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/103029/likelihoodResults_383184001_383443201_4FGL_J1301.6+3336_daily_bin555.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) = 5409.05179419
delta logL = -0.000645017210445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5409.05114921
delta logL = -4.18704075855e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5721       1.0000          .0000       10.000    
     3 'Normalizat'    1.1249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68446       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=   5409.051     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.235        .18142E-01** at limit **
   2  Index         1.9473        5.8932        .50000        .42626E-06
   3  Normalizat    1.1249        .68872E-02    .20350E-03    .68765E-03
   4  Prefactor     .68445        .85332E-02    .31467E-03    .44924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9473
  Normalizat = 1.12491
  Prefactor  = 0.684452
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.051     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    261.74        .22909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9473        7.3562        .50000       -.65674    
   3  Normalizat    1.1249        .20827E-01    .40699E-04   -.88956    
   4  Prefactor     .68445        .25804E-01    .62934E-04   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2366e-08
Minuit parameter uncertainties:
  1  0.00027355
  2  906.895
  3  0.0208271
  4  0.0258048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103029': 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) = 5409.05114729
delta logL = 1.87648856809e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.735e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.947e+00  9.069e+02  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.845e-01  2.580e-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.125e+00  2.083e-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/103029/cmap_HighResolution_383184001_383443201_4FGL_J1301.6+3336_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-06 15:08:57.806872', job_id='103029', GAL2='0.68', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630966137.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='555' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:08:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 103029: <4FGL_J1301.6+3336_daily_bin555> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin555> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:55:49 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:55:50 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:55:50 2021
Terminated at Mon Sep  6 15:08:58 2021
Results reported at Mon Sep  6 15:08:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin555 195.418 33.6097 383184001 383443201 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 :                                   762.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

