/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 177 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 = 7685
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1504.4+1029_daily_bin52
RA = 226.103, Dec = 10.4978
tmin = 252806401, tmax = 253065601
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='994675', job_status='RUN', time_executed='2021-09-10 21:09:06.352745', time_epoch_executed='1631333346.35' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994675/ft1_4FGL_J1504.4+1029_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994675/ft2_4FGL_J1504.4+1029_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994675/ft1_4FGL_J1504.4+1029_daily_bin52.fits outfile=/scratch/kocevski/994675/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin52.fits ra=226.103 dec=10.4978 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.42
user 1.24
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994675/ft1_filtered_4FGL_J1504.4+1029_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/994675/ft2_4FGL_J1504.4+1029_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/994675/ltcube_252806401_253065601_4FGL_J1504.4+1029_daily_bin52.fits outfile=/scratch/kocevski/994675/expmap_252806401_253065601_4FGL_J1504.4+1029_daily_bin52.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/994675/ltcube_252806401_253065601_4FGL_J1504.4+1029_daily_bin52.fits
.....................!
real 190.82
user 185.50
sys 4.88

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/994675/ft1_filtered_4FGL_J1504.4+1029_daily_bin52.fits scfile=/scratch/kocevski/994675/ft2_4FGL_J1504.4+1029_daily_bin52.fits outfile=/scratch/kocevski/994675/cmap_252806401_253065601_4FGL_J1504.4+1029_daily_bin52.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994675/ft1_filtered_4FGL_J1504.4+1029_daily_bin52.fits scfile=/scratch/kocevski/994675/ft2_4FGL_J1504.4+1029_daily_bin52.fits outfile=/scratch/kocevski/994675/cmap_HighResolution_252806401_253065601_4FGL_J1504.4+1029_daily_bin52.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.794       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33663E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .44776       1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.910       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1619       1.0000         .10000E-03   10000.    
     8 'norm      '    .10814E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8381       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9478       1.0000         .10000E-03   10000.    
    15 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0353       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.913       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25898       1.0000         .10000E-03   10000.    
    23 'Prefactor '    125.41       1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.252       1.0000         .10000E-03   10000.    
    25 'norm      '    3.9413       1.0000         .10000E-03   10000.    
    26 'Prefactor '    253.27       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .99185       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .96035       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=   8693.369     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3539 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.793        27.688       -.20065E-06    .17677E-04
   2  norm          .10000E-03    13.648       -.11914E-06** at limit **
   3  Prefactor     .10000E-03    2.4174        .40667E-07** at limit **
   4  Prefactor     .10005E-03    6.0567        .16341E-05** at limit **
   5  norm          .44731        1.4798       -.10421E-05    .13067E-03
   6  Prefactor     75.906        60.537        .47105E-07    .33760E-04
   7  Prefactor     6.1834        34.636       -.33450E-05   -.27037E-04
   8  norm          .10000E-03    24.347       -.51214E-05** at limit **
   9  Prefactor     .10000E-03    76.742        .11647E-05** at limit **
  10  Prefactor     .10000E-03    13.075       -.28184E-07** at limit **
  11  Prefactor     .10000E-03    13.579       -.23473E-06** at limit **
  12  Prefactor     6.8257        19.377       -.10122E-06    .88322E-06
  13  Prefactor     .10000E-03    21.364        .27944E-06** at limit **
  14  norm          4.9478        .42540       -.34988E-08    .64330E-04
  15  norm          .10000E-03    1.0444        .41520E-07** at limit **
  16  norm          .10000E-03    2.7867       -.14015E-07** at limit **
  17  norm          .10000E-03    20.783        .38933E-06** at limit **
  18  norm          5.0357        3.9618       -.26295E-06   -.12351E-03
  19  Prefactor     47.917        38.889       -.15898E-06   -.26315E-04
  20  Prefactor     .10000E-03    18.187        .40129E-06** at limit **
  21  Prefactor     .10000E-03    8.7435        .25144E-06** at limit **
  22  Prefactor     .24360        10.238        .30270E-05    .48269E-04
  23  Prefactor     125.40        56.206        .37895E-06    .11108E-03
  24  Prefactor     28.253        37.187        .12667E-06   -.48578E-05
  25  norm          3.9414        2.8782       -.48517E-07   -.21289E-04
  26  Prefactor     253.28        130.82       -.33525E-06   -.26842E-04
  27  Normalizat    .99172        .22216        .47245E-06   -.85181E-05
  28  Prefactor     .96044        .12778       -.10581E-06   -.62753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7932
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  norm       = 0.447306
  Prefactor  = 75.9055
  Prefactor  = 6.18344
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.82573
  Prefactor  = 0.0001
  norm       = 4.94781
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.0357
  Prefactor  = 47.9175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.243601
  Prefactor  = 125.4
  Prefactor  = 28.2533
  norm       = 3.94138
  Prefactor  = 253.283
  Normalizat = 0.991719
  Prefactor  = 0.960443
 **********
 **   18 **HESSE 
 **********

 FCN=   8693.369     FROM HESSE     STATUS=OK           525 CALLS     4064 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.793        27.703        .85798E-04   -1.4774    
   2  norm          .10000E-03    13.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4261        .14153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    38.511        .38017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .44731        1.5141        .19642E-02   -1.5574    
   6  Prefactor     75.906        60.558        .46087E-04   -1.3963    
   7  Prefactor     6.1834        33.071        .16173E-03   -1.5211    
   8  norm          .10000E-03    24.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    78.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8257        19.348        .15343E-03   -1.5185    
  13  Prefactor     .10000E-03    21.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9478        .42659        .16866E-04   -1.5263    
  15  norm          .10000E-03    3.3938        .17715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7993        .15200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0357        3.8991        .15549E-03   -1.5259    
  19  Prefactor     47.917        38.871        .57929E-04   -1.4322    
  20  Prefactor     .10000E-03    18.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .24360        10.494        .30405E-02   -1.5609    
  23  Prefactor     125.40        56.206        .17972E-03   -1.3464    
  24  Prefactor     28.253        37.255        .75374E-04   -1.4644    
  25  norm          3.9414        2.8759        .13114E-03   -1.5311    
  26  Prefactor     253.28        130.73        .12729E-03   -1.2511    
  27  Normalizat    .99172        .25846        .36557E-03   -.93308    
  28  Prefactor     .96044        .15133        .21793E-03   -.94060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72341e-09
