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


Performing analysis on: 4FGL_J1504.4+1029_weekly_bin759
RA = 226.103, Dec = 10.4978
tmin = 698025601, tmax = 698630401
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='593567', job_status='RUN', time_executed='2023-02-21 03:47:27.278896', time_epoch_executed='1676980047.28' WHERE source_name='4FGL J1504.4+1029' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593567

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593567/ft1_4FGL_J1504.4+1029_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593567/ft2_4FGL_J1504.4+1029_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593567/ft1_4FGL_J1504.4+1029_weekly_bin759.fits outfile=/scratch/kocevski/593567/ft1_filteredMKT_4FGL_J1504.4+1029_weekly_bin759.fits ra=226.103 dec=10.4978 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.50
user 8.17
sys 0.29

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

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

Number of photons that the gtmktime cut: 1662

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593567/ft1_filtered_4FGL_J1504.4+1029_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/593567/ft2_4FGL_J1504.4+1029_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/593567/ltcube_698025601_698630401_4FGL_J1504.4+1029_weekly_bin759.fits outfile=/scratch/kocevski/593567/expmap_698025601_698630401_4FGL_J1504.4+1029_weekly_bin759.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/593567/ltcube_698025601_698630401_4FGL_J1504.4+1029_weekly_bin759.fits
.....................!
real 191.40
user 186.21
sys 4.80

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/593567/ft1_filtered_4FGL_J1504.4+1029_weekly_bin759.fits scfile=/scratch/kocevski/593567/ft2_4FGL_J1504.4+1029_weekly_bin759.fits outfile=/scratch/kocevski/593567/cmap_698025601_698630401_4FGL_J1504.4+1029_weekly_bin759.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.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593567/ft1_filtered_4FGL_J1504.4+1029_weekly_bin759.fits scfile=/scratch/kocevski/593567/ft2_4FGL_J1504.4+1029_weekly_bin759.fits outfile=/scratch/kocevski/593567/cmap_HighResolution_698025601_698630401_4FGL_J1504.4+1029_weekly_bin759.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.60
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6633       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16795E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .22549E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .32155E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .55384E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .24409E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .63439E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16949E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .43673       1.0000          .0000       .10000E+07
    10 'norm      '    .27333       1.0000          .0000       .10000E+07
    11 'norm      '    2.1242       1.0000          .0000       .10000E+07
    12 'norm      '    .30859E-06   1.0000          .0000       .10000E+07
    13 'norm      '    5.3498       1.0000          .0000       .10000E+07
    14 'norm      '    .80726       1.0000          .0000       .10000E+07
    15 'Prefactor '    12.069       1.0000          .0000       .10000E+07
    16 'Prefactor '    .65645E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    30.009       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.9967       1.0000          .0000       .10000E+07
    19 'norm      '    3.5000       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22518E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3863       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87176       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=   17874.61     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1733 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6615        2.2996       -.10188E-06   -.49991E-01
   2  Prefactor     .94036E-07    5.1979       -.10186E-05** at limit **
   3  norm           .0000        .46857        .14304E-06** at limit **
   4  Prefactor      .0000        21.778        .57159E-06** at limit **
   5  Prefactor     .15754E-06    10.782       -.12796E-05** at limit **
   6  norm          .43887E-06    9.1915       -.27043E-06** at limit **
   7  Prefactor      .0000        3.5987        .24513E-06** at limit **
   8  Prefactor      .0000        4.0209       -.48809E-06** at limit **
   9  Prefactor     .48877        1.2707       -.16678E-06    .25474E-02
  10  norm          .27334        .96674E-01    .48164E-08   -.49723E-02
  11  norm          2.1247        1.2708        .71682E-07    .25396E-02
  12  norm           .0000        1.3412        .13168E-06** at limit **
  13  norm          5.3441        1.0278        .12415E-07    .25834E-02
  14  norm          .80713        1.0615       -.51602E-07    .10991E-02
  15  Prefactor     11.900        12.402       -.47680E-06    .22913E-01
  16  Prefactor     .12880        15.217       -.23776E-05** at limit **
  17  Prefactor     29.933        9.6437       -.23376E-06    .39774E-01
  18  Prefactor     4.9890        8.0494       -.15780E-06   -.49734E-02
  19  norm          3.5010        1.5959       -.21291E-07    .15493E-02
  20  Prefactor     .16193E-06    13.874       -.62546E-06** at limit **
  21  Normalizat    1.3864        .15882        .32730E-05    .11633E-03
  22  Prefactor     .87158        .93814E-01   -.21882E-05    .18791E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.66154
  Prefactor  = 9.40359e-08
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.57541e-07
  norm       = 4.38871e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.488774
  norm       = 0.273344
  norm       = 2.12468
  norm       = 0
  norm       = 5.34411
  norm       = 0.807134
  Prefactor  = 11.9001
  Prefactor  = 0.128802
  Prefactor  = 29.9328
  Prefactor  = 4.98899
  norm       = 3.501
  Prefactor  = 1.61926e-07
  Normalizat = 1.38638
  Prefactor  = 0.871583
 **********
 **   18 **HESSE 
 **********

 FCN=   17874.61     FROM HESSE     STATUS=OK           402 CALLS     2135 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6615        10.108        .42187E-03   -1.5660    
   2  Prefactor     .94036E-07    22.220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .46905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        21.661        .16339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15754E-06    13.379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .43887E-06    14.875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.6005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        4.0183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .48877        7.3258        .11333E-01   -1.5694    
  10  norm          .27334        .97738E-01    .53656E-03   -1.5698    
  11  norm          2.1247        1.2805        .70727E-03   -1.5679    
  12  norm           .0000        1.3441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3441        13.676        .43427E-03   -1.5662    
  14  norm          .80713        1.0692        .52395E-03   -1.5690    
  15  Prefactor     11.900        22.217        .28810E-03   -1.5639    
  16  Prefactor     .12880        .83745        .85453E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.933        23.150        .18258E-03   -1.5599    
  18  Prefactor     4.9890        8.0767        .44964E-03   -1.5663    
  19  norm          3.5010        1.6012        .54018E-03   -1.5671    
  20  Prefactor     .16193E-06    16.696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3864        .13319        .63410E-01   -.81024    
  22  Prefactor     .87158        .77300E-01    .44644E-01   -.97141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50817e-07
