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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin54
RA = 226.103, Dec = 10.4978
tmin = 253324801, tmax = 253584001
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='994677', job_status='RUN', time_executed='2021-09-10 21:08:30.184954', time_epoch_executed='1631333310.18' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994677/ft1_4FGL_J1504.4+1029_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994677/ft2_4FGL_J1504.4+1029_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994677/ft1_4FGL_J1504.4+1029_daily_bin54.fits outfile=/scratch/kocevski/994677/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin54.fits ra=226.103 dec=10.4978 rad=12.0 tmin=253324801.0 tmax=253584001.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.41
user 1.24
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994677/ft1_filtered_4FGL_J1504.4+1029_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/994677/ft2_4FGL_J1504.4+1029_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/994677/ltcube_253324801_253584001_4FGL_J1504.4+1029_daily_bin54.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/994677/ft2_4FGL_J1504.4+1029_daily_bin54.fits
.....................!
real 13.05
user 12.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994677/ft1_filtered_4FGL_J1504.4+1029_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/994677/ft2_4FGL_J1504.4+1029_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/994677/ltcube_253324801_253584001_4FGL_J1504.4+1029_daily_bin54.fits outfile=/scratch/kocevski/994677/expmap_253324801_253584001_4FGL_J1504.4+1029_daily_bin54.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/994677/ltcube_253324801_253584001_4FGL_J1504.4+1029_daily_bin54.fits
.....................!
real 191.29
user 186.51
sys 4.40

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/994677/ft1_filtered_4FGL_J1504.4+1029_daily_bin54.fits scfile=/scratch/kocevski/994677/ft2_4FGL_J1504.4+1029_daily_bin54.fits outfile=/scratch/kocevski/994677/cmap_253324801_253584001_4FGL_J1504.4+1029_daily_bin54.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/994677/ft1_filtered_4FGL_J1504.4+1029_daily_bin54.fits scfile=/scratch/kocevski/994677/ft2_4FGL_J1504.4+1029_daily_bin54.fits outfile=/scratch/kocevski/994677/cmap_HighResolution_253324801_253584001_4FGL_J1504.4+1029_daily_bin54.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5036       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11889E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.390       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.053       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3528       1.0000         .10000E-03   10000.    
    15 'norm      '    .89995       1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31582E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4751       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.715       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.7635       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5614       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .73747       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=   7315.795     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3480 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4540       -.10799E-05** at limit **
   2  norm          .10000E-03    8.6780       -.30160E-05** at limit **
   3  Prefactor     1.5098        10.556       -.33222E-05   -.56272E-03
   4  Prefactor     .10000E-03    7.4034        .45617E-05** at limit **
   5  norm          .10000E-03    1.2828        .23960E-08** at limit **
   6  Prefactor     21.384        68.584       -.11557E-04    .43086E-04
   7  Prefactor     .10000E-03    26.358       -.11231E-05** at limit **
   8  norm          .10000E-03    10.430        .28977E-05** at limit **
   9  Prefactor     .10000E-03    15.591       -.37855E-05** at limit **
  10  Prefactor     .10000E-03    6.7278        .15630E-05** at limit **
  11  Prefactor     .10000E-03    4.2949       -.66674E-07** at limit **
  12  Prefactor     .10000E-03    7.0440       -.38756E-05** at limit **
  13  Prefactor     16.072        33.039        .33185E-05   -.39797E-04
  14  norm          3.3529        .38134       -.47518E-08    .55766E-03
  15  norm          .90090        1.7421       -.51940E-06   -.15651E-02
  16  norm          .10000E-03    1.9174       -.33536E-07** at limit **
  17  norm          .10000E-03    16.862        .48803E-05** at limit **
  18  norm          .10000E-03    2.0625       -.47861E-07** at limit **
  19  Prefactor     .10000E-03    195.59        .12746E-04** at limit **
  20  Prefactor     8.4718        21.476        .12712E-06   -.12478E-04
  21  Prefactor     22.664        33.536       -.10246E-04    .15520E-03
  22  Prefactor     .10000E-03    2.0904       -.66921E-07** at limit **
  23  Prefactor     .10000E-03    13.019       -.45617E-06** at limit **
  24  Prefactor     .10000E-03    13.130       -.12646E-05** at limit **
  25  norm          5.7641        3.0590        .10685E-07    .39656E-04
  26  Prefactor     .10000E-03    69.176        .17389E-05** at limit **
  27  Normalizat    1.5612        .23086        .19775E-05   -.77161E-04
  28  Prefactor     .73731        .12936        .10783E-06    .62815E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.50982
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 21.3837
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.072
  norm       = 3.35293
  norm       = 0.900901
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 8.47181
  Prefactor  = 22.6637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.7641
  Prefactor  = 0.0001
  Normalizat = 1.56121
  Prefactor  = 0.737307
 **********
 **   18 **HESSE 
 **********

 FCN=   7315.795     FROM HESSE     STATUS=OK           511 CALLS     3991 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.6473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5098        11.578        .34910E-03   -1.5462    
   4  Prefactor     .10000E-03    7.6349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2880        .94598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.384        68.500        .86603E-04   -1.4783    
   7  Prefactor     .10000E-03    26.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2979        .17312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.072        32.963        .99963E-04   -1.4906    
  14  norm          3.3529        .38293        .16999E-04   -1.5342    
  15  norm          .90090        1.5627        .15136E-02   -1.5518    
  16  norm          .10000E-03    1.9178        .11567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5001        .23710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    200.21        .39544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.4718        21.466        .13770E-03   -1.5126    
  21  Prefactor     22.664        33.379        .84044E-04   -1.4755    
  22  Prefactor     .10000E-03    2.1033        .12076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.7641        3.0587        .10616E-03   -1.5228    
  26  Prefactor     .10000E-03    69.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5612        .27750        .29403E-03   -.76073    
  28  Prefactor     .73731        .15497        .23365E-03   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40858e-09
