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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1419
RA = 226.103, Dec = 10.4978
tmin = 607132801, tmax = 607392001
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='7932', job_status='RUN', time_executed='2021-09-10 21:48:35.313219', time_epoch_executed='1631335715.31' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7932

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7932/ft1_4FGL_J1504.4+1029_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7932/ft2_4FGL_J1504.4+1029_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7932/ft1_4FGL_J1504.4+1029_daily_bin1419.fits outfile=/scratch/kocevski/7932/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1419.fits ra=226.103 dec=10.4978 rad=12.0 tmin=607132801.0 tmax=607392001.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 5.30
user 5.03
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7932/ft1_filtered_4FGL_J1504.4+1029_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/7932/ft2_4FGL_J1504.4+1029_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/7932/ltcube_607132801_607392001_4FGL_J1504.4+1029_daily_bin1419.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/7932/ft2_4FGL_J1504.4+1029_daily_bin1419.fits
.....................!
real 11.58
user 11.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7932/ft1_filtered_4FGL_J1504.4+1029_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/7932/ft2_4FGL_J1504.4+1029_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/7932/ltcube_607132801_607392001_4FGL_J1504.4+1029_daily_bin1419.fits outfile=/scratch/kocevski/7932/expmap_607132801_607392001_4FGL_J1504.4+1029_daily_bin1419.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/7932/ltcube_607132801_607392001_4FGL_J1504.4+1029_daily_bin1419.fits
.....................!
real 192.29
user 186.86
sys 5.06

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/7932/ft1_filtered_4FGL_J1504.4+1029_daily_bin1419.fits scfile=/scratch/kocevski/7932/ft2_4FGL_J1504.4+1029_daily_bin1419.fits outfile=/scratch/kocevski/7932/cmap_607132801_607392001_4FGL_J1504.4+1029_daily_bin1419.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7932/ft1_filtered_4FGL_J1504.4+1029_daily_bin1419.fits scfile=/scratch/kocevski/7932/ft2_4FGL_J1504.4+1029_daily_bin1419.fits outfile=/scratch/kocevski/7932/cmap_HighResolution_607132801_607392001_4FGL_J1504.4+1029_daily_bin1419.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7910       1.0000         .10000E-03   10000.    
     2 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3989       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5973       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .85614E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    32.040       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1067       1.0000         .10000E-03   10000.    
    15 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10540E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8750       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.132       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    57.716       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.2425       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1921       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0614       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=   7321.508     FROM MIGRAD    STATUS=CONVERGED   1230 CALLS     4124 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7734        31.693        .14366E-03   -.15352E-04
   2  norm          .10000E-03    9.3826        .18142E-02** at limit **
   3  Prefactor     3.3979        6.2007        .21945E-03    .82889E-05
   4  Prefactor     .10000E-03    5.7244        .18142E-02** at limit **
   5  norm          4.5983        3.5845        .13817E-03   -.11066E-03
   6  Prefactor     .10000E-03    22.997        .18142E-02** at limit **
   7  Prefactor     .10000E-03    75.996        .13762    ** at limit **
   8  norm          31.991        32.094        .70788E-04   -.15418E-04
   9  Prefactor     .10000E-03    107.08        .62587E-02** at limit **
  10  Prefactor     .10000E-03    20.529        .18142E-02** at limit **
  11  Prefactor     .10000E-03    11.035        .18142E-02** at limit **
  12  Prefactor     .10000E-03    10.140        .18142E-02** at limit **
  13  Prefactor     .10000E-03    24.012        .18142E-02** at limit **
  14  norm          1.1068        .25534        .19662E-04   -.20584E-02
  15  norm          .10000E-03    1.6298        .20849E-03** at limit **
  16  norm          .10000E-03    10.296        .30437E-02** at limit **
  17  norm          .10000E-03    19.865        .18142E-02** at limit **
  18  norm          2.8747        3.2101        .15722E-03   -.23212E-04
  19  Prefactor     .10000E-03    16.246        .18142E-02** at limit **
  20  Prefactor     .10000E-03    21.425        .18142E-02** at limit **
  21  Prefactor     29.122        32.166        .74229E-04   -.19757E-04
  22  Prefactor     .10000E-03    1.9722        .11683E-02** at limit **
  23  Prefactor     57.715        46.603        .52806E-04   -.10248E-04
  24  Prefactor     3.2411        14.520        .11247E-02   -.21794E-04
  25  norm          1.1922        1.3648        .10447E-03   -.92609E-04
  26  Prefactor     .10000E-03    33.377        .18142E-02** at limit **
  27  Normalizat    1.0552        .26855        .32925E-03   -.23173E-03
  28  Prefactor     1.0614        .15490        .19661E-03   -.23462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77336
  norm       = 0.0001
  Prefactor  = 3.39785
  Prefactor  = 0.0001
  norm       = 4.59834
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 31.9912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10675
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.8747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.1223
  Prefactor  = 0.0001
  Prefactor  = 57.715
  Prefactor  = 3.24112
  norm       = 1.19223
  Prefactor  = 0.0001
  Normalizat = 1.0552
  Prefactor  = 1.06139
 **********
 **   18 **HESSE 
 **********

 FCN=   7321.508     FROM HESSE     STATUS=OK           503 CALLS     4627 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7734        31.697        .57464E-05   -1.5150    
   2  norm          .10000E-03    9.3826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3979        6.2005        .87779E-05   -1.5339    
   4  Prefactor     .10000E-03    5.7278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5983        3.5842        .55270E-05   -1.5279    
   6  Prefactor     .10000E-03    22.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    75.248        .13832       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          31.991        32.061        .28315E-05   -1.4576    
   9  Prefactor     .10000E-03    110.52        .25035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.536        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.013        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1068        .25533        .78648E-06   -1.5498    
  15  norm          .10000E-03    1.6298        .41698E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.410        .60875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8747        3.2101        .62889E-05   -1.5369    
  19  Prefactor     .10000E-03    16.247        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.122        32.160        .29692E-05   -1.4628    
  22  Prefactor     .10000E-03    1.9724        .23366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     57.715        46.602        .10561E-04   -1.4187    
  24  Prefactor     3.2411        14.517        .44987E-04   -1.5348    
  25  norm          1.1922        1.3648        .41787E-05   -1.5490    
  26  Prefactor     .10000E-03    33.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0552        .26874        .13170E-04   -.91204    
  28  Prefactor     1.0614        .15505        .39322E-04   -.90710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23903e-10
