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


Performing analysis on: 4FGL_J0617.2+5701_daily_bin953
RA = 94.3162, Dec = 57.0249
tmin = 486345601, tmax = 486604801
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='271976', job_status='RUN', time_executed='2021-08-24 20:15:29.703948', time_epoch_executed='1629861329.7' WHERE source_name='4FGL J0617.2+5701' and cadence='daily' and bin_id='953'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271976

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271976/ft1_4FGL_J0617.2+5701_daily_bin953.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271976/ft2_4FGL_J0617.2+5701_daily_bin953.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271976/ft1_4FGL_J0617.2+5701_daily_bin953.fits outfile=/scratch/kocevski/271976/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin953.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=486345601.0 tmax=486604801.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.94
user 2.72
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271976/ft2_4FGL_J0617.2+5701_daily_bin953.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/271976/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin953.fits evtable="EVENTS" outfile="/scratch/kocevski/271976/ft1_filtered_4FGL_J0617.2+5701_daily_bin953.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.46
user 0.28
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271976/ft1_filtered_4FGL_J0617.2+5701_daily_bin953.fits" evtable="EVENTS" scfile=/scratch/kocevski/271976/ft2_4FGL_J0617.2+5701_daily_bin953.fits sctable="SC_DATA" outfile=/scratch/kocevski/271976/ltcube_486345601_486604801_4FGL_J0617.2+5701_daily_bin953.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/271976/ft2_4FGL_J0617.2+5701_daily_bin953.fits
.....................!
real 10.58
user 10.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271976/ft1_filtered_4FGL_J0617.2+5701_daily_bin953.fits evtable="EVENTS" scfile=/scratch/kocevski/271976/ft2_4FGL_J0617.2+5701_daily_bin953.fits sctable="SC_DATA" expcube=/scratch/kocevski/271976/ltcube_486345601_486604801_4FGL_J0617.2+5701_daily_bin953.fits outfile=/scratch/kocevski/271976/expmap_486345601_486604801_4FGL_J0617.2+5701_daily_bin953.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/271976/ltcube_486345601_486604801_4FGL_J0617.2+5701_daily_bin953.fits
.....................!
real 155.21
user 150.25
sys 4.64

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/271976/ft1_filtered_4FGL_J0617.2+5701_daily_bin953.fits scfile=/scratch/kocevski/271976/ft2_4FGL_J0617.2+5701_daily_bin953.fits outfile=/scratch/kocevski/271976/cmap_486345601_486604801_4FGL_J0617.2+5701_daily_bin953.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.52
user 0.31
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271976/ft1_filtered_4FGL_J0617.2+5701_daily_bin953.fits scfile=/scratch/kocevski/271976/ft2_4FGL_J0617.2+5701_daily_bin953.fits outfile=/scratch/kocevski/271976/cmap_HighResolution_486345601_486604801_4FGL_J0617.2+5701_daily_bin953.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.52
user 0.32
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7639       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0725       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.116       1.0000         .10000E-03   10000.    
     6 'norm      '    7.8226       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5658       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8854       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8155       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.129       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1511       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0751       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0290       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=   14276.20     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1646 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.3869       -.34748E-07** at limit **
   2  Prefactor     3.7530        35.142        .96903E-05   -.91840E-04
   3  norm          .10000E-03    39.859       -.20730E-05** at limit **
   4  norm          1.0725        .79950        .21871E-07   -.10360E-02
   5  Prefactor     17.052        32.931       -.33977E-05    .35504E-04
   6  norm          7.8225        2.8927        .67512E-08   -.84451E-04
   7  Prefactor     .10000E-03    20.347       -.34835E-06** at limit **
   8  Prefactor     .10000E-03    13.573        .47033E-06** at limit **
   9  Prefactor     3.5657        3.4589        .11415E-05    .24461E-02
  10  Prefactor     1.8852        115.92       -.43136E-05   -.33694E-04
  11  Prefactor     .10000E-03    27.981        .80978E-06** at limit **
  12  norm          4.8154        3.7463       -.11294E-06   -.54942E-03
  13  norm          .10000E-03    1.3129        .18840E-06** at limit **
  14  Prefactor     .10000E-03    6.5959       -.34678E-06** at limit **
  15  Prefactor     .10000E-03    6.6996       -.32514E-06** at limit **
  16  Prefactor     15.121        17.562       -.75890E-07   -.10973E-03
  17  Prefactor     2.1338        46.956        .13073E-04   -.14565E-03
  18  Normalizat    1.0751        .16951       -.68420E-06   -.84567E-04
  19  Prefactor     1.0291        .55882E-01   -.13356E-06   -.56783E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.75303
  norm       = 0.0001
  norm       = 1.07248
  Prefactor  = 17.0521
  norm       = 7.82254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56569
  Prefactor  = 1.88523
  Prefactor  = 0.0001
  norm       = 4.81544
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1214
  Prefactor  = 2.13384
  Normalizat = 1.07507
  Prefactor  = 1.02906
 **********
 **   18 **HESSE 
 **********

 FCN=   14276.20     FROM HESSE     STATUS=OK           270 CALLS     1916 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7530        32.745        .20810E-03   -1.5320    
   3  norm          .10000E-03    39.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0725        .78187        .88879E-04   -1.5501    
   5  Prefactor     17.052        32.795        .96809E-04   -1.4882    
   6  norm          7.8225        2.8929        .11996E-03   -1.5149    
   7  Prefactor     .10000E-03    20.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5657        4.0785        .10701E-02   -1.5330    
  10  Prefactor     1.8852        118.96        .30312E-03   -1.5433    
  11  Prefactor     .10000E-03    28.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8154        3.7573        .18333E-03   -1.5269    
  13  norm          .10000E-03    1.3215        .13366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.121        17.523        .10297E-03   -1.4930    
  17  Prefactor     2.1338        41.265        .28093E-03   -1.5416    
  18  Normalizat    1.0751        .18353        .41388E-03   -.90556    
  19  Prefactor     1.0291        .61096E-01    .14613E-03   -.91767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46741e-09
