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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1761
RA = 226.103, Dec = 10.4978
tmin = 695779201, tmax = 696038401
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='924860', job_status='RUN', time_executed='2023-01-22 01:06:47.767811', time_epoch_executed='1674378407.77' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924860/ft1_4FGL_J1504.4+1029_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924860/ft2_4FGL_J1504.4+1029_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924860/ft1_4FGL_J1504.4+1029_daily_bin1761.fits outfile=/scratch/kocevski/924860/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1761.fits ra=226.103 dec=10.4978 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.15
user 4.85
sys 0.25

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

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

Number of photons that the gtmktime cut: 663

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924860/ft1_filtered_4FGL_J1504.4+1029_daily_bin1761.fits" evtable="EVENTS" scfile=/scratch/kocevski/924860/ft2_4FGL_J1504.4+1029_daily_bin1761.fits sctable="SC_DATA" outfile=/scratch/kocevski/924860/ltcube_695779201_696038401_4FGL_J1504.4+1029_daily_bin1761.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/924860/ft2_4FGL_J1504.4+1029_daily_bin1761.fits
.....................!
real 14.50
user 14.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924860/ft1_filtered_4FGL_J1504.4+1029_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/924860/ft2_4FGL_J1504.4+1029_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/924860/ltcube_695779201_696038401_4FGL_J1504.4+1029_daily_bin1761.fits outfile=/scratch/kocevski/924860/expmap_695779201_696038401_4FGL_J1504.4+1029_daily_bin1761.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/924860/ltcube_695779201_696038401_4FGL_J1504.4+1029_daily_bin1761.fits
.....................!
real 193.30
user 186.81
sys 5.82

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/924860/ft1_filtered_4FGL_J1504.4+1029_daily_bin1761.fits scfile=/scratch/kocevski/924860/ft2_4FGL_J1504.4+1029_daily_bin1761.fits outfile=/scratch/kocevski/924860/cmap_695779201_696038401_4FGL_J1504.4+1029_daily_bin1761.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924860/ft1_filtered_4FGL_J1504.4+1029_daily_bin1761.fits scfile=/scratch/kocevski/924860/ft2_4FGL_J1504.4+1029_daily_bin1761.fits outfile=/scratch/kocevski/924860/cmap_HighResolution_695779201_696038401_4FGL_J1504.4+1029_daily_bin1761.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40581E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    11.355       1.0000          .0000       .10000E+07
     3 'norm      '    .20806E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .13276E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .15644E-02   1.0000          .0000       .10000E+07
     6 'norm      '    73.471       1.0000          .0000       .10000E+07
     7 'Prefactor '    .95512E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    24.950       1.0000          .0000       .10000E+07
     9 'Prefactor '    .60927       1.0000          .0000       .10000E+07
    10 'norm      '    .24065E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .18913E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .26416E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .47615E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .70733E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    31.374       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.8814       1.0000          .0000       .10000E+07
    17 'Prefactor '    80.337       1.0000          .0000       .10000E+07
    18 'Prefactor '    .76126E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.3510       1.0000          .0000       .10000E+07
    20 'Prefactor '    79.529       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2522       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87855       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=   7446.609     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     1851 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13656E-07    7.8795       -.24944E-07** at limit **
   2  Prefactor     11.502        8.7687       -.54592E-08    .84887E-03
   3  norm           .0000        .85904       -.42105E-08** at limit **
   4  Prefactor     .48250E-06    21.789       -.30622E-07** at limit **
   5  Prefactor     .58842E-08    15.826       -.22090E-06** at limit **
   6  norm          73.737        6.0213       -.15131E-07   -.16038E-01
   7  Prefactor     .13878E-07    8.1904       -.28185E-07** at limit **
   8  Prefactor     25.102        6.9339        .89142E-08    .22891E-01
   9  Prefactor     .10913E-05    196.46        .96293E-06** at limit **
  10  norm          .24084E-01    .12093        .18292E-07** at limit **
  11  norm           .0000        1.0078        .33209E-08** at limit **
  12  norm          .11434E-05    4.9037        .66848E-07** at limit **
  13  norm          .34417E-07    14.503       -.49064E-07** at limit **
  14  norm          .12623E-06    26.419        .11921E-06** at limit **
  15  Prefactor     32.749        37.049       -.11667E-06    .10013    
  16  Prefactor     4.9609        5.4887        .20567E-07    .38193E-03
  17  Prefactor     82.262        58.981       -.10186E-06   -.99073E-01
  18  Prefactor     .74757E-06    22.091        .19839E-06** at limit **
  19  norm          5.3443        3.3262        .60747E-08   -.30163E-03
  20  Prefactor     79.259        9.1888        .15950E-07    .13397E-01
  21  Normalizat    1.2504        .26990        .11251E-05   -.99769E-04
  22  Prefactor     .87863        .15262       -.14928E-05   -.20563E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36557e-08
  Prefactor  = 11.5024
  norm       = 0
  Prefactor  = 4.82503e-07
  Prefactor  = 5.88418e-09
  norm       = 73.737
  Prefactor  = 1.38778e-08
  Prefactor  = 25.1019
  Prefactor  = 1.09129e-06
  norm       = 0.0240841
  norm       = 0
  norm       = 1.14342e-06
  norm       = 3.44169e-08
  norm       = 1.26232e-07
  Prefactor  = 32.7489
  Prefactor  = 4.9609
  Prefactor  = 82.262
  Prefactor  = 7.47569e-07
  norm       = 5.34431
  Prefactor  = 79.259
  Normalizat = 1.25041
  Prefactor  = 0.87863
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.609     FROM HESSE     STATUS=OK           398 CALLS     2249 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13656E-07    7.9431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.502        8.7710        .29705E-03   -1.5640    
   3  norm           .0000        .85924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .48250E-06    23.002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .58842E-08    15.890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          73.737        24.934        .11667E-03   -1.5536    
   7  Prefactor     .13878E-07    8.2598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.102        26.187        .20024E-03   -1.5608    
   9  Prefactor     .10913E-05    191.74        .68402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .24084E-01    .89557E-01    .90387E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.0008        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .11434E-05    3.8942        .63568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .34417E-07    14.697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12623E-06    2.0481        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.749        67.003        .17856E-03   -1.5594    
  16  Prefactor     4.9609        5.5019        .45503E-03   -1.5663    
  17  Prefactor     82.262        74.214        .11158E-03   -1.5527    
  18  Prefactor     .74757E-06    25.653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3443        3.3384        .43421E-03   -1.5662    
  20  Prefactor     79.259        77.871        .11214E-03   -1.5530    
  21  Normalizat    1.2504        .22275        .68918E-01   -.85059    
  22  Prefactor     .87863        .12487        .44731E-01   -.96892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27228e-06
