/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 8 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1193
RA = 226.103, Dec = 10.4978
tmin = 548553601, tmax = 548812801
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='5861', job_status='RUN', time_executed='2021-09-10 21:41:27.259392', time_epoch_executed='1631335287.26' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5861

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5861/ft1_4FGL_J1504.4+1029_daily_bin1193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5861/ft2_4FGL_J1504.4+1029_daily_bin1193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5861/ft1_4FGL_J1504.4+1029_daily_bin1193.fits outfile=/scratch/kocevski/5861/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1193.fits ra=226.103 dec=10.4978 rad=12.0 tmin=548553601.0 tmax=548812801.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.46
user 3.20
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/5861/ft2_4FGL_J1504.4+1029_daily_bin1193.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/5861/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1193.fits evtable="EVENTS" outfile="/scratch/kocevski/5861/ft1_filtered_4FGL_J1504.4+1029_daily_bin1193.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5861/ft1_filtered_4FGL_J1504.4+1029_daily_bin1193.fits" evtable="EVENTS" scfile=/scratch/kocevski/5861/ft2_4FGL_J1504.4+1029_daily_bin1193.fits sctable="SC_DATA" outfile=/scratch/kocevski/5861/ltcube_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.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/5861/ft2_4FGL_J1504.4+1029_daily_bin1193.fits
.....................!
real 13.23
user 12.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5861/ft1_filtered_4FGL_J1504.4+1029_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/5861/ft2_4FGL_J1504.4+1029_daily_bin1193.fits sctable="SC_DATA" expcube=/scratch/kocevski/5861/ltcube_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.fits outfile=/scratch/kocevski/5861/expmap_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.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/5861/ltcube_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.fits
.....................!
real 190.37
user 185.34
sys 4.59

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/5861/ft1_filtered_4FGL_J1504.4+1029_daily_bin1193.fits scfile=/scratch/kocevski/5861/ft2_4FGL_J1504.4+1029_daily_bin1193.fits outfile=/scratch/kocevski/5861/cmap_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5861/ft1_filtered_4FGL_J1504.4+1029_daily_bin1193.fits scfile=/scratch/kocevski/5861/ft2_4FGL_J1504.4+1029_daily_bin1193.fits outfile=/scratch/kocevski/5861/cmap_HighResolution_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.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.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/5861/ft1_filtered_4FGL_J1504.4+1029_daily_bin1193.fits', '/scratch/kocevski/5861/ft2_4FGL_J1504.4+1029_daily_bin1193.fits', expMap='/scratch/kocevski/5861/expmap_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.fits', expCube='/scratch/kocevski/5861/ltcube_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/5861/Model_4FGL_J1504.4+1029_daily_bin1193.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  1.000e-04  1.000e+04 ( 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  0.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/5861/ft1_filtered_4FGL_J1504.4+1029_daily_bin1193.fits
Spacecraft file(s): /scratch/kocevski/5861/ft2_4FGL_J1504.4+1029_daily_bin1193.fits
Exposure map: /scratch/kocevski/5861/expmap_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.fits
Exposure cube: /scratch/kocevski/5861/ltcube_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/5861/Model_4FGL_J1504.4+1029_daily_bin1193.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) = 9167.41824516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    41.438       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.911       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0356       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9982       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3397       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0837       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2772       1.0000         .10000E-03   10000.    
    16 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.442       1.0000         .10000E-03   10000.    
    18 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.390       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.925       1.0000         .10000E-03   10000.    
    24 'Prefactor '    48.656       1.0000         .10000E-03   10000.    
    25 'norm      '    .53311       1.0000         .10000E-03   10000.    
    26 'Prefactor '    141.19       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .79917       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2178       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.

 FCN=   9167.398     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3485 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.682        .55899E-06** at limit **
   2  norm          41.437        28.731        .12410E-06   -.20344E-04
   3  Prefactor     10.910        7.2828       -.72567E-06   -.89767E-04
   4  Prefactor     2.0364        4.7839        .57867E-05   -.19197E-03
   5  norm          5.9984        3.0096       -.15491E-06   -.18629E-03
   6  Prefactor     .10000E-03    71.148        .68687E-06** at limit **
   7  Prefactor     .10000E-03    9.5634        .11656E-06** at limit **
   8  norm          .10000E-03    6.0636        .20941E-06** at limit **
   9  Prefactor     .10000E-03    12.145        .55265E-06** at limit **
  10  Prefactor     2.3389        15.729        .71723E-06    .26182E-04
  11  Prefactor     8.7932        13.388        .28442E-06    .18545E-04
  12  Prefactor     .10000E-03    13.286        .26132E-06** at limit **
  13  Prefactor     .10000E-03    24.827        .30422E-06** at limit **
  14  norm          1.0837        .23183        .99135E-08   -.13279E-02
  15  norm          7.2774        3.3194        .48673E-07   -.26430E-03
  16  norm          .10000E-03    9.9564        .49526E-06** at limit **
  17  norm          24.443        24.570        .26380E-08    .40126E-05
  18  norm          .10000E-03    3.4795        .20232E-06** at limit **
  19  Prefactor     .10000E-03    37.608        .62727E-06** at limit **
  20  Prefactor     .10000E-03    28.018        .30449E-06** at limit **
  21  Prefactor     18.389        31.247        .51027E-06   -.36316E-04
  22  Prefactor     .10000E-03    9.0983       -.55338E-06** at limit **
  23  Prefactor     32.907        38.858        .11325E-05    .32265E-05
  24  Prefactor     48.640        52.997        .31816E-06   -.49858E-04
  25  norm          .53474        2.4118       -.26405E-06   -.55734E-03
  26  Prefactor     141.13        117.99        .16150E-05   -.21696E-04
  27  Normalizat    .79884        .22390       -.41347E-05   -.13613E-03
  28  Prefactor     1.2180        .13006        .12812E-05    .10052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 41.4365
  Prefactor  = 10.9103
  Prefactor  = 2.03637
  norm       = 5.99837
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.33893
  Prefactor  = 8.7932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08367
  norm       = 7.27738
  norm       = 0.0001
  norm       = 24.4432
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.3885
  Prefactor  = 0.000100001
  Prefactor  = 32.9066
  Prefactor  = 48.6402
  norm       = 0.534735
  Prefactor  = 141.135
  Normalizat = 0.798837
  Prefactor  = 1.21796
 **********
 **   18 **HESSE 
 **********

 FCN=   9167.398     FROM HESSE     STATUS=OK           517 CALLS     4002 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          41.437        28.731        .62272E-04   -1.4420    
   3  Prefactor     10.910        7.2902        .60645E-03   -1.5047    
   4  Prefactor     2.0364        4.8089        .14495E-02   -1.5423    
   5  norm          5.9984        3.0110        .11305E-03   -1.5218    
   6  Prefactor     .10000E-03    71.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.5743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.0827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3389        15.700        .26805E-03   -1.5402    
  11  Prefactor     8.7932        13.378        .13519E-03   -1.5115    
  12  Prefactor     .10000E-03    13.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0837        .23157        .20147E-04   -1.5500    
  15  norm          7.2774        3.3164        .11174E-03   -1.5168    
  16  norm          .10000E-03    10.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.443        24.573        .81024E-04   -1.4719    
  18  norm          .10000E-03    3.5294        .17432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.389        31.274        .93398E-04   -1.4850    
  22  Prefactor     .10000E-03    9.2898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.907        38.846        .69833E-04   -1.4560    
  24  Prefactor     48.640        53.063        .57488E-04   -1.4312    
  25  norm          .53474        2.4605        .28808E-03   -1.5562    
  26  Prefactor     141.13        118.01        .16952E-03   -1.3326    
  27  Normalizat    .79884        .25298        .38828E-03   -1.0011    
  28  Prefactor     1.2180        .14899        .19621E-03   -.85780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95021e-10
