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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1751
RA = 226.103, Dec = 10.4978
tmin = 693187201, tmax = 693446401
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='80365', job_status='RUN', time_executed='2022-12-23 00:50:45.573957', time_epoch_executed='1671785445.57' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/80365

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/80365/ft1_4FGL_J1504.4+1029_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/80365/ft2_4FGL_J1504.4+1029_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/80365/ft1_4FGL_J1504.4+1029_daily_bin1751.fits outfile=/scratch/kocevski/80365/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1751.fits ra=226.103 dec=10.4978 rad=12.0 tmin=693187201.0 tmax=693446401.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.63
user 3.39
sys 0.23

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

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

Number of photons that the gtmktime cut: 707

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/80365/ft1_filtered_4FGL_J1504.4+1029_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/80365/ft2_4FGL_J1504.4+1029_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/80365/ltcube_693187201_693446401_4FGL_J1504.4+1029_daily_bin1751.fits outfile=/scratch/kocevski/80365/expmap_693187201_693446401_4FGL_J1504.4+1029_daily_bin1751.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/80365/ltcube_693187201_693446401_4FGL_J1504.4+1029_daily_bin1751.fits
.....................!
real 191.61
user 185.49
sys 5.67

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/80365/ft1_filtered_4FGL_J1504.4+1029_daily_bin1751.fits scfile=/scratch/kocevski/80365/ft2_4FGL_J1504.4+1029_daily_bin1751.fits outfile=/scratch/kocevski/80365/cmap_693187201_693446401_4FGL_J1504.4+1029_daily_bin1751.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/80365/ft1_filtered_4FGL_J1504.4+1029_daily_bin1751.fits scfile=/scratch/kocevski/80365/ft2_4FGL_J1504.4+1029_daily_bin1751.fits outfile=/scratch/kocevski/80365/cmap_HighResolution_693187201_693446401_4FGL_J1504.4+1029_daily_bin1751.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25984       1.0000          .0000       .10000E+07
     2 'Prefactor '    .49765E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .31040E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12082E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11796E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .12783E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.368       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11773E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10166E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .82753       1.0000          .0000       .10000E+07
    11 'norm      '    5.5868       1.0000          .0000       .10000E+07
    12 'norm      '    .25940E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .13179E-02   1.0000          .0000       .10000E+07
    14 'norm      '    5.5966       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.4085       1.0000          .0000       .10000E+07
    16 'Prefactor '    .76351E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    69.526       1.0000          .0000       .10000E+07
    18 'Prefactor '    .99760E-04   1.0000          .0000       .10000E+07
    19 'norm      '    3.6516       1.0000          .0000       .10000E+07
    20 'Prefactor '    60.740       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2110       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97869       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=   7545.957     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1796 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25618        .83891        .12655E-06    .15088E-02
   2  Prefactor     .55511E-10    39.482        .18148E-05** at limit **
   3  norm           .0000        3.8672       -.41841E-06** at limit **
   4  Prefactor     .58509E-07    20.854       -.11647E-05** at limit **
   5  Prefactor     .14988E-08    9.2798       -.90865E-07** at limit **
   6  norm           .0000        7.9001       -.23906E-06** at limit **
   7  Prefactor     18.375        13.607       -.35506E-06   -.89510E-01
   8  Prefactor     .55511E-09    8.3896        .48714E-07** at limit **
   9  Prefactor     .73725E-05    316.04        .35672E-05** at limit **
  10  norm          .82729        .22026        .26984E-07   -.10993E-03
  11  norm          5.5879        2.5516        .57494E-07   -.46774E-04
  12  norm           .0000        2.1346       -.17014E-06** at limit **
  13  norm          .36637E-07    13.520        .68703E-06** at limit **
  14  norm          5.5817        4.5059       -.12031E-06   -.69043E-03
  15  Prefactor     2.6081        48.403       -.15551E-05   -.66697E-03
  16  Prefactor      .0000        2.0865       -.49669E-06** at limit **
  17  Prefactor     69.343        13.090        .23179E-06   -.10553    
  18  Prefactor     .17875E-06    16.158        .39358E-06** at limit **
  19  norm          3.6512        2.8387       -.95483E-08    .45949E-04
  20  Prefactor     60.173        14.256        .30756E-06   -.98698E-01
  21  Normalizat    1.2115        .25683       -.52900E-05   -.55733E-04
  22  Prefactor     .97859        .15363        .63884E-06   -.82824E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.256182
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 5.85088e-08
  Prefactor  = 1.4988e-09
  norm       = 0
  Prefactor  = 18.3746
  Prefactor  = 5.55112e-10
  Prefactor  = 7.37249e-06
  norm       = 0.827288
  norm       = 5.58793
  norm       = 0
  norm       = 3.66374e-08
  norm       = 5.58166
  Prefactor  = 2.60807
  Prefactor  = 0
  Prefactor  = 69.343
  Prefactor  = 1.78746e-07
  norm       = 3.65122
  Prefactor  = 60.1733
  Normalizat = 1.21148
  Prefactor  = 0.97859
 **********
 **   18 **HESSE 
 **********

 FCN=   7545.957     FROM HESSE     STATUS=OK           394 CALLS     2190 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25618        13.038        .10795E-01   -1.5698    
   2  Prefactor     .55511E-10    3.9516        .10695E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        3.6880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .58509E-07    20.952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .14988E-08    9.3114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        7.9089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.375        20.738        .23342E-03   -1.5622    
   8  Prefactor     .55511E-09    8.3981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .73725E-05    318.75        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .82729        .22077        .45358E-03   -1.5690    
  11  norm          5.5879        2.5595        .42480E-03   -1.5661    
  12  norm           .0000        2.1355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .36637E-07    13.651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5817        4.5030        .42442E-03   -1.5661    
  15  Prefactor     2.6081        95.102        .65941E-03   -1.5676    
  16  Prefactor      .0000        2.0823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     69.343        47.203        .11994E-03   -1.5541    
  18  Prefactor     .17875E-06    16.591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6512        2.8436        .52839E-03   -1.5670    
  20  Prefactor     60.173        59.050        .12832E-03   -1.5553    
  21  Normalizat    1.2115        .21636        .69804E-01   -.86249    
  22  Prefactor     .97859        .12712        .46000E-01   -.93447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18093e-06
