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


Performing analysis on: 4FGL_J1504.4+1029_weekly_bin762
RA = 226.103, Dec = 10.4978
tmin = 699840001, tmax = 700444801
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='1482', job_status='RUN', time_executed='2023-03-14 03:31:27.542150', time_epoch_executed='1678789887.54' WHERE source_name='4FGL J1504.4+1029' and cadence='weekly' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1482

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1482/ft1_4FGL_J1504.4+1029_weekly_bin762.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1482/ft2_4FGL_J1504.4+1029_weekly_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1482/ft1_4FGL_J1504.4+1029_weekly_bin762.fits outfile=/scratch/kocevski/1482/ft1_filteredMKT_4FGL_J1504.4+1029_weekly_bin762.fits ra=226.103 dec=10.4978 rad=12.0 tmin=699840001.0 tmax=700444801.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.11
user 7.81
sys 0.28

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

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

Number of photons that the gtmktime cut: 1932

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1482/ft1_filtered_4FGL_J1504.4+1029_weekly_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/1482/ft2_4FGL_J1504.4+1029_weekly_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/1482/ltcube_699840001_700444801_4FGL_J1504.4+1029_weekly_bin762.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/1482/ft2_4FGL_J1504.4+1029_weekly_bin762.fits
.....................!
real 26.99
user 26.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1482/ft1_filtered_4FGL_J1504.4+1029_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/1482/ft2_4FGL_J1504.4+1029_weekly_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/1482/ltcube_699840001_700444801_4FGL_J1504.4+1029_weekly_bin762.fits outfile=/scratch/kocevski/1482/expmap_699840001_700444801_4FGL_J1504.4+1029_weekly_bin762.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/1482/ltcube_699840001_700444801_4FGL_J1504.4+1029_weekly_bin762.fits
.....................!
real 191.10
user 185.32
sys 5.42

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/1482/ft1_filtered_4FGL_J1504.4+1029_weekly_bin762.fits scfile=/scratch/kocevski/1482/ft2_4FGL_J1504.4+1029_weekly_bin762.fits outfile=/scratch/kocevski/1482/cmap_699840001_700444801_4FGL_J1504.4+1029_weekly_bin762.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1482/ft1_filtered_4FGL_J1504.4+1029_weekly_bin762.fits scfile=/scratch/kocevski/1482/ft2_4FGL_J1504.4+1029_weekly_bin762.fits outfile=/scratch/kocevski/1482/cmap_HighResolution_699840001_700444801_4FGL_J1504.4+1029_weekly_bin762.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.59
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5766       1.0000          .0000       .10000E+07
     2 'Prefactor '    .50682E-07   1.0000          .0000       .10000E+07
     3 'norm      '    3.3197       1.0000          .0000       .10000E+07
     4 'Prefactor '    .24423E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.4913       1.0000          .0000       .10000E+07
     6 'norm      '    .20725E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10275E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    13.910       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12666E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .82408E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .67064       1.0000          .0000       .10000E+07
    12 'norm      '    .28089E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .23066E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .59543       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33473E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.9549       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21297E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    23.206       1.0000          .0000       .10000E+07
    19 'norm      '    .15110E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .92163E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3077       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0042       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=   21214.80     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1446 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5682        2.9694       -.21706E-05   -.80805E-01
   2  Prefactor     .22204E-09    2.3940       -.65067E-06** at limit **
   3  norm          3.3176        2.1575       -.12541E-07   -.32085E-02
   4  Prefactor     .39579E-07    64.560       -.10338E-04** at limit **
   5  Prefactor     6.4782        8.3543       -.73722E-07    .30567E-02
   6  norm           .0000        2.7623       -.12330E-05** at limit **
   7  Prefactor     .38858E-09    3.7294       -.10386E-05** at limit **
   8  Prefactor     13.814        2.1997       -.84997E-06   -.86159E-01
   9  Prefactor     .34472E-07    6.6105       -.36262E-05** at limit **
  10  norm          .82428E-01    .63350E-01   -.15967E-07** at limit **
  11  norm          .66994        1.1581       -.63732E-06    .92894E-03
  12  norm           .0000        .61328        .11571E-05** at limit **
  13  norm          .18985E-07    6.8781       -.15915E-05** at limit **
  14  norm          .59562        1.1607        .24004E-07    .55476E-02
  15  Prefactor     .55406E-06    5.3860       -.11039E-06** at limit **
  16  Prefactor     2.9567        3.4874       -.30994E-06   -.20986E-02
  17  Prefactor     .54012E-07    37.239        .84659E-05** at limit **
  18  Prefactor     22.832        16.250        .46443E-05   -.33222E-01
  19  norm          .95479E-08    9.3355        .15682E-05** at limit **
  20  Prefactor     .24147E-07    25.753       -.15324E-05** at limit **
  21  Normalizat    1.3078        .15817       -.20123E-04    .35040E-03
  22  Prefactor     1.0043        .92818E-01    .17112E-04    .69730E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.5682
  Prefactor  = 2.22045e-10
  norm       = 3.31763
  Prefactor  = 3.95795e-08
  Prefactor  = 6.47825
  norm       = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 13.8139
  Prefactor  = 3.44724e-08
  norm       = 0.0824281
  norm       = 0.669941
  norm       = 0
  norm       = 1.89848e-08
  norm       = 0.595618
  Prefactor  = 5.54057e-07
  Prefactor  = 2.95673
  Prefactor  = 5.40124e-08
  Prefactor  = 22.8316
  norm       = 9.54792e-09
  Prefactor  = 2.41474e-08
  Normalizat = 1.30777
  Prefactor  = 1.00434
 **********
 **   18 **HESSE 
 **********

 FCN=   21214.80     FROM HESSE     STATUS=OK           396 CALLS     1842 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5682        10.839        .47029E-03   -1.5665    
   2  Prefactor     .22204E-09    2.3835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3176        2.1661        .55533E-03   -1.5672    
   4  Prefactor     .39579E-07    64.565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4782        8.3825        .39367E-03   -1.5657    
   6  norm           .0000        2.7611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38858E-09    3.7336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.814        11.049        .26830E-03   -1.5634    
   9  Prefactor     .34472E-07    6.7738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .82428E-01    .71676E-01    .70166E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .66994        1.1697        .63124E-03   -1.5692    
  12  norm           .0000        .61387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .18985E-07    6.9444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .59562        1.1878        .69638E-03   -1.5693    
  15  Prefactor     .55406E-06    11.089        .16273E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9567        3.4998        .59052E-03   -1.5674    
  17  Prefactor     .54012E-07    37.437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.832        16.721        .20764E-03   -1.5612    
  19  norm          .95479E-08    .90933        .50407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .24147E-07    25.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3078        .13071        .68629E-01   -.83335    
  22  Prefactor     1.0043        .75818E-01    .44368E-01   -.92585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84522e-07
