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


Performing analysis on: 4FGL_J0617.6-4028_daily_bin1177
RA = 94.4106, Dec = -40.4803
tmin = 544406401, tmax = 544665601
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='287607', job_status='RUN', time_executed='2021-08-24 20:52:26.591291', time_epoch_executed='1629863546.59' WHERE source_name='4FGL J0617.6-4028' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287607

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287607/ft1_4FGL_J0617.6-4028_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287607/ft1_4FGL_J0617.6-4028_daily_bin1177.fits outfile=/scratch/kocevski/287607/ft1_filteredMKT_4FGL_J0617.6-4028_daily_bin1177.fits ra=94.4106 dec=-40.4803 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.93
user 7.38
sys 0.49

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.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/287607/ft1_filteredMKT_4FGL_J0617.6-4028_daily_bin1177.fits evtable="EVENTS" outfile="/scratch/kocevski/287607/ft1_filtered_4FGL_J0617.6-4028_daily_bin1177.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.73
user 0.36
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287607/ft1_filtered_4FGL_J0617.6-4028_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/287607/ltcube_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.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/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.fits
.....................!
real 8.16
user 7.51
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287607/ft1_filtered_4FGL_J0617.6-4028_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/287607/ltcube_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.fits outfile=/scratch/kocevski/287607/expmap_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.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/287607/ltcube_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.fits
.....................!
real 189.97
user 185.11
sys 4.39

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

Setting source of interest to:
4FGL J0617.6-4028 @ 94.4106 -40.4803

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/287607/ft1_filtered_4FGL_J0617.6-4028_daily_bin1177.fits scfile=/scratch/kocevski/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.fits outfile=/scratch/kocevski/287607/cmap_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.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=94.4106 yref=-40.4803 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.79
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287607/ft1_filtered_4FGL_J0617.6-4028_daily_bin1177.fits scfile=/scratch/kocevski/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.fits outfile=/scratch/kocevski/287607/cmap_HighResolution_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.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=94.4106 yref=-40.4803 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.88
user 0.37
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/287607/ft1_filtered_4FGL_J0617.6-4028_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287607/Model_4FGL_J0617.6-4028_daily_bin1177.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/287607/ft1_filtered_4FGL_J0617.6-4028_daily_bin1177.fits.....................!
real 50.34
user 48.56
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/287607/ft1_filtered_4FGL_J0617.6-4028_daily_bin1177.fits', '/scratch/kocevski/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.fits', expMap='/scratch/kocevski/287607/expmap_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.fits', expCube='/scratch/kocevski/287607/ltcube_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/287607/Model_4FGL_J0617.6-4028_daily_bin1177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0617.6-4028'

4FGL J0617.6-4028
   Spectrum: PowerLaw
323    Prefactor:  2.503e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.834e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  4.593e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/287607/ft1_filtered_4FGL_J0617.6-4028_daily_bin1177.fits
Spacecraft file(s): /scratch/kocevski/287607/ft2_4FGL_J0617.6-4028_daily_bin1177.fits
Exposure map: /scratch/kocevski/287607/expmap_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.fits
Exposure cube: /scratch/kocevski/287607/ltcube_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/287607/Model_4FGL_J0617.6-4028_daily_bin1177.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) = 3821.49633176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0553       1.0000         .10000E-03   10000.    
     3 'norm      '    9.2265       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10334E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9721       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.446       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7946       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.844       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .51083       1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    17.380       1.0000         .10000E-03   10000.    
    24 'norm      '    .11357E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84028       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1719       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3821.478     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2580 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9822        .33402E-06** at limit **
   2  norm          4.0548        4.4703        .18519E-06    .41013E-03
   3  norm          9.2267        5.6640        .47445E-05    .11957E-02
   4  Prefactor     .10000E-03    8.1440       -.69798E-06** at limit **
   5  Prefactor     .10010E-03    10.936       -.14652E-04** at limit **
   6  Prefactor     .10007E-03    4.8787       -.12364E-04** at limit **
   7  norm          .10007E-03    11.576       -.20651E-04** at limit **
   8  Prefactor     .10075E-03    9.0082        .25372E-04** at limit **
   9  norm          1.9722        1.6098       -.10532E-06   -.15451E-04
  10  norm          .10014E-03    6.3374        .15080E-04** at limit **
  11  Prefactor     .10314E-03    26.818       -.27215E-04** at limit **
  12  Prefactor     31.445        1.0072       -.65290E-07   -.10660E-04
  13  Prefactor     .10257E-03    52.858        .57154E-04** at limit **
  14  Prefactor     .10005E-03    17.002        .31220E-04** at limit **
  15  Prefactor     6.8002        1.5568        .23000E-05   -.55250E-03
  16  Prefactor     .10046E-03    6.5301       -.23560E-04** at limit **
  17  norm          .10002E-03    4.7412        .40210E-06** at limit **
  18  Prefactor     34.844        1.0089       -.90585E-07    .51865E-04
  19  Prefactor     .10000E-03    5.0816       -.53056E-06** at limit **
  20  Prefactor     .51340        .83739       -.18782E-05   -.23326E-04
  21  norm          .10001E-03    7.4930        .47824E-05** at limit **
  22  Prefactor     .10003E-03    11.651       -.11157E-04** at limit **
  23  norm          17.380        1.0053       -.72396E-07    .26810E-04
  24  norm          .10371E-03    211.54       -.81614E-04** at limit **
  25  Normalizat    .84038        .34159       -.14287E-05    .11787E-04
  26  Prefactor     1.1718        .18061       -.19123E-05   -.65262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.05485
  norm       = 9.22674
  Prefactor  = 0.0001
  Prefactor  = 0.000100103
  Prefactor  = 0.000100073
  norm       = 0.000100067
  Prefactor  = 0.000100746
  norm       = 1.97215
  norm       = 0.000100137
  Prefactor  = 0.000103135
  Prefactor  = 31.4452
  Prefactor  = 0.000102569
  Prefactor  = 0.000100053
  Prefactor  = 6.80025
  Prefactor  = 0.000100458
  norm       = 0.000100021
  Prefactor  = 34.8435
  Prefactor  = 0.0001
  Prefactor  = 0.513399
  norm       = 0.000100011
  Prefactor  = 0.000100028
  norm       = 17.3801
  norm       = 0.000103712
  Normalizat = 0.840378
  Prefactor  = 1.17177
 **********
 **   18 **HESSE 
 **********

 FCN=   3821.478     FROM HESSE     STATUS=OK           508 CALLS     3088 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0548        4.4864        .50057E-02   -1.5305    
   3  norm          9.2267        5.6804        .32986E-02   -1.5100    
   4  Prefactor     .10000E-03    8.0727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10010E-03    32.584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10007E-03    16.758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10007E-03    32.250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10075E-03    17.997        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9722        1.6238        .73812E-02   -1.5427    
  10  norm          .10014E-03    12.851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10314E-03    46.419        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.445        31.788        .17863E-02   -1.4586    
  13  Prefactor     .10257E-03    66.830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    29.196        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8002        204.23        .38482E-02   -1.5186    
  16  Prefactor     .10046E-03    16.308        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10002E-03    17.226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.844        38.359        .16972E-02   -1.4527    
  19  Prefactor     .10000E-03    5.0744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .51340        6.2797        .87459E-01   -1.5565    
  21  norm          .10001E-03    13.355        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    11.968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          17.380        13.830        .24018E-02   -1.4874    
  24  norm          .10371E-03    218.03        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .84038        .32069        .89166E-01   -.98588    
  26  Prefactor     1.1718        .16487        .35333E-01   -.87204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42971e-07