Minuit parameter uncertainties:
  1  10.1079
  2  0.0028907
  3  1.65192e-06
  4  1.73778e-05
  5  0.00290389
  6  0.00510988
  7  1.55786e-05
  8  1.18547e-05
  9  3.78454
  10  0.0977379
  11  1.28055
  12  5.50739e-06
  13  13.6764
  14  1.06923
  15  22.2167
  16  0.656859
  17  23.1497
  18  8.07669
  19  1.6012
  20  0.00328853
  21  0.133219
  22  0.0773093
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.733e-01  9.774e-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.716e-01  7.731e-02  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.386e+00  1.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.51
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 6.65e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 9.64e-06

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) = 17874.5064896
delta logL = 0.0997288322797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17874.5059881
delta logL = 0.100230366752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27831       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2755       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87593       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=   17874.51     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      244 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27831        .94978E-01    .23234E-05   -.52845E-03
   2  alpha         2.2755        .33641        .14619E-01    .42967E-04
   3  Normalizat    1.3736        .16040        .28152E-03   -.74144E-04
   4  Prefactor     .87593        .93555E-01    .20225E-03   -.15807E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.278306
  alpha      = 2.27546
  Normalizat = 1.37364
  Prefactor  = 0.875929
 **********
 **   18 **HESSE 
 **********

 FCN=   17874.51     FROM HESSE     STATUS=OK            27 CALLS      271 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27831        .94892E-01    .92937E-07   -1.5697    
   2  alpha         2.2755        .33601        .29238E-02   -.89936E-01
   3  Normalizat    1.3736        .16061        .11261E-04   -.81394    
   4  Prefactor     .87593        .93660E-01    .80899E-05   -.96987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53961e-12
Minuit parameter uncertainties:
  1  0.0948915
  2  0.337034
  3  0.160667
  4  0.0936767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593567': 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) = 17874.5059881
delta logL = 0.100230366752

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.783e-01  9.489e-02  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.275e+00  3.370e-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.759e-01  9.368e-02  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.374e+00  1.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.70
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.28 +/- 0.34
Photon Flux (Free Index): 7.61e-08 +/- 3.29e-08
Energy Flux (Free Index): 2.58e-05 +/- 9.11e-06

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/593567/cmap_HighResolution_698025601_698630401_4FGL_J1504.4+1029_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.65e-08', energy_flux2='2.58e-05', photon_flux_error='2.38e-08', dlogl='1.00e-01', energy_flux='2.69e-05', photon_flux2='7.61e-08', job_status='DONE', time_completed='2023-02-21 04:02:07.600018', photon_index_error2='0.34', photon_index2='2.28', ts='19.51', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='9.11e-06', EG='1.39', time_epoch_completed='1676980927.6', return_code='0', job_id='593567', GAL2='0.88', EG2='1.37', return_code2='0', energy_flux_error='9.64e-06', photon_flux_error2='3.29e-08', ts2='19.70', photon_index='2.12' WHERE bin_id='759' AND source_name='4FGL J1504.4+1029' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 04:02:07 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 593567: <4FGL_J1504.4+1029_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1504.4+1029_weekly_bin759> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Feb 21 03:45:29 2023
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:45:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:45:31 2023
Terminated at Tue Feb 21 04:02:08 2023
Results reported at Tue Feb 21 04:02:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_weekly_bin759 226.103 10.4978 698025601 698630401 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 :                                   881.00 sec.
    Max Memory :                                 1145 MB
    Average Memory :                             295.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            999 sec.

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

