aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 108 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1770
RA = 226.103, Dec = 10.4978
tmin = 698112001, tmax = 698371201
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='489030', job_status='RUN', time_executed='2023-02-18 01:02:19.405910', time_epoch_executed='1676710939.41' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489030/ft1_4FGL_J1504.4+1029_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489030/ft1_4FGL_J1504.4+1029_daily_bin1770.fits outfile=/scratch/kocevski/489030/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1770.fits ra=226.103 dec=10.4978 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.39
user 4.17
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.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/489030/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/489030/ft1_filtered_4FGL_J1504.4+1029_daily_bin1770.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.31
sys 0.16

Number of photons that the gtmktime cut: 673

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489030/ft1_filtered_4FGL_J1504.4+1029_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/489030/ltcube_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.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/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.fits
.....................!
real 11.92
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489030/ft1_filtered_4FGL_J1504.4+1029_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/489030/ltcube_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.fits outfile=/scratch/kocevski/489030/expmap_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.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/489030/ltcube_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.fits
.....................!
real 191.09
user 186.47
sys 4.28

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

Setting source of interest to:
4FGL J1504.4+1029 @ 226.103 10.4978

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/489030/ft1_filtered_4FGL_J1504.4+1029_daily_bin1770.fits scfile=/scratch/kocevski/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.fits outfile=/scratch/kocevski/489030/cmap_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.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=226.103 yref=10.4978 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489030/ft1_filtered_4FGL_J1504.4+1029_daily_bin1770.fits scfile=/scratch/kocevski/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.fits outfile=/scratch/kocevski/489030/cmap_HighResolution_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.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=226.103 yref=10.4978 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489030/ft1_filtered_4FGL_J1504.4+1029_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489030/Model_4FGL_J1504.4+1029_daily_bin1770.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/489030/ft1_filtered_4FGL_J1504.4+1029_daily_bin1770.fits.....................!
real 53.47
user 52.26
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/489030/ft1_filtered_4FGL_J1504.4+1029_daily_bin1770.fits', '/scratch/kocevski/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.fits', expMap='/scratch/kocevski/489030/expmap_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.fits', expCube='/scratch/kocevski/489030/ltcube_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/489030/Model_4FGL_J1504.4+1029_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1504.4+1029'

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.267e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/489030/ft1_filtered_4FGL_J1504.4+1029_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/489030/ft2_4FGL_J1504.4+1029_daily_bin1770.fits
Exposure map: /scratch/kocevski/489030/expmap_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.fits
Exposure cube: /scratch/kocevski/489030/ltcube_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/489030/Model_4FGL_J1504.4+1029_daily_bin1770.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) = 7281.03380887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.328       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48987E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .92848E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .80908E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .35276       1.0000          .0000       .10000E+07
     6 'norm      '    15.770       1.0000          .0000       .10000E+07
     7 'Prefactor '    .75616E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12984E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .64549       1.0000          .0000       .10000E+07
    10 'norm      '    .52684       1.0000          .0000       .10000E+07
    11 'norm      '    2.9219       1.0000          .0000       .10000E+07
    12 'norm      '    .18411E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .17047E-02   1.0000          .0000       .10000E+07
    14 'norm      '    2.3799       1.0000          .0000       .10000E+07
    15 'Prefactor '    .16332E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .35913E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    31.952       1.0000          .0000       .10000E+07
    18 'Prefactor '    .20748E-02   1.0000          .0000       .10000E+07
    19 'norm      '    2.7927       1.0000          .0000       .10000E+07
    20 'Prefactor '    .14516E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3102       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92188       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7281.027     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1733 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.302        1.1504        .17948E-07    .23888E-01
   2  Prefactor      .0000        11.251       -.61801E-07** at limit **
   3  norm           .0000        1.3819       -.81350E-07** at limit **
   4  Prefactor     .70016E-06    102.14       -.24954E-06** at limit **
   5  Prefactor     .13656E-07    66.521       -.17518E-07** at limit **
   6  norm          15.986        2.4007       -.80552E-07   -.73586E-01
   7  Prefactor      .0000        5.9532       -.68984E-08** at limit **
   8  Prefactor      .0000        5.7948        .34225E-07** at limit **
   9  Prefactor     .21478E-03    1823.6       -.14828E-04** at limit **
  10  norm          .52661        .18789       -.10828E-07   -.12986E-01
  11  norm          2.9198        2.0924        .11698E-07    .90279E-03
  12  norm           .0000        3.0644       -.11462E-06** at limit **
  13  norm          .45519E-08    17.380        .21511E-07** at limit **
  14  norm          2.3809        2.4629       -.26777E-07   -.71219E-03
  15  Prefactor      .0000        24.739       -.32939E-07** at limit **
  16  Prefactor     .11102E-09    8.0574        .48454E-07** at limit **
  17  Prefactor     31.895        8.9561        .25808E-06    .18134    
  18  Prefactor      .0000        7.3864       -.85496E-07** at limit **
  19  norm          2.7898        2.2949        .21380E-07    .64659E-03
  20  Prefactor     .92149E-08    32.384       -.55021E-07** at limit **
  21  Normalizat    1.3111        .25243       -.22365E-05    .15225E-04
  22  Prefactor     .92190        .14928        .17697E-05    .69336E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.3017
  Prefactor  = 0
  norm       = 0
  Prefactor  = 7.00162e-07
  Prefactor  = 1.36557e-08
  norm       = 15.9862
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.000214783
  norm       = 0.526611
  norm       = 2.91984
  norm       = 0
  norm       = 4.55191e-09
  norm       = 2.3809
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 31.8949
  Prefactor  = 0
  norm       = 2.78984
  Prefactor  = 9.21485e-09
  Normalizat = 1.31112
  Prefactor  = 0.921903
 **********
 **   18 **HESSE 
 **********

 FCN=   7281.027     FROM HESSE     STATUS=OK           388 CALLS     2121 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.302        20.050        .24760E-03   -1.5627    
   2  Prefactor      .0000        11.208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.3833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .70016E-06    104.15        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13656E-07    67.120        .95177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.986        21.403        .25194E-03   -1.5628    
   7  Prefactor      .0000        5.9617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.8011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .21478E-03    18.752        .10077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .52661        .18908        .47907E-03   -1.5693    
  11  norm          2.9198        2.0977        .59406E-03   -1.5674    
  12  norm           .0000        3.0665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .45519E-08    17.434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3809        2.4635        .66376E-03   -1.5677    
  15  Prefactor      .0000        24.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    7.9628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.895        35.357        .17693E-03   -1.5595    
  18  Prefactor      .0000        7.3938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.7898        2.3043        .60856E-03   -1.5675    
  20  Prefactor     .92149E-08    32.491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3111        .21183        .66216E-01   -.83235    
  22  Prefactor     .92190        .12336        .45283E-01   -.95380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44423e-06
