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


Performing analysis on: 4FGL_J0617.2+5701_daily_bin1389
RA = 94.3162, Dec = 57.0249
tmin = 599356801, tmax = 599616001
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='278220', job_status='RUN', time_executed='2021-08-24 20:21:49.229998', time_epoch_executed='1629861709.23' WHERE source_name='4FGL J0617.2+5701' and cadence='daily' and bin_id='1389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278220/ft1_4FGL_J0617.2+5701_daily_bin1389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278220/ft2_4FGL_J0617.2+5701_daily_bin1389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278220/ft1_4FGL_J0617.2+5701_daily_bin1389.fits outfile=/scratch/kocevski/278220/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin1389.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=599356801.0 tmax=599616001.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 3.85
user 2.48
sys 1.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278220/ft2_4FGL_J0617.2+5701_daily_bin1389.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/278220/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin1389.fits evtable="EVENTS" outfile="/scratch/kocevski/278220/ft1_filtered_4FGL_J0617.2+5701_daily_bin1389.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.64
user 0.32
sys 1.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278220/ft1_filtered_4FGL_J0617.2+5701_daily_bin1389.fits" evtable="EVENTS" scfile=/scratch/kocevski/278220/ft2_4FGL_J0617.2+5701_daily_bin1389.fits sctable="SC_DATA" outfile=/scratch/kocevski/278220/ltcube_599356801_599616001_4FGL_J0617.2+5701_daily_bin1389.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/278220/ft2_4FGL_J0617.2+5701_daily_bin1389.fits
.....................!
real 17.22
user 15.56
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278220/ft1_filtered_4FGL_J0617.2+5701_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/278220/ft2_4FGL_J0617.2+5701_daily_bin1389.fits sctable="SC_DATA" expcube=/scratch/kocevski/278220/ltcube_599356801_599616001_4FGL_J0617.2+5701_daily_bin1389.fits outfile=/scratch/kocevski/278220/expmap_599356801_599616001_4FGL_J0617.2+5701_daily_bin1389.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/278220/ltcube_599356801_599616001_4FGL_J0617.2+5701_daily_bin1389.fits
.....................!
real 191.69
user 185.17
sys 6.16

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/278220/ft1_filtered_4FGL_J0617.2+5701_daily_bin1389.fits scfile=/scratch/kocevski/278220/ft2_4FGL_J0617.2+5701_daily_bin1389.fits outfile=/scratch/kocevski/278220/cmap_599356801_599616001_4FGL_J0617.2+5701_daily_bin1389.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.68
user 0.36
sys 1.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278220/ft1_filtered_4FGL_J0617.2+5701_daily_bin1389.fits scfile=/scratch/kocevski/278220/ft2_4FGL_J0617.2+5701_daily_bin1389.fits outfile=/scratch/kocevski/278220/cmap_HighResolution_599356801_599616001_4FGL_J0617.2+5701_daily_bin1389.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.57
user 0.37
sys 1.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9509       1.0000         .10000E-03   10000.    
     3 'norm      '    275.98       1.0000         .10000E-03   10000.    
     4 'norm      '    .11775E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     6 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.855       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33222E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4546.7       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2099       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.242       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .56689       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77572       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=   2345.621     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     2168 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.545       -.20154E-05** at limit **
   2  Prefactor     7.6574        533.35       -.14356E-04    .27417E-05
   3  norm          276.20        298.64       -.19201E-05    .10222E-04
   4  norm          .10000E-03    30.935        .10080E-06** at limit **
   5  Prefactor    10000.0        1171.8        .84862E-06** at limit **
   6  norm         10000.0        587.73       -.73584E-06** at limit **
   7  Prefactor     28.854        36.455        .12545E-05    .31837E-04
   8  Prefactor     .10000E-03    249.82        .10491E-05** at limit **
   9  Prefactor     4546.6        1309.6        .13391E-04    .16601E-04
  10  Prefactor     .10000E-03    81.081       -.28581E-07** at limit **
  11  Prefactor     .10000E-03    51.155        .38403E-06** at limit **
  12  norm          .10000E-03    34.461       -.16784E-06** at limit **
  13  norm          .10000E-03    27.457       -.14477E-06** at limit **
  14  Prefactor     .10000E-03    22.584        .27053E-06** at limit **
  15  Prefactor     4.1759        375.34        .26271E-05    .27963E-05
  16  Prefactor     24.233        51.716        .10060E-05    .12690E-04
  17  Prefactor     .10000E-03    23.038        .19986E-06** at limit **
  18  Normalizat    .56718        .44815       -.18318E-04    .66598E-06
  19  Prefactor     .77571        .14923        .48324E-05   -.53741E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.65739
  norm       = 276.199
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 28.854
  Prefactor  = 0.000100001
  Prefactor  = 4546.62
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.17591
  Prefactor  = 24.2332
  Prefactor  = 0.0001
  Normalizat = 0.567183
  Prefactor  = 0.775706
 **********
 **   18 **HESSE 
 **********

 FCN=   2345.621     FROM HESSE     STATUS=OK           258 CALLS     2426 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.623        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6574        539.47        .14220E-03   -1.5154    
   3  norm          276.20        298.55        .12209E-03   -1.2369    
   4  norm          .10000E-03    30.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1172.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        588.16        .21178E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.854        36.442        .74584E-04   -1.4633    
   8  Prefactor     .10000E-03    250.68        .21346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4546.6        1313.3        .40165E-04   -.90801E-01
  10  Prefactor     .10000E-03    81.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    34.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    27.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1759        377.12        .19640E-03   -1.5299    
  16  Prefactor     24.233        51.663        .81358E-04   -1.4723    
  17  Prefactor     .10000E-03    23.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .56718        .44769        .50122E-03   -1.0940    
  19  Prefactor     .77571        .14965        .15721E-03   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31231e-11
