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


Performing analysis on: 4FGL_J1801.5+4404_daily_bin1291
RA = 270.377, Dec = 44.0747
tmin = 573955201, tmax = 574214401
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='470794', job_status='RUN', time_executed='2021-09-19 08:50:36.758911', time_epoch_executed='1632066636.76' WHERE source_name='4FGL J1801.5+4404' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470794/ft1_4FGL_J1801.5+4404_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470794/ft2_4FGL_J1801.5+4404_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470794/ft1_4FGL_J1801.5+4404_daily_bin1291.fits outfile=/scratch/kocevski/470794/ft1_filteredMKT_4FGL_J1801.5+4404_daily_bin1291.fits ra=270.377 dec=44.0747 rad=12.0 tmin=573955201.0 tmax=574214401.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.58
user 3.38
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470794/ft1_filtered_4FGL_J1801.5+4404_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/470794/ft2_4FGL_J1801.5+4404_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/470794/ltcube_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.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/470794/ft2_4FGL_J1801.5+4404_daily_bin1291.fits
.....................!
real 11.85
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470794/ft1_filtered_4FGL_J1801.5+4404_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/470794/ft2_4FGL_J1801.5+4404_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/470794/ltcube_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.fits outfile=/scratch/kocevski/470794/expmap_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.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/470794/ltcube_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.fits
.....................!
real 189.72
user 184.96
sys 4.43

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/470794/ft1_filtered_4FGL_J1801.5+4404_daily_bin1291.fits scfile=/scratch/kocevski/470794/ft2_4FGL_J1801.5+4404_daily_bin1291.fits outfile=/scratch/kocevski/470794/cmap_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470794/ft1_filtered_4FGL_J1801.5+4404_daily_bin1291.fits scfile=/scratch/kocevski/470794/ft2_4FGL_J1801.5+4404_daily_bin1291.fits outfile=/scratch/kocevski/470794/cmap_HighResolution_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.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.53
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/470794/ft1_filtered_4FGL_J1801.5+4404_daily_bin1291.fits', '/scratch/kocevski/470794/ft2_4FGL_J1801.5+4404_daily_bin1291.fits', expMap='/scratch/kocevski/470794/expmap_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.fits', expCube='/scratch/kocevski/470794/ltcube_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/470794/Model_4FGL_J1801.5+4404_daily_bin1291.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/470794/ft1_filtered_4FGL_J1801.5+4404_daily_bin1291.fits
Spacecraft file(s): /scratch/kocevski/470794/ft2_4FGL_J1801.5+4404_daily_bin1291.fits
Exposure map: /scratch/kocevski/470794/expmap_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.fits
Exposure cube: /scratch/kocevski/470794/ltcube_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/470794/Model_4FGL_J1801.5+4404_daily_bin1291.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) = 7850.65739328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .73488       1.0000         .10000E-03   10000.    
     4 'norm      '    .16238       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9159       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6155       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9340       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5247       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12293E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.108       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    51.950       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    19.698       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9561       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.526       1.0000         .10000E-03   10000.    
    24 'norm      '    14.571       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .93134       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1377       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=   7850.654     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3485 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .39249       -.77801E-07** at limit **
   2  Prefactor     .10000E-03    5.7768        .23155E-07** at limit **
   3  norm          .73509        .61318       -.12711E-06   -.32140E-03
   4  norm          .11547        4.2072       -.25571E-07   -.38921E-03
   5  norm          2.9158        1.7263       -.13164E-06    .15663E-03
   6  Prefactor     1.6154        2.0554       -.52910E-08    .52457E-04
   7  Prefactor     .10000E-03    22.440        .63408E-05** at limit **
   8  norm          4.9384        6.4428       -.15252E-05   -.72344E-03
   9  Prefactor     .10000E-03    55.825        .65251E-04** at limit **
  10  norm          5.7282        5.3210       -.26633E-06    .13844E-03
  11  Prefactor     .10000E-03    39.624       -.40184E-04** at limit **
  12  Prefactor     2.5245        4.4293       -.83658E-06   -.69574E-03
  13  Prefactor     .10000E-03    14.283       -.11627E-05** at limit **
  14  Prefactor     .10000E-03    105.62       -.50456E-04** at limit **
  15  Prefactor     .10000E-03    7.6493       -.11697E-05** at limit **
  16  Prefactor     14.107        10.041       -.20718E-06    .10879E-04
  17  norm          .10000E-03    1.3191       -.83774E-07** at limit **
  18  norm          51.950        65.836       -.92893E-06    .22111E-05
  19  Prefactor     .10000E-03    7.2008       -.16718E-05** at limit **
  20  norm          19.696        10.065       -.30718E-06    .67960E-04
  21  Prefactor     .10000E-03    7.4676        .28645E-05** at limit **
  22  Prefactor     8.9553        7.6781       -.34251E-06   -.14529E-03
  23  Prefactor     17.483        39.113       -.50166E-04    .65923E-06
  24  norm          14.568        9.5933       -.53746E-06   -.72390E-03
  25  norm          .10000E-03    3.7764       -.89751E-07** at limit **
  26  Prefactor     .10000E-03    1.6504       -.62264E-07** at limit **
  27  Normalizat    .93145        .22283        .29887E-05    .10523E-03
  28  Prefactor     1.1376        .12636        .10196E-05    .21214E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.735091
  norm       = 0.115472
  norm       = 2.91579
  Prefactor  = 1.61536
  Prefactor  = 0.0001
  norm       = 4.93835
  Prefactor  = 0.0001
  norm       = 5.72819
  Prefactor  = 0.0001
  Prefactor  = 2.52449
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.1072
  norm       = 0.0001
  norm       = 51.9499
  Prefactor  = 0.0001
  norm       = 19.6957
  Prefactor  = 0.0001
  Prefactor  = 8.9553
  Prefactor  = 17.4834
  norm       = 14.5679
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.931447
  Prefactor  = 1.13765
 **********
 **   18 **HESSE 
 **********

 FCN=   7850.654     FROM HESSE     STATUS=OK           525 CALLS     4010 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .40773        .10834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .73509        .61492        .60931E-04   -1.5536    
   4  norm          .11547        8.0333        .60062E-01   -1.5640    
   5  norm          2.9158        1.7250        .85106E-04   -1.5366    
   6  Prefactor     1.6154        2.0420        .13929E-03   -1.5454    
   7  Prefactor     .10000E-03    22.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9384        6.4573        .18107E-03   -1.5263    
   9  Prefactor     .10000E-03    55.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7282        5.3020        .16780E-03   -1.5229    
  11  Prefactor     .10000E-03    39.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5245        4.4167        .23137E-03   -1.5390    
  13  Prefactor     .10000E-03    14.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    107.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.107        10.040        .10664E-03   -1.4957    
  17  norm          .10000E-03    1.3283        .99356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          51.950        65.795        .55644E-04   -1.4265    
  19  Prefactor     .10000E-03    7.2041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          19.696        10.083        .90245E-04   -1.4820    
  21  Prefactor     .10000E-03    7.4955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.9553        7.6737        .13393E-03   -1.5109    
  23  Prefactor     17.483        39.175        .95671E-04   -1.4871    
  24  norm          14.568        9.6039        .52465E-03   -1.4944    
  25  norm          .10000E-03    3.7775        .16815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.7011        .22208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .93145        .25841        .34405E-03   -.95364    
  28  Prefactor     1.1376        .14717        .18911E-03   -.88272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58898e-07
