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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1727
RA = 226.103, Dec = 10.4978
tmin = 686966401, tmax = 687225601
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='207608', job_status='RUN', time_executed='2022-10-12 00:15:51.247297', time_epoch_executed='1665558951.25' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207608/ft1_4FGL_J1504.4+1029_daily_bin1727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207608/ft2_4FGL_J1504.4+1029_daily_bin1727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207608/ft1_4FGL_J1504.4+1029_daily_bin1727.fits outfile=/scratch/kocevski/207608/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1727.fits ra=226.103 dec=10.4978 rad=12.0 tmin=686966401.0 tmax=687225601.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 2.94
user 2.72
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207608/ft2_4FGL_J1504.4+1029_daily_bin1727.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/207608/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1727.fits evtable="EVENTS" outfile="/scratch/kocevski/207608/ft1_filtered_4FGL_J1504.4+1029_daily_bin1727.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.60
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 748

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207608/ft1_filtered_4FGL_J1504.4+1029_daily_bin1727.fits" evtable="EVENTS" scfile=/scratch/kocevski/207608/ft2_4FGL_J1504.4+1029_daily_bin1727.fits sctable="SC_DATA" outfile=/scratch/kocevski/207608/ltcube_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.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/207608/ft2_4FGL_J1504.4+1029_daily_bin1727.fits
.....................!
real 12.74
user 12.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207608/ft1_filtered_4FGL_J1504.4+1029_daily_bin1727.fits evtable="EVENTS" scfile=/scratch/kocevski/207608/ft2_4FGL_J1504.4+1029_daily_bin1727.fits sctable="SC_DATA" expcube=/scratch/kocevski/207608/ltcube_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.fits outfile=/scratch/kocevski/207608/expmap_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.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/207608/ltcube_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.fits
.....................!
real 193.51
user 187.39
sys 5.65

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/207608/ft1_filtered_4FGL_J1504.4+1029_daily_bin1727.fits scfile=/scratch/kocevski/207608/ft2_4FGL_J1504.4+1029_daily_bin1727.fits outfile=/scratch/kocevski/207608/cmap_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207608/ft1_filtered_4FGL_J1504.4+1029_daily_bin1727.fits scfile=/scratch/kocevski/207608/ft2_4FGL_J1504.4+1029_daily_bin1727.fits outfile=/scratch/kocevski/207608/cmap_HighResolution_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/207608/ft1_filtered_4FGL_J1504.4+1029_daily_bin1727.fits', '/scratch/kocevski/207608/ft2_4FGL_J1504.4+1029_daily_bin1727.fits', expMap='/scratch/kocevski/207608/expmap_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.fits', expCube='/scratch/kocevski/207608/ltcube_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/207608/Model_4FGL_J1504.4+1029_daily_bin1727.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/207608/ft1_filtered_4FGL_J1504.4+1029_daily_bin1727.fits
Spacecraft file(s): /scratch/kocevski/207608/ft2_4FGL_J1504.4+1029_daily_bin1727.fits
Exposure map: /scratch/kocevski/207608/expmap_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.fits
Exposure cube: /scratch/kocevski/207608/ltcube_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/207608/Model_4FGL_J1504.4+1029_daily_bin1727.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) = 8304.67788369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75956       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.211       1.0000          .0000       .10000E+07
     3 'norm      '    2.1712       1.0000          .0000       .10000E+07
     4 'Prefactor '    .36690       1.0000          .0000       .10000E+07
     5 'Prefactor '    50.224       1.0000          .0000       .10000E+07
     6 'norm      '    .10184E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    10.683       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.9575       1.0000          .0000       .10000E+07
     9 'Prefactor '    .31039E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .57046       1.0000          .0000       .10000E+07
    11 'norm      '    2.7041       1.0000          .0000       .10000E+07
    12 'norm      '    .31421E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .99758E-03   1.0000          .0000       .10000E+07
    14 'norm      '    3.4940       1.0000          .0000       .10000E+07
    15 'Prefactor '    .38477       1.0000          .0000       .10000E+07
    16 'Prefactor '    .28986E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .54370E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .12328E-02   1.0000          .0000       .10000E+07
    19 'norm      '    7.2755       1.0000          .0000       .10000E+07
    20 'Prefactor '    .85074E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.4314       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87816       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=   8304.633     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1734 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34848E-03    171.96       -.50826E-06** at limit **
   2  Prefactor     12.188        9.1955        .15836E-06   -.12878E-03
   3  norm          2.1598        3.0802        .21151E-06    .32219E-04
   4  Prefactor     .12072E-04    59.042        .20688E-06** at limit **
   5  Prefactor     50.742        35.705        .58293E-06    .14156    
   6  norm          .24086E-03    109.74       -.45315E-05** at limit **
   7  Prefactor     10.313        20.119       -.83925E-06   -.80607E-01
   8  Prefactor     6.9351        2.5540       -.43867E-07   -.13001E-01
   9  Prefactor     .22041E-05    8.6464        .42532E-06** at limit **
  10  norm          .57022        .19384       -.42785E-07   -.84253E-02
  11  norm          2.7045        2.2341        .19311E-06   -.48412E-03
  12  norm           .0000        2.8894        .45285E-07** at limit **
  13  norm          .12584E-06    6.5875        .13110E-06** at limit **
  14  norm          3.4681        3.5962        .24768E-06   -.18672E-04
  15  Prefactor     .37677E-05    66.328        .15604E-05** at limit **
  16  Prefactor     .55511E-10    8.4301       -.26901E-05** at limit **
  17  Prefactor     .13600E-07    12.034       -.23915E-06** at limit **
  18  Prefactor     .44847E-06    6.6328        .28076E-06** at limit **
  19  norm          7.2860        2.8110        .11374E-06    .81063E-03
  20  Prefactor     .27757E-05    7.8866       -.12453E-06** at limit **
  21  Normalizat    1.4323        .26504        .54993E-05   -.40277E-04
  22  Prefactor     .87816        .14854       -.89732E-05   -.71803E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000348482
  Prefactor  = 12.1878
  norm       = 2.15982
  Prefactor  = 1.20721e-05
  Prefactor  = 50.7419
  norm       = 0.000240865
  Prefactor  = 10.3134
  Prefactor  = 6.9351
  Prefactor  = 2.20407e-06
  norm       = 0.570216
  norm       = 2.70445
  norm       = 0
  norm       = 1.25844e-07
  norm       = 3.4681
  Prefactor  = 3.76771e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 1.36002e-08
  Prefactor  = 4.48475e-07
  norm       = 7.28596
  Prefactor  = 2.77572e-06
  Normalizat = 1.43235
  Prefactor  = 0.878161
 **********
 **   18 **HESSE 
 **********

 FCN=   8304.633     FROM HESSE     STATUS=OK           382 CALLS     2116 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34848E-03    243.93        .55999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.188        9.2006        .28641E-03   -1.5638    
   3  norm          2.1598        3.1075        .69857E-03   -1.5679    
   4  Prefactor     .12072E-04    120.31        .93426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     50.742        38.540        .14112E-03   -1.5565    
   6  norm          .24086E-03    161.90        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.313        25.660        .30628E-03   -1.5644    
   8  Prefactor     6.9351        16.883        .38011E-03   -1.5655    
   9  Prefactor     .22041E-05    14.905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .57022        .19513        .50533E-03   -1.5693    
  11  norm          2.7045        2.2422        .61920E-03   -1.5675    
  12  norm           .0000        2.8922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .12584E-06    13.124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4681        3.6048        .54067E-03   -1.5671    
  15  Prefactor     .37677E-05    111.00        .91273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    8.3579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .13600E-07    12.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .44847E-06    13.061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.2860        2.8090        .37162E-03   -1.5654    
  20  Prefactor     .27757E-05    14.638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4323        .21794        .68607E-01   -.79698    
  22  Prefactor     .87816        .12165        .44726E-01   -.96908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15756e-06