Minuit parameter uncertainties:
  1  0.000659154
  2  8.77105
  3  5.27257e-06
  4  0.00666298
  5  0.000610443
  6  24.9339
  7  0.000677358
  8  26.1872
  9  0.0289316
  10  0.0895574
  11  1.594e-06
  12  0.00422031
  13  0.00142212
  14  0.0010169
  15  67.0044
  16  5.50187
  17  74.2148
  18  0.00875832
  19  3.33838
  20  77.8724
  21  0.222919
  22  0.12491
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.408e-02  8.956e-02  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.786e-01  1.249e-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.250e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 226.103 10.498
Photon Flux Upper Limit: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/924860/likelihoodResults_695779201_696038401_4FGL_J1504.4+1029_daily_bin1761.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) = 7446.60802397
delta logL = 0.000487694641379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7446.60785054
delta logL = 0.000661118134303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25232E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    2.2351       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87892       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7446.608     FROM MIGRAD    STATUS=FAILED        95 CALLS      293 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25203E-01    .12314        .46644E-04** at limit **
   2  alpha         2.2357        3.5864        .78685E-01   -.18054E-03
   3  Normalizat    1.2492        .26691        .30505E-03    .21459E-03
   4  Prefactor     .87905        .15234        .20333E-03    .18558E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7446.608     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      369 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25203E-01    .12314        .25024E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2357        3.5864        .52519E-02   -.10592    
   3  Normalizat    1.2492        .26691        .32101E-03   -.85095    
   4  Prefactor     .87905        .15234        .15677E-03   -.96877    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7446.608     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      399 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25202E-01    .12520        .18658E-05** at limit **
   2  alpha         2.2357        3.5930        .15737E-01   -.70097E-05
   3  Normalizat    1.2492        .26714        .12202E-04    .55902E-06
   4  Prefactor     .87905        .15244        .40667E-04    .33547E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0252025
  alpha      = 2.2357
  Normalizat = 1.24921
  Prefactor  = 0.879053
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.608     FROM HESSE     STATUS=OK            27 CALLS      426 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25202E-01    .12635        .74886E-07   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2357        3.5944        .31474E-02   -.10592    
   3  Normalizat    1.2492        .26730        .24404E-05   -.85095    
   4  Prefactor     .87905        .15250        .81334E-05   -.96877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72507e-13
Minuit parameter uncertainties:
  1  0.112858
  2  3.15986
  3  0.267593
  4  0.152571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924860': 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) = 7446.60785005
delta logL = 0.000661607812617

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.520e-02  1.129e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.236e+00  3.160e+00  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.791e-01  1.526e-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.249e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 226.103 10.498

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/924860/cmap_HighResolution_695779201_696038401_4FGL_J1504.4+1029_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='8.09e-08', time_completed='2023-01-22 01:16:37.227917', job_id='924860', GAL2='0.88', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1674378997.23', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='6.62e-04', ts2='0.06', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1761' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 01:16:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 924860: <4FGL_J1504.4+1029_daily_bin1761> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1761> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan 22 01:05:21 2023
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 22 01:05:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 22 01:05:31 2023
Terminated at Sun Jan 22 01:16:38 2023
Results reported at Sun Jan 22 01:16:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1761 226.103 10.4978 695779201 696038401 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 :                                   590.55 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            677 sec.

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

