/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 5 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1504.4+1029_daily_bin342
RA = 226.103, Dec = 10.4978
tmin = 327974401, tmax = 328233601
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='998793', job_status='RUN', time_executed='2021-09-10 21:21:20.150844', time_epoch_executed='1631334080.15' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998793

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998793/ft1_4FGL_J1504.4+1029_daily_bin342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998793/ft2_4FGL_J1504.4+1029_daily_bin342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998793/ft1_4FGL_J1504.4+1029_daily_bin342.fits outfile=/scratch/kocevski/998793/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin342.fits ra=226.103 dec=10.4978 rad=12.0 tmin=327974401.0 tmax=328233601.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.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998793/ft2_4FGL_J1504.4+1029_daily_bin342.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/998793/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin342.fits evtable="EVENTS" outfile="/scratch/kocevski/998793/ft1_filtered_4FGL_J1504.4+1029_daily_bin342.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998793/ft1_filtered_4FGL_J1504.4+1029_daily_bin342.fits" evtable="EVENTS" scfile=/scratch/kocevski/998793/ft2_4FGL_J1504.4+1029_daily_bin342.fits sctable="SC_DATA" outfile=/scratch/kocevski/998793/ltcube_327974401_328233601_4FGL_J1504.4+1029_daily_bin342.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/998793/ft2_4FGL_J1504.4+1029_daily_bin342.fits
.....................!
real 12.00
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998793/ft1_filtered_4FGL_J1504.4+1029_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/998793/ft2_4FGL_J1504.4+1029_daily_bin342.fits sctable="SC_DATA" expcube=/scratch/kocevski/998793/ltcube_327974401_328233601_4FGL_J1504.4+1029_daily_bin342.fits outfile=/scratch/kocevski/998793/expmap_327974401_328233601_4FGL_J1504.4+1029_daily_bin342.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/998793/ltcube_327974401_328233601_4FGL_J1504.4+1029_daily_bin342.fits
.....................!
real 191.11
user 185.36
sys 5.23

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/998793/ft1_filtered_4FGL_J1504.4+1029_daily_bin342.fits scfile=/scratch/kocevski/998793/ft2_4FGL_J1504.4+1029_daily_bin342.fits outfile=/scratch/kocevski/998793/cmap_327974401_328233601_4FGL_J1504.4+1029_daily_bin342.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998793/ft1_filtered_4FGL_J1504.4+1029_daily_bin342.fits scfile=/scratch/kocevski/998793/ft2_4FGL_J1504.4+1029_daily_bin342.fits outfile=/scratch/kocevski/998793/cmap_HighResolution_327974401_328233601_4FGL_J1504.4+1029_daily_bin342.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.952       1.0000         .10000E-03   10000.    
     2 'norm      '    8.5880       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3971       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4248       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.770       1.0000         .10000E-03   10000.    
     8 'norm      '    .77099E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.177       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.578       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2013       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0156       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8512       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11841E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32949E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    55.799       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.3227       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .78251       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2508       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=   7114.924     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3532 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.944        45.028       -.66035E-05   -.87968E-05
   2  norm          8.5923        36.707        .93314E-05   -.18146E-05
   3  Prefactor     4.3942        5.7961        .23191E-05   -.12934E-03
   4  Prefactor     6.4267        6.3887       -.81687E-08   -.23418E-03
   5  norm          1.3538        3.2045       -.10196E-05   -.11059E-02
   6  Prefactor     .10000E-03    43.825       -.42228E-05** at limit **
   7  Prefactor     38.770        36.572        .17978E-06   -.59801E-05
   8  norm          .10000E-03    21.282        .88528E-07** at limit **
   9  Prefactor     42.186        33.899        .32650E-05    .11081E-04
  10  Prefactor     .10000E-03    10.462       -.96079E-07** at limit **
  11  Prefactor     7.3124        11.109       -.46273E-06   -.43604E-04
  12  Prefactor     17.582        31.345       -.26896E-06   -.48055E-05
  13  Prefactor     .10000E-03    70.522       -.14325E-05** at limit **
  14  norm          1.2013        .28074       -.65196E-08    .62942E-03
  15  norm          2.0154        3.2879       -.46930E-06   -.57736E-03
  16  norm          .10000E-03    2.6452        .32950E-07** at limit **
  17  norm          .10000E-03    24.972        .88588E-06** at limit **
  18  norm          4.8512        4.1925        .37529E-06    .37107E-03
  19  Prefactor     .10000E-03    65.245        .95721E-05** at limit **
  20  Prefactor     .10004E-03    286.22       -.97609E-04** at limit **
  21  Prefactor     .10000E-03    21.039        .28242E-06** at limit **
  22  Prefactor     .10000E-03    6.4131        .23015E-07** at limit **
  23  Prefactor     55.794        46.707       -.41689E-05   -.24925E-05
  24  Prefactor     .10000E-03    7.9888       -.70779E-08** at limit **
  25  norm          2.3227        2.1538        .49255E-07    .81011E-04
  26  Prefactor     .10000E-03    20.995       -.27062E-06** at limit **
  27  Normalizat    .78249        .26815        .64399E-06    .18270E-03
  28  Prefactor     1.2508        .14941        .10009E-06    .50497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.9444
  norm       = 8.59235
  Prefactor  = 4.39424
  Prefactor  = 6.42672
  norm       = 1.35384
  Prefactor  = 0.0001
  Prefactor  = 38.7696
  norm       = 0.0001
  Prefactor  = 42.1855
  Prefactor  = 0.0001
  Prefactor  = 7.31243
  Prefactor  = 17.582
  Prefactor  = 0.0001
  norm       = 1.2013
  norm       = 2.01542
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.85123
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.7944
  Prefactor  = 0.0001
  norm       = 2.32274
  Prefactor  = 0.0001
  Normalizat = 0.782492
  Prefactor  = 1.25077
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.924     FROM HESSE     STATUS=OK           521 CALLS     4053 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.944        45.082        .52699E-04   -1.4184    
   2  norm          8.5923        36.425        .13679E-03   -1.5122    
   3  Prefactor     4.3942        5.7660        .19206E-03   -1.5289    
   4  Prefactor     6.4267        6.3765        .15834E-03   -1.5201    
   5  norm          1.3538        3.2029        .22477E-03   -1.5475    
   6  Prefactor     .10000E-03    43.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.770        30.405        .64371E-04   -1.4462    
   8  norm          .10000E-03    91.832        .61932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.186        33.856        .61726E-04   -1.4408    
  10  Prefactor     .10000E-03    10.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3124        11.096        .14837E-03   -1.5167    
  12  Prefactor     17.582        31.262        .95530E-04   -1.4869    
  13  Prefactor     .10000E-03    70.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2013        .28082        .20345E-04   -1.5489    
  15  norm          2.0154        3.2610        .17658E-03   -1.5424    
  16  norm          .10000E-03    2.6472        .13398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    25.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.8512        4.1861        .15235E-03   -1.5267    
  19  Prefactor     .10000E-03    65.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    282.93        .42700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.6039        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     55.794        46.802        .53700E-04   -1.4213    
  24  Prefactor     .10000E-03    7.9907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3227        2.1544        .11606E-03   -1.5403    
  26  Prefactor     .10000E-03    20.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .78249        .30218        .40100E-03   -1.0072    
  28  Prefactor     1.2508        .17030        .19383E-03   -.84783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73351e-09
