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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1354
RA = 226.103, Dec = 10.4978
tmin = 590284801, tmax = 590544001
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='7836', job_status='RUN', time_executed='2021-09-10 21:49:39.521861', time_epoch_executed='1631335779.52' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7836

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7836/ft1_4FGL_J1504.4+1029_daily_bin1354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7836/ft2_4FGL_J1504.4+1029_daily_bin1354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7836/ft1_4FGL_J1504.4+1029_daily_bin1354.fits outfile=/scratch/kocevski/7836/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1354.fits ra=226.103 dec=10.4978 rad=12.0 tmin=590284801.0 tmax=590544001.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.73
user 3.49
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7836/ft1_filtered_4FGL_J1504.4+1029_daily_bin1354.fits" evtable="EVENTS" scfile=/scratch/kocevski/7836/ft2_4FGL_J1504.4+1029_daily_bin1354.fits sctable="SC_DATA" outfile=/scratch/kocevski/7836/ltcube_590284801_590544001_4FGL_J1504.4+1029_daily_bin1354.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/7836/ft2_4FGL_J1504.4+1029_daily_bin1354.fits
.....................!
real 12.23
user 11.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7836/ft1_filtered_4FGL_J1504.4+1029_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/7836/ft2_4FGL_J1504.4+1029_daily_bin1354.fits sctable="SC_DATA" expcube=/scratch/kocevski/7836/ltcube_590284801_590544001_4FGL_J1504.4+1029_daily_bin1354.fits outfile=/scratch/kocevski/7836/expmap_590284801_590544001_4FGL_J1504.4+1029_daily_bin1354.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/7836/ltcube_590284801_590544001_4FGL_J1504.4+1029_daily_bin1354.fits
.....................!
real 191.52
user 186.36
sys 4.73

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/7836/ft1_filtered_4FGL_J1504.4+1029_daily_bin1354.fits scfile=/scratch/kocevski/7836/ft2_4FGL_J1504.4+1029_daily_bin1354.fits outfile=/scratch/kocevski/7836/cmap_590284801_590544001_4FGL_J1504.4+1029_daily_bin1354.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0270       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18112E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    24.243       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7127       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.777       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11952E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.256       1.0000         .10000E-03   10000.    
    14 'norm      '    .35812       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2363       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1788       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.9092       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.960       1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.373       1.0000         .10000E-03   10000.    
    25 'norm      '    9.3583       1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.014       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2052       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93899       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=   8009.370     FROM MIGRAD    STATUS=CONVERGED   1223 CALLS     4057 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.295        .18142E-02** at limit **
   2  norm          6.0256        15.436        .16355E-03   -.20853E-06
   3  Prefactor     .10000E-03    2.4161        .13576E-02** at limit **
   4  Prefactor     .10000E-03    2.4561        .13671E-02** at limit **
   5  norm          .10000E-03    4.1594        .34859E-03** at limit **
   6  Prefactor     .10000E-03    26.242        .18142E-02** at limit **
   7  Prefactor     .10003E-03    210.93        .81634E-02** at limit **
   8  norm          24.205        19.589        .81355E-04   -.23527E-03
   9  Prefactor     6.7155        24.484        .15487E-03   -.86620E-05
  10  Prefactor     21.777        19.399        .85832E-04   -.14570E-04
  11  Prefactor     .10000E-03    48.213        .36285E-03** at limit **
  12  Prefactor     .10000E-03    29.144        .18142E-02** at limit **
  13  Prefactor     22.265        38.447        .84904E-04   -.56640E-04
  14  norm          .35811        .16058        .23126E-04    .17206E-03
  15  norm          3.2364        2.3453        .10955E-03   -.17330E-04
  16  norm          1.1787        4.4864        .36086E-03    .49304E-04
  17  norm          .10000E-03    14.131        .18142E-02** at limit **
  18  norm          8.9093        4.2020        .12058E-03    .15557E-04
  19  Prefactor     .10000E-03    16.205        .18142E-02** at limit **
  20  Prefactor     .10001E-03    63.842        .18142E-02** at limit **
  21  Prefactor     .10000E-03    14.832        .18142E-02** at limit **
  22  Prefactor     .10001E-03    16.116        .34024E-02** at limit **
  23  Prefactor     18.959        23.238        .91983E-04   -.74157E-07
  24  Prefactor     31.374        24.661        .71535E-04   -.22758E-04
  25  norm          9.3580        3.7185        .10570E-03    .61307E-05
  26  Prefactor     23.013        34.228        .83497E-04    .41936E-05
  27  Normalizat    1.2051        .26524        .31575E-03   -.12235E-03
  28  Prefactor     .93907        .15173        .20489E-03   -.20354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.02563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  norm       = 24.2055
  Prefactor  = 6.71552
  Prefactor  = 21.7769
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 22.2649
  norm       = 0.358112
  norm       = 3.23636
  norm       = 1.17866
  norm       = 0.0001
  norm       = 8.90929
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 18.9587
  Prefactor  = 31.3743
  norm       = 9.35799
  Prefactor  = 23.0127
  Normalizat = 1.20515
  Prefactor  = 0.939075
 **********
 **   18 **HESSE 
 **********

 FCN=   8009.370     FROM HESSE     STATUS=OK           491 CALLS     4548 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0256        15.436        .65421E-05   -1.5217    
   3  Prefactor     .10000E-03    2.4162        .27151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4563        .27341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1597        .69717E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    216.18        .32653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.205        19.396        .16271E-04   -1.4724    
   9  Prefactor     6.7155        24.485        .61949E-05   -1.5190    
  10  Prefactor     21.777        19.400        .34333E-05   -1.4774    
  11  Prefactor     .10000E-03    48.215        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.265        38.438        .33962E-05   -1.4764    
  14  norm          .35811        .16058        .92502E-06   -1.5588    
  15  norm          3.2364        2.3452        .43821E-05   -1.5348    
  16  norm          1.1787        4.4862        .14434E-04   -1.5491    
  17  norm          .10000E-03    14.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.9093        4.2019        .48230E-05   -1.5111    
  19  Prefactor     .10000E-03    16.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    63.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    16.312        .68048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.959        23.238        .18397E-04   -1.4837    
  24  Prefactor     31.374        24.661        .14307E-04   -1.4587    
  25  norm          9.3580        3.7185        .42280E-05   -1.5096    
  26  Prefactor     23.013        34.228        .16699E-04   -1.4748    
  27  Normalizat    1.2051        .26554        .12630E-04   -.86444    
  28  Prefactor     .93907        .15190        .40978E-04   -.94789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20833e-09
