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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin56
RA = 226.103, Dec = 10.4978
tmin = 253843201, tmax = 254102401
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='994679', job_status='RUN', time_executed='2021-09-10 21:08:27.372045', time_epoch_executed='1631333307.37' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994679/ft1_4FGL_J1504.4+1029_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994679/ft2_4FGL_J1504.4+1029_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994679/ft1_4FGL_J1504.4+1029_daily_bin56.fits outfile=/scratch/kocevski/994679/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin56.fits ra=226.103 dec=10.4978 rad=12.0 tmin=253843201.0 tmax=254102401.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.48
user 1.29
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994679/ft2_4FGL_J1504.4+1029_daily_bin56.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/994679/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/994679/ft1_filtered_4FGL_J1504.4+1029_daily_bin56.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.48
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994679/ft1_filtered_4FGL_J1504.4+1029_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/994679/ft2_4FGL_J1504.4+1029_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/994679/ltcube_253843201_254102401_4FGL_J1504.4+1029_daily_bin56.fits outfile=/scratch/kocevski/994679/expmap_253843201_254102401_4FGL_J1504.4+1029_daily_bin56.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/994679/ltcube_253843201_254102401_4FGL_J1504.4+1029_daily_bin56.fits
.....................!
real 191.31
user 185.48
sys 5.37

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/994679/ft1_filtered_4FGL_J1504.4+1029_daily_bin56.fits scfile=/scratch/kocevski/994679/ft2_4FGL_J1504.4+1029_daily_bin56.fits outfile=/scratch/kocevski/994679/cmap_253843201_254102401_4FGL_J1504.4+1029_daily_bin56.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994679/ft1_filtered_4FGL_J1504.4+1029_daily_bin56.fits scfile=/scratch/kocevski/994679/ft2_4FGL_J1504.4+1029_daily_bin56.fits outfile=/scratch/kocevski/994679/cmap_HighResolution_253843201_254102401_4FGL_J1504.4+1029_daily_bin56.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.4981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.914       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0867       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5764       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3152       1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.112       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.084       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .57122       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.5579       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .89588       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0842       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=   8491.241     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3514 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.457       -.28418E-05** at limit **
   2  norm          .10000E-03    9.6074        .82485E-07** at limit **
   3  Prefactor     .10000E-03    1.7148       -.18182E-07** at limit **
   4  Prefactor     .10000E-03    1.5420       -.95034E-07** at limit **
   5  norm          .10000E-03    4.0556       -.24139E-07** at limit **
   6  Prefactor     .10000E-03    31.364       -.12173E-05** at limit **
   7  Prefactor     .10000E-03    12.903       -.72744E-05** at limit **
   8  norm          9.4956        12.009        .18620E-06    .57954E-04
   9  Prefactor     18.910        25.627        .56124E-06   -.22954E-04
  10  Prefactor     .10000E-03    69.999        .49075E-05** at limit **
  11  Prefactor     .10000E-03    6.0220       -.76901E-07** at limit **
  12  Prefactor     .10000E-03    11.566        .25632E-05** at limit **
  13  Prefactor     .10000E-03    13.455       -.17066E-05** at limit **
  14  norm          3.0865        .35026        .59685E-08   -.15958E-02
  15  norm          2.5763        2.1733       -.35623E-07   -.60986E-03
  16  norm          .10000E-03    14.090        .58683E-05** at limit **
  17  norm          .10000E-03    32.233       -.70266E-05** at limit **
  18  norm          1.3155        2.3513       -.17265E-06   -.67873E-03
  19  Prefactor     65.114        45.606        .44408E-06   -.10097E-04
  20  Prefactor     .10000E-03    18.034       -.10662E-04** at limit **
  21  Prefactor     16.084        32.350       -.67523E-06   -.20668E-04
  22  Prefactor     .57164        3.0499       -.12301E-05   -.52478E-03
  23  Prefactor     .10000E-03    26.059        .13077E-04** at limit **
  24  Prefactor     .10000E-03    15.080        .68206E-05** at limit **
  25  norm          2.5581        2.3284       -.54923E-07   -.16418E-03
  26  Prefactor     .10000E-03    208.19       -.10144E-04** at limit **
  27  Normalizat    .89612        .22421       -.37707E-06    .27093E-04
  28  Prefactor     1.0840        .12541        .18557E-06    .50312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.49556
  Prefactor  = 18.9099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08655
  norm       = 2.57634
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.31545
  Prefactor  = 65.1139
  Prefactor  = 0.0001
  Prefactor  = 16.0836
  Prefactor  = 0.571644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55814
  Prefactor  = 0.0001
  Normalizat = 0.896123
  Prefactor  = 1.08402
 **********
 **   18 **HESSE 
 **********

 FCN=   8491.241     FROM HESSE     STATUS=OK           511 CALLS     4025 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.6126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7235        .11784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5481        .11174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1851        .36194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.4956        11.999        .13003E-03   -1.5092    
   9  Prefactor     18.910        25.747        .92093E-04   -1.4838    
  10  Prefactor     .10000E-03    72.762        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.0416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0865        .35087        .17367E-04   -1.5357    
  15  norm          2.5763        2.1622        .11716E-03   -1.5387    
  16  norm          .10000E-03    14.503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    32.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3155        2.3121        .18241E-03   -1.5479    
  19  Prefactor     65.114        45.667        .49735E-04   -1.4092    
  20  Prefactor     .10000E-03    17.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.084        32.453        .99868E-04   -1.4906    
  22  Prefactor     .57164        6.6953        .31068E-02   -1.5557    
  23  Prefactor     .10000E-03    25.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.5581        2.3263        .13045E-03   -1.5388    
  26  Prefactor     .10000E-03    209.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .89612        .26163        .36668E-03   -.96596    
  28  Prefactor     1.0840        .14702        .19964E-03   -.89979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41453e-10