Minuit parameter uncertainties:
  1  45.1081
  2  35.419
  3  5.76674
  4  6.37722
  5  3.20335
  6  3.36583e-06
  7  30.4169
  8  0.000395872
  9  33.8715
  10  9.04848e-07
  11  11.0988
  12  31.2908
  13  7.97694e-05
  14  0.280825
  15  3.26132
  16  2.23307e-07
  17  2.47184e-06
  18  4.18638
  19  8.28242e-05
  20  0.00685372
  21  1.05675e-05
  22  8.36542e-06
  23  46.833
  24  3.32574e-07
  25  2.15444
  26  5.39174e-08
  27  0.302828
  28  0.170374
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.201e+00  2.808e-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.251e+00  1.704e-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:  7.825e-01  3.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.50
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.92e-07 +/- 6.83e-08
Energy Flux (Fixed Index): 1.18e-04 +/- 2.77e-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) = 7113.57100458
delta logL = 1.35327805014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7113.57001997
delta logL = 1.35426266761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0979       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5838       1.0000          .0000       5.0000    
     3 'Normalizat'    .63571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3099       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=   7113.570     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0979        3.0933        .40234E-02    .82832E-03
   2  alpha         2.5838        3.7029        .16946        .61206E-04
   3  Normalizat    .63571        .24880        .99391E-01    .49840E-04
   4  Prefactor     1.3099        .12695        .32440E-01   -.18830E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09792
  alpha      = 2.58378
  Normalizat = 0.63571
  Prefactor  = 1.30986
 **********
 **   18 **HESSE 
 **********

 FCN=   7113.570     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0979        .28762        .17814E-04   -1.5498    
   2  alpha         2.5838        .29925        .72863E-02    .33517E-01
   3  Normalizat    .63571        .29831        .44045E-03   -1.0649    
   4  Prefactor     1.3099        .17405        .18996E-03   -.83014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62487e-12
Minuit parameter uncertainties:
  1  0.287623
  2  0.299975
  3  0.299074
  4  0.174131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998793': 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) = 7113.57001997
delta logL = 1.35426266806

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.098e+00  2.876e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.584e+00  3.000e-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.310e+00  1.741e-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:  6.357e-01  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 48.70
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.58 +/- 0.30
Photon Flux (Free Index): 3.95e-07 +/- 1.01e-07
Energy Flux (Free Index): 1.02e-04 +/- 2.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/998793/cmap_HighResolution_327974401_328233601_4FGL_J1504.4+1029_daily_bin342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-07', energy_flux2='1.02e-04', photon_flux_error='6.83e-08', dlogl='1.35e+00', energy_flux='1.18e-04', photon_flux2='3.95e-07', job_status='DONE', time_completed='2021-09-10 21:32:27.944074', photon_index_error2='0.30', photon_index2='2.58', ts='45.50', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='0.78', time_epoch_completed='1631334747.94', return_code='0', job_id='998793', GAL2='1.31', EG2='0.64', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='1.01e-07', ts2='48.70', photon_index='2.12' WHERE bin_id='342' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:32:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 998793: <4FGL_J1504.4+1029_daily_bin342> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin342> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:21:04 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:21:06 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:21:06 2021
Terminated at Fri Sep 10 21:32:28 2021
Results reported at Fri Sep 10 21:32:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin342 226.103 10.4978 327974401 328233601 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 :                                   664.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            684 sec.

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

