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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin595
RA = 226.103, Dec = 10.4978
tmin = 393552001, tmax = 393811201
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='314', job_status='RUN', time_executed='2021-09-10 21:26:31.957132', time_epoch_executed='1631334391.96' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314/ft1_4FGL_J1504.4+1029_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314/ft2_4FGL_J1504.4+1029_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314/ft1_4FGL_J1504.4+1029_daily_bin595.fits outfile=/scratch/kocevski/314/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin595.fits ra=226.103 dec=10.4978 rad=12.0 tmin=393552001.0 tmax=393811201.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 3.53
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/314/ft2_4FGL_J1504.4+1029_daily_bin595.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/314/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin595.fits evtable="EVENTS" outfile="/scratch/kocevski/314/ft1_filtered_4FGL_J1504.4+1029_daily_bin595.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/314/ft1_filtered_4FGL_J1504.4+1029_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/314/ft2_4FGL_J1504.4+1029_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/314/ltcube_393552001_393811201_4FGL_J1504.4+1029_daily_bin595.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/314/ft2_4FGL_J1504.4+1029_daily_bin595.fits
.....................!
real 11.82
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314/ft1_filtered_4FGL_J1504.4+1029_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/314/ft2_4FGL_J1504.4+1029_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/314/ltcube_393552001_393811201_4FGL_J1504.4+1029_daily_bin595.fits outfile=/scratch/kocevski/314/expmap_393552001_393811201_4FGL_J1504.4+1029_daily_bin595.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/314/ltcube_393552001_393811201_4FGL_J1504.4+1029_daily_bin595.fits
.....................!
real 190.14
user 185.72
sys 4.04

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/314/ft1_filtered_4FGL_J1504.4+1029_daily_bin595.fits scfile=/scratch/kocevski/314/ft2_4FGL_J1504.4+1029_daily_bin595.fits outfile=/scratch/kocevski/314/cmap_393552001_393811201_4FGL_J1504.4+1029_daily_bin595.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/314/ft1_filtered_4FGL_J1504.4+1029_daily_bin595.fits scfile=/scratch/kocevski/314/ft2_4FGL_J1504.4+1029_daily_bin595.fits outfile=/scratch/kocevski/314/cmap_HighResolution_393552001_393811201_4FGL_J1504.4+1029_daily_bin595.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0833       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8005       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.826       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.766       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3529       1.0000         .10000E-03   10000.    
    17 'norm      '    33.778       1.0000         .10000E-03   10000.    
    18 'norm      '    4.8617       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.365       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.7717       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1249       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97898       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=   9071.404     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     4029 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.464       -.89349E-07** at limit **
   2  norm          .10000E-03    17.229       -.70904E-06** at limit **
   3  Prefactor     .10000E-03    2.4666        .79465E-07** at limit **
   4  Prefactor     .10000E-03    2.0398        .18938E-06** at limit **
   5  norm          2.0834        2.1117       -.83797E-08    .54528E-04
   6  Prefactor     .10000E-03    13.105        .41567E-06** at limit **
   7  Prefactor     .10000E-03    18.679        .50559E-06** at limit **
   8  norm          2.8005        9.0460        .10177E-05    .22167E-05
   9  Prefactor     40.765        27.872        .67982E-06    .65941E-03
  10  Prefactor     8.9074        13.841        .41797E-06   -.24300E-05
  11  Prefactor     .10000E-03    19.917        .19907E-05** at limit **
  12  Prefactor     .10454E-03    25.899       -.31807E-05** at limit **
  13  Prefactor     14.764        18.270       -.28417E-06    .74629E-04
  14  norm          .10000E-03    .44467E-01    .24383E-07** at limit **
  15  norm          .10000E-03    .72113       -.11386E-06** at limit **
  16  norm          3.3532        4.1805        .20483E-06   -.18747E-05
  17  norm          33.785        40.700        .54914E-06    .32302E-04
  18  norm          4.8625        3.4559        .13984E-05    .18420E-03
  19  Prefactor     .10000E-03    33.343        .13969E-05** at limit **
  20  Prefactor     .10000E-03    30.941       -.23826E-05** at limit **
  21  Prefactor     55.348        35.999       -.11515E-05   -.16712E-03
  22  Prefactor     .10000E-03    1.2464       -.13369E-07** at limit **
  23  Prefactor     6.8034        79.146        .90249E-05    .45711E-04
  24  Prefactor     .10000E-03    6.9523        .59584E-08** at limit **
  25  norm          .10000E-03    .83496        .36129E-07** at limit **
  26  Prefactor     .10000E-03    17.144       -.99644E-06** at limit **
  27  Normalizat    1.1253        .19388       -.30186E-05    .98630E-04
  28  Prefactor     .97881        .10794        .32614E-06   -.13700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.80055
  Prefactor  = 40.7646
  Prefactor  = 8.90741
  Prefactor  = 0.000100001
  Prefactor  = 0.00010454
  Prefactor  = 14.7644
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.35318
  norm       = 33.7853
  norm       = 4.86255
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 55.3485
  Prefactor  = 0.0001
  Prefactor  = 6.80339
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12529
  Prefactor  = 0.978811
 **********
 **   18 **HESSE 
 **********

 FCN=   9071.404     FROM HESSE     STATUS=OK           517 CALLS     4546 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4826        .14610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0512        .13288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0834        2.1174        .13542E-03   -1.5419    
   6  Prefactor     .10000E-03    13.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8005        8.9938        .24310E-03   -1.5373    
   9  Prefactor     40.765        29.982        .62735E-04   -1.4430    
  10  Prefactor     8.9074        13.831        .13429E-03   -1.5111    
  11  Prefactor     .10000E-03    20.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10454E-03    25.640        .11804       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.764        18.286        .10423E-03   -1.4939    
  14  norm          .10000E-03    .11351        .38947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .73655        .78861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3532        4.1695        .21181E-03   -1.5342    
  17  norm          33.785        40.765        .68949E-04   -1.4545    
  18  norm          4.8625        3.5051        .72708E-03   -1.5267    
  19  Prefactor     .10000E-03    33.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.348        36.442        .53910E-04   -1.4219    
  22  Prefactor     .10000E-03    1.2521        .10383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.8034        80.118        .15419E-03   -1.5186    
  24  Prefactor     .10000E-03    6.9582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .84726        .84976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1253        .23207        .30463E-03   -.88944    
  28  Prefactor     .97881        .13190        .19094E-03   -.93439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21867e-09
