/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7417
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0617.2+5701_daily_bin574
RA = 94.3162, Dec = 57.0249
tmin = 388108801, tmax = 388368001
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='260746', job_status='RUN', time_executed='2021-08-24 20:05:55.132060', time_epoch_executed='1629860755.13' WHERE source_name='4FGL J0617.2+5701' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260746/ft1_4FGL_J0617.2+5701_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260746/ft2_4FGL_J0617.2+5701_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260746/ft1_4FGL_J0617.2+5701_daily_bin574.fits outfile=/scratch/kocevski/260746/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin574.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=388108801.0 tmax=388368001.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 4.55
user 3.14
sys 1.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260746/ft2_4FGL_J0617.2+5701_daily_bin574.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/260746/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin574.fits evtable="EVENTS" outfile="/scratch/kocevski/260746/ft1_filtered_4FGL_J0617.2+5701_daily_bin574.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 1.75
user 0.33
sys 1.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260746/ft1_filtered_4FGL_J0617.2+5701_daily_bin574.fits" evtable="EVENTS" scfile=/scratch/kocevski/260746/ft2_4FGL_J0617.2+5701_daily_bin574.fits sctable="SC_DATA" outfile=/scratch/kocevski/260746/ltcube_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.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/260746/ft2_4FGL_J0617.2+5701_daily_bin574.fits
.....................!
real 13.27
user 11.64
sys 1.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260746/ft1_filtered_4FGL_J0617.2+5701_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/260746/ft2_4FGL_J0617.2+5701_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/260746/ltcube_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.fits outfile=/scratch/kocevski/260746/expmap_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.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/260746/ltcube_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.fits
.....................!
real 192.41
user 185.78
sys 6.07

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/260746/ft1_filtered_4FGL_J0617.2+5701_daily_bin574.fits scfile=/scratch/kocevski/260746/ft2_4FGL_J0617.2+5701_daily_bin574.fits outfile=/scratch/kocevski/260746/cmap_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.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 1.63
user 0.37
sys 1.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260746/ft1_filtered_4FGL_J0617.2+5701_daily_bin574.fits scfile=/scratch/kocevski/260746/ft2_4FGL_J0617.2+5701_daily_bin574.fits outfile=/scratch/kocevski/260746/cmap_HighResolution_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.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 1.65
user 0.38
sys 1.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260746/ft1_filtered_4FGL_J0617.2+5701_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/260746/ft2_4FGL_J0617.2+5701_daily_bin574.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260746/Model_4FGL_J0617.2+5701_daily_bin574.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/260746/ft1_filtered_4FGL_J0617.2+5701_daily_bin574.fits.....................!
real 214.97
user 211.59
sys 2.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/260746/ft1_filtered_4FGL_J0617.2+5701_daily_bin574.fits', '/scratch/kocevski/260746/ft2_4FGL_J0617.2+5701_daily_bin574.fits', expMap='/scratch/kocevski/260746/expmap_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.fits', expCube='/scratch/kocevski/260746/ltcube_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/260746/Model_4FGL_J0617.2+5701_daily_bin574.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/260746/ft1_filtered_4FGL_J0617.2+5701_daily_bin574.fits
Spacecraft file(s): /scratch/kocevski/260746/ft2_4FGL_J0617.2+5701_daily_bin574.fits
Exposure map: /scratch/kocevski/260746/expmap_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.fits
Exposure cube: /scratch/kocevski/260746/ltcube_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/260746/Model_4FGL_J0617.2+5701_daily_bin574.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) = 12856.4845096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.928       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .28669       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2069       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.230       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7023       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14919E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.428       1.0000         .10000E-03   10000.    
    12 'norm      '    .27668       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0588       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0800       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0384       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=   12856.48     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1905 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.927        24.658       -.11044E-06    .12785E-04
   2  Prefactor     .10000E-03    106.48       -.27535E-05** at limit **
   3  norm          .10000E-03    70.420       -.86871E-05** at limit **
   4  norm          .28678        .54447       -.38337E-06   -.25701E-02
   5  Prefactor     4.1962        73.611       -.16461E-04    .20827E-04
   6  norm          .10000E-03    .78544       -.19538E-08** at limit **
   7  Prefactor     .10000E-03    10.312       -.22149E-07** at limit **
   8  Prefactor     14.224        24.619       -.10474E-05   -.11217E-05
   9  Prefactor     9.7001        7.6183       -.97514E-06    .56638E-04
  10  Prefactor     .10000E-03    74.591        .11373E-04** at limit **
  11  Prefactor     28.425        35.992       -.22203E-05    .13995E-04
  12  norm          .27389        2.8243       -.77831E-06   -.48900E-03
  13  norm          .10000E-03    3.1525        .22983E-07** at limit **
  14  Prefactor     .10000E-03    4.8728       -.10657E-07** at limit **
  15  Prefactor     8.0604        18.426        .16940E-06    .14933E-04
  16  Prefactor     1.5657        13.703        .17946E-05   -.36772E-03
  17  Prefactor     .10000E-03    30.667       -.78981E-07** at limit **
  18  Normalizat    1.0798        .18032        .80609E-06    .10324E-03
  19  Prefactor     1.0384        .59130E-01    .24021E-06    .33349E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 43.927
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.286775
  Prefactor  = 4.19625
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2239
  Prefactor  = 9.70014
  Prefactor  = 0.000100002
  Prefactor  = 28.4251
  norm       = 0.273893
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.06041
  Prefactor  = 1.56572
  Prefactor  = 0.0001
  Normalizat = 1.07984
  Prefactor  = 1.03838
 **********
 **   18 **HESSE 
 **********

 FCN=   12856.48     FROM HESSE     STATUS=OK           270 CALLS     2175 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.927        24.663        .60488E-04   -1.4381    
   2  Prefactor     .10000E-03    108.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    69.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .28678        .62235        .11726E-02   -1.5601    
   5  Prefactor     4.1962        72.212        .19648E-03   -1.5298    
   6  norm          .10000E-03    .79431        .98118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.224        24.702        .10618E-03   -1.4953    
   9  Prefactor     9.7001        7.6153        .12865E-03   -1.5085    
  10  Prefactor     .10000E-03    74.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.425        36.093        .75140E-04   -1.4641    
  12  norm          .27389        16.706        .36213E-02   -1.5603    
  13  norm          .10000E-03    3.1996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.0604        18.377        .14124E-03   -1.5140    
  16  Prefactor     1.5657        13.310        .33979E-03   -1.5458    
  17  Prefactor     .10000E-03    31.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0798        .19746        .41512E-03   -.90402    
  19  Prefactor     1.0384        .64662E-01    .14518E-03   -.91461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25769e-09
