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


Performing analysis on: 4FGL_J0617.2+5701_daily_bin60
RA = 94.3162, Dec = 57.0249
tmin = 254880001, tmax = 255139201
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='244581', job_status='RUN', time_executed='2021-08-24 19:51:20.184018', time_epoch_executed='1629859880.18' WHERE source_name='4FGL J0617.2+5701' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244581

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244581/ft1_4FGL_J0617.2+5701_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244581/ft2_4FGL_J0617.2+5701_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244581/ft1_4FGL_J0617.2+5701_daily_bin60.fits outfile=/scratch/kocevski/244581/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin60.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=254880001.0 tmax=255139201.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 2.03
user 1.23
sys 0.70

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244581/ft1_filtered_4FGL_J0617.2+5701_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/244581/ft2_4FGL_J0617.2+5701_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/244581/ltcube_254880001_255139201_4FGL_J0617.2+5701_daily_bin60.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/244581/ft2_4FGL_J0617.2+5701_daily_bin60.fits
.....................!
real 13.68
user 12.70
sys 0.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244581/ft1_filtered_4FGL_J0617.2+5701_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/244581/ft2_4FGL_J0617.2+5701_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/244581/ltcube_254880001_255139201_4FGL_J0617.2+5701_daily_bin60.fits outfile=/scratch/kocevski/244581/expmap_254880001_255139201_4FGL_J0617.2+5701_daily_bin60.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/244581/ltcube_254880001_255139201_4FGL_J0617.2+5701_daily_bin60.fits
.....................!
real 193.85
user 186.07
sys 7.15

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/244581/ft1_filtered_4FGL_J0617.2+5701_daily_bin60.fits scfile=/scratch/kocevski/244581/ft2_4FGL_J0617.2+5701_daily_bin60.fits outfile=/scratch/kocevski/244581/cmap_254880001_255139201_4FGL_J0617.2+5701_daily_bin60.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.06
user 0.36
sys 0.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244581/ft1_filtered_4FGL_J0617.2+5701_daily_bin60.fits scfile=/scratch/kocevski/244581/ft2_4FGL_J0617.2+5701_daily_bin60.fits outfile=/scratch/kocevski/244581/cmap_HighResolution_254880001_255139201_4FGL_J0617.2+5701_daily_bin60.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.06
user 0.35
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0127       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6898       1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .39165E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.2801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.839       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.437       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    99.310       1.0000         .10000E-03   10000.    
    12 'norm      '    8.6226       1.0000         .10000E-03   10000.    
    13 'norm      '    .11431E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51728       1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.731       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3384       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91713       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98481       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=   8617.060     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1939 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0137        23.074        .38635E-05    .29102E-03
   2  Prefactor     4.6983        55.662        .58010E-06    .62959E-04
   3  norm          .10000E-03    58.616        .32406E-06** at limit **
   4  norm          .35641E-01    .41148        .14737E-07   -.96040E-04
   5  Prefactor     .10000E-03    15.056        .21838E-06** at limit **
   6  norm          3.2804        2.7062        .15091E-06    .39472E-03
   7  Prefactor     .10000E-03    19.975        .18060E-06** at limit **
   8  Prefactor     41.830        34.547        .29367E-06   -.61879E-04
   9  Prefactor     16.435        13.547        .41386E-07    .34699E-04
  10  Prefactor     .10000E-03    35.976       -.38160E-06** at limit **
  11  Prefactor     99.318        58.329       -.46001E-06    .32102E-04
  12  norm          8.6213        6.9546        .22047E-06   -.15060E-03
  13  norm          .10000E-03    16.427        .11903E-04** at limit **
  14  Prefactor     .49435        20.531       -.83377E-05    .19208E-03
  15  Prefactor     42.732        25.330       -.63051E-07   -.33696E-03
  16  Prefactor     4.3220        52.192        .22186E-05    .28389E-04
  17  Prefactor     .10000E-03    20.369       -.95595E-06** at limit **
  18  Normalizat    .91740        .23586        .20810E-05   -.11212E-03
  19  Prefactor     .98475        .69564E-01   -.86310E-06   -.11341E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.01369
  Prefactor  = 4.69825
  norm       = 0.0001
  norm       = 0.0356406
  Prefactor  = 0.0001
  norm       = 3.28041
  Prefactor  = 0.0001
  Prefactor  = 41.8295
  Prefactor  = 16.4347
  Prefactor  = 0.0001
  Prefactor  = 99.3175
  norm       = 8.62132
  norm       = 0.0001
  Prefactor  = 0.494353
  Prefactor  = 42.7325
  Prefactor  = 4.32198
  Prefactor  = 0.000100004
  Normalizat = 0.917397
  Prefactor  = 0.984748
 **********
 **   18 **HESSE 
 **********

 FCN=   8617.060     FROM HESSE     STATUS=OK           274 CALLS     2213 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0137        24.063        .23383E-03   -1.5361    
   2  Prefactor     4.6983        55.571        .18582E-03   -1.5274    
   3  norm          .10000E-03    58.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .35641E-01    7.0012        .11400E-02   -1.5670    
   5  Prefactor     .10000E-03    15.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2804        2.7081        .13490E-03   -1.5346    
   7  Prefactor     .10000E-03    20.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.830        34.614        .61974E-04   -1.4414    
   9  Prefactor     16.435        13.552        .98789E-04   -1.4897    
  10  Prefactor     .10000E-03    36.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     99.318        58.381        .20170E-03   -1.3711    
  12  norm          8.6213        6.8462        .13651E-03   -1.5121    
  13  norm          .10000E-03    17.344        .34270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .49435        144.12        .62720E-02   -1.5567    
  15  Prefactor     42.732        24.890        .61327E-04   -1.4400    
  16  Prefactor     4.3220        54.389        .19339E-03   -1.5292    
  17  Prefactor     .10000E-03    20.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .91740        .24879        .46389E-03   -.95851    
  19  Prefactor     .98475        .75616E-01    .14206E-03   -.93240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3011e-08
