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


Performing analysis on: 4FGL_J1801.5+4404_daily_bin291
RA = 270.377, Dec = 44.0747
tmin = 314755201, tmax = 315014401
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='464099', job_status='RUN', time_executed='2021-09-19 08:25:36.989414', time_epoch_executed='1632065136.99' WHERE source_name='4FGL J1801.5+4404' and cadence='daily' and bin_id='291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464099/ft1_4FGL_J1801.5+4404_daily_bin291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464099/ft2_4FGL_J1801.5+4404_daily_bin291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464099/ft1_4FGL_J1801.5+4404_daily_bin291.fits outfile=/scratch/kocevski/464099/ft1_filteredMKT_4FGL_J1801.5+4404_daily_bin291.fits ra=270.377 dec=44.0747 rad=12.0 tmin=314755201.0 tmax=315014401.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.44
user 3.24
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/464099/ft2_4FGL_J1801.5+4404_daily_bin291.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/464099/ft2_4FGL_J1801.5+4404_daily_bin291.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/464099/ft1_filteredMKT_4FGL_J1801.5+4404_daily_bin291.fits evtable="EVENTS" outfile="/scratch/kocevski/464099/ft1_filtered_4FGL_J1801.5+4404_daily_bin291.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/464099/ft1_filtered_4FGL_J1801.5+4404_daily_bin291.fits" evtable="EVENTS" scfile=/scratch/kocevski/464099/ft2_4FGL_J1801.5+4404_daily_bin291.fits sctable="SC_DATA" outfile=/scratch/kocevski/464099/ltcube_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.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/464099/ft2_4FGL_J1801.5+4404_daily_bin291.fits
.....................!
real 11.93
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464099/ft1_filtered_4FGL_J1801.5+4404_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/464099/ft2_4FGL_J1801.5+4404_daily_bin291.fits sctable="SC_DATA" expcube=/scratch/kocevski/464099/ltcube_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.fits outfile=/scratch/kocevski/464099/expmap_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.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/464099/ltcube_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.fits
.....................!
real 190.55
user 185.42
sys 4.76

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