Minuit parameter uncertainties:
  1  1.46895e-05
  2  4.02952e-07
  3  2.40556e-08
  4  1.01627e-07
  5  2.81697e-06
  6  2.66198e-06
  7  2.02174e-07
  8  12.0019
  9  25.7626
  10  0.000219438
  11  1.7101e-06
  12  6.04306e-06
  13  1.16795e-06
  14  0.350871
  15  2.16231
  16  9.11741e-05
  17  5.15483e-06
  18  2.31222
  19  45.6912
  20  1.45328e-05
  21  32.4883
  22  3.91291
  23  1.2115e-05
  24  3.11938e-06
  25  2.32641
  26  9.99016e-05
  27  0.261998
  28  0.147075
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.087e+00  3.509e-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.084e+00  1.471e-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.961e-01  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 252.23
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 7.51e-07 +/- 8.54e-08
Energy Flux (Fixed Index): 3.04e-04 +/- 3.46e-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) = 8489.03879561
delta logL = 2.20241562976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8489.00988914
delta logL = 2.23132209733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8404       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3845       1.0000          .0000       5.0000    
     3 'Normalizat'    .78889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1272       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=   8489.010     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8404        .45775        .36595E-02   -.12900E-02
   2  alpha         2.3845        .16282        .87612E-01    .40470E-04
   3  Normalizat    .78890        .21745        .87358E-01    .41588E-04
   4  Prefactor     1.1272        .12788        .36633E-01   -.36924E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.84042
  alpha      = 2.38451
  Normalizat = 0.788895
  Prefactor  = 1.12724
 **********
 **   18 **HESSE 
 **********

 FCN=   8489.010     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8404        .35523        .16175E-04   -1.5371    
   2  alpha         2.3845        .12705        .38564E-03   -.46214E-01
   3  Normalizat    .78890        .24941        .38691E-03   -1.0048    
   4  Prefactor     1.1272        .14671        .19606E-03   -.88601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84574e-12
Minuit parameter uncertainties:
  1  0.355231
  2  0.127107
  3  0.249767
  4  0.146766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994679': 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) = 8489.00988914
delta logL = 2.23132209826

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.840e+00  3.552e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.385e+00  1.271e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  1.127e+00  1.468e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  7.889e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 256.32
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.38 +/- 0.13
Photon Flux (Free Index): 8.51e-07 +/- 1.04e-07
Energy Flux (Free Index): 2.59e-04 +/- 3.34e-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/994679/cmap_HighResolution_253843201_254102401_4FGL_J1504.4+1029_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.51e-07', energy_flux2='2.59e-04', photon_flux_error='8.54e-08', dlogl='2.23e+00', energy_flux='3.04e-04', photon_flux2='8.51e-07', job_status='DONE', time_completed='2021-09-10 21:20:24.120444', photon_index_error2='0.13', photon_index2='2.38', ts='252.23', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.34e-05', EG='0.90', time_epoch_completed='1631334024.12', return_code='0', job_id='994679', GAL2='1.13', EG2='0.79', return_code2='0', energy_flux_error='3.46e-05', photon_flux_error2='1.04e-07', ts2='256.32', photon_index='2.12' WHERE bin_id='56' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:20:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 994679: <4FGL_J1504.4+1029_daily_bin56> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin56 226.103 10.4978 253843201 254102401 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 :                                   715.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             305.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