Minuit parameter uncertainties:
  1  2.11303e-06
  2  2.79812e-05
  3  0.614925
  4  1.9257
  5  1.72503
  6  2.04213
  7  6.99716e-06
  8  6.45823
  9  4.00273e-05
  10  5.30243
  11  7.76187e-05
  12  4.41724
  13  4.36188e-06
  14  0.000872206
  15  1.46498e-05
  16  10.0415
  17  2.76732e-06
  18  65.8874
  19  2.26465e-06
  20  10.0836
  21  3.49753e-05
  22  7.67454
  23  39.2326
  24  9.60488
  25  5.39886e-07
  26  5.23834e-06
  27  0.258758
  28  0.147227
Done.

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

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  1.970e+01  1.008e+01  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.138e+00  1.472e-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:  9.314e-01  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.02
Ra Dec: 270.377 44.075
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.04e-08 +/- 4.11e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.42e-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) = 7849.31244952
delta logL = 1.34117473218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7848.1376993
delta logL = 2.5159249506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8260       1.0000         .10000E-03   10000.    
     2 'alpha     '    .90234       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1194       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.

 FCN=   7848.138     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      227 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8266        2.8812        .51585E-02   -.21356E-03
   2  alpha         .90221        .27471        .24669       -.52481E-04
   3  Normalizat    1.0070        .20612        .75106E-01    .22991E-04
   4  Prefactor     1.1194        .12455        .36893E-01    .20542E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.82658
  alpha      = 0.902215
  Normalizat = 1.00704
  Prefactor  = 1.11944
 **********
 **   18 **HESSE 
 **********

 FCN=   7848.138     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8266        4.7821        .10905E-03   -1.5317    
   2  alpha         .90221        .46578        .10614E-01   -.69335    
   3  Normalizat    1.0070        .24038        .33234E-03   -.92795    
   4  Prefactor     1.1194        .14554        .19061E-03   -.88848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97786e-12
Minuit parameter uncertainties:
  1  4.78261
  2  0.47046
  3  0.240635
  4  0.145592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470794': 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) = 7848.13769864
delta logL = 2.51592561294

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  3.827e+00  4.783e+00  1.000e-04  1.000e+04 ( 1.000e-12)
366        alpha:  9.022e-01  4.705e-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.119e+00  1.456e-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:  1.007e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.98
Ra Dec: 270.377 44.075
Photon Index (Free Index): 0.90 +/- 0.47
Photon Flux (Free Index): 1.22e-08 +/- 9.73e-09
Energy Flux (Free Index): 1.07e-04 +/- 1.02e-04

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/470794/cmap_HighResolution_573955201_574214401_4FGL_J1801.5+4404_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.04e-08', energy_flux2='1.07e-04', photon_flux_error='4.11e-08', dlogl='2.52e+00', energy_flux='2.77e-05', photon_flux2='1.22e-08', job_status='DONE', time_completed='2021-09-19 09:05:30.838858', photon_index_error2='0.47', photon_index2='0.90', ts='11.02', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.02e-04', EG='0.93', time_epoch_completed='1632067530.84', return_code='0', job_id='470794', GAL2='1.12', EG2='1.01', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='9.73e-09', ts2='15.98', photon_index='2.31' WHERE bin_id='1291' AND source_name='4FGL J1801.5+4404' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 09:05:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 470794: <4FGL_J1801.5+4404_daily_bin1291> in cluster <slac> Done

Job <4FGL_J1801.5+4404_daily_bin1291> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep 19 08:50:22 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 08:50:24 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:50:24 2021
Terminated at Sun Sep 19 09:05:31 2021
Results reported at Sun Sep 19 09:05:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1801.5+4404_daily_bin1291 270.377 44.0747 573955201 574214401 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 :                                   891.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             364.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

