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


Performing analysis on: 4FGL_J1801.5+4404_daily_bin1202
RA = 270.377, Dec = 44.0747
tmin = 550886401, tmax = 551145601
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='469572', job_status='RUN', time_executed='2021-09-19 08:47:44.671670', time_epoch_executed='1632066464.67' WHERE source_name='4FGL J1801.5+4404' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469572/ft1_4FGL_J1801.5+4404_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469572/ft2_4FGL_J1801.5+4404_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469572/ft1_4FGL_J1801.5+4404_daily_bin1202.fits outfile=/scratch/kocevski/469572/ft1_filteredMKT_4FGL_J1801.5+4404_daily_bin1202.fits ra=270.377 dec=44.0747 rad=12.0 tmin=550886401.0 tmax=551145601.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.74
user 3.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469572/ft2_4FGL_J1801.5+4404_daily_bin1202.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/469572/ft1_filteredMKT_4FGL_J1801.5+4404_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/469572/ft1_filtered_4FGL_J1801.5+4404_daily_bin1202.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469572/ft1_filtered_4FGL_J1801.5+4404_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/469572/ft2_4FGL_J1801.5+4404_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/469572/ltcube_550886401_551145601_4FGL_J1801.5+4404_daily_bin1202.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/469572/ft2_4FGL_J1801.5+4404_daily_bin1202.fits
.....................!
real 11.96
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469572/ft1_filtered_4FGL_J1801.5+4404_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/469572/ft2_4FGL_J1801.5+4404_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/469572/ltcube_550886401_551145601_4FGL_J1801.5+4404_daily_bin1202.fits outfile=/scratch/kocevski/469572/expmap_550886401_551145601_4FGL_J1801.5+4404_daily_bin1202.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/469572/ltcube_550886401_551145601_4FGL_J1801.5+4404_daily_bin1202.fits
.....................!
real 191.14
user 185.62
sys 5.02

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/469572/ft1_filtered_4FGL_J1801.5+4404_daily_bin1202.fits scfile=/scratch/kocevski/469572/ft2_4FGL_J1801.5+4404_daily_bin1202.fits outfile=/scratch/kocevski/469572/cmap_550886401_551145601_4FGL_J1801.5+4404_daily_bin1202.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469572/ft1_filtered_4FGL_J1801.5+4404_daily_bin1202.fits scfile=/scratch/kocevski/469572/ft2_4FGL_J1801.5+4404_daily_bin1202.fits outfile=/scratch/kocevski/469572/cmap_HighResolution_550886401_551145601_4FGL_J1801.5+4404_daily_bin1202.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9871       1.0000         .10000E-03   10000.    
     4 'norm      '    .12217E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5224       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9324       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .76380E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13106E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    213.70       1.0000         .10000E-03   10000.    
    10 'norm      '    10.002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34427E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.149       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.968       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25636E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.565       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8910       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5446       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .56438       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=   2272.030     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3522 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .70101        .47310E-07** at limit **
   2  Prefactor     .10000E-03    4.4516        .62563E-07** at limit **
   3  norm          1.9874        1.5772        .21665E-06    .24667E-04
   4  norm          .10000E-03    10.316       -.10681E-05** at limit **
   5  norm          2.5259        4.6184        .60246E-06    .12552E-04
   6  Prefactor     9.9340        7.4867       -.66328E-06   -.25912E-04
   7  Prefactor     .10004E-03    612.16       -.75775E-04** at limit **
   8  norm          .10000E-03    6.1093       -.11658E-05** at limit **
   9  Prefactor     213.54        171.18       -.21131E-04   -.10269E-03
  10  norm          10.006        9.7891       -.25991E-05   -.44839E-04
  11  Prefactor     .10000E-03    110.39        .56305E-05** at limit **
  12  Prefactor     .10415E-03    10.742        .43449E-05** at limit **
  13  Prefactor     41.320        130.28       -.21477E-04    .96990E-04
  14  Prefactor     .10000E-03    108.06        .75922E-05** at limit **
  15  Prefactor     .10000E-03    8.9964       -.11431E-05** at limit **
  16  Prefactor     14.976        24.612        .30793E-05   -.20265E-04
  17  norm          .10000E-03    2.1246        .14817E-07** at limit **
  18  norm          .10000E-03    45.514       -.23339E-05** at limit **
  19  Prefactor     .10000E-03    28.248        .14618E-05** at limit **
  20  norm          .10000E-03    6.2044        .63057E-06** at limit **
  21  Prefactor     .10327E-03    41.553        .10459E-05** at limit **
  22  Prefactor     13.565        9.8884        .42917E-06   -.77909E-05
  23  Prefactor     .10000E-03    20.211       -.90844E-07** at limit **
  24  norm          .10000E-03    6.3361       -.14825E-06** at limit **
  25  norm          .10000E-03    9.3651        .16570E-05** at limit **
  26  Prefactor     1.8905        4.1294        .64902E-06   -.69763E-05
  27  Normalizat    1.5431        .38353       -.11674E-04    .13102E-03
  28  Prefactor     .56527        .19326        .38637E-05   -.98645E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.98739
  norm       = 0.000100001
  norm       = 2.52585
  Prefactor  = 9.93395
  Prefactor  = 0.000100036
  norm       = 0.000100001
  Prefactor  = 213.543
  norm       = 10.0059
  Prefactor  = 0.000100001
  Prefactor  = 0.000104155
  Prefactor  = 41.32
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.9764
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000103267
  Prefactor  = 13.5654
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.89048
  Normalizat = 1.54305
  Prefactor  = 0.565267
 **********
 **   18 **HESSE 
 **********

 FCN=   2272.030     FROM HESSE     STATUS=OK           517 CALLS     4039 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .70328        .38975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4576        .98220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9874        1.5718        .51376E-04   -1.5426    
   4  norm          .10000E-03    10.327        .14938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5259        4.6248        .12558E-03   -1.5390    
   6  Prefactor     9.9340        7.4904        .10989E-03   -1.5077    
   7  Prefactor     .10004E-03    616.09        .41859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.1089        .11480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     213.54        173.88        .13830E-03   -1.2775    
  10  norm          10.006        9.8245        .12670E-03   -1.5075    
  11  Prefactor     .10000E-03    110.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10415E-03    165.58        .27059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.320        132.92        .31245E-03   -1.4421    
  14  Prefactor     .10000E-03    108.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9981        .13964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.976        24.634        .10353E-03   -1.4934    
  17  norm          .10000E-03    2.1260        .67858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    45.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.2108        .11598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10327E-03    297.48        .58513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.565        9.8897        .10875E-03   -1.4971    
  23  Prefactor     .10000E-03    20.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.3392        .11719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    9.3710        .14251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.8905        4.1016        .13647E-03   -1.5433    
  27  Normalizat    1.5431        .45404        .25626E-03   -.76576    
  28  Prefactor     .56527        .22870        .22194E-03   -1.0907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48944e-08
