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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1049
RA = 226.103, Dec = 10.4978
tmin = 511228801, tmax = 511488001
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='5614', job_status='RUN', time_executed='2021-09-10 21:42:51.022971', time_epoch_executed='1631335371.02' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5614/ft1_4FGL_J1504.4+1029_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5614/ft2_4FGL_J1504.4+1029_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5614/ft1_4FGL_J1504.4+1029_daily_bin1049.fits outfile=/scratch/kocevski/5614/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1049.fits ra=226.103 dec=10.4978 rad=12.0 tmin=511228801.0 tmax=511488001.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.49
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5614/ft1_filtered_4FGL_J1504.4+1029_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/5614/ft2_4FGL_J1504.4+1029_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/5614/ltcube_511228801_511488001_4FGL_J1504.4+1029_daily_bin1049.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/5614/ft2_4FGL_J1504.4+1029_daily_bin1049.fits
.....................!
real 12.43
user 11.92
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5614/ft1_filtered_4FGL_J1504.4+1029_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/5614/ft2_4FGL_J1504.4+1029_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/5614/ltcube_511228801_511488001_4FGL_J1504.4+1029_daily_bin1049.fits outfile=/scratch/kocevski/5614/expmap_511228801_511488001_4FGL_J1504.4+1029_daily_bin1049.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/5614/ltcube_511228801_511488001_4FGL_J1504.4+1029_daily_bin1049.fits
.....................!
real 191.43
user 186.01
sys 4.99

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/5614/ft1_filtered_4FGL_J1504.4+1029_daily_bin1049.fits scfile=/scratch/kocevski/5614/ft2_4FGL_J1504.4+1029_daily_bin1049.fits outfile=/scratch/kocevski/5614/cmap_511228801_511488001_4FGL_J1504.4+1029_daily_bin1049.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5614/ft1_filtered_4FGL_J1504.4+1029_daily_bin1049.fits scfile=/scratch/kocevski/5614/ft2_4FGL_J1504.4+1029_daily_bin1049.fits outfile=/scratch/kocevski/5614/cmap_HighResolution_511228801_511488001_4FGL_J1504.4+1029_daily_bin1049.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1117       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4291       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.144       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0759       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6967       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9908       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5955       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7284       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.491       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8161       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8224       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .65060       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2098       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98544       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=   7356.607     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3436 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.681       -.13939E-04** at limit **
   2  norm          .10000E-03    8.8855        .79150E-07** at limit **
   3  Prefactor     5.1121        7.4134       -.25955E-06   -.20547E-03
   4  Prefactor     .10000E-03    4.9418        .53369E-08** at limit **
   5  norm          .10000E-03    2.1068       -.10987E-07** at limit **
   6  Prefactor     4.4283        76.910       -.25195E-05   -.13672E-04
   7  Prefactor     .10000E-03    32.013        .10519E-04** at limit **
   8  norm          .10000E-03    28.483        .55385E-05** at limit **
   9  Prefactor     20.146        24.072        .19718E-05   -.37059E-04
  10  Prefactor     .10000E-03    23.852       -.67520E-05** at limit **
  11  Prefactor     .10000E-03    12.591       -.20876E-05** at limit **
  12  Prefactor     .10000E-03    13.745        .52559E-05** at limit **
  13  Prefactor     7.0788        31.706        .50085E-05   -.18099E-04
  14  norm          1.6966        .28624       -.59410E-08    .23554E-03
  15  norm          4.9909        2.4804        .77904E-07   -.10464E-03
  16  norm          3.5956        4.6679        .14280E-05   -.18310E-04
  17  norm          .10000E-03    17.210       -.17256E-05** at limit **
  18  norm          8.7284        4.0683       -.50448E-06    .58496E-04
  19  Prefactor     17.493        48.608        .44378E-05   -.88329E-05
  20  Prefactor     .10000E-03    25.432       -.37228E-05** at limit **
  21  Prefactor     5.8178        30.257        .16509E-05   -.22290E-04
  22  Prefactor     7.8229        6.8483       -.58148E-09   -.13219E-03
  23  Prefactor     .10000E-03    13.189        .26468E-05** at limit **
  24  Prefactor     .10000E-03    12.525       -.38215E-05** at limit **
  25  norm          .65089        1.7083       -.55592E-06   -.18181E-02
  26  Prefactor     .10000E-03    38.096        .67537E-05** at limit **
  27  Normalizat    1.2099        .23243       -.10818E-05    .40521E-04
  28  Prefactor     .98539        .13218        .11566E-06   -.43173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.11212
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.42831
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.07876
  norm       = 1.69665
  norm       = 4.99086
  norm       = 3.59561
  norm       = 0.0001
  norm       = 8.72841
  Prefactor  = 17.4935
  Prefactor  = 0.0001
  Prefactor  = 5.81778
  Prefactor  = 7.82285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.650888
  Prefactor  = 0.0001
  Normalizat = 1.20985
  Prefactor  = 0.985389
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.607     FROM HESSE     STATUS=OK           521 CALLS     3957 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.8876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1121        7.4260        .17783E-03   -1.5256    
   4  Prefactor     .10000E-03    5.0138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.1375        .12153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4283        77.088        .19135E-03   -1.5287    
   7  Prefactor     .10000E-03    31.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.146        24.110        .89241E-04   -1.4810    
  10  Prefactor     .10000E-03    24.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0788        31.507        .15081E-03   -1.5176    
  14  norm          1.6966        .28716        .17990E-04   -1.5447    
  15  norm          4.9909        2.4792        .91221E-04   -1.5261    
  16  norm          3.5956        4.6559        .20553E-03   -1.5329    
  17  norm          .10000E-03    17.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7284        4.0649        .11456E-03   -1.5117    
  19  Prefactor     17.493        48.775        .95767E-04   -1.4871    
  20  Prefactor     .10000E-03    25.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.8178        30.175        .16653E-03   -1.5226    
  22  Prefactor     7.8229        6.8495        .14337E-03   -1.5149    
  23  Prefactor     .10000E-03    13.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .65089        1.4941        .18249E-02   -1.5547    
  26  Prefactor     .10000E-03    38.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2099        .28231        .32120E-03   -.86299    
  28  Prefactor     .98539        .16044        .20897E-03   -.93218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01746e-09
