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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin48
RA = 226.103, Dec = 10.4978
tmin = 251769601, tmax = 252028801
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='994671', job_status='RUN', time_executed='2021-09-10 21:06:15.837493', time_epoch_executed='1631333175.84' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994671

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994671/ft1_4FGL_J1504.4+1029_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994671/ft2_4FGL_J1504.4+1029_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994671/ft1_4FGL_J1504.4+1029_daily_bin48.fits outfile=/scratch/kocevski/994671/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin48.fits ra=226.103 dec=10.4978 rad=12.0 tmin=251769601.0 tmax=252028801.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 2.15
user 1.96
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994671/ft1_filtered_4FGL_J1504.4+1029_daily_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/994671/ft2_4FGL_J1504.4+1029_daily_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/994671/ltcube_251769601_252028801_4FGL_J1504.4+1029_daily_bin48.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/994671/ft2_4FGL_J1504.4+1029_daily_bin48.fits
.....................!
real 12.55
user 12.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994671/ft1_filtered_4FGL_J1504.4+1029_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/994671/ft2_4FGL_J1504.4+1029_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/994671/ltcube_251769601_252028801_4FGL_J1504.4+1029_daily_bin48.fits outfile=/scratch/kocevski/994671/expmap_251769601_252028801_4FGL_J1504.4+1029_daily_bin48.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/994671/ltcube_251769601_252028801_4FGL_J1504.4+1029_daily_bin48.fits
.....................!
real 190.63
user 185.70
sys 4.57

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/994671/ft1_filtered_4FGL_J1504.4+1029_daily_bin48.fits scfile=/scratch/kocevski/994671/ft2_4FGL_J1504.4+1029_daily_bin48.fits outfile=/scratch/kocevski/994671/cmap_251769601_252028801_4FGL_J1504.4+1029_daily_bin48.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994671/ft1_filtered_4FGL_J1504.4+1029_daily_bin48.fits scfile=/scratch/kocevski/994671/ft2_4FGL_J1504.4+1029_daily_bin48.fits outfile=/scratch/kocevski/994671/cmap_HighResolution_251769601_252028801_4FGL_J1504.4+1029_daily_bin48.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.237       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3612       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1089       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.004       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4504       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0796       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6495       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5473       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8531       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.562       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0578       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5114       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12098E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1168       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0082       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=   11955.15     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3487 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    15.160       -.28592E-05** at limit **
   2  norm          27.237        19.924        .34095E-07   -.15468E-04
   3  Prefactor     .10000E-03    2.1132       -.64111E-07** at limit **
   4  Prefactor     6.3615        3.9075        .71004E-06   -.12349E-02
   5  norm          2.1774        2.4812        .10432E-06   -.25889E-03
   6  Prefactor     .10002E-03    17.868        .41017E-05** at limit **
   7  Prefactor     .10000E-03    23.224       -.36476E-06** at limit **
   8  norm          .10000E-03    12.672        .97531E-06** at limit **
   9  Prefactor     .10000E-03    29.193        .31571E-06** at limit **
  10  Prefactor     1.0884        16.316        .43821E-05   -.65663E-03
  11  Prefactor     .10000E-03    3.7313       -.10020E-07** at limit **
  12  Prefactor     .10000E-03    6.7263       -.78039E-08** at limit **
  13  Prefactor     13.004        21.757       -.37114E-06   -.98104E-04
  14  norm          3.4505        .31183       -.99685E-08   -.53602E-02
  15  norm          3.0796        1.7111        .32415E-07   -.35403E-03
  16  norm          1.6494        3.9558        .66113E-06   -.46950E-03
  17  norm          .10000E-03    10.734       -.18944E-06** at limit **
  18  norm          .10000E-03    .88354       -.45330E-09** at limit **
  19  Prefactor     8.5461        30.105        .92326E-07   -.25863E-04
  20  Prefactor     3.8496        33.732        .33549E-05    .11424E-03
  21  Prefactor     15.558        24.067        .18191E-05    .23278E-03
  22  Prefactor     .10000E-03    1.9211        .17409E-07** at limit **
  23  Prefactor     .10001E-03    24.164       -.25113E-05** at limit **
  24  Prefactor     4.0558        17.089        .17175E-05    .10413E-03
  25  norm          4.5113        2.2247        .72094E-08    .34943E-04
  26  Prefactor     .10001E-03    209.41       -.28970E-05** at limit **
  27  Normalizat    1.1167        .19053       -.75604E-06   -.35864E-03
  28  Prefactor     1.0083        .10846       -.14537E-06   -.47151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 27.2369
  Prefactor  = 0.0001
  Prefactor  = 6.36147
  norm       = 2.17736
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.0884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0044
  norm       = 3.45052
  norm       = 3.07963
  norm       = 1.64937
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.54611
  Prefactor  = 3.84956
  Prefactor  = 15.5575
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 4.05579
  norm       = 4.51133
  Prefactor  = 0.000100007
  Normalizat = 1.11669
  Prefactor  = 1.00828
 **********
 **   18 **HESSE 
 **********

 FCN=   11955.15     FROM HESSE     STATUS=OK           517 CALLS     4004 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    15.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.237        19.929        .76762E-04   -1.4664    
   3  Prefactor     .10000E-03    2.1223        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3615        4.4572        .79571E-03   -1.5203    
   5  norm          2.1774        2.4723        .17804E-03   -1.5413    
   6  Prefactor     .10002E-03    19.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0884        74.068        .68909E-02   -1.5499    
  11  Prefactor     .10000E-03    3.7361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.7377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.004        21.784        .11108E-03   -1.4987    
  14  norm          3.4505        .31220        .17273E-04   -1.5336    
  15  norm          3.0796        1.7096        .10236E-03   -1.5357    
  16  norm          1.6494        4.1389        .32876E-03   -1.5451    
  17  norm          .10000E-03    10.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .89172        .10034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.5461        30.136        .13711E-03   -1.5123    
  20  Prefactor     3.8496        34.130        .20559E-03   -1.5316    
  21  Prefactor     15.558        24.241        .10153E-03   -1.4919    
  22  Prefactor     .10000E-03    1.9481        .14796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    24.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.0558        17.195        .20016E-03   -1.5305    
  25  norm          4.5113        2.2250        .11155E-03   -1.5283    
  26  Prefactor     .10001E-03    211.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1167        .22880        .34632E-03   -.89218    
  28  Prefactor     1.0083        .13121        .21256E-03   -.92454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26394e-08
