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


Performing analysis on: 4FGL_J0617.2+5701_daily_bin26
RA = 94.3162, Dec = 57.0249
tmin = 246067201, tmax = 246326401
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='244488', job_status='RUN', time_executed='2021-08-24 19:54:50.764847', time_epoch_executed='1629860090.76' WHERE source_name='4FGL J0617.2+5701' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244488/ft1_4FGL_J0617.2+5701_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244488/ft2_4FGL_J0617.2+5701_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244488/ft1_4FGL_J0617.2+5701_daily_bin26.fits outfile=/scratch/kocevski/244488/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin26.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=246067201.0 tmax=246326401.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.53
user 1.31
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244488/ft1_filtered_4FGL_J0617.2+5701_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/244488/ft2_4FGL_J0617.2+5701_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/244488/ltcube_246067201_246326401_4FGL_J0617.2+5701_daily_bin26.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/244488/ft2_4FGL_J0617.2+5701_daily_bin26.fits
.....................!
real 12.55
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244488/ft1_filtered_4FGL_J0617.2+5701_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/244488/ft2_4FGL_J0617.2+5701_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/244488/ltcube_246067201_246326401_4FGL_J0617.2+5701_daily_bin26.fits outfile=/scratch/kocevski/244488/expmap_246067201_246326401_4FGL_J0617.2+5701_daily_bin26.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/244488/ltcube_246067201_246326401_4FGL_J0617.2+5701_daily_bin26.fits
.....................!
real 192.59
user 187.64
sys 3.95

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/244488/ft1_filtered_4FGL_J0617.2+5701_daily_bin26.fits scfile=/scratch/kocevski/244488/ft2_4FGL_J0617.2+5701_daily_bin26.fits outfile=/scratch/kocevski/244488/cmap_246067201_246326401_4FGL_J0617.2+5701_daily_bin26.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 0.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244488/ft1_filtered_4FGL_J0617.2+5701_daily_bin26.fits scfile=/scratch/kocevski/244488/ft2_4FGL_J0617.2+5701_daily_bin26.fits outfile=/scratch/kocevski/244488/cmap_HighResolution_246067201_246326401_4FGL_J0617.2+5701_daily_bin26.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 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    70.358       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    81.918       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.014       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.334       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.832       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.658       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4963       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83176       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=   8862.824     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1874 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          70.347        46.330       -.11119E-04    .39529E-05
   2  Prefactor     .10000E-03    44.285       -.14940E-05** at limit **
   3  norm          81.909        119.16       -.10133E-04    .13197E-05
   4  norm          .10000E-03    .48316        .52659E-09** at limit **
   5  Prefactor     .10000E-03    12.009       -.10124E-04** at limit **
   6  norm          .10000E-03    1.5832        .62485E-07** at limit **
   7  Prefactor     35.022        42.766        .97590E-05   -.14562E-04
   8  Prefactor     11.339        31.979        .85848E-05   -.27693E-04
   9  Prefactor     20.451        13.111       -.98055E-06   -.45590E-04
  10  Prefactor     27.841        39.425        .12899E-04   -.26426E-04
  11  Prefactor     .10000E-03    13.209        .94083E-05** at limit **
  12  norm          10.659        6.1681        .11944E-06   -.14089E-03
  13  norm          .10000E-03    1.3913        .11065E-06** at limit **
  14  Prefactor     .10000E-03    8.1756        .58439E-05** at limit **
  15  Prefactor     .10000E-03    6.5166       -.18149E-05** at limit **
  16  Prefactor     .10000E-03    5.4618        .36996E-06** at limit **
  17  Prefactor     .10000E-03    8.8947       -.30754E-05** at limit **
  18  Normalizat    1.4960        .21792       -.43492E-05    .13005E-03
  19  Prefactor     .83183        .68856E-01    .92052E-06   -.40470E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 70.3469
  Prefactor  = 0.000100001
  norm       = 81.9086
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.0217
  Prefactor  = 11.3388
  Prefactor  = 20.451
  Prefactor  = 27.8406
  Prefactor  = 0.0001
  norm       = 10.6594
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.49604
  Prefactor  = 0.831829
 **********
 **   18 **HESSE 
 **********

 FCN=   8862.824     FROM HESSE     STATUS=OK           264 CALLS     2138 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          70.347        46.358        .47857E-04   -1.4029    
   2  Prefactor     .10000E-03    44.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          81.909        119.17        .44378E-04   -1.3895    
   4  norm          .10000E-03    1.1473        .12690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.6787        .22986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.022        42.789        .67724E-04   -1.4524    
   8  Prefactor     11.339        31.990        .11900E-03   -1.5034    
   9  Prefactor     20.451        13.113        .88571E-04   -1.4803    
  10  Prefactor     27.841        39.492        .75939E-04   -1.4652    
  11  Prefactor     .10000E-03    13.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.659        6.1899        .12273E-03   -1.5055    
  13  norm          .10000E-03    1.3932        .10843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.4643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.9057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4960        .24112        .36278E-03   -.77890    
  19  Prefactor     .83183        .75808E-01    .15660E-03   -.98566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58324e-10