Minuit parameter uncertainties:
  1  4.72927e-05
  2  4.48675
  3  5.68069
  4  8.27234e-05
  5  0.00367356
  6  0.00221965
  7  0.00294305
  8  0.00733046
  9  1.62381
  10  0.00265358
  11  0.024146
  12  31.8055
  13  0.0262332
  14  0.0024788
  15  74.8151
  16  0.00546732
  17  0.00119866
  18  38.3858
  19  3.06834e-05
  20  3.59122
  21  0.000774897
  22  0.00115112
  23  13.8327
  24  0.0571037
  25  0.321418
  26  0.16494
Done.

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

Extracting fit parameters...

4FGL J0617.6-4028
   Spectrum: PowerLaw
323    Prefactor:  1.001e-04  2.479e-03  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.834e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  4.593e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
654    Prefactor:  1.172e+00  1.649e-01  0.000e+00  1.000e+01 ( 1.000e+00)
655        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
656        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
653   Normalization:  8.404e-01  3.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 94.411 -40.480
Photon Flux Upper Limit: 2.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287607/likelihoodResults_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.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) = 3821.4782555
delta logL = -0.000162230787737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3821.47809361
delta logL = -3.42644852935e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4828       1.0000          .0000       10.000    
     3 'Normalizat'    .84037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1718       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6570E+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=   3821.478     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      290 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10420E-03    .99315        .72250E-01** at limit **
   2  Index         3.2831        6.0103        .50000        .37283E-05
   3  Normalizat    .84038        .22073E-02    .39493E-03    .25447E-04
   4  Prefactor     1.1718        .11968E-02    .18312E-03    .32563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104201
  Index      = 3.28308
  Normalizat = 0.840377
  Prefactor  = 1.17178
 **********
 **   18 **HESSE 
 **********

 FCN=   3821.478     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      321 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10420E-03    322.32        .43826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2831        7.9784        .50000       -.35052    
   3  Normalizat    .84038        .28376E-01    .15797E-04   -.98588    
   4  Prefactor     1.1718        .15386E-01    .73247E-05   -.87204    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.94243e-08
Minuit parameter uncertainties:
  1  0.074001
  2  1527.9
  3  0.0283762
  4  0.0153859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287607': 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) = 3821.4780935
delta logL = -2.33144419326e-07

Extracting fit parameters...

4FGL J0617.6-4028
   Spectrum: PowerLaw
323    Prefactor:  1.042e-04  7.400e-02  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  3.283e+00  1.528e+03  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  4.593e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
654    Prefactor:  1.172e+00  1.539e-02  0.000e+00  1.000e+01 ( 1.000e+00)
655        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
656        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
653   Normalization:  8.404e-01  2.838e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 94.411 -40.480

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/287607/cmap_HighResolution_544406401_544665601_4FGL_J0617.6-4028_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', job_status='DONE', photon_flux_upper_limit='2.13e-07', time_completed='2021-08-24 21:02:36.120504', job_id='287607', GAL2='1.17', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1629864156.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='-2.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.83' WHERE bin_id='1177' AND source_name='4FGL J0617.6-4028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 21:02:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 287607: <4FGL_J0617.6-4028_daily_bin1177> in cluster <slac> Done

Job <4FGL_J0617.6-4028_daily_bin1177> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Aug 24 20:50:51 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 20:50:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 20:50:53 2021
Terminated at Tue Aug 24 21:02:36 2021
Results reported at Tue Aug 24 21:02:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.6-4028_daily_bin1177 94.4106 -40.4803 544406401 544665601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0617.6-4028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   609.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