Minuit parameter uncertainties:
  1  0.000682432
  2  19.9342
  3  3.23822e-06
  4  4.45743
  5  2.47244
  6  0.00109174
  7  0.000122744
  8  0.000198234
  9  0.000133497
  10  17.9797
  11  7.55947e-07
  12  9.97821e-07
  13  21.7973
  14  0.312203
  15  1.7096
  16  4.13964
  17  3.73924e-05
  18  1.18999e-07
  19  30.1895
  20  22.9419
  21  24.2566
  22  1.113e-06
  23  0.000759375
  24  16.7099
  25  2.22499
  26  0.00249589
  27  0.229002
  28  0.131256
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.451e+00  3.122e-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.008e+00  1.313e-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.117e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 458.14
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 8.40e-07 +/- 7.60e-08
Energy Flux (Fixed Index): 3.40e-04 +/- 3.08e-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) = 11954.9286649
delta logL = 0.219768398782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11954.9263676
delta logL = 0.222065655342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4046       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1885       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0212       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=   11954.93     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4050        .34691        .38521E-02   -.16039E-03
   2  alpha         2.1885        .10614        .87433E-01    .26638E-04
   3  Normalizat    1.0841        .18728        .79163E-01    .24264E-04
   4  Prefactor     1.0213        .10849        .42027E-01   -.53202E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40504
  alpha      = 2.18853
  Normalizat = 1.08411
  Prefactor  = 1.02133
 **********
 **   18 **HESSE 
 **********

 FCN=   11954.93     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .67E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4050        .31378        .17023E-04   -1.5339    
   2  alpha         2.1885        .96861E-01    .38456E-03   -.12491    
   3  Normalizat    1.0841        .22635        .35043E-03   -.90264    
   4  Prefactor     1.0213        .13087        .21130E-03   -.92022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66389e-14
Minuit parameter uncertainties:
  1  0.313778
  2  0.0968858
  3  0.226553
  4  0.130912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994671': 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) = 11954.9263654
delta logL = 0.222067920147

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.405e+00  3.138e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.189e+00  9.689e-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.021e+00  1.309e-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.084e+00  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 456.63
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.19 +/- 0.10
Photon Flux (Free Index): 8.69e-07 +/- 8.88e-08
Energy Flux (Free Index): 3.25e-04 +/- 3.57e-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/994671/cmap_HighResolution_251769601_252028801_4FGL_J1504.4+1029_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.40e-07', energy_flux2='3.25e-04', photon_flux_error='7.60e-08', dlogl='2.22e-01', energy_flux='3.40e-04', photon_flux2='8.69e-07', job_status='DONE', time_completed='2021-09-10 21:21:18.526270', photon_index_error2='0.10', photon_index2='2.19', ts='458.14', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='1.12', time_epoch_completed='1631334078.53', return_code='0', job_id='994671', GAL2='1.02', EG2='1.08', return_code2='0', energy_flux_error='3.08e-05', photon_flux_error2='8.88e-08', ts2='456.63', photon_index='2.12' WHERE bin_id='48' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:21:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 994671: <4FGL_J1504.4+1029_daily_bin48> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin48> 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) <bullet0225>, 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:19 2021
Results reported at Fri Sep 10 21:21:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin48 226.103 10.4978 251769601 252028801 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 :                                   899.31 sec.
    Max Memory :                                 1049 MB
    Average Memory :                             311.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