Minuit parameter uncertainties:
  1  3.9174e-05
  2  129.78
  3  300.231
  4  3.93508e-05
  5  0.00274794
  6  0.00198441
  7  36.4701
  8  0.00117264
  9  1329.04
  10  4.1682e-05
  11  2.87127e-05
  12  5.31995e-06
  13  5.7046e-06
  14  2.75656e-05
  15  79.892
  16  51.7586
  17  6.62753e-06
  18  0.45059
  19  0.149723
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
584   Normalization:  5.672e-01  4.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.50
Ra Dec: 94.316 57.025
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.39e-05 +/- 4.07e-06
Energy Flux (Fixed Index): 7.82e-03 +/- 2.29e-03

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) = 2305.9648409
delta logL = 39.6566522101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2305.89355204
delta logL = 39.7279410658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.372       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5204       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80183       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=   2305.894     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      343 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.390        76.026        .43992E-04   -.10753E-02
   2  Index         4.5203        .37850        .57680E-04   -.12402E-02
   3  Normalizat    .10000E-01    .84444E-01    .81738E-02** at limit **
   4  Prefactor     .80188        .87605E-01    .14485E-03    .30113E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.3902
  Index      = 4.52027
  Normalizat = 0.01
  Prefactor  = 0.801881
 **********
 **   18 **HESSE 
 **********

 FCN=   2305.894     FROM HESSE     STATUS=OK            23 CALLS      366 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.390        74.442        .87984E-05   -1.3879    
   2  Index         4.5203        .37061        .11536E-04   -.96093E-01
   3  Normalizat    .10000E-01    .84448E-01    .16348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80188        .87544E-01    .28969E-04   -.99659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02747e-10
Minuit parameter uncertainties:
  1  74.525
  2  0.370951
  3  1.70402e-06
  4  0.087559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278220': 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) = 2305.89355116
delta logL = 39.7279419501

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  8.339e+01  7.452e+01  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  4.520e+00  3.710e-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.019e-01  8.756e-02  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

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


TS (Free Index): 122.77
Ra Dec: 94.316 57.025
Photon Index (Free Index): 4.52 +/- 0.37
Photon Flux (Free Index): 6.85e-05 +/- 1.08e-05
Energy Flux (Free Index): 9.55e-03 +/- 1.44e-03

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/278220/cmap_HighResolution_599356801_599616001_4FGL_J0617.2+5701_daily_bin1389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-05', energy_flux2='9.55e-03', photon_flux_error='4.07e-06', dlogl='3.97e+01', energy_flux='7.82e-03', photon_flux2='6.85e-05', job_status='DONE', time_completed='2021-08-24 20:29:28.263015', photon_index_error2='0.37', photon_index2='4.52', ts='32.50', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.44e-03', EG='0.57', time_epoch_completed='1629862168.26', return_code='0', job_id='278220', GAL2='0.80', EG2='0.01', return_code2='0', energy_flux_error='2.29e-03', photon_flux_error2='1.08e-05', ts2='122.77', photon_index='2.09' WHERE bin_id='1389' AND source_name='4FGL J0617.2+5701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 20:29:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 278220: <4FGL_J0617.2+5701_daily_bin1389> in cluster <slac> Done

Job <4FGL_J0617.2+5701_daily_bin1389> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 24 20:20:28 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 20:21:10 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:21:10 2021
Terminated at Tue Aug 24 20:29:29 2021
Results reported at Tue Aug 24 20:29:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_daily_bin1389 94.3162 57.0249 599356801 599616001 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 :                                   469.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   498 sec.
    Turnaround time :                            541 sec.

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

