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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1251
RA = 226.103, Dec = 10.4978
tmin = 563587201, tmax = 563846401
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='5944', job_status='RUN', time_executed='2021-09-10 21:44:44.089764', time_epoch_executed='1631335484.09' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5944

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5944/ft1_4FGL_J1504.4+1029_daily_bin1251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5944/ft2_4FGL_J1504.4+1029_daily_bin1251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5944/ft1_4FGL_J1504.4+1029_daily_bin1251.fits outfile=/scratch/kocevski/5944/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1251.fits ra=226.103 dec=10.4978 rad=12.0 tmin=563587201.0 tmax=563846401.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.77
user 2.56
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/5944/ft2_4FGL_J1504.4+1029_daily_bin1251.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/5944/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1251.fits evtable="EVENTS" outfile="/scratch/kocevski/5944/ft1_filtered_4FGL_J1504.4+1029_daily_bin1251.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/5944/ft1_filtered_4FGL_J1504.4+1029_daily_bin1251.fits" evtable="EVENTS" scfile=/scratch/kocevski/5944/ft2_4FGL_J1504.4+1029_daily_bin1251.fits sctable="SC_DATA" outfile=/scratch/kocevski/5944/ltcube_563587201_563846401_4FGL_J1504.4+1029_daily_bin1251.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/5944/ft2_4FGL_J1504.4+1029_daily_bin1251.fits
.....................!
real 12.12
user 11.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5944/ft1_filtered_4FGL_J1504.4+1029_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/5944/ft2_4FGL_J1504.4+1029_daily_bin1251.fits sctable="SC_DATA" expcube=/scratch/kocevski/5944/ltcube_563587201_563846401_4FGL_J1504.4+1029_daily_bin1251.fits outfile=/scratch/kocevski/5944/expmap_563587201_563846401_4FGL_J1504.4+1029_daily_bin1251.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/5944/ltcube_563587201_563846401_4FGL_J1504.4+1029_daily_bin1251.fits
.....................!
real 190.29
user 185.53
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/5944/ft1_filtered_4FGL_J1504.4+1029_daily_bin1251.fits scfile=/scratch/kocevski/5944/ft2_4FGL_J1504.4+1029_daily_bin1251.fits outfile=/scratch/kocevski/5944/cmap_563587201_563846401_4FGL_J1504.4+1029_daily_bin1251.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5944/ft1_filtered_4FGL_J1504.4+1029_daily_bin1251.fits scfile=/scratch/kocevski/5944/ft2_4FGL_J1504.4+1029_daily_bin1251.fits outfile=/scratch/kocevski/5944/cmap_HighResolution_563587201_563846401_4FGL_J1504.4+1029_daily_bin1251.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/5944/ft1_filtered_4FGL_J1504.4+1029_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/5944/ft2_4FGL_J1504.4+1029_daily_bin1251.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/5944/Model_4FGL_J1504.4+1029_daily_bin1251.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/5944/ft1_filtered_4FGL_J1504.4+1029_daily_bin1251.fits.....................!
real 46.91
user 45.69
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7931       1.0000         .10000E-03   10000.    
     2 'norm      '    .10789E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.969       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .68597       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    98.754       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0218       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9248       1.0000         .10000E-03   10000.    
    16 'norm      '    7.4423       1.0000         .10000E-03   10000.    
    17 'norm      '    25.719       1.0000         .10000E-03   10000.    
    18 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.020       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.617       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .18526E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3241       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3622       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77659       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=   5623.333     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3507 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7019        84.734       -.13756E-03    .92762E-07
   2  norm          .10002E-03    38.408        .18881E-04** at limit **
   3  Prefactor     18.002        12.818       -.23941E-05    .63221E-03
   4  Prefactor     .60242        5.8046       -.22342E-05    .26641E-03
   5  norm          2.8150        3.2364       -.94157E-06    .68660E-04
   6  Prefactor     98.749        139.12       -.47570E-05    .15439E-04
   7  Prefactor     .10000E-03    18.747        .10099E-04** at limit **
   8  norm          .10000E-03    9.5690       -.54812E-07** at limit **
   9  Prefactor     .10000E-03    27.034       -.70871E-05** at limit **
  10  Prefactor     .10000E-03    66.614       -.18974E-04** at limit **
  11  Prefactor     19.256        25.142       -.68315E-05    .34594E-03
  12  Prefactor     .10000E-03    20.487       -.71212E-05** at limit **
  13  Prefactor     .10000E-03    63.492       -.28275E-04** at limit **
  14  norm          1.0217        .29161       -.69746E-07    .37638E-02
  15  norm          8.9272        6.1468        .78831E-07    .25029E-03
  16  norm          7.4425        7.6648       -.12962E-05    .54575E-05
  17  norm          25.723        31.224       -.14768E-05    .15020E-04
  18  norm          .10000E-03    14.497       -.46586E-05** at limit **
  19  Prefactor     .10000E-03    9.0202        .33518E-07** at limit **
  20  Prefactor     28.913        49.054       -.72925E-04    .15959E-04
  21  Prefactor     16.569        43.160       -.39796E-04    .74423E-04
  22  Prefactor     .10000E-03    3.1103        .29011E-07** at limit **
  23  Prefactor     .10000E-03    13.648        .28903E-05** at limit **
  24  Prefactor     .10001E-03    176.53        .88383E-04** at limit **
  25  norm          1.3237        2.4291       -.98849E-06   -.56308E-03
  26  Prefactor     .10000E-03    78.835        .24098E-04** at limit **
  27  Normalizat    1.3634        .27840        .13957E-04    .19140E-03
  28  Prefactor     .77606        .14991        .40868E-05    .67275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.70188
  norm       = 0.000100015
  Prefactor  = 18.0023
  Prefactor  = 0.602419
  norm       = 2.81504
  Prefactor  = 98.749
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.2556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02168
  norm       = 8.92721
  norm       = 7.44252
  norm       = 25.723
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 28.9129
  Prefactor  = 16.5689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 1.32373
  Prefactor  = 0.0001
  Normalizat = 1.36336
  Prefactor  = 0.776064
 **********
 **   18 **HESSE 
 **********

 FCN=   5623.333     FROM HESSE     STATUS=OK           509 CALLS     4016 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7019        85.811        .14364E-03   -1.5153    
   2  norm          .10002E-03    38.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.002        13.009        .94484E-04   -1.4859    
   4  Prefactor     .60242        35.182        .30939E-02   -1.5553    
   5  norm          2.8150        3.2208        .13854E-03   -1.5372    
   6  Prefactor     98.749        139.16        .40452E-04   -1.3717    
   7  Prefactor     .10000E-03    18.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.5763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    67.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.256        25.230        .91265E-04   -1.4830    
  12  Prefactor     .10000E-03    20.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    63.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0217        .29148        .20580E-04   -1.5506    
  15  norm          8.9272        6.1310        .13417E-03   -1.5110    
  16  norm          7.4425        7.6644        .14701E-03   -1.5162    
  17  norm          25.723        31.231        .78991E-04   -1.4693    
  18  norm          .10000E-03    14.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.0221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.913        49.120        .74372E-04   -1.4632    
  21  Prefactor     16.569        43.486        .98254E-04   -1.4894    
  22  Prefactor     .10000E-03    3.1112        .12916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    177.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3237        2.3865        .15290E-03   -1.5478    
  26  Prefactor     .10000E-03    78.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3634        .34271        .30744E-03   -.81694    
  28  Prefactor     .77606        .18365        .22376E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26481e-09
