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


Performing analysis on: 4FGL_J0617.2+5701_daily_bin1214
RA = 94.3162, Dec = 57.0249
tmin = 553996801, tmax = 554256001
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='272798', job_status='RUN', time_executed='2021-08-24 20:19:38.622509', time_epoch_executed='1629861578.62' WHERE source_name='4FGL J0617.2+5701' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272798

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272798/ft1_4FGL_J0617.2+5701_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272798/ft1_4FGL_J0617.2+5701_daily_bin1214.fits outfile=/scratch/kocevski/272798/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin1214.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=553996801.0 tmax=554256001.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 8.80
user 2.44
sys 6.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.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/272798/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin1214.fits evtable="EVENTS" outfile="/scratch/kocevski/272798/ft1_filtered_4FGL_J0617.2+5701_daily_bin1214.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 6.50
user 0.34
sys 6.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272798/ft1_filtered_4FGL_J0617.2+5701_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/272798/ltcube_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.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/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.fits
.....................!
real 19.96
user 12.92
sys 6.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272798/ft1_filtered_4FGL_J0617.2+5701_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/272798/ltcube_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.fits outfile=/scratch/kocevski/272798/expmap_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.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/272798/ltcube_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.fits
.....................!
real 200.08
user 187.06
sys 12.63

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 179 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0617.2+5701 @ 94.3162 57.0249

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/272798/ft1_filtered_4FGL_J0617.2+5701_daily_bin1214.fits scfile=/scratch/kocevski/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.fits outfile=/scratch/kocevski/272798/cmap_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.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.3162 yref=57.0249 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 6.38
user 0.37
sys 5.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272798/ft1_filtered_4FGL_J0617.2+5701_daily_bin1214.fits scfile=/scratch/kocevski/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.fits outfile=/scratch/kocevski/272798/cmap_HighResolution_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.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.3162 yref=57.0249 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 6.33
user 0.40
sys 5.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/272798/ft1_filtered_4FGL_J0617.2+5701_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272798/Model_4FGL_J0617.2+5701_daily_bin1214.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/272798/ft1_filtered_4FGL_J0617.2+5701_daily_bin1214.fits......................!
real 39.22
user 30.28
sys 8.84

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272798/ft1_filtered_4FGL_J0617.2+5701_daily_bin1214.fits', '/scratch/kocevski/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.fits', expMap='/scratch/kocevski/272798/expmap_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.fits', expCube='/scratch/kocevski/272798/ltcube_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272798/Model_4FGL_J0617.2+5701_daily_bin1214.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0617.2+5701'

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  4.712e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/272798/ft1_filtered_4FGL_J0617.2+5701_daily_bin1214.fits
Spacecraft file(s): /scratch/kocevski/272798/ft2_4FGL_J0617.2+5701_daily_bin1214.fits
Exposure map: /scratch/kocevski/272798/expmap_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.fits
Exposure cube: /scratch/kocevski/272798/ltcube_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272798/Model_4FGL_J0617.2+5701_daily_bin1214.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) = 1166.16572982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    756.44       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11078E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.190       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.820       1.0000         .10000E-03   10000.    
    12 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    13 'norm      '    1580.8       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16312E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16449E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .75726       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1166.134     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     2422 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    42.962       -.34865E-06** at limit **
   2  Prefactor     756.61        881.50        .60827E-04    .41624E-05
   3  norm          .10000E-03    351.05        .83302E-04** at limit **
   4  norm          .10000E-03    1.0710        .22049E-07** at limit **
   5  Prefactor     .10000E-03    9159.2       -.59097E-03** at limit **
   6  norm          .10000E-03    8.2660       -.26007E-07** at limit **
   7  Prefactor     17.194        30.636       -.98345E-06    .81963E-05
   8  Prefactor     .10000E-03    26.389        .57319E-08** at limit **
   9  Prefactor    10000.0        406.77        .27605E-04** at limit **
  10  Prefactor     .10000E-03    133.69       -.55799E-05** at limit **
  11  Prefactor     53.839        86.700        .15177E-04    .69167E-05
  12  norm         10000.0        1388.2        .36462E-03** at limit **
  13  norm          1583.4        5238.8        .73609E-03    .25976E-05
  14  Prefactor     .10000E-03    21.023       -.27810E-06** at limit **
  15  Prefactor     .10000E-03    413.65       -.41529E-04** at limit **
  16  Prefactor     .10000E-03    20.898        .11024E-06** at limit **
  17  Prefactor     .10000E-03    67.304       -.71959E-07** at limit **
  18  Normalizat    .10000E-01    .14167       -.66900E-05** at limit **
  19  Prefactor     .75732        .11660       -.39413E-05    .24381E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 756.607
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1936
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 53.8387
  norm       = 10000
  norm       = 1583.45
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 0.757318
 **********
 **   18 **HESSE 
 **********

 FCN=   1166.134     FROM HESSE     STATUS=OK           252 CALLS     2674 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    42.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     756.61        882.70        .75635E-04   -1.0135    
   3  norm          .10000E-03    350.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0778        .34504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9158.2        .20694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.2672        .95912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.194        30.643        .96600E-04   -1.4878    
   8  Prefactor     .10000E-03    26.390        .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        406.82        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    133.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     53.839        86.694        .54674E-04   -1.4239    
  12  norm         10000.0        1388.6        .20470E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1583.4        5237.5        .54823E-04   -.75229    
  14  Prefactor     .10000E-03    21.025        .15299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    413.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.898        .15254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    67.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    .14805        .77858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .75732        .11462        .13777E-03   -1.0132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15433e-10
