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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1716
RA = 226.103, Dec = 10.4978
tmin = 684115201, tmax = 684374401
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='156702', job_status='RUN', time_executed='2022-09-16 18:52:12.173115', time_epoch_executed='1663379532.17' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156702

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156702/ft1_4FGL_J1504.4+1029_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156702/ft2_4FGL_J1504.4+1029_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156702/ft1_4FGL_J1504.4+1029_daily_bin1716.fits outfile=/scratch/kocevski/156702/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1716.fits ra=226.103 dec=10.4978 rad=12.0 tmin=684115201.0 tmax=684374401.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.14
user 3.88
sys 0.22

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

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

Number of photons that the gtmktime cut: 681

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156702/ft1_filtered_4FGL_J1504.4+1029_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/156702/ft2_4FGL_J1504.4+1029_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/156702/ltcube_684115201_684374401_4FGL_J1504.4+1029_daily_bin1716.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/156702/ft2_4FGL_J1504.4+1029_daily_bin1716.fits
.....................!
real 14.34
user 13.89
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156702/ft1_filtered_4FGL_J1504.4+1029_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/156702/ft2_4FGL_J1504.4+1029_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/156702/ltcube_684115201_684374401_4FGL_J1504.4+1029_daily_bin1716.fits outfile=/scratch/kocevski/156702/expmap_684115201_684374401_4FGL_J1504.4+1029_daily_bin1716.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/156702/ltcube_684115201_684374401_4FGL_J1504.4+1029_daily_bin1716.fits
.....................!
real 193.28
user 186.88
sys 5.75

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/156702/ft1_filtered_4FGL_J1504.4+1029_daily_bin1716.fits scfile=/scratch/kocevski/156702/ft2_4FGL_J1504.4+1029_daily_bin1716.fits outfile=/scratch/kocevski/156702/cmap_684115201_684374401_4FGL_J1504.4+1029_daily_bin1716.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156702/ft1_filtered_4FGL_J1504.4+1029_daily_bin1716.fits scfile=/scratch/kocevski/156702/ft2_4FGL_J1504.4+1029_daily_bin1716.fits outfile=/scratch/kocevski/156702/cmap_HighResolution_684115201_684374401_4FGL_J1504.4+1029_daily_bin1716.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.56
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36999E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .75770       1.0000          .0000       .10000E+07
     3 'norm      '    1.1893       1.0000          .0000       .10000E+07
     4 'Prefactor '    .25938E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .53584E-03   1.0000          .0000       .10000E+07
     6 'norm      '    8.8187       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.3961       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.8196       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11938E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .76895       1.0000          .0000       .10000E+07
    11 'norm      '    .28351E-01   1.0000          .0000       .10000E+07
    12 'norm      '    7.3415       1.0000          .0000       .10000E+07
    13 'norm      '    .18086E-02   1.0000          .0000       .10000E+07
    14 'norm      '    5.1973       1.0000          .0000       .10000E+07
    15 'Prefactor '    .25675E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.8974       1.0000          .0000       .10000E+07
    17 'Prefactor '    .76856E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10741E-03   1.0000          .0000       .10000E+07
    19 'norm      '    6.4211       1.0000          .0000       .10000E+07
    20 'Prefactor '    135.27       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.5930       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87842       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=   7191.655     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     1443 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26534E-07    21.544        .28250E-06** at limit **
   2  Prefactor     .75368        3.8284       -.10643E-06   -.33108E-02
   3  norm          1.1960        3.0835       -.14772E-06    .16226E-03
   4  Prefactor      .0000        24.167        .30095E-06** at limit **
   5  Prefactor     .18663E-06    6.9220       -.11918E-06** at limit **
   6  norm          9.0831        10.844        .37174E-07    .49409E-04
   7  Prefactor     4.4773        7.6526        .13816E-06   -.89812E-03
   8  Prefactor     8.0009        12.728       -.13707E-06   -.63616E-02
   9  Prefactor     .33584E-07    14.813        .27369E-06** at limit **
  10  norm          .76920        .21815        .13823E-07   -.17370E-02
  11  norm          .61442E-01    18.325       -.78490E-06** at limit **
  12  norm          7.3049        7.4032        .66932E-07   -.96115E-04
  13  norm          .63360E-06    6.1188       -.13399E-06** at limit **
  14  norm          5.1933        4.0296       -.15733E-07   -.22271E-04
  15  Prefactor     .66613E-09    32.085       -.14599E-06** at limit **
  16  Prefactor     5.0025        5.7886        .61885E-08   -.10511E-03
  17  Prefactor     .30531E-08    125.02       -.94706E-06** at limit **
  18  Prefactor     .10963E-06    6.3720       -.11453E-06** at limit **
  19  norm          6.4239        3.1918       -.35520E-07    .21965E-03
  20  Prefactor     137.33        84.292        .90913E-06   -.36366E-03
  21  Normalizat    1.5923        .27481        .44234E-07    .81692E-06
  22  Prefactor     .87796        .16295       -.32047E-06    .87956E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 2.65343e-08
  Prefactor  = 0.753684
  norm       = 1.19595
  Prefactor  = 0
  Prefactor  = 1.86628e-07
  norm       = 9.08307
  Prefactor  = 4.47734
  Prefactor  = 8.00087
  Prefactor  = 3.35842e-08
  norm       = 0.7692
  norm       = 0.0614418
  norm       = 7.30492
  norm       = 6.33604e-07
  norm       = 5.19333
  Prefactor  = 6.66134e-10
  Prefactor  = 5.00246
  Prefactor  = 3.05311e-09
  Prefactor  = 1.09635e-07
  norm       = 6.42391
  Prefactor  = 137.331
  Normalizat = 1.59228
  Prefactor  = 0.877963
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.655     FROM HESSE     STATUS=OK           398 CALLS     1841 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26534E-07    21.987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .75368        20.220        .56142E-03   -1.5691    
   3  norm          1.1960        3.1203        .10446E-02   -1.5686    
   4  Prefactor      .0000        24.226        .16673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .18663E-06    18.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.0831        10.856        .33729E-03   -1.5648    
   7  Prefactor     4.4773        17.053        .48010E-03   -1.5666    
   8  Prefactor     8.0009        16.567        .35835E-03   -1.5651    
   9  Prefactor     .33584E-07    15.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .76920        .21864        .45598E-03   -1.5690    
  11  norm          .61442E-01    1.0211        .56540E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.3049        7.4008        .36993E-03   -1.5654    
  13  norm          .63360E-06    16.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1933        4.0010        .44071E-03   -1.5662    
  15  Prefactor     .66613E-09    31.927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0025        5.7989        .45427E-03   -1.5663    
  17  Prefactor     .30531E-08    119.88        .14598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10963E-06    18.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.4239        3.1957        .39585E-03   -1.5657    
  20  Prefactor     137.33        84.338        .85986E-04   -1.5474    
  21  Normalizat    1.5923        .23111        .65662E-01   -.75217    
  22  Prefactor     .87796        .13503        .44729E-01   -.96915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55921e-07
