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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin421
RA = 120.246, Dec = 44.0181
tmin = 348451201, tmax = 348710401
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='41257', job_status='RUN', time_executed='2021-08-28 21:17:07.069961', time_epoch_executed='1630210627.07' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41257

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41257/ft1_4FGL_J0800.9+4401_daily_bin421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41257/ft2_4FGL_J0800.9+4401_daily_bin421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41257/ft1_4FGL_J0800.9+4401_daily_bin421.fits outfile=/scratch/kocevski/41257/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin421.fits ra=120.246 dec=44.0181 rad=12.0 tmin=348451201.0 tmax=348710401.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 8.76
user 3.18
sys 5.46

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/41257/ft2_4FGL_J0800.9+4401_daily_bin421.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/41257/ft2_4FGL_J0800.9+4401_daily_bin421.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/41257/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin421.fits evtable="EVENTS" outfile="/scratch/kocevski/41257/ft1_filtered_4FGL_J0800.9+4401_daily_bin421.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 5.84
user 0.33
sys 5.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41257/ft1_filtered_4FGL_J0800.9+4401_daily_bin421.fits" evtable="EVENTS" scfile=/scratch/kocevski/41257/ft2_4FGL_J0800.9+4401_daily_bin421.fits sctable="SC_DATA" outfile=/scratch/kocevski/41257/ltcube_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.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/41257/ft2_4FGL_J0800.9+4401_daily_bin421.fits
.....................!
real 18.07
user 11.55
sys 6.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41257/ft1_filtered_4FGL_J0800.9+4401_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/41257/ft2_4FGL_J0800.9+4401_daily_bin421.fits sctable="SC_DATA" expcube=/scratch/kocevski/41257/ltcube_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.fits outfile=/scratch/kocevski/41257/expmap_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.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/41257/ltcube_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.fits
.....................!
real 197.48
user 184.78
sys 11.74

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
Added 206 point sources and 0 extended sources