Setting source of interest to:
4FGL J1801.5+4404 @ 270.377 44.0747

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/464099/ft1_filtered_4FGL_J1801.5+4404_daily_bin291.fits scfile=/scratch/kocevski/464099/ft2_4FGL_J1801.5+4404_daily_bin291.fits outfile=/scratch/kocevski/464099/cmap_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.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=270.377 yref=44.0747 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/464099/ft1_filtered_4FGL_J1801.5+4404_daily_bin291.fits scfile=/scratch/kocevski/464099/ft2_4FGL_J1801.5+4404_daily_bin291.fits outfile=/scratch/kocevski/464099/cmap_HighResolution_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.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=270.377 yref=44.0747 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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/464099/ft1_filtered_4FGL_J1801.5+4404_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/464099/ft2_4FGL_J1801.5+4404_daily_bin291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/464099/Model_4FGL_J1801.5+4404_daily_bin291.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/464099/ft1_filtered_4FGL_J1801.5+4404_daily_bin291.fits.....................!
real 72.87
user 71.55
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/464099/ft1_filtered_4FGL_J1801.5+4404_daily_bin291.fits', '/scratch/kocevski/464099/ft2_4FGL_J1801.5+4404_daily_bin291.fits', expMap='/scratch/kocevski/464099/expmap_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.fits', expCube='/scratch/kocevski/464099/ltcube_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/464099/Model_4FGL_J1801.5+4404_daily_bin291.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1801.5+4404'

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  8.383e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
366        alpha:  2.308e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  6.673e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  5.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/464099/ft1_filtered_4FGL_J1801.5+4404_daily_bin291.fits
Spacecraft file(s): /scratch/kocevski/464099/ft2_4FGL_J1801.5+4404_daily_bin291.fits
Exposure map: /scratch/kocevski/464099/expmap_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.fits
Exposure cube: /scratch/kocevski/464099/ltcube_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/464099/Model_4FGL_J1801.5+4404_daily_bin291.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) = 8212.23575894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30194E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .43830       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6813       1.0000         .10000E-03   10000.    
     5 'norm      '    .98986E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5309       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.337       1.0000         .10000E-03   10000.    
    10 'norm      '    .53639       1.0000         .10000E-03   10000.    
    11 'Prefactor '    67.708       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.976       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12703E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5843       1.0000         .10000E-03   10000.    
    18 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.112       1.0000         .10000E-03   10000.    
    20 'norm      '    12.897       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.042       1.0000         .10000E-03   10000.    
    24 'norm      '    18.365       1.0000         .10000E-03   10000.    
    25 'norm      '    9.1170       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0140       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .74003       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8212.194     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3551 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .21572        .34481E-08** at limit **
   2  Prefactor     .10000E-03    3.6225        .63444E-07** at limit **
   3  norm          .43836        .41686        .75599E-08   -.41098E-04
   4  norm          2.6804        8.7678        .40582E-06    .27706E-05
   5  norm          .10049        .75375        .18043E-06   -.68973E-03
   6  Prefactor     2.5304        2.4433       -.52538E-07    .49507E-04
   7  Prefactor     .10000E-03    30.820        .81293E-07** at limit **
   8  norm          .10000E-03    1.7392        .26256E-07** at limit **
   9  Prefactor     25.338        49.774       -.11657E-06    .17172E-05
  10  norm          .54039        3.3019       -.50975E-06   -.20422E-03
  11  Prefactor     67.665        51.780        .44693E-05    .32489E-05
  12  Prefactor     3.9925        5.4088        .22885E-05    .97149E-05
  13  Prefactor     82.987        59.271       -.24072E-05    .24757E-04
  14  Prefactor     .10000E-03    39.280       -.22329E-05** at limit **
  15  Prefactor     17.768        15.480        .85053E-07   -.19488E-05
  16  Prefactor     .10000E-03    2.7254       -.18914E-07** at limit **
  17  norm          2.5844        2.3747       -.32100E-09    .23507E-05
  18  norm          .10000E-03    30.446        .26981E-06** at limit **
  19  Prefactor     15.097        19.122        .62731E-06   -.76247E-05
  20  norm          12.897        8.6188        .19535E-07    .15511E-04
  21  Prefactor     .10000E-03    7.0171        .64480E-07** at limit **
  22  Prefactor     .10000E-03    2.1396        .16700E-07** at limit **
  23  Prefactor     30.043        24.409       -.47447E-07    .29664E-05
  24  norm          18.364        13.704        .72359E-07    .93078E-05
  25  norm          9.1176        10.087        .11023E-07    .15671E-05
  26  Prefactor     3.0142        2.4348        .50504E-07    .58641E-05
  27  Normalizat    .74002        .23039       -.28061E-06    .68213E-04
  28  Prefactor     1.2060        .12673       -.21245E-06    .76160E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.438356
  norm       = 2.68044
  norm       = 0.10049
  Prefactor  = 2.53039
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.3384
  norm       = 0.540387
  Prefactor  = 67.6653
  Prefactor  = 3.99248
  Prefactor  = 82.9871
  Prefactor  = 0.000100001
  Prefactor  = 17.7676
  Prefactor  = 0.0001
  norm       = 2.58443
  norm       = 0.0001
  Prefactor  = 15.0971
  norm       = 12.8968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0434
  norm       = 18.3639
  norm       = 9.11764
  Prefactor  = 3.01423
  Normalizat = 0.740021
  Prefactor  = 1.20602
 **********
 **   18 **HESSE 
 **********

 FCN=   8212.194     FROM HESSE     STATUS=OK           533 CALLS     4084 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .21637        .41091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.404        .32990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .43836        .43315        .55158E-03   -1.5576    
   4  norm          2.6804        8.7333        .24885E-03   -1.5381    
   5  norm          .10049        5.4156        .14380E-02   -1.5645    
   6  Prefactor     2.5304        2.4527        .13452E-03   -1.5390    
   7  Prefactor     .10000E-03    30.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7414        .11664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.338        49.718        .79582E-04   -1.4701    
  10  norm          .54039        15.594        .29814E-02   -1.5561    
  11  Prefactor     67.665        52.513        .24389E-03   -1.4061    
  12  Prefactor     3.9925        5.5216        .10087E-02   -1.5308    
  13  Prefactor     82.987        59.220        .22048E-03   -1.3883    
  14  Prefactor     .10000E-03    39.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.768        15.468        .95014E-04   -1.4865    
  16  Prefactor     .10000E-03    2.7280        .14610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5844        2.3818        .12999E-03   -1.5386    
  18  norm          .10000E-03    30.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.097        19.110        .10303E-03   -1.4931    
  20  norm          12.897        8.6194        .11154E-03   -1.4990    
  21  Prefactor     .10000E-03    7.0438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1467        .12943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.043        24.409        .73098E-04   -1.4611    
  24  norm          18.364        13.686        .93461E-04   -1.4851    
  25  norm          9.1176        10.081        .13274E-03   -1.5104    
  26  Prefactor     3.0142        2.4268        .12142E-03   -1.5361    
  27  Normalizat    .74002        .25668        .38516E-03   -1.0233    
  28  Prefactor     1.2060        .14392        .18315E-03   -.86146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.25982e-10
