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


Performing analysis on: 4FGL_J1302.8+5748_daily_bin90
RA = 195.721, Dec = 57.8146
tmin = 262656001, tmax = 262915201
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='109969', job_status='RUN', time_executed='2021-09-06 15:16:02.719483', time_epoch_executed='1630966562.72' WHERE source_name='4FGL J1302.8+5748' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/109969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/109969/ft1_4FGL_J1302.8+5748_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/109969/ft2_4FGL_J1302.8+5748_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/109969/ft1_4FGL_J1302.8+5748_daily_bin90.fits outfile=/scratch/kocevski/109969/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin90.fits ra=195.721 dec=57.8146 rad=12.0 tmin=262656001.0 tmax=262915201.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.48
user 1.31
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/109969/ft2_4FGL_J1302.8+5748_daily_bin90.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/109969/ft2_4FGL_J1302.8+5748_daily_bin90.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/109969/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin90.fits evtable="EVENTS" outfile="/scratch/kocevski/109969/ft1_filtered_4FGL_J1302.8+5748_daily_bin90.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.54
user 0.38
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/109969/ft1_filtered_4FGL_J1302.8+5748_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/109969/ft2_4FGL_J1302.8+5748_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/109969/ltcube_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.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/109969/ft2_4FGL_J1302.8+5748_daily_bin90.fits
.....................!
real 20.31
user 19.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/109969/ft1_filtered_4FGL_J1302.8+5748_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/109969/ft2_4FGL_J1302.8+5748_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/109969/ltcube_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.fits outfile=/scratch/kocevski/109969/expmap_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.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/109969/ltcube_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.fits
.....................!
real 192.90
user 187.56
sys 4.66

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1302.8+5748 @ 195.721 57.8146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/109969/ft1_filtered_4FGL_J1302.8+5748_daily_bin90.fits scfile=/scratch/kocevski/109969/ft2_4FGL_J1302.8+5748_daily_bin90.fits outfile=/scratch/kocevski/109969/cmap_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.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.721 yref=57.8146 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 1.06
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/109969/ft1_filtered_4FGL_J1302.8+5748_daily_bin90.fits scfile=/scratch/kocevski/109969/ft2_4FGL_J1302.8+5748_daily_bin90.fits outfile=/scratch/kocevski/109969/cmap_HighResolution_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.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.721 yref=57.8146 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.86
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/109969/ft1_filtered_4FGL_J1302.8+5748_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/109969/ft2_4FGL_J1302.8+5748_daily_bin90.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/109969/Model_4FGL_J1302.8+5748_daily_bin90.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/109969/ft1_filtered_4FGL_J1302.8+5748_daily_bin90.fits.....................!
real 53.20
user 47.04
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/109969/ft1_filtered_4FGL_J1302.8+5748_daily_bin90.fits', '/scratch/kocevski/109969/ft2_4FGL_J1302.8+5748_daily_bin90.fits', expMap='/scratch/kocevski/109969/expmap_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.fits', expCube='/scratch/kocevski/109969/ltcube_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/109969/Model_4FGL_J1302.8+5748_daily_bin90.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1302.8+5748'

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.988e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/109969/ft1_filtered_4FGL_J1302.8+5748_daily_bin90.fits
Spacecraft file(s): /scratch/kocevski/109969/ft2_4FGL_J1302.8+5748_daily_bin90.fits
Exposure map: /scratch/kocevski/109969/expmap_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.fits
Exposure cube: /scratch/kocevski/109969/ltcube_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/109969/Model_4FGL_J1302.8+5748_daily_bin90.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) = 4836.37838702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2936       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1081       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .98524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.8814       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6909       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.356       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19249       1.0000         .10000E-03   10000.    
    16 'norm      '    15.184       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.283       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3445       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2178       1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.037       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9450       1.0000         .10000E-03   10000.    
    26 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.636       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .58166E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    11.099       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    23.491       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4580       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .59965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4836.368     FROM MIGRAD    STATUS=CONVERGED    957 CALLS     4869 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2620       -.11344E-07** at limit **
   2  norm          5.2937        5.7433        .11140E-05    .82641E-05
   3  Prefactor     9.1082        7.9401       -.21824E-06    .22708E-04
   4  Prefactor     .10000E-03    9.1076       -.85382E-07** at limit **
   5  norm          .98753        1.8675       -.35190E-06   -.51748E-03
   6  Prefactor     .10000E-03    23.944       -.68556E-06** at limit **
   7  Prefactor     .10000E-03    119.47        .10852E-05** at limit **
   8  norm          8.8818        7.0722        .65308E-07    .29400E-04
   9  Prefactor     .10000E-03    13.949       -.16678E-06** at limit **
  10  Prefactor     .10004E-03    8.5566       -.16946E-05** at limit **
  11  norm          2.6926        2.5078        .14444E-06    .68638E-03
  12  Prefactor     .10000E-03    9.9713       -.77152E-07** at limit **
  13  norm          2.8626        2.2230        .22259E-07    .11005E-03
  14  Prefactor     49.374        65.795       -.19340E-05    .13457E-04
  15  Prefactor     .15695        13.360        .12236E-06    .20912E-03
  16  norm          15.184        6.1900        .53600E-07    .27562E-04
  17  Prefactor     49.281        56.443       -.49583E-06   -.10778E-05
  18  Prefactor     .10000E-03    37.112       -.10444E-05** at limit **
  19  Prefactor     5.3435        11.634        .42181E-06    .23592E-04
  20  Prefactor     .10000E-03    10.479       -.10282E-06** at limit **
  21  norm          .10000E-03    3.9248       -.17473E-06** at limit **
  22  Prefactor     .10002E-03    208.00        .37855E-06** at limit **
  23  Prefactor     4.2115        9.9201        .52525E-05   -.53903E-04
  24  Prefactor     26.150        89.886       -.16555E-04   -.85946E-06
  25  Prefactor     2.9594        27.513       -.72198E-05    .46950E-05
  26  norm          .10000E-03    39.548        .33531E-06** at limit **
  27  norm          .10000E-03    4.6894        .12222E-05** at limit **
  28  Prefactor     31.635        55.814       -.75571E-06   -.20717E-05
  29  Prefactor     .10000E-03    624.28        .14782E-04** at limit **
  30  Prefactor     11.114        94.371       -.27070E-05    .19252E-05
  31  Prefactor     .10000E-03    2.6161        .20124E-06** at limit **
  32  Prefactor     23.504        54.016        .18765E-05   -.31893E-05
  33  Normalizat    1.4577        .22162       -.36445E-05    .14557E-03
  34  Prefactor     .59995        .23703        .71037E-05    .11126E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.29374
  Prefactor  = 9.10821
  Prefactor  = 0.0001
  norm       = 0.98753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.88182
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  norm       = 2.69257
  Prefactor  = 0.0001
  norm       = 2.86257
  Prefactor  = 49.3741
  Prefactor  = 0.156955
  norm       = 15.184
  Prefactor  = 49.2812
  Prefactor  = 0.0001
  Prefactor  = 5.34347
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 4.21149
  Prefactor  = 26.1496
  Prefactor  = 2.9594
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 31.6346
  Prefactor  = 0.0001
  Prefactor  = 11.1139
  Prefactor  = 0.0001
  Prefactor  = 23.5039
  Normalizat = 1.45766
  Prefactor  = 0.599954
 **********
 **   18 **HESSE 
 **********

 FCN=   4836.368     FROM HESSE     STATUS=OK           740 CALLS     5609 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2631        .14022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2937        5.7013        .79764E-03   -1.5248    
   3  Prefactor     9.1082        7.9395        .13280E-03   -1.5104    
   4  Prefactor     .10000E-03    9.1126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .98753        1.6277        .12505E-02   -1.5509    
   6  Prefactor     .10000E-03    24.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    119.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.8818        7.0695        .13449E-03   -1.5112    
   9  Prefactor     .10000E-03    13.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    30.067        .35349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6926        2.4275        .96677E-04   -1.5380    
  12  Prefactor     .10000E-03    9.9989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8626        2.2198        .88536E-04   -1.5370    
  14  Prefactor     49.374        65.818        .57080E-04   -1.4301    
  15  Prefactor     .15695        23.145        .68691E-01   -1.5629    
  16  norm          15.184        6.1884        .10279E-03   -1.4928    
  17  Prefactor     49.281        56.422        .57122E-04   -1.4303    
  18  Prefactor     .10000E-03    37.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3435        11.579        .17384E-03   -1.5246    
  20  Prefactor     .10000E-03    10.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.0609        .26803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    207.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2115        10.114        .98107E-03   -1.5298    
  24  Prefactor     26.150        91.009        .78507E-04   -1.4685    
  25  Prefactor     2.9594        27.942        .23667E-03   -1.5364    
  26  norm          .10000E-03    39.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.7767        .14747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     31.635        55.634        .71238E-04   -1.4582    
  29  Prefactor     .10000E-03    623.53        .21080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     11.114        94.300        .12025E-03   -1.5041    
  31  Prefactor     .10000E-03    2.6459        .10961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     23.504        54.070        .82646E-04   -1.4738    
  33  Normalizat    1.4577        .24848        .21110E-03   -.78975    
  34  Prefactor     .59995        .26332        .36551E-03   -1.0759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67366e-09