Minuit parameter uncertainties:
  1  4.40369e-05
  2  15.4466
  3  8.13973e-07
  4  1.65824e-06
  5  8.71456e-06
  6  0.000205613
  7  0.00509684
  8  19.4009
  9  24.5217
  10  19.4051
  11  0.000562064
  12  2.35739e-05
  13  38.4808
  14  0.160578
  15  2.34524
  16  4.48748
  17  7.75256e-05
  18  4.20208
  19  3.87516e-05
  20  0.00118113
  21  0.000167869
  22  0.000908825
  23  23.2489
  24  24.6686
  25  3.71862
  26  34.2574
  27  0.265833
  28  0.151966
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.581e-01  1.606e-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.391e-01  1.520e-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.205e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.33
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 8.72e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 3.53e-05 +/- 1.58e-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) = 8009.29447051
delta logL = 0.0753353836699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8009.29206199
delta logL = 0.077743900596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35707       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3392       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94623       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=   8009.292     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      239 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35707        .15943        .22463E-04    .18585E-02
   2  alpha         2.3392        .54473        .14374E-01    .22023E-04
   3  Normalizat    1.1858        .26224        .31793E-03   -.85821E-06
   4  Prefactor     .94623        .15079        .20418E-03    .43151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.357068
  alpha      = 2.33916
  Normalizat = 1.18575
  Prefactor  = 0.946225
 **********
 **   18 **HESSE 
 **********

 FCN=   8009.292     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35707        .15849        .89850E-06   -1.5588    
   2  alpha         2.3392        .54121        .57496E-03   -.64379E-01
   3  Normalizat    1.1858        .26250        .12717E-04   -.87044    
   4  Prefactor     .94623        .15093        .81673E-05   -.94544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19308e-11
Minuit parameter uncertainties:
  1  0.158495
  2  0.545546
  3  0.262788
  4  0.150999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7836': 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) = 8009.29206199
delta logL = 0.0777439007998

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.571e-01  1.585e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.339e+00  5.455e-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.462e-01  1.510e-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.186e+00  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.47
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.34 +/- 0.55
Photon Flux (Free Index): 1.03e-07 +/- 5.97e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.51e-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/7836/cmap_HighResolution_590284801_590544001_4FGL_J1504.4+1029_daily_bin1354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.72e-08', energy_flux2='3.28e-05', photon_flux_error='3.91e-08', dlogl='7.77e-02', energy_flux='3.53e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-10 22:02:06.174163', photon_index_error2='0.55', photon_index2='2.34', ts='12.33', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.21', time_epoch_completed='1631336526.17', return_code='0', job_id='7836', GAL2='0.95', EG2='1.19', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='5.97e-08', ts2='12.47', photon_index='2.12' WHERE bin_id='1354' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:02:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 7836: <4FGL_J1504.4+1029_daily_bin1354> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1354 226.103 10.4978 590284801 590544001 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 :                                   723.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