Minuit parameter uncertainties:
  1  6.39605e-06
  2  4.55751e-05
  3  5.73371e-06
  4  6.83518e-06
  5  2.11747
  6  4.13781e-05
  7  3.61326e-05
  8  8.99818
  9  29.9935
  10  13.8363
  11  0.000274577
  12  0.0215869
  13  18.2933
  14  2.03479e-06
  15  1.19091e-06
  16  4.16989
  17  40.7985
  18  3.50523
  19  0.000242822
  20  0.000267069
  21  36.4565
  22  1.85882e-06
  23  46.7719
  24  3.69998e-06
  25  2.80464e-07
  26  9.31995e-05
  27  0.232281
  28  0.131941
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.000e-04  2.035e-06  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.788e-01  1.319e-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.125e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.103 10.498
Photon Flux Upper Limit: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/314/likelihoodResults_393552001_393811201_4FGL_J1504.4+1029_daily_bin595.txt

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) = 9071.4053745
delta logL = -0.00110223785123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9071.35839444
delta logL = 0.0458778171233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23463E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98665       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9071.358     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      418 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23453E-02    .83643E-02    .11810E-03** at limit **
   2  alpha         5.0000        4.9854        .18561    ** at limit **
   3  Normalizat    1.1039        .23062        .30727E-03   -.55498E-04
   4  Prefactor     .98662        .13228        .19027E-03    .15485E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0023453
  alpha      = 5
  Normalizat = 1.10391
  Prefactor  = 0.986624
 **********
 **   18 **HESSE 
 **********

 FCN=   9071.358     FROM HESSE     STATUS=OK            25 CALLS      443 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23453E-02    .80808E-02    .47241E-05   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.9766        .74244E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1039        .22969        .12291E-04   -.89626    
   4  Prefactor     .98662        .13215        .38055E-04   -.93177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64804e-10
Minuit parameter uncertainties:
  1  0.00808076
  2  0.000240508
  3  0.229896
  4  0.13219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314': 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) = 9071.3583944
delta logL = 0.0458778637731

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.345e-03  8.081e-03  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  5.000e+00  2.405e-04  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.866e-01  1.322e-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.104e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.103 10.498

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/314/cmap_HighResolution_393552001_393811201_4FGL_J1504.4+1029_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-05', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-10 21:41:50.389459', job_id='314', GAL2='0.99', fit_tolerance='1e-08', EG2='1.10', EG='1.13', time_epoch_completed='1631335310.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.59e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='595' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:41:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 314: <4FGL_J1504.4+1029_daily_bin595> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin595 226.103 10.4978 393552001 393811201 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 :                                   912.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            939 sec.

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