Minuit parameter uncertainties:
  1  24.6684
  2  7.95194e-05
  3  0.000413134
  4  0.622367
  5  34.8638
  6  4.16037e-07
  7  3.52568e-06
  8  24.7192
  9  7.61609
  10  0.00077671
  11  36.1203
  12  4.27861
  13  1.18286e-06
  14  1.77265e-06
  15  18.3896
  16  9.13267
  17  4.76026e-05
  18  0.197595
  19  0.0646664
Done.

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

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  9.700e+00  7.616e+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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.038e+00  6.467e-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.080e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.50
Ra Dec: 94.316 57.025
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.97e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.31e-05

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) = 12855.9043656
delta logL = 0.578480360413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12855.8501978
delta logL = 0.632648182864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9116       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2252       1.0000          .0000       10.000    
     3 'Normalizat'    1.1014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0369       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=   12855.85     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      214 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9116        5.8203        .41290E-02    .21121E-02
   2  Index         1.2252        .42863        .34060       -.97094E-04
   3  Normalizat    1.1014        .16881        .92925E-01    .62410E-04
   4  Prefactor     1.0369        .58167E-01    .40744E-01   -.15887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.91159
  Index      = 1.22515
  Normalizat = 1.10137
  Prefactor  = 1.03695
 **********
 **   18 **HESSE 
 **********

 FCN=   12855.85     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9116        9.2135        .16516E-03   -1.5222    
   2  Index         1.2252        .77361        .14410E-01   -.85561    
   3  Normalizat    1.1014        .18303        .41163E-03   -.89708    
   4  Prefactor     1.0369        .63361E-01    .14530E-03   -.91508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7542e-09
Minuit parameter uncertainties:
  1  9.21566
  2  0.780978
  3  0.183136
  4  0.0633657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260746': 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) = 12855.8501978
delta logL = 0.632648212102

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  5.912e+00  9.216e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  1.225e+00  7.810e-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:  1.037e+00  6.337e-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.101e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.75
Ra Dec: 94.316 57.025
Photon Index (Free Index): 1.23 +/- 0.78
Photon Flux (Free Index): 6.25e-09 +/- 1.05e-08
Energy Flux (Free Index): 4.84e-05 +/- 6.89e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/260746/cmap_HighResolution_388108801_388368001_4FGL_J0617.2+5701_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.97e-08', energy_flux2='4.84e-05', photon_flux_error='2.33e-08', dlogl='6.33e-01', energy_flux='1.67e-05', photon_flux2='6.25e-09', job_status='DONE', time_completed='2021-08-24 20:21:37.503764', photon_index_error2='0.78', photon_index2='1.23', ts='9.50', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='6.89e-05', EG='1.08', time_epoch_completed='1629861697.5', return_code='0', job_id='260746', GAL2='1.04', EG2='1.10', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='1.05e-08', ts2='10.75', photon_index='2.09' WHERE bin_id='574' AND source_name='4FGL J0617.2+5701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 20:21:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 260746: <4FGL_J0617.2+5701_daily_bin574> in cluster <slac> Done

Job <4FGL_J0617.2+5701_daily_bin574> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 24 20:05:22 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 20:05:24 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:05:24 2021
Terminated at Tue Aug 24 20:21:38 2021
Results reported at Tue Aug 24 20:21:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_daily_bin574 94.3162 57.0249 388108801 388368001 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 :                                   957.10 sec.
    Max Memory :                                 1047 MB
    Average Memory :                             348.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