Minuit parameter uncertainties:
  1  7.23348e-08
  2  0.000200719
  3  0.433158
  4  8.73743
  5  1.47483
  6  2.45284
  7  6.39456e-06
  8  7.2806e-07
  9  49.7997
  10  5.80696
  11  52.5493
  12  5.52228
  13  59.2618
  14  0.00041727
  15  15.4719
  16  1.63126e-06
  17  2.3819
  18  3.0829e-06
  19  19.1174
  20  8.62024
  21  1.63888e-06
  22  1.05591e-06
  23  24.417
  24  13.688
  25  10.0827
  26  2.42684
  27  0.257099
  28  0.143966
Done.

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

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  1.290e+01  8.620e+00  1.000e-04  1.000e+04 ( 1.000e-12)
366        alpha:  2.308e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  6.673e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  5.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
683    Prefactor:  1.206e+00  1.440e-01  0.000e+00  1.000e+01 ( 1.000e+00)
684        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
685        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  7.400e-01  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.76
Ra Dec: 270.377 44.075
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.21e-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) = 8212.19308622
delta logL = 0.000457420968814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8212.19301847
delta logL = 0.00052517541917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.836       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3374       1.0000          .0000       5.0000    
     3 'Normalizat'    .73800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2068       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+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=   8212.193     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      251 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.835        8.9544        .11180E-03    .15722E-02
   2  alpha         2.3369        .90477        .21122E-01    .14710E-03
   3  Normalizat    .73798        .24734        .38564E-03   -.19628E-03
   4  Prefactor     1.2068        .14432        .18309E-03   -.60875E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8349
  alpha      = 2.3369
  Normalizat = 0.737983
  Prefactor  = 1.20683
 **********
 **   18 **HESSE 
 **********

 FCN=   8212.193     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.835        8.8046        .22361E-04   -1.4991    
   2  alpha         2.3369        .88888        .84490E-03   -.65286E-01
   3  Normalizat    .73798        .24709        .15426E-04   -1.0241    
   4  Prefactor     1.2068        .14425        .36619E-04   -.86122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58428e-09
Minuit parameter uncertainties:
  1  8.8055
  2  0.908852
  3  0.247466
  4  0.144294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464099': 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) = 8212.19301796
delta logL = 0.000525679719431

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  1.283e+01  8.805e+00  1.000e-04  1.000e+04 ( 1.000e-12)
366        alpha:  2.337e+00  9.089e-01  0.000e+00  5.000e+00 ( 1.000e+00)
367         beta:  6.673e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  5.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
683    Prefactor:  1.207e+00  1.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
684        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
685        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  7.380e-01  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.75
Ra Dec: 270.377 44.075
Photon Index (Free Index): 2.34 +/- 0.91
Photon Flux (Free Index): 5.39e-08 +/- 5.34e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.30e-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/464099/cmap_HighResolution_314755201_315014401_4FGL_J1801.5+4404_daily_bin291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='1.80e-05', photon_flux_error='3.52e-08', dlogl='5.26e-04', energy_flux='1.81e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-19 08:41:02.134669', photon_index_error2='0.91', photon_index2='2.34', ts='4.76', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.74', time_epoch_completed='1632066062.13', return_code='0', job_id='464099', GAL2='1.21', EG2='0.74', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.34e-08', ts2='4.75', photon_index='2.31' WHERE bin_id='291' AND source_name='4FGL J1801.5+4404' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 08:41:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 464099: <4FGL_J1801.5+4404_daily_bin291> in cluster <slac> Done

Job <4FGL_J1801.5+4404_daily_bin291> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 19 08:25:18 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 08:25:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 08:25:20 2021
Terminated at Sun Sep 19 08:41:02 2021
Results reported at Sun Sep 19 08:41:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1801.5+4404_daily_bin291 270.377 44.0747 314755201 315014401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1801.5+4404 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   922.04 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             362.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