Minuit parameter uncertainties:
  1  51.5096
  2  0.00153608
  3  13.0108
  4  9.21244
  5  3.22101
  6  139.62
  7  2.86143e-05
  8  1.50269e-05
  9  0.000201325
  10  0.000446061
  11  25.2436
  12  5.84316e-05
  13  9.1941e-05
  14  0.291478
  15  6.1314
  16  7.66543
  17  31.2503
  18  0.00018124
  19  1.32614e-05
  20  49.1888
  21  43.5691
  22  1.84941e-06
  23  8.72908e-06
  24  0.00323451
  25  2.38662
  26  0.000289415
  27  0.343285
  28  0.183796
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.022e+00  2.915e-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.761e-01  1.838e-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.363e+00  3.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.51
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.49e-07 +/- 7.09e-08
Energy Flux (Fixed Index): 1.01e-04 +/- 2.87e-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) = 5623.32028764
delta logL = 0.0127492763413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5623.31956068
delta logL = 0.0134762388252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0159       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0765       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77242       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=   5623.320     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      192 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0161        .30069        .46668E-02   -.10308E-02
   2  alpha         2.0768        .28557        .18846       -.46062E-04
   3  Normalizat    1.3733        .26317        .69288E-01    .90013E-04
   4  Prefactor     .77234        .14865        .43357E-01   -.40955E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01608
  alpha      = 2.07681
  Normalizat = 1.37332
  Prefactor  = 0.772339
 **********
 **   18 **HESSE 
 **********

 FCN=   5623.320     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0161        .29244        .20652E-04   -1.5506    
   2  alpha         2.0768        .28770        .80666E-02   -.17010    
   3  Normalizat    1.3733        .32347        .30655E-03   -.81404    
   4  Prefactor     .77234        .18206        .22426E-03   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75965e-10
Minuit parameter uncertainties:
  1  0.292436
  2  0.288359
  3  0.32395
  4  0.182199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5944': 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) = 5623.31956007
delta logL = 0.0134768467979

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.016e+00  2.924e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.077e+00  2.884e-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.723e-01  1.822e-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.373e+00  3.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.47
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.08 +/- 0.29
Photon Flux (Free Index): 2.39e-07 +/- 8.89e-08
Energy Flux (Free Index): 1.03e-04 +/- 3.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/5944/cmap_HighResolution_563587201_563846401_4FGL_J1504.4+1029_daily_bin1251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.49e-07', energy_flux2='1.03e-04', photon_flux_error='7.09e-08', dlogl='1.35e-02', energy_flux='1.01e-04', photon_flux2='2.39e-07', job_status='DONE', time_completed='2021-09-10 21:54:56.937065', photon_index_error2='0.29', photon_index2='2.08', ts='34.51', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.34e-05', EG='1.36', time_epoch_completed='1631336096.94', return_code='0', job_id='5944', GAL2='0.77', EG2='1.37', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='8.89e-08', ts2='34.47', photon_index='2.12' WHERE bin_id='1251' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:54:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 5944: <4FGL_J1504.4+1029_daily_bin1251> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1251> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:41:14 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:41:16 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:41:16 2021
Terminated at Fri Sep 10 21:54:57 2021
Results reported at Fri Sep 10 21:54:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1251 226.103 10.4978 563587201 563846401 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 :                                   557.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            823 sec.

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