Minuit parameter uncertainties:
  1  2.74348e-06
  2  5.70191
  3  7.94039
  4  6.03683e-06
  5  1.62776
  6  6.00904e-05
  7  0.000162155
  8  7.07016
  9  1.5507e-05
  10  0.00216178
  11  2.42756
  12  1.39243e-05
  13  2.21984
  14  65.9155
  15  3.81226
  16  6.18864
  17  56.4829
  18  5.31716e-05
  19  11.5836
  20  5.25163e-07
  21  7.34727e-06
  22  0.0036068
  23  10.1185
  24  91.4975
  25  18.1978
  26  4.05071e-06
  27  9.08431e-05
  28  55.725
  29  0.000433212
  30  64.8852
  31  1.09502e-05
  32  54.1827
  33  0.248685
  34  0.263862
Done.

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

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.570e-01  3.812e+00  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  6.000e-01  2.639e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.458e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 195.721 57.815
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/109969/likelihoodResults_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.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) = 4834.80206142
delta logL = 1.56566141707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4834.77435632
delta logL = 1.59336651679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32979       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6139       1.0000          .0000       10.000    
     3 'Normalizat'    1.2901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4834.774     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      243 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32890        2.8364        .51319E-02    .30627E-03
   2  Index         4.6151        2.1741        .78151E-01    .10969E-03
   3  Normalizat    1.2901        .57070E-01    .50131E-01   -.38135E-04
   4  Prefactor     .71782        .65903E-01    .75999E-01    .16950E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.328897
  Index      = 4.61509
  Normalizat = 1.29011
  Prefactor  = 0.717825
 **********
 **   18 **HESSE 
 **********

 FCN=   4834.774     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32890        5.5366        .22993E-04   -1.5593    
   2  Index         4.6151        3.3095        .30777E-02   -.77058E-01
   3  Normalizat    1.2901        .21630        .22163E-03   -.83862    
   4  Prefactor     .71782        .24264        .33643E-03   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.71081e-10