Minuit parameter uncertainties:
  1  10.8387
  2  4.56384e-05
  3  2.16614
  4  0.00319757
  5  8.38248
  6  8.95977e-06
  7  7.81881e-05
  8  11.0488
  9  0.000966375
  10  0.0716755
  11  1.16966
  12  5.98007e-06
  13  0.000726252
  14  1.18778
  15  0.00495745
  16  3.49978
  17  0.00284336
  18  16.7206
  19  0.000186091
  20  0.00158044
  21  0.13074
  22  0.0758257
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.243e-02  7.168e-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:  1.004e+00  7.583e-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.308e+00  1.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 8.13e-06 +/- 7.07e-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) = 21214.793279
delta logL = 0.00181663496551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21214.7927253
delta logL = 0.00237038292471

Fit tolerance = 1e-08

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

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

 FCN=   21214.79     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      250 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84763E-01    .69377E-01    .34322E-04** at limit **
   2  alpha         2.1689        .61565        .27935E-01   -.90216E-05
   3  Normalizat    1.3064        .15831        .30377E-03    .18039E-03
   4  Prefactor     1.0047        .92095E-01    .19882E-03   -.68616E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0847634
  alpha      = 2.16893
  Normalizat = 1.30639
  Prefactor  = 1.00469
 **********
 **   18 **HESSE 
 **********

 FCN=   21214.79     FROM HESSE     STATUS=OK            27 CALLS      277 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84763E-01    .71242E-01    .68644E-05   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1689        .63228        .11174E-02   -.13282    
   3  Normalizat    1.3064        .15854        .12151E-04   -.83376    
   4  Prefactor     1.0047        .92197E-01    .79529E-05   -.92573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09286e-10
Minuit parameter uncertainties:
  1  0.0712419
  2  0.63935
  3  0.158599
  4  0.0922119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1482': 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) = 21214.7927242
delta logL = 0.00237147093867

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.476e-02  7.124e-02  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.169e+00  6.393e-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.005e+00  9.221e-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.306e+00  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.15
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.17 +/- 0.64
Photon Flux (Free Index): 2.13e-08 +/- 2.42e-08
Energy Flux (Free Index): 8.17e-06 +/- 6.21e-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/1482/cmap_HighResolution_699840001_700444801_4FGL_J1504.4+1029_weekly_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='8.17e-06', photon_flux_error='1.74e-08', dlogl='2.37e-03', energy_flux='8.13e-06', photon_flux2='2.13e-08', job_status='DONE', time_completed='2023-03-14 03:46:43.384992', photon_index_error2='0.64', photon_index2='2.17', ts='4.15', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='6.21e-06', EG='1.31', time_epoch_completed='1678790803.39', return_code='0', job_id='1482', GAL2='1.00', EG2='1.31', return_code2='0', energy_flux_error='7.07e-06', photon_flux_error2='2.42e-08', ts2='4.15', photon_index='2.12' WHERE bin_id='762' AND source_name='4FGL J1504.4+1029' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 14 03:46:43 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 1482: <4FGL_J1504.4+1029_weekly_bin762> in cluster <slac> Done

Job <4FGL_J1504.4+1029_weekly_bin762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 03:30:25 2023
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 03:30:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 03:30:27 2023
Terminated at Tue Mar 14 03:46:43 2023
Results reported at Tue Mar 14 03:46:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_weekly_bin762 226.103 10.4978 699840001 700444801 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 :                                   916.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