Minuit parameter uncertainties:
  1  2.42696e-05
  2  7.25507e-05
  3  8.36397
  4  0.000126627
  5  1.99316e-06
  6  68.7532
  7  3.65441e-05
  8  8.07952e-05
  9  0.000102503
  10  3.67154e-05
  11  2.59352e-06
  12  7.72432e-05
  13  32.9999
  14  0.382927
  15  1.56281
  16  8.5597e-08
  17  0.000163273
  18  3.64987e-06
  19  0.00188353
  20  21.4855
  21  33.4068
  22  2.65107e-06
  23  2.10463e-05
  24  2.88711e-05
  25  3.05879
  26  0.000155519
  27  0.277772
  28  0.15506
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.353e+00  3.829e-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:  7.373e-01  1.551e-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.561e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 273.48
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 8.16e-07 +/- 9.32e-08
Energy Flux (Fixed Index): 3.31e-04 +/- 3.78e-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) = 7314.03375522
delta logL = 1.76151810176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7314.03354777
delta logL = 1.76172555014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1213       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77733       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=   7314.034     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      206 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1213        .47729        .36057E-02   -.20987E-02
   2  alpha         2.3621        .15882        .84581E-01    .34319E-04
   3  Normalizat    1.4585        .22729        .68037E-01    .26711E-04
   4  Prefactor     .77733        .12899        .43422E-01    .87185E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12128
  alpha      = 2.3621
  Normalizat = 1.45846
  Prefactor  = 0.777328
 **********
 **   18 **HESSE 
 **********

 FCN=   7314.034     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1213        .38745        .15935E-04   -1.5355    
   2  alpha         2.3621        .12993        .37240E-03   -.55186E-01
   3  Normalizat    1.4585        .27588        .30098E-03   -.78952    
   4  Prefactor     .77733        .15604        .22794E-03   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47893e-11
Minuit parameter uncertainties:
  1  0.387448
  2  0.129991
  3  0.276164
  4  0.156129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994677': 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) = 7314.03354777
delta logL = 1.76172555081

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.121e+00  3.874e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.362e+00  1.300e-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:  7.773e-01  1.561e-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.458e+00  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 276.66
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.36 +/- 0.13
Photon Flux (Free Index): 9.18e-07 +/- 1.14e-07
Energy Flux (Free Index): 2.86e-04 +/- 3.71e-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/994677/cmap_HighResolution_253324801_253584001_4FGL_J1504.4+1029_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.16e-07', energy_flux2='2.86e-04', photon_flux_error='9.32e-08', dlogl='1.76e+00', energy_flux='3.31e-04', photon_flux2='9.18e-07', job_status='DONE', time_completed='2021-09-10 21:19:37.069095', photon_index_error2='0.13', photon_index2='2.36', ts='273.48', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='3.71e-05', EG='1.56', time_epoch_completed='1631333977.07', return_code='0', job_id='994677', GAL2='0.78', EG2='1.46', return_code2='0', energy_flux_error='3.78e-05', photon_flux_error2='1.14e-07', ts2='276.66', photon_index='2.12' WHERE bin_id='54' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:19:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 994677: <4FGL_J1504.4+1029_daily_bin54> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin54 226.103 10.4978 253324801 253584001 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 :                                   666.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