Minuit parameter uncertainties:
  1  0.000136167
  2  3.5886e-06
  3  7.42737
  4  4.13172e-06
  5  9.8142e-07
  6  37.0077
  7  4.66969e-05
  8  0.000104375
  9  24.1215
  10  7.96773e-05
  11  1.82486e-05
  12  3.65711e-05
  13  29.8945
  14  0.287165
  15  2.47928
  16  4.65639
  17  2.08438e-06
  18  4.06506
  19  48.8867
  20  1.80443e-05
  21  26.5198
  22  6.85014
  23  1.70954e-07
  24  3.64552e-06
  25  1.4942
  26  6.17575e-06
  27  0.282663
  28  0.160518
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.697e+00  2.872e-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:  9.854e-01  1.605e-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.210e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 121.64
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.13e-07 +/- 6.99e-08
Energy Flux (Fixed Index): 1.67e-04 +/- 2.83e-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) = 7356.37616649
delta logL = 0.230687015246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7356.37448019
delta logL = 0.232373321701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7038       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0043       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97156       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=   7356.374     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      194 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7038        .30418        .41579E-02   -.38267E-02
   2  alpha         2.0043        .17847        .13138       -.23409E-03
   3  Normalizat    1.2470        .22361        .71732E-01   -.10505E-03
   4  Prefactor     .97157        .13139        .45911E-01    .20450E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70382
  alpha      = 2.00431
  Normalizat = 1.24697
  Prefactor  = 0.971567
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.374     FROM HESSE     STATUS=OK            25 CALLS      219 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7038        .29273        .18377E-04   -1.5447    
   2  alpha         2.0043        .17467        .57181E-03   -.19960    
   3  Normalizat    1.2470        .27198        .31741E-03   -.85164    
   4  Prefactor     .97157        .15923        .21033E-03   -.93683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09901e-10
Minuit parameter uncertainties:
  1  0.292734
  2  0.174821
  3  0.272294
  4  0.159306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5614': 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) = 7356.37448017
delta logL = 0.232373334491

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.704e+00  2.927e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.004e+00  1.748e-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:  9.716e-01  1.593e-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.247e+00  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 121.64
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.00 +/- 0.17
Photon Flux (Free Index): 3.82e-07 +/- 8.01e-08
Energy Flux (Free Index): 1.83e-04 +/- 4.02e-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/5614/cmap_HighResolution_511228801_511488001_4FGL_J1504.4+1029_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.13e-07', energy_flux2='1.83e-04', photon_flux_error='6.99e-08', dlogl='2.32e-01', energy_flux='1.67e-04', photon_flux2='3.82e-07', job_status='DONE', time_completed='2021-09-10 21:54:48.299293', photon_index_error2='0.17', photon_index2='2.00', ts='121.64', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='4.02e-05', EG='1.21', time_epoch_completed='1631336088.3', return_code='0', job_id='5614', GAL2='0.97', EG2='1.25', return_code2='0', energy_flux_error='2.83e-05', photon_flux_error2='8.01e-08', ts2='121.64', photon_index='2.12' WHERE bin_id='1049' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:54:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 5614: <4FGL_J1504.4+1029_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1049> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:40:56 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:40:58 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:40:58 2021
Terminated at Fri Sep 10 21:54:49 2021
Results reported at Fri Sep 10 21:54:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1049 226.103 10.4978 511228801 511488001 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 :                                   669.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