Minuit parameter uncertainties:
  1  0.00152766
  2  7.80765
  3  3.12029
  4  2.73015e-06
  5  0.00368128
  6  10.8558
  7  17.0528
  8  16.5667
  9  0.00144051
  10  0.218638
  11  0.500955
  12  7.40077
  13  0.00656213
  14  4.00101
  15  0.000290204
  16  5.79889
  17  0.00121241
  18  0.00283425
  19  3.19575
  20  84.3392
  21  0.231268
  22  0.135077
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.692e-01  2.186e-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.780e-01  1.351e-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.592e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.33
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.87e-07 +/- 5.32e-08
Energy Flux (Fixed Index): 7.58e-05 +/- 2.16e-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) = 7191.13268585
delta logL = 0.522604438522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7191.13258054
delta logL = 0.522709746832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72181       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4404       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89936       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=   7191.133     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      231 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72176        2.7187        .41943E-03   -.46659E-02
   2  alpha         2.4403        3.7202        .21010       -.41473E-04
   3  Normalizat    1.5386        .21872        .66509E-01   -.49007E-04
   4  Prefactor     .89918        .11765        .44997E-01    .32895E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.721764
  alpha      = 2.44032
  Normalizat = 1.53859
  Prefactor  = 0.899182
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.133     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72176        .21569        .18586E-05   -1.5691    
   2  alpha         2.4403        .32122        .89371E-02   -.23876E-01
   3  Normalizat    1.5386        .27775        .29420E-03   -.76700    
   4  Prefactor     .89918        .16272        .22027E-03   -.96170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6036e-11
Minuit parameter uncertainties:
  1  0.215687
  2  0.322113
  3  0.278028
  4  0.162805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156702': 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) = 7191.13257935
delta logL = 0.522710936549

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.218e-01  2.157e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.440e+00  3.221e-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.992e-01  1.628e-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.539e+00  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.40
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.44 +/- 0.32
Photon Flux (Free Index): 2.27e-07 +/- 7.11e-08
Energy Flux (Free Index): 6.59e-05 +/- 1.94e-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/156702/cmap_HighResolution_684115201_684374401_4FGL_J1504.4+1029_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.87e-07', energy_flux2='6.59e-05', photon_flux_error='5.32e-08', dlogl='5.23e-01', energy_flux='7.58e-05', photon_flux2='2.27e-07', job_status='DONE', time_completed='2022-09-16 19:00:49.023377', photon_index_error2='0.32', photon_index2='2.44', ts='31.33', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='1.59', time_epoch_completed='1663380049.02', return_code='0', job_id='156702', GAL2='0.90', EG2='1.54', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='7.11e-08', ts2='32.40', photon_index='2.12' WHERE bin_id='1716' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:00:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 156702: <4FGL_J1504.4+1029_daily_bin1716> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1716> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 18:50:21 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:50:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 18:50:39 2022
Terminated at Fri Sep 16 19:00:49 2022
Results reported at Fri Sep 16 19:00:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1716 226.103 10.4978 684115201 684374401 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 :                                   518.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            628 sec.

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