Minuit parameter uncertainties:
  1  1.27219e-05
  2  22.1874
  3  8.55032e-05
  4  0.781882
  5  32.8301
  6  2.89295
  7  2.48949e-05
  8  3.178e-06
  9  4.07884
  10  30.0123
  11  1.15837e-05
  12  3.7575
  13  6.59739e-07
  14  3.26942e-06
  15  9.88384e-06
  16  17.5292
  17  18.7818
  18  0.183641
  19  0.0611004
Done.

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

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  3.566e+00  4.079e+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.029e+00  6.110e-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.075e+00  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 94.316 57.025
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.09e-08 +/- 1.25e-08
Energy Flux (Fixed Index): 6.13e-06 +/- 7.01e-06

TS (Fixed Index): 2.17
Ra Dec: 94.316 57.025
Photon Flux Upper Limit: 5.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271976/likelihoodResults_486345601_486604801_4FGL_J0617.2+5701_daily_bin953.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) = 14275.4314826
delta logL = 0.773196738424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14275.4308449
delta logL = 0.773834476537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1589       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2418       1.0000          .0000       10.000    
     3 'Normalizat'    1.0799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0284       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=   14275.43     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2166        7.1012        .44249E-02   -.38613E-03
   2  Index         1.2440        .58166        .33710       -.75036E-04
   3  Normalizat    1.0798        .15703        .93234E-01    .10735E-03
   4  Prefactor     1.0284        .54555E-01    .41391E-01   -.39595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.2166
  Index      = 1.24399
  Normalizat = 1.07981
  Prefactor  = 1.02836
 **********
 **   18 **HESSE 
 **********

 FCN=   14275.43     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2166        5.5022        .17700E-03   -1.5251    
   2  Index         1.2440        .54608        .15097E-01   -.84988    
   3  Normalizat    1.0798        .16950        .41300E-03   -.90403    
   4  Prefactor     1.0284        .59153E-01    .14616E-03   -.91790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60946e-09
Minuit parameter uncertainties:
  1  5.50273
  2  0.548605
  3  0.169581
  4  0.0591567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271976': 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) = 14275.4307917
delta logL = 0.773887680831

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  5.217e+00  5.503e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  1.244e+00  5.486e-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.028e+00  5.916e-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.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 94.316 57.025
Photon Index (Free Index): 1.24 +/- 0.55
Photon Flux (Free Index): 5.54e-09 +/- 6.14e-09
Energy Flux (Free Index): 4.05e-05 +/- 6.36e-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/271976/cmap_HighResolution_486345601_486604801_4FGL_J0617.2+5701_daily_bin953.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', comment='SUCCESS', photon_flux='1.09e-08', energy_flux2='4.05e-05', photon_flux_error='1.25e-08', dlogl='7.74e-01', energy_flux='6.13e-06', photon_flux2='5.54e-09', job_status='DONE', time_completed='2021-08-24 20:30:10.335775', photon_index_error2='0.55', photon_index2='1.24', ts='2.17', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.25e-08', energy_flux_error2='6.36e-05', EG='1.08', time_epoch_completed='1629862210.34', return_code='0', job_id='271976', GAL2='1.03', EG2='1.08', return_code2='0', energy_flux_error='7.01e-06', photon_flux_error2='6.14e-09', ts2='3.72', photon_index='2.09' WHERE bin_id='953' AND source_name='4FGL J0617.2+5701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 20:30:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 271976: <4FGL_J0617.2+5701_daily_bin953> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_daily_bin953 94.3162 57.0249 486345601 486604801 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 :                                   875.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             395.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