Minuit parameter uncertainties:
  1  3.65519
  2  2.88194e-05
  3  1.77315e-06
  4  0.00221391
  5  0.000235531
  6  2.30939e-05
  7  20.7377
  8  0.000136725
  9  0.0969577
  10  0.220774
  11  2.55952
  12  8.42713e-07
  13  0.00141431
  14  4.50303
  15  31.4986
  16  1.33816e-06
  17  47.2034
  18  0.00344419
  19  2.84359
  20  59.0506
  21  0.216523
  22  0.127162
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.273e-01  2.208e-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.786e-01  1.272e-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.211e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.33
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.01e-07 +/- 5.37e-08
Energy Flux (Fixed Index): 8.16e-05 +/- 2.18e-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) = 7545.04109896
delta logL = 0.916307653314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7545.03792072
delta logL = 0.919485894226

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76097       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4931       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0043       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=   7545.038     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76150        2.6356        .40607E-03    .25613E-02
   2  alpha         2.4934        3.7154        .18534        .36880E-04
   3  Normalizat    1.1461        .18621        .71369E-01    .16331E-04
   4  Prefactor     1.0041        .11401        .44351E-01    .53652E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.7615
  alpha      = 2.49341
  Normalizat = 1.14614
  Prefactor  = 1.0041
 **********
 **   18 **HESSE 
 **********

 FCN=   7545.038     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76150        .21600        .17983E-05   -1.5691    
   2  alpha         2.4934        .28401        .79765E-02   -.26361E-02
   3  Normalizat    1.1461        .25906        .31581E-03   -.88284    
   4  Prefactor     1.0041        .15405        .20139E-03   -.92593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82284e-10
Minuit parameter uncertainties:
  1  0.216005
  2  0.284625
  3  0.259345
  4  0.154119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/80365': 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) = 7545.03791365
delta logL = 0.919492966425

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.615e-01  2.160e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.493e+00  2.846e-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:  1.004e+00  1.541e-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.146e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.19
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.49 +/- 0.28
Photon Flux (Free Index): 2.52e-07 +/- 7.04e-08
Energy Flux (Free Index): 6.98e-05 +/- 1.89e-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/80365/cmap_HighResolution_693187201_693446401_4FGL_J1504.4+1029_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-07', energy_flux2='6.98e-05', photon_flux_error='5.37e-08', dlogl='9.19e-01', energy_flux='8.16e-05', photon_flux2='2.52e-07', job_status='DONE', time_completed='2022-12-23 00:59:37.816572', photon_index_error2='0.28', photon_index2='2.49', ts='39.33', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='1.21', time_epoch_completed='1671785977.82', return_code='0', job_id='80365', GAL2='1.00', EG2='1.15', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='7.04e-08', ts2='41.19', photon_index='2.12' WHERE bin_id='1751' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:59:37 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 80365: <4FGL_J1504.4+1029_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:50:20 2022
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:50:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:50:21 2022
Terminated at Fri Dec 23 00:59:38 2022
Results reported at Fri Dec 23 00:59:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1751 226.103 10.4978 693187201 693446401 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 :                                   534.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            558 sec.

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