Setting source of interest to:
4FGL J0800.9+4401 @ 120.246 44.0181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/41257/ft1_filtered_4FGL_J0800.9+4401_daily_bin421.fits scfile=/scratch/kocevski/41257/ft2_4FGL_J0800.9+4401_daily_bin421.fits outfile=/scratch/kocevski/41257/cmap_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.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=120.246 yref=44.0181 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 5.80
user 0.37
sys 5.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41257/ft1_filtered_4FGL_J0800.9+4401_daily_bin421.fits scfile=/scratch/kocevski/41257/ft2_4FGL_J0800.9+4401_daily_bin421.fits outfile=/scratch/kocevski/41257/cmap_HighResolution_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.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=120.246 yref=44.0181 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 6.24
user 0.37
sys 5.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/41257/ft1_filtered_4FGL_J0800.9+4401_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/41257/ft2_4FGL_J0800.9+4401_daily_bin421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/41257/Model_4FGL_J0800.9+4401_daily_bin421.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 GAL_V02
Working on...
/scratch/kocevski/41257/ft1_filtered_4FGL_J0800.9+4401_daily_bin421.fits.....................!
real 78.50
user 69.80
sys 8.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/41257/ft1_filtered_4FGL_J0800.9+4401_daily_bin421.fits', '/scratch/kocevski/41257/ft2_4FGL_J0800.9+4401_daily_bin421.fits', expMap='/scratch/kocevski/41257/expmap_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.fits', expCube='/scratch/kocevski/41257/ltcube_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/41257/Model_4FGL_J0800.9+4401_daily_bin421.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0800.9+4401'

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.350e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/41257/ft1_filtered_4FGL_J0800.9+4401_daily_bin421.fits
Spacecraft file(s): /scratch/kocevski/41257/ft2_4FGL_J0800.9+4401_daily_bin421.fits
Exposure map: /scratch/kocevski/41257/expmap_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.fits
Exposure cube: /scratch/kocevski/41257/ltcube_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/41257/Model_4FGL_J0800.9+4401_daily_bin421.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) = 7433.56448217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.678       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.021       1.0000         .10000E-03   10000.    
     5 'norm      '    8.2443       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .33462       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2739       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    29.794       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1220       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.476       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9928       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2031       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2722       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5945       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.838       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9603       1.0000         .10000E-03   10000.    
    24 'norm      '    13.242       1.0000         .10000E-03   10000.    
    25 'norm      '    1.9928       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .83400       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7433.434     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3019 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.677        6.1856        .18202E-07   -.18725E-03
   2  norm          .10000E-03    1.2636        .28036E-07** at limit **
   3  Prefactor     .10000E-03    3.9154       -.35029E-06** at limit **
   4  Prefactor     12.018        14.085        .28611E-05    .27347E-04
   5  norm          8.2413        8.7891        .34810E-06   -.77282E-05
   6  Prefactor     .10000E-03    15.189        .30210E-06** at limit **
   7  Prefactor     .10000E-03    15.201       -.19196E-05** at limit **
   8  norm          .33463        .63523        .13761E-06   -.27827E-03
   9  Prefactor     6.2723        11.695        .18450E-05    .14264E-04
  10  Prefactor     .10000E-03    12.330        .39224E-06** at limit **
  11  norm          29.794        13.813       -.28751E-07   -.91062E-05
  12  norm          1.1216        2.3408       -.21201E-06   -.23891E-03
  13  Prefactor     15.471        9.4789        .75736E-06    .68111E-04
  14  Prefactor     .10000E-03    116.85       -.62152E-05** at limit **
  15  Prefactor     5.9927        3.8019       -.84296E-07   -.13586E-02
  16  norm          3.2030        2.2991        .31593E-07    .20141E-04
  17  norm          .10000E-03    .41788       -.48040E-07** at limit **
  18  norm          1.2722        .59797        .71646E-07    .75651E-04
  19  Prefactor     .10000E-03    5.1593       -.11711E-06** at limit **
  20  Prefactor     4.5948        3.0707        .91132E-07   -.11923E-02
  21  Prefactor     20.842        22.628       -.52501E-06   -.58055E-05
  22  Prefactor     .10000E-03    5.0694        .14094E-06** at limit **
  23  Prefactor     5.9605        8.1093        .28863E-06   -.46608E-03
  24  norm          13.242        7.7539        .19343E-06    .14063E-04
  25  norm          1.9926        6.9367       -.23439E-06   -.95436E-04
  26  Prefactor     .10000E-03    1.6996       -.21971E-06** at limit **
  27  Normalizat    .83408        .17471       -.45918E-06    .13437E-04
  28  Prefactor     .99862        .12211       -.51378E-06    .60520E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6774
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0185
  norm       = 8.24129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.334632
  Prefactor  = 6.27233
  Prefactor  = 0.0001
  norm       = 29.7942
  norm       = 1.12165
  Prefactor  = 15.4705
  Prefactor  = 0.0001
  Prefactor  = 5.99268
  norm       = 3.20304
  norm       = 0.0001
  norm       = 1.27222
  Prefactor  = 0.0001
  Prefactor  = 4.59482
  Prefactor  = 20.8417
  Prefactor  = 0.0001
  Prefactor  = 5.96047
  norm       = 13.2416
  norm       = 1.99256
  Prefactor  = 0.0001
  Normalizat = 0.834082
  Prefactor  = 0.99862
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.434     FROM HESSE     STATUS=OK           531 CALLS     3550 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.677        6.2278        .56250E-03   -1.4996    
   2  norm          .10000E-03    1.2688        .94600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9927        .16654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.018        14.031        .11554E-03   -1.5014    
   5  norm          8.2413        8.7981        .13963E-03   -1.5134    
   6  Prefactor     .10000E-03    15.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33463        .60188        .91455E-03   -1.5592    
   9  Prefactor     6.2723        11.587        .16026E-03   -1.5207    
  10  Prefactor     .10000E-03    12.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          29.794        13.821        .73402E-04   -1.4616    
  12  norm          1.1216        2.2865        .17670E-03   -1.5496    
  13  Prefactor     15.471        9.5091        .10181E-03   -1.4921    
  14  Prefactor     .10000E-03    118.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.9927        5.2458        .82012E-03   -1.5218    
  16  norm          3.2030        2.2984        .10759E-03   -1.5350    
  17  norm          .10000E-03    .62710        .10851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2722        .60339        .43493E-04   -1.5482    
  19  Prefactor     .10000E-03    5.1668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.5948        3.3633        .63390E-03   -1.5279    
  21  Prefactor     20.842        22.651        .87742E-04   -1.4795    
  22  Prefactor     .10000E-03    5.0847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9605        8.8658        .82238E-03   -1.5220    
  24  norm          13.242        7.7224        .11007E-03   -1.4980    
  25  norm          1.9926        6.8487        .29347E-03   -1.5426    
  26  Prefactor     .10000E-03    1.7554        .21913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .83408        .20222        .30456E-03   -.98817    
  28  Prefactor     .99862        .13931        .20228E-03   -.92776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61898e-09