Minuit parameter uncertainties:
  1  31.4225
  2  3.4369e-05
  3  6.20163
  4  7.1358e-05
  5  3.5844
  6  1.08766e-05
  7  0.000933648
  8  32.0781
  9  0.000309061
  10  5.69793e-05
  11  3.93204e-05
  12  7.47218e-06
  13  2.72882e-06
  14  0.255333
  15  1.59411e-05
  16  7.07555e-05
  17  7.46586e-07
  18  3.21025
  19  6.3476e-06
  20  4.24754e-05
  21  32.1786
  22  7.31909e-06
  23  46.6312
  24  13.7243
  25  1.36488
  26  1.01482e-05
  27  0.269085
  28  0.155115
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.107e+00  2.553e-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.061e+00  1.551e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.055e+00  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 47.39
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.69e-07 +/- 6.21e-08
Energy Flux (Fixed Index): 1.09e-04 +/- 2.52e-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) = 7319.90231303
delta logL = 1.60557543029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7319.90058887
delta logL = 1.60729959035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97498       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5542       1.0000          .0000       5.0000    
     3 'Normalizat'    .96323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0982       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=   7319.901     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      241 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97497        .25102        .17254E-04    .45801E-02
   2  alpha         2.5543        .25202        .66921E-03    .79879E-04
   3  Normalizat    .96320        .26264        .34209E-03    .28016E-03
   4  Prefactor     1.0982        .15563        .19356E-03    .89394E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.974969
  alpha      = 2.55427
  Normalizat = 0.963197
  Prefactor  = 1.09823
 **********
 **   18 **HESSE 
 **********

 FCN=   7319.901     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97497        .25061        .69015E-06   -1.5510    
   2  alpha         2.5543        .25161        .26768E-04    .21711E-01
   3  Normalizat    .96320        .26288        .13684E-04   -.94274    
   4  Prefactor     1.0982        .15576        .38712E-04   -.89523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12675e-10
Minuit parameter uncertainties:
  1  0.250614
  2  0.252032
  3  0.263231
  4  0.155829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7932': 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) = 7319.90058886
delta logL = 1.60729959779

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.750e-01  2.506e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.554e+00  2.520e-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.098e+00  1.558e-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:  9.632e-01  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 50.79
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.55 +/- 0.25
Photon Flux (Free Index): 3.41e-07 +/- 8.11e-08
Energy Flux (Free Index): 9.02e-05 +/- 2.11e-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/7932/cmap_HighResolution_607132801_607392001_4FGL_J1504.4+1029_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-07', energy_flux2='9.02e-05', photon_flux_error='6.21e-08', dlogl='1.61e+00', energy_flux='1.09e-04', photon_flux2='3.41e-07', job_status='DONE', time_completed='2021-09-10 22:01:13.263161', photon_index_error2='0.25', photon_index2='2.55', ts='47.39', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='1.06', time_epoch_completed='1631336473.26', return_code='0', job_id='7932', GAL2='1.10', EG2='0.96', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='8.11e-08', ts2='50.79', photon_index='2.12' WHERE bin_id='1419' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:01:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 7932: <4FGL_J1504.4+1029_daily_bin1419> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1419> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:46:19 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:46:21 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:46:21 2021
Terminated at Fri Sep 10 22:01:14 2021
Results reported at Fri Sep 10 22:01:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1419 226.103 10.4978 607132801 607392001 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 :                                   713.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            895 sec.

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