Minuit parameter uncertainties:
  1  17.0407
  2  32.3537
  3  0.000124453
  4  0.997767
  5  3.83285e-05
  6  2.70825
  7  5.47973e-05
  8  34.6309
  9  13.5542
  10  5.90383e-05
  11  58.4144
  12  6.84686
  13  0.000122315
  14  16.921
  15  24.8961
  16  30.6982
  17  0.000560201
  18  0.249102
  19  0.0756237
Done.

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

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  1.643e+01  1.355e+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:  9.847e-01  7.562e-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:  9.174e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.50
Ra Dec: 94.316 57.025
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 2.83e-05 +/- 2.33e-05

TS (Fixed Index): 3.50
Ra Dec: 94.316 57.025
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244581/likelihoodResults_254880001_255139201_4FGL_J0617.2+5701_daily_bin60.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): 0
logL (Free Index) = 8617.03615921
delta logL = 0.023393764548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8617.02962668
delta logL = 0.0299262885346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.967       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2706       1.0000          .0000       10.000    
     3 'Normalizat'    .90467       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98619       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=   8617.030     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      271 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.966        15.033        .10353E-03    .14956E-03
   2  Index         2.2708        .78126        .88755E-02    .98634E-04
   3  Normalizat    .90467        .23678        .46679E-03   -.42963E-04
   4  Prefactor     .98618        .72996E-01    .14196E-03   -.20395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9656
  Index      = 2.2708
  Normalizat = 0.904666
  Prefactor  = 0.986176
 **********
 **   18 **HESSE 
 **********

 FCN=   8617.030     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.966        14.115        .41412E-05   -1.4934    
   2  Index         2.2708        .73202        .35502E-03   -.57739    
   3  Normalizat    .90467        .23591        .18671E-04   -.96296    
   4  Prefactor     .98618        .72952E-01    .28393E-04   -.93192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51306e-10
Minuit parameter uncertainties:
  1  14.1176
  2  0.735797
  3  0.236181
  4  0.0729589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244581': 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) = 8617.02962658
delta logL = 0.0299263936577

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  1.497e+01  1.412e+01  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.271e+00  7.358e-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:  9.862e-01  7.296e-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:  9.047e-01  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.58
Ra Dec: 94.316 57.025
Photon Index (Free Index): 2.27 +/- 0.74
Photon Flux (Free Index): 6.51e-08 +/- 7.92e-08
Energy Flux (Free Index): 2.58e-05 +/- 2.14e-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/244581/cmap_HighResolution_254880001_255139201_4FGL_J0617.2+5701_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='2.58e-05', photon_flux_error='4.15e-08', dlogl='2.99e-02', energy_flux='2.83e-05', photon_flux2='6.51e-08', job_status='DONE', time_completed='2021-08-24 20:04:39.557952', photon_index_error2='0.74', photon_index2='2.27', ts='3.50', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='2.14e-05', EG='0.92', time_epoch_completed='1629860679.56', return_code='0', job_id='244581', GAL2='0.99', EG2='0.90', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='7.92e-08', ts2='3.58', photon_index='2.09' WHERE bin_id='60' AND source_name='4FGL J0617.2+5701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 20:04:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 244581: <4FGL_J0617.2+5701_daily_bin60> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_daily_bin60 94.3162 57.0249 254880001 255139201 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 :                                   802.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            834 sec.

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