Minuit parameter uncertainties:
  1  9.19876e-05
  2  899.967
  3  0.00017337
  4  2.29061e-06
  5  0.00467765
  6  7.52962e-06
  7  30.6714
  8  1.7315e-05
  9  0.00040824
  10  7.0773e-05
  11  86.8976
  12  0.00422097
  13  5466.28
  14  3.56749e-05
  15  0.000570243
  16  3.44066e-05
  17  0.000855847
  18  8.15651e-06
  19  0.114654
Done.

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

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  1.000e+04  4.082e-04  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  7.573e-01  1.147e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.000e-02  8.157e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.23
Ra Dec: 94.316 57.025
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.06e-05 +/- 1.25e-12
Energy Flux (Fixed Index): 1.72e-02 +/- 7.02e-10

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): 0
logL (Free Index) = 1135.44216244
delta logL = 30.6913505753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1135.43095704
delta logL = 30.7025559797

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1131.028     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      309 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1762.9        5796.8        .92605E-02   -.73332E-04
   2  Index         3.7773        1.0673        .10727E-01   -.44215E-03
   3  Normalizat    .10000E-01    .49247E-01    .10780    ** at limit **
   4  Prefactor     .56008        .10447        .30324E-01    .28337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1762.94
  Index      = 3.77727
  Normalizat = 0.01
  Prefactor  = 0.560084
 **********
 **   18 **HESSE 
 **********

 FCN=   1131.028     FROM HESSE     STATUS=OK            27 CALLS      336 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1762.9        1254.2        .24018E-03   -.70418    
   2  Index         3.7773        .31981        .47540E-04   -.24705    
   3  Normalizat    .10000E-01    .52471E-01    .23740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .56008        .96557E-01    .13403E-03   -1.0929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04063e-10
Minuit parameter uncertainties:
  1  1278.04
  2  0.320046
  3  4.21505e-07
  4  0.0965854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272798': 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) = 1131.0284348
delta logL = 35.1050782138

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  1.763e+03  1.278e+03  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  3.777e+00  3.200e-01  0.000e+00  1.000e+01 (-1.000e+00)
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  5.601e-01  9.659e-02  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.000e-02  4.215e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 123.12
Ra Dec: 94.316 57.025
Photon Index (Free Index): 3.78 +/- 0.32
Photon Flux (Free Index): 2.32e-04 +/- 4.04e-05
Energy Flux (Free Index): 3.62e-02 +/- 5.82e-03

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/272798/cmap_HighResolution_553996801_554256001_4FGL_J0617.2+5701_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.06e-05', energy_flux2='3.62e-02', photon_flux_error='1.25e-12', dlogl='3.51e+01', energy_flux='1.72e-02', photon_flux2='2.32e-04', job_status='DONE', time_completed='2021-08-24 20:29:17.033464', photon_index_error2='0.32', photon_index2='3.78', ts='51.23', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='5.82e-03', EG='0.01', time_epoch_completed='1629862157.03', return_code='0', job_id='272798', GAL2='0.56', EG2='0.01', return_code2='0', energy_flux_error='7.02e-10', photon_flux_error2='4.04e-05', ts2='123.12', photon_index='2.09' WHERE bin_id='1214' AND source_name='4FGL J0617.2+5701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 20:29:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 272798: <4FGL_J0617.2+5701_daily_bin1214> in cluster <slac> Done

Job <4FGL_J0617.2+5701_daily_bin1214> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 24 20:15:48 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 20:15:51 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:15:51 2021
Terminated at Tue Aug 24 20:29:18 2021
Results reported at Tue Aug 24 20:29:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_daily_bin1214 94.3162 57.0249 553996801 554256001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0617.2+5701 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   562.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             223.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            810 sec.

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

