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


Performing analysis on: 4FGL_J0617.2+5701_daily_bin1550
RA = 94.3162, Dec = 57.0249
tmin = 641088001, tmax = 641347201
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='279880', job_status='RUN', time_executed='2021-08-24 20:26:58.800168', time_epoch_executed='1629862018.8' WHERE source_name='4FGL J0617.2+5701' and cadence='daily' and bin_id='1550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279880/ft1_4FGL_J0617.2+5701_daily_bin1550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279880/ft2_4FGL_J0617.2+5701_daily_bin1550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279880/ft1_4FGL_J0617.2+5701_daily_bin1550.fits outfile=/scratch/kocevski/279880/ft1_filteredMKT_4FGL_J0617.2+5701_daily_bin1550.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=641088001.0 tmax=641347201.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.41
user 2.18
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279880/ft1_filtered_4FGL_J0617.2+5701_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/279880/ft2_4FGL_J0617.2+5701_daily_bin1550.fits sctable="SC_DATA" expcube=/scratch/kocevski/279880/ltcube_641088001_641347201_4FGL_J0617.2+5701_daily_bin1550.fits outfile=/scratch/kocevski/279880/expmap_641088001_641347201_4FGL_J0617.2+5701_daily_bin1550.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/279880/ltcube_641088001_641347201_4FGL_J0617.2+5701_daily_bin1550.fits
.....................!
real 144.61
user 140.66
sys 3.71

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/279880/ft1_filtered_4FGL_J0617.2+5701_daily_bin1550.fits scfile=/scratch/kocevski/279880/ft2_4FGL_J0617.2+5701_daily_bin1550.fits outfile=/scratch/kocevski/279880/cmap_641088001_641347201_4FGL_J0617.2+5701_daily_bin1550.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.49
user 0.30
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279880/ft1_filtered_4FGL_J0617.2+5701_daily_bin1550.fits scfile=/scratch/kocevski/279880/ft2_4FGL_J0617.2+5701_daily_bin1550.fits outfile=/scratch/kocevski/279880/cmap_HighResolution_641088001_641347201_4FGL_J0617.2+5701_daily_bin1550.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.49
user 0.28
sys 0.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4363       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0557       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3110       1.0000         .10000E-03   10000.    
     6 'norm      '    .49920E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.019       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5129       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4545       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.271       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6200       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.123       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .82789       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1026       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=   18425.64     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1893 TOTAL
                     EDM=   .91E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.906       -.46458E-06** at limit **
   2  Prefactor     7.4344        17.328       -.19182E-05    .13705E-06
   3  norm          .10000E-03    22.209        .34666E-05** at limit **
   4  norm          1.0558        .84722       -.53544E-08   -.26145E-04
   5  Prefactor     6.3104        19.830       -.12454E-05    .14971E-06
   6  norm          .47628E-01    .72790       -.13192E-07    .48030E-05
   7  Prefactor     17.020        16.088        .30787E-06    .86561E-06
   8  Prefactor     19.663        17.739        .53036E-06    .44835E-05
   9  Prefactor     37.759        11.610        .25047E-07    .32558E-04
  10  Prefactor     .10000E-03    22.980       -.29459E-05** at limit **
  11  Prefactor     .10000E-03    10.086        .26934E-08** at limit **
  12  norm          3.5131        2.8973       -.46566E-08   -.19359E-05
  13  norm          .10000E-03    .85685       -.34347E-08** at limit **
  14  Prefactor     3.4543        5.1842        .58947E-06    .44149E-05
  15  Prefactor     13.271        10.906       -.18057E-07    .17472E-05
  16  Prefactor     1.6207        .72124        .63291E-08   -.10028E-03
  17  Prefactor     26.121        18.044       -.89039E-06    .18597E-05
  18  Normalizat    .82781        .14716        .11644E-06    .25956E-04
  19  Prefactor     1.1026        .52411E-01    .21784E-07    .46916E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.43442
  norm       = 0.0001
  norm       = 1.05575
  Prefactor  = 6.31038
  norm       = 0.0476283
  Prefactor  = 17.0199
  Prefactor  = 19.6628
  Prefactor  = 37.7595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.51306
  norm       = 0.0001
  Prefactor  = 3.45431
  Prefactor  = 13.2712
  Prefactor  = 1.62066
  Prefactor  = 26.1215
  Normalizat = 0.827807
  Prefactor  = 1.10262
 **********
 **   18 **HESSE 
 **********

 FCN=   18425.64     FROM HESSE     STATUS=OK           278 CALLS     2171 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.4344        17.333        .14707E-03   -1.5163    
   3  norm          .10000E-03    22.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0558        .82924        .10753E-03   -1.5502    
   5  Prefactor     6.3104        19.830        .15978E-03   -1.5206    
   6  norm          .47628E-01    4.9679        .22574E-02   -1.5664    
   7  Prefactor     17.020        16.102        .97084E-04   -1.4883    
   8  Prefactor     19.663        17.746        .90326E-04   -1.4821    
   9  Prefactor     37.759        11.613        .65224E-04   -1.4478    
  10  Prefactor     .10000E-03    23.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5131        2.8922        .20205E-03   -1.5333    
  13  norm          .10000E-03    .86135        .12267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4543        5.1782        .21759E-03   -1.5336    
  15  Prefactor     13.271        10.907        .10995E-03   -1.4979    
  16  Prefactor     1.6207        8.7563        .16627E-02   -1.5453    
  17  Prefactor     26.121        18.207        .78379E-04   -1.4685    
  18  Normalizat    .82781        .15714        .44857E-03   -.99045    
  19  Prefactor     1.1026        .56223E-01    .14677E-03   -.89383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97469e-10