Minuit parameter uncertainties:
  1  6.22813
  2  4.51373e-06
  3  1.3101e-05
  4  14.0349
  5  8.79949
  6  2.55198e-05
  7  3.84415e-05
  8  0.601888
  9  11.5907
  10  6.71643e-06
  11  13.8225
  12  2.28664
  13  9.51004
  14  0.000345411
  15  5.24623
  16  2.29842
  17  1.99847e-06
  18  0.603392
  19  1.22309e-06
  20  3.36339
  21  22.6602
  22  4.57017e-06
  23  8.8678
  24  7.72301
  25  6.85139
  26  2.12615e-06
  27  0.202404
  28  0.139359
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.547e+01  9.510e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.986e-01  1.394e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  8.341e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.19
Ra Dec: 120.246 44.018
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.59e-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) = 7433.43442191
delta logL = 2.66431734417e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7433.43439662
delta logL = 5.19287841598e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.553       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1658       1.0000          .0000       10.000    
     3 'Normalizat'    .83466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99844       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+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=   7433.434     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      271 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.554        13.339        .10156E-03    .20485E-03
   2  Index         2.1659        .67075        .60732E-02    .54020E-04
   3  Normalizat    .83458        .19588        .30448E-03    .29878E-03
   4  Prefactor     .99842        .13794        .20230E-03    .61612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5543
  Index      = 2.16585
  Normalizat = 0.834577
  Prefactor  = 0.998421
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.554        12.530        .40624E-05   -1.4919    
   2  Index         2.1659        .62912        .24293E-03   -.60265    
   3  Normalizat    .83458        .19510        .12179E-04   -.98799    
   4  Prefactor     .99842        .13775        .40460E-04   -.92782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38716e-10
Minuit parameter uncertainties:
  1  12.5321
  2  0.631594
  3  0.19526
  4  0.137802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41257': 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) = 7433.43439609
delta logL = 5.24587239852e-05

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.555e+01  1.253e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.166e+00  6.316e-01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.984e-01  1.378e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  8.346e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.17
Ra Dec: 120.246 44.018
Photon Index (Free Index): 2.17 +/- 0.63
Photon Flux (Free Index): 5.41e-08 +/- 4.97e-08
Energy Flux (Free Index): 2.59e-05 +/- 2.13e-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/41257/cmap_HighResolution_348451201_348710401_4FGL_J0800.9+4401_daily_bin421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='2.59e-05', photon_flux_error='3.35e-08', dlogl='5.25e-05', energy_flux='2.58e-05', photon_flux2='5.41e-08', job_status='DONE', time_completed='2021-08-28 21:32:01.334433', photon_index_error2='0.63', photon_index2='2.17', ts='6.19', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.83', time_epoch_completed='1630211521.33', return_code='0', job_id='41257', GAL2='1.00', EG2='0.83', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='4.97e-08', ts2='6.17', photon_index='2.17' WHERE bin_id='421' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:32:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 41257: <4FGL_J0800.9+4401_daily_bin421> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin421> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 21:15:30 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:15:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 21:15:31 2021
Terminated at Sat Aug 28 21:32:02 2021
Results reported at Sat Aug 28 21:32:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin421 120.246 44.0181 348451201 348710401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0800.9+4401 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   962.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

