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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1095
RA = 226.103, Dec = 10.4978
tmin = 523152001, tmax = 523411201
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='5660', job_status='RUN', time_executed='2021-09-10 21:43:42.405412', time_epoch_executed='1631335422.41' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5660

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5660/ft1_4FGL_J1504.4+1029_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5660/ft2_4FGL_J1504.4+1029_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5660/ft1_4FGL_J1504.4+1029_daily_bin1095.fits outfile=/scratch/kocevski/5660/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1095.fits ra=226.103 dec=10.4978 rad=12.0 tmin=523152001.0 tmax=523411201.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 4.20
user 3.94
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5660/ft1_filtered_4FGL_J1504.4+1029_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/5660/ft2_4FGL_J1504.4+1029_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/5660/ltcube_523152001_523411201_4FGL_J1504.4+1029_daily_bin1095.fits outfile=/scratch/kocevski/5660/expmap_523152001_523411201_4FGL_J1504.4+1029_daily_bin1095.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/5660/ltcube_523152001_523411201_4FGL_J1504.4+1029_daily_bin1095.fits
.....................!
real 193.15
user 188.05
sys 4.76

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/5660/ft1_filtered_4FGL_J1504.4+1029_daily_bin1095.fits scfile=/scratch/kocevski/5660/ft2_4FGL_J1504.4+1029_daily_bin1095.fits outfile=/scratch/kocevski/5660/cmap_523152001_523411201_4FGL_J1504.4+1029_daily_bin1095.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5660/ft1_filtered_4FGL_J1504.4+1029_daily_bin1095.fits scfile=/scratch/kocevski/5660/ft2_4FGL_J1504.4+1029_daily_bin1095.fits outfile=/scratch/kocevski/5660/cmap_HighResolution_523152001_523411201_4FGL_J1504.4+1029_daily_bin1095.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.069       1.0000         .10000E-03   10000.    
     2 'norm      '    43.965       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16153E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.455       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.394       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3072       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4799       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4793       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.081       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9314       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.517       1.0000         .10000E-03   10000.    
    25 'norm      '    .37666       1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.084       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2579       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98655       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=   7481.171     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3457 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.061        21.577        .80205E-06   -.61930E-05
   2  norm          43.966        28.025       -.15633E-06   -.50409E-05
   3  Prefactor     .10000E-03    3.0466       -.32163E-07** at limit **
   4  Prefactor     .10000E-03    3.2496        .10999E-08** at limit **
   5  norm          1.7411        2.8461        .79854E-07    .11792E-04
   6  Prefactor     .10000E-03    21.999        .17986E-05** at limit **
   7  Prefactor     .10000E-03    50.308        .45998E-05** at limit **
   8  norm          17.457        21.524       -.11976E-05   -.13403E-03
   9  Prefactor     .10000E-03    9.7857        .14999E-06** at limit **
  10  Prefactor     11.209        26.294        .56252E-06   -.52887E-05
  11  Prefactor     .10000E-03    26.295       -.69838E-06** at limit **
  12  Prefactor     42.401        31.113       -.31812E-06    .78459E-04
  13  Prefactor     .10000E-03    33.644       -.43333E-05** at limit **
  14  norm          1.3072        .27922        .67737E-08    .28463E-03
  15  norm          1.4791        2.9875        .13164E-06   -.51705E-04
  16  norm          .10000E-03    2.9137        .13076E-07** at limit **
  17  norm          .10000E-03    18.620        .10476E-05** at limit **
  18  norm          5.4797        4.1838       -.24730E-08   -.10502E-04
  19  Prefactor     .10000E-03    16.597       -.20596E-05** at limit **
  20  Prefactor     .10000E-03    20.421        .19595E-05** at limit **
  21  Prefactor     13.080        22.432        .23801E-06    .57123E-05
  22  Prefactor     1.9312        3.5549        .24143E-05   -.30277E-04
  23  Prefactor     .10000E-03    25.346       -.23214E-06** at limit **
  24  Prefactor     15.517        16.601       -.65737E-07   -.56179E-06
  25  norm          .38323        2.2529       -.48589E-06   -.37992E-04
  26  Prefactor     34.085        41.049       -.16104E-06    .80809E-06
  27  Normalizat    1.2579        .23902       -.16721E-06    .21724E-05
  28  Prefactor     .98659        .13335       -.31014E-07    .37053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0614
  norm       = 43.9662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.4575
  Prefactor  = 0.0001
  Prefactor  = 11.2094
  Prefactor  = 0.0001
  Prefactor  = 42.4014
  Prefactor  = 0.0001
  norm       = 1.3072
  norm       = 1.47909
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.47973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0802
  Prefactor  = 1.93118
  Prefactor  = 0.0001
  Prefactor  = 15.5169
  norm       = 0.383229
  Prefactor  = 34.0851
  Normalizat = 1.25794
  Prefactor  = 0.986587
 **********
 **   18 **HESSE 
 **********

 FCN=   7481.171     FROM HESSE     STATUS=OK           519 CALLS     3976 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.061        21.584        .12628E-03   -1.5073    
   2  norm          43.966        28.026        .60463E-04   -1.4381    
   3  Prefactor     .10000E-03    3.0541        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2631        .15224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7411        2.8193        .18099E-03   -1.5444    
   6  Prefactor     .10000E-03    21.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.457        21.660        .95865E-04   -1.4872    
   9  Prefactor     .10000E-03    9.7939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.209        26.293        .11965E-03   -1.5038    
  11  Prefactor     .10000E-03    26.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.401        31.068        .61569E-04   -1.4405    
  13  Prefactor     .10000E-03    33.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3072        .27936        .20020E-04   -1.5479    
  15  norm          1.4791        2.9563        .19249E-03   -1.5465    
  16  norm          .10000E-03    2.9179        .14418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4797        4.1669        .14620E-03   -1.5240    
  19  Prefactor     .10000E-03    16.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.080        22.438        .11075E-03   -1.4984    
  22  Prefactor     1.9312        3.5731        .10875E-02   -1.5430    
  23  Prefactor     .10000E-03    25.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.517        16.603        .10168E-03   -1.4920    
  25  norm          .38323        4.9983        .24870E-02   -1.5584    
  26  Prefactor     34.085        41.050        .68639E-04   -1.4540    
  27  Normalizat    1.2579        .28982        .33007E-03   -.84831    
  28  Prefactor     .98659        .16238        .21128E-03   -.93178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25553e-08