Minuit parameter uncertainties:
  1  0.583132
  2  9.2006
  3  3.10748
  4  0.0762229
  5  38.5399
  6  0.394957
  7  25.6603
  8  16.8828
  9  0.0114633
  10  0.195131
  11  2.24224
  12  4.6037e-07
  13  0.00257019
  14  3.60484
  15  0.0409022
  16  3.09171e-05
  17  0.0008132
  18  0.00484047
  19  2.80895
  20  0.0127487
  21  0.218084
  22  0.121687
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  5.702e-01  1.951e-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:  8.782e-01  1.217e-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.432e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.02
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 4.75e-08
Energy Flux (Fixed Index): 5.62e-05 +/- 1.92e-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) = 8304.52658334
delta logL = 0.106902608542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8304.51871537
delta logL = 0.114770580974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57817       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3181       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89123       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=   8304.519     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57815        2.8482        .49043E-03   -.55121E-01
   2  alpha         2.3181        3.5719        .31289       -.66235E-04
   3  Normalizat    1.3976        .18036        .69284E-01   -.56386E-03
   4  Prefactor     .89130        .96483E-01    .44893E-01   -.46617E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.578146
  alpha      = 2.3181
  Normalizat = 1.39758
  Prefactor  = 0.891302
 **********
 **   18 **HESSE 
 **********

 FCN=   8304.519     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57815        .19172        .21767E-05   -1.5693    
   2  alpha         2.3181        .41005        .12013E-01   -.72825E-01
   3  Normalizat    1.3976        .27036        .30653E-03   -.80699    
   4  Prefactor     .89130        .15056        .21265E-03   -.96446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70313e-10
Minuit parameter uncertainties:
  1  0.191718
  2  0.411917
  3  0.270636
  4  0.15063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207608': 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) = 8304.51871521
delta logL = 0.114770742875

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  5.781e-01  1.917e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.318e+00  4.119e-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:  8.913e-01  1.506e-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.398e+00  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.22
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.32 +/- 0.41
Photon Flux (Free Index): 1.64e-07 +/- 7.35e-08
Energy Flux (Free Index): 5.32e-05 +/- 1.85e-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/207608/cmap_HighResolution_686966401_687225601_4FGL_J1504.4+1029_daily_bin1727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='5.32e-05', photon_flux_error='4.75e-08', dlogl='1.15e-01', energy_flux='5.62e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2022-10-12 00:24:54.374559', photon_index_error2='0.41', photon_index2='2.32', ts='21.02', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='1.43', time_epoch_completed='1665559494.37', return_code='0', job_id='207608', GAL2='0.89', EG2='1.40', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='7.35e-08', ts2='21.22', photon_index='2.12' WHERE bin_id='1727' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Oct 12 00:24:54 PDT 2022

40', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='7.35e-08', ts2='21.22', photon_index='2.12' WHERE bin_id='1727' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Oct 12 00:21:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 206903: <4FGL_J1504.4+1029_daily_bin1727> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1727> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Oct 12 00:07:53 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:08:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:08:39 2022
Terminated at Wed Oct 12 00:21:15 2022
Results reported at Wed Oct 12 00:21:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1727 226.103 10.4978 686966401 687225601 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 :                                   540.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            802 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 207608: <4FGL_J1504.4+1029_daily_bin1727> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1727> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Oct 12 00:08:40 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:14:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:14:08 2022
Terminated at Wed Oct 12 00:24:55 2022
Results reported at Wed Oct 12 00:24:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1727 226.103 10.4978 686966401 687225601 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 :                                   545.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            975 sec.

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