Minuit parameter uncertainties:
  1  46.3814
  2  0.000317134
  3  119.518
  4  7.87056e-06
  5  2.19778e-06
  6  2.92993e-05
  7  42.8267
  8  32.0385
  9  13.1148
  10  39.5294
  11  1.87494e-05
  12  6.19028
  13  1.70267e-06
  14  4.20132e-06
  15  6.87175e-06
  16  1.17881e-06
  17  1.00966e-05
  18  0.241303
  19  0.0758173
Done.

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

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  2.045e+01  1.311e+01  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:  8.318e-01  7.582e-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.496e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.33
Ra Dec: 94.316 57.025
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 6.26e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 3.52e-05 +/- 2.26e-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) = 8862.82095829
delta logL = 0.00344624992249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8862.81913695
delta logL = 0.00526759512286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.383       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0413       1.0000          .0000       10.000    
     3 'Normalizat'    1.4989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83131       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8862.819     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      250 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.381        16.724        .86618E-04    .10316E-03
   2  Index         2.0417        .47617        .73075E-02    .26018E-04
   3  Normalizat    1.4987        .22451        .36252E-03    .83794E-04
   4  Prefactor     .83140        .74749E-01    .15663E-03    .22622E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3808
  Index      = 2.04169
  Normalizat = 1.49867
  Prefactor  = 0.831396
 **********
 **   18 **HESSE 
 **********

 FCN=   8862.819     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.381        16.156        .34647E-05   -1.4783    
   2  Index         2.0417        .45991        .29230E-03   -.63312    
   3  Normalizat    1.4987        .22447        .14501E-04   -.77816    
   4  Prefactor     .83140        .74759E-01    .31327E-04   -.98581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3439e-11
Minuit parameter uncertainties:
  1  16.1591
  2  0.460909
  3  0.224615
  4  0.0747682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244488': 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) = 8862.81913583
delta logL = 0.00526871760303

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  2.138e+01  1.616e+01  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.042e+00  4.609e-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:  8.314e-01  7.477e-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.499e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 94.316 57.025
Photon Index (Free Index): 2.04 +/- 0.46
Photon Flux (Free Index): 6.00e-08 +/- 4.65e-08
Energy Flux (Free Index): 3.75e-05 +/- 3.38e-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/244488/cmap_HighResolution_246067201_246326401_4FGL_J0617.2+5701_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.26e-08', energy_flux2='3.75e-05', photon_flux_error='4.02e-08', dlogl='5.27e-03', energy_flux='3.52e-05', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-08-24 20:06:43.598145', photon_index_error2='0.46', photon_index2='2.04', ts='4.33', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='3.38e-05', EG='1.50', time_epoch_completed='1629860803.6', return_code='0', job_id='244488', GAL2='0.83', EG2='1.50', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='4.65e-08', ts2='4.34', photon_index='2.09' WHERE bin_id='26' AND source_name='4FGL J0617.2+5701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 20:06:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 244488: <4FGL_J0617.2+5701_daily_bin26> in cluster <slac> Done

Job <4FGL_J0617.2+5701_daily_bin26> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 24 19:50:43 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 19:50: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 19:50:51 2021
Terminated at Tue Aug 24 20:06:44 2021
Results reported at Tue Aug 24 20:06:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_daily_bin26 94.3162 57.0249 246067201 246326401 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 :                                   707.11 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            961 sec.

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