Minuit parameter uncertainties:
  1  27.719
  2  4.33253e-05
  3  5.72642e-07
  4  0.00290021
  5  1.51425
  6  60.6071
  7  28.6244
  8  0.000220135
  9  0.000249614
  10  3.22834e-05
  11  5.30869e-05
  12  19.3655
  13  8.07644e-05
  14  0.426594
  15  2.30377e-05
  16  1.82942e-06
  17  0.000112964
  18  3.89927
  19  38.8915
  20  9.00879e-05
  21  3.12239e-05
  22  3.1977
  23  56.2303
  24  37.2859
  25  2.87599
  26  130.883
  27  0.258789
  28  0.151397
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.948e+00  4.266e-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.604e-01  1.514e-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:  9.917e-01  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 520.82
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.20e-06 +/- 1.04e-07
Energy Flux (Fixed Index): 4.88e-04 +/- 4.21e-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) = 8690.51764709
delta logL = 2.85090287627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8690.51748164
delta logL = 2.85106832586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5840       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3533       1.0000          .0000       5.0000    
     3 'Normalizat'    .86333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0118       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=   8690.517     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      209 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5840        .50613        .35889E-02   -.42833E-02
   2  alpha         2.3533        .11388        .68773E-01   -.47300E-04
   3  Normalizat    .86335        .21946        .87369E-01    .68551E-04
   4  Prefactor     1.0118        .12771        .43070E-01   -.20672E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.58404
  alpha      = 2.3533
  Normalizat = 0.863345
  Prefactor  = 1.01184
 **********
 **   18 **HESSE 
 **********

 FCN=   8690.517     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5840        .43575        .15858E-04   -1.5280    
   2  alpha         2.3533        .98522E-01    .30337E-03   -.58712E-01
   3  Normalizat    .86335        .25696        .38693E-03   -.97760    
   4  Prefactor     1.0118        .14959        .21263E-03   -.92336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4412e-11
Minuit parameter uncertainties:
  1  0.435749
  2  0.0985479
  3  0.257328
  4  0.149649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994675': 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) = 8690.51748163
delta logL = 2.85106832665

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.584e+00  4.357e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.353e+00  9.855e-02  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.012e+00  1.496e-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:  8.633e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 520.40
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.35 +/- 0.10
Photon Flux (Free Index): 1.34e-06 +/- 1.24e-07
Energy Flux (Free Index): 4.20e-04 +/- 4.22e-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/994675/cmap_HighResolution_252806401_253065601_4FGL_J1504.4+1029_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-06', energy_flux2='4.20e-04', photon_flux_error='1.04e-07', dlogl='2.85e+00', energy_flux='4.88e-04', photon_flux2='1.34e-06', job_status='DONE', time_completed='2021-09-10 21:21:38.700576', photon_index_error2='0.10', photon_index2='2.35', ts='520.82', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='4.22e-05', EG='0.99', time_epoch_completed='1631334098.7', return_code='0', job_id='994675', GAL2='1.01', EG2='0.86', return_code2='0', energy_flux_error='4.21e-05', photon_flux_error2='1.24e-07', ts2='520.40', photon_index='2.12' WHERE bin_id='52' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 994675: <4FGL_J1504.4+1029_daily_bin52> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin52> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:05:58 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:06:00 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:06:00 2021
Terminated at Fri Sep 10 21:21:39 2021
Results reported at Fri Sep 10 21:21:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin52 226.103 10.4978 252806401 253065601 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 :                                   751.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