Minuit parameter uncertainties:
  1  20.0498
  2  1.60961e-05
  3  7.8057e-06
  4  0.0170787
  5  0.00191564
  6  21.4034
  7  5.00149e-06
  8  1.18001e-05
  9  0.126927
  10  0.189077
  11  2.09766
  12  1.53762e-05
  13  0.000562911
  14  2.46346
  15  4.20851e-05
  16  5.17468e-05
  17  35.3568
  18  1.38291e-05
  19  2.3043
  20  0.00109577
  21  0.211974
  22  0.1234
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  5.266e-01  1.891e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.219e-01  1.234e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.311e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.56
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 4.60e-08
Energy Flux (Fixed Index): 5.19e-05 +/- 1.86e-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) = 7281.02745691
delta logL = 3.6295659811e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7281.0274569
delta logL = 3.7660356611e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52661       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1241       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92191       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7281.027     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      190 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52660        .31469        .47909E-03    .71638E-02
   2  alpha         2.1241        .53629        .25899       -.90842E-05
   3  Normalizat    1.3112        .21041        .66215E-01    .99047E-05
   4  Prefactor     .92189        .12420        .45284E-01    .74525E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.526602
  alpha      = 2.12409
  Normalizat = 1.31116
  Prefactor  = 0.921888
 **********
 **   18 **HESSE 
 **********

 FCN=   7281.027     FROM HESSE     STATUS=OK            33 CALLS      223 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52660        .18832        .21267E-05   -1.5693    
   2  alpha         2.1241        .34618        .10692E-01   -.15093    
   3  Normalizat    1.3112        .25522        .29292E-03   -.83234    
   4  Prefactor     .92189        .14961        .20246E-03   -.95380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14067e-12
Minuit parameter uncertainties:
  1  0.188321
  2  0.347322
  3  0.255469
  4  0.149673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489030': 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) = 7281.02745689
delta logL = 3.87607542507e-07

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  5.266e-01  1.883e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.124e+00  3.473e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.219e-01  1.497e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.311e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.53
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.12 +/- 0.35
Photon Flux (Free Index): 1.28e-07 +/- 5.70e-08
Energy Flux (Free Index): 5.19e-05 +/- 2.08e-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/489030/cmap_HighResolution_698112001_698371201_4FGL_J1504.4+1029_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='5.19e-05', photon_flux_error='4.60e-08', dlogl='3.88e-07', energy_flux='5.19e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2023-02-18 01:10:52.368512', photon_index_error2='0.35', photon_index2='2.12', ts='19.56', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='1.31', time_epoch_completed='1676711452.37', return_code='0', job_id='489030', GAL2='0.92', EG2='1.31', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='5.70e-08', ts2='19.53', photon_index='2.12' WHERE bin_id='1770' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 01:10:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0015>
Subject: Job 489030: <4FGL_J1504.4+1029_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1770> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Feb 18 01:00:22 2023
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 01:00:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 01:00:23 2023
Terminated at Sat Feb 18 01:10:53 2023
Results reported at Sat Feb 18 01:10:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1770 226.103 10.4978 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1504.4+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   515.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            631 sec.

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