Minuit parameter uncertainties:
  1  0.000218526
  2  28.7404
  3  7.29075
  4  4.80978
  5  3.01103
  6  0.000458022
  7  4.66109e-05
  8  3.88818e-05
  9  9.32751e-05
  10  12.1239
  11  13.3827
  12  0.000117568
  13  0.000179011
  14  0.231573
  15  3.31652
  16  0.000134379
  17  24.5836
  18  2.85628e-05
  19  0.000376202
  20  2.23796e-06
  21  31.3021
  22  0.000146184
  23  38.8762
  24  53.1141
  25  2.29401
  26  118.212
  27  0.253349
  28  0.149043
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.084e+00  2.316e-01  1.000e-04  1.000e+04 ( 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  0.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.218e+00  1.490e-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:  7.988e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 59.07
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.64e-07 +/- 5.64e-08
Energy Flux (Fixed Index): 1.07e-04 +/- 2.28e-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) = 9166.02391192
delta logL = 1.37405964311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9166.02380493
delta logL = 1.3741666307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0280       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5135       1.0000          .0000       5.0000    
     3 'Normalizat'    .69786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2569       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=   9166.024     FROM MIGRAD    STATUS=CONVERGED     52 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          1.0281        2.7558        .40885E-02    .34916E-03
   2  alpha         2.5136        3.6429        .17476        .47795E-04
   3  Normalizat    .69809        .27334        .92987E-01    .47086E-04
   4  Prefactor     1.2567        .15210        .33407E-01    .14908E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02807
  alpha      = 2.51356
  Normalizat = 0.698089
  Prefactor  = 1.25675
 **********
 **   18 **HESSE 
 **********

 FCN=   9166.024     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0281        .22603        .18103E-04   -1.5505    
   2  alpha         2.5136        .24314        .75227E-02    .54248E-02
   3  Normalizat    .69809        .24774        .41198E-03   -1.0397    
   4  Prefactor     1.2567        .14903        .19340E-03   -.84602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53684e-13
Minuit parameter uncertainties:
  1  0.226027
  2  0.243528
  3  0.248135
  4  0.149081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5861': 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) = 9166.02380412
delta logL = 1.37416744557

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.028e+00  2.260e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.514e+00  2.435e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00  0.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.257e+00  1.491e-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:  6.981e-01  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 61.89
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.51 +/- 0.24
Photon Flux (Free Index): 3.46e-07 +/- 8.15e-08
Energy Flux (Free Index): 9.44e-05 +/- 1.96e-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/5861/cmap_HighResolution_548553601_548812801_4FGL_J1504.4+1029_daily_bin1193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.64e-07', energy_flux2='9.44e-05', photon_flux_error='5.64e-08', dlogl='1.37e+00', energy_flux='1.07e-04', photon_flux2='3.46e-07', job_status='DONE', time_completed='2021-09-10 21:54:33.024673', photon_index_error2='0.24', photon_index2='2.51', ts='59.07', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='0.80', time_epoch_completed='1631336073.02', return_code='0', job_id='5861', GAL2='1.26', EG2='0.70', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='8.15e-08', ts2='61.89', photon_index='2.12' WHERE bin_id='1193' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:54:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 5861: <4FGL_J1504.4+1029_daily_bin1193> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1193> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:41:08 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:41:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 21:41:10 2021
Terminated at Fri Sep 10 21:54:33 2021
Results reported at Fri Sep 10 21:54:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1193 226.103 10.4978 548553601 548812801 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 :                                   746.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