Minuit parameter uncertainties:
  1  2.69874
  2  3.61919
  3  0.216453
  4  0.242997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/109969': 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) = 4834.77435528
delta logL = 1.59336755615

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  3.289e-01  2.699e+00  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  4.615e+00  3.619e+00  0.000e+00  1.000e+01 (-1.000e+00)
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  7.178e-01  2.430e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.290e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.52
Ra Dec: 195.721 57.815
Photon Index (Free Index): 4.62 +/- 3.62
Photon Flux (Free Index): 1.48e-07 +/- 9.72e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/109969/cmap_HighResolution_262656001_262915201_4FGL_J1302.8+5748_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-03', comment='SUCCESS', energy_flux2='2.04e-05', dlogl='1.59e+00', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-06 15:32:03.688828', photon_index_error2='3.62', photon_index2='4.62', ts='0.00', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.31e-05', EG='1.46', time_epoch_completed='1630967523.69', return_code='0', job_id='109969', GAL2='0.72', EG2='1.29', return_code2='102', photon_flux_error2='9.72e-08', ts2='3.52', photon_index='2.27' WHERE bin_id='90' AND source_name='4FGL J1302.8+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:32:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 109969: <4FGL_J1302.8+5748_daily_bin90> in cluster <slac> Done

Job <4FGL_J1302.8+5748_daily_bin90> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 15:15:50 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:15:51 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:15:51 2021
Terminated at Mon Sep  6 15:32:04 2021
Results reported at Mon Sep  6 15:32:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1302.8+5748_daily_bin90 195.721 57.8146 262656001 262915201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1302.8+5748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   952.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