Minuit parameter uncertainties:
  1  3.34836e-06
  2  1.66028e-05
  3  1.57179
  4  0.000165445
  5  4.62545
  6  7.49111
  7  0.00948229
  8  0.0001609
  9  174.297
  10  9.82607
  11  0.000749422
  12  0.0526034
  13  133.888
  14  0.00100589
  15  4.14684e-06
  16  24.6512
  17  3.3291e-06
  18  6.57967e-05
  19  6.01634e-05
  20  3.28876e-05
  21  0.0626631
  22  9.89089
  23  9.7145e-06
  24  1.16122e-05
  25  4.41969e-05
  26  4.10218
  27  0.45525
  28  0.229074
Done.

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

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  1.000e-04  3.289e-05  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:  5.653e-01  2.291e-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.543e+00  4.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 270.377 44.075
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/469572/likelihoodResults_550886401_551145601_4FGL_J1801.5+4404_daily_bin1202.txt

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) = 2272.03081537
delta logL = -0.000743075127048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2272.03007235
delta logL = -6.04150045547e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3061       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56533       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=   2272.030     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      230 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    14.156        .11599E-02** at limit **
   2  alpha         2.2634        3.2156        .16524        .65548E-06
   3  Normalizat    1.5430        .39533        .25626E-03   -.12200E-05
   4  Prefactor     .56527        .21969        .22194E-03   -.41492E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100064
  alpha      = 2.2634
  Normalizat = 1.54304
  Prefactor  = 0.565272
 **********
 **   18 **HESSE 
 **********

 FCN=   2272.030     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    6.2338        .23198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2634        2.9597        .66094E-02   -.94780E-01
   3  Normalizat    1.5430        .39571        .10250E-04   -.76576    
   4  Prefactor     .56527        .21989        .88774E-05   -1.0907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23243e-08
Minuit parameter uncertainties:
  1  0.00126755
  2  430.483
  3  0.396509
  4  0.220227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469572': 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) = 2272.03007228
delta logL = 1.18902789836e-08

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  1.001e-04  1.268e-03  1.000e-04  1.000e+04 ( 1.000e-12)
366        alpha:  2.263e+00  4.305e+02  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:  5.653e-01  2.202e-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.543e+00  3.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 270.377 44.075

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/469572/cmap_HighResolution_550886401_551145601_4FGL_J1801.5+4404_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-05', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-19 08:56:41.821896', job_id='469572', GAL2='0.57', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1632067001.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='1.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1202' AND source_name='4FGL J1801.5+4404' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 08:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 469572: <4FGL_J1801.5+4404_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1801.5+4404_daily_bin1202> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep 19 08:45:44 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 08:45:46 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:45:46 2021
Terminated at Sun Sep 19 08:56:42 2021
Results reported at Sun Sep 19 08:56:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1801.5+4404_daily_bin1202 270.377 44.0747 550886401 551145601 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 :                                   534.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            658 sec.

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