Minuit parameter uncertainties:
  1  21.6012
  2  28.0345
  3  6.52679e-07
  4  2.08615e-07
  5  2.81953
  6  1.8935e-05
  7  0.000153425
  8  21.6701
  9  9.40199e-06
  10  26.3199
  11  0.000103357
  12  31.0794
  13  0.000111172
  14  0.279363
  15  2.9566
  16  6.98679e-07
  17  8.73229e-06
  18  4.16715
  19  1.72498e-05
  20  2.77384e-05
  21  22.4523
  22  3.57354
  23  4.23065e-06
  24  16.6079
  25  2.76794
  26  41.0845
  27  0.29019
  28  0.16246
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.866e-01  1.625e-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.258e+00  2.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 58.15
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.18e-07 +/- 6.80e-08
Energy Flux (Fixed Index): 1.29e-04 +/- 2.75e-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) = 7481.15420739
delta logL = 0.0166957023685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7481.15307445
delta logL = 0.01782864492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3042       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0805       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98154       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=   7481.153     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3042        .30468        .45533E-02   -.71901E-04
   2  alpha         2.0803        .24320        .17315        .70136E-05
   3  Normalizat    1.2717        .23445        .74261E-01    .27809E-04
   4  Prefactor     .98127        .13329        .46036E-01    .37450E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30422
  alpha      = 2.08029
  Normalizat = 1.27172
  Prefactor  = 0.981267
 **********
 **   18 **HESSE 
 **********

 FCN=   7481.153     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3042        .27992        .20150E-04   -1.5480    
   2  alpha         2.0803        .23230        .74025E-02   -.16868    
   3  Normalizat    1.2717        .28832        .32864E-03   -.84415    
   4  Prefactor     .98127        .16280        .21179E-03   -.93357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32193e-12
Minuit parameter uncertainties:
  1  0.27992
  2  0.232648
  3  0.288681
  4  0.162881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5660': 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) = 7481.15307221
delta logL = 0.017830884799

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.304e+00  2.799e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.080e+00  2.326e-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:  9.813e-01  1.629e-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.272e+00  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.95
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.08 +/- 0.23
Photon Flux (Free Index): 3.08e-07 +/- 8.56e-08
Energy Flux (Free Index): 1.32e-04 +/- 3.35e-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/5660/cmap_HighResolution_523152001_523411201_4FGL_J1504.4+1029_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.18e-07', energy_flux2='1.32e-04', photon_flux_error='6.80e-08', dlogl='1.78e-02', energy_flux='1.29e-04', photon_flux2='3.08e-07', job_status='DONE', time_completed='2021-09-10 21:55:32.260566', photon_index_error2='0.23', photon_index2='2.08', ts='58.15', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.35e-05', EG='1.26', time_epoch_completed='1631336132.26', return_code='0', job_id='5660', GAL2='0.98', EG2='1.27', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='8.56e-08', ts2='57.95', photon_index='2.12' WHERE bin_id='1095' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:55:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 5660: <4FGL_J1504.4+1029_daily_bin1095> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1095> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:40:59 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:41: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:41:00 2021
Terminated at Fri Sep 10 21:55:33 2021
Results reported at Fri Sep 10 21:55:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1095 226.103 10.4978 523152001 523411201 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 :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