Minuit parameter uncertainties:
  1  1.44295e-05
  2  17.3452
  3  8.11221e-07
  4  0.829248
  5  19.8505
  6  0.971914
  7  16.1063
  8  17.7507
  9  11.6134
  10  1.82996e-05
  11  1.99514e-06
  12  2.89235
  13  2.68611e-08
  14  5.17884
  15  10.9088
  16  7.53567
  17  18.2113
  18  0.157229
  19  0.0562265
Done.

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

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  3.776e+01  1.161e+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:  1.103e+00  5.623e-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:  8.278e-01  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.24
Ra Dec: 94.316 57.025
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 3.56e-08
Energy Flux (Fixed Index): 6.49e-05 +/- 2.00e-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) = 18425.6404898
delta logL = 8.20610475785e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18425.6404503
delta logL = 0.000121621047583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.859       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0852       1.0000          .0000       10.000    
     3 'Normalizat'    .82834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1026       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18425.64     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      274 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.870        14.025        .65138E-04    .20944E-05
   2  Index         2.0856        .25089        .54266E-02    .65581E-04
   3  Normalizat    .82827        .15023        .44846E-03    .16224E-05
   4  Prefactor     1.1026        .54893E-01    .14678E-03   -.92946E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.8703
  Index      = 2.08557
  Normalizat = 0.828265
  Prefactor  = 1.10256
 **********
 **   18 **HESSE 
 **********

 FCN=   18425.64     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .27E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.870        13.589        .26055E-05   -1.4476    
   2  Index         2.0856        .24273        .21707E-03   -.62228    
   3  Normalizat    .82827        .15011        .17939E-04   -.99029    
   4  Prefactor     1.1026        .54895E-01    .58711E-05   -.89385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74781e-14
Minuit parameter uncertainties:
  1  13.59
  2  0.242876
  3  0.150185
  4  0.0548982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279880': 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) = 18425.6404477
delta logL = 0.000124220936414

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  3.787e+01  1.359e+01  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.086e+00  2.429e-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.103e+00  5.490e-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:  8.283e-01  1.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.22
Ra Dec: 94.316 57.025
Photon Index (Free Index): 2.09 +/- 0.24
Photon Flux (Free Index): 1.15e-07 +/- 4.69e-08
Energy Flux (Free Index): 6.52e-05 +/- 2.65e-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/279880/cmap_HighResolution_641088001_641347201_4FGL_J0617.2+5701_daily_bin1550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='6.52e-05', photon_flux_error='3.56e-08', dlogl='1.24e-04', energy_flux='6.49e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-08-24 20:41:37.582570', photon_index_error2='0.24', photon_index2='2.09', ts='34.24', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='0.83', time_epoch_completed='1629862897.58', return_code='0', job_id='279880', GAL2='1.10', EG2='0.83', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='4.69e-08', ts2='34.22', photon_index='2.09' WHERE bin_id='1550' AND source_name='4FGL J0617.2+5701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 20:41:37 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_daily_bin1550 94.3162 57.0249 641088001 641347201 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 :                                   872.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             391.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            980 sec.

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

