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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin743
RA = 226.103, Dec = 10.4978
tmin = 431913601, tmax = 432172801
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='2155', job_status='RUN', time_executed='2021-09-10 21:31:22.785071', time_epoch_executed='1631334682.79' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2155

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2155/ft1_4FGL_J1504.4+1029_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2155/ft2_4FGL_J1504.4+1029_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2155/ft1_4FGL_J1504.4+1029_daily_bin743.fits outfile=/scratch/kocevski/2155/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin743.fits ra=226.103 dec=10.4978 rad=12.0 tmin=431913601.0 tmax=432172801.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.28
user 5.02
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2155/ft1_filtered_4FGL_J1504.4+1029_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/2155/ft2_4FGL_J1504.4+1029_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/2155/ltcube_431913601_432172801_4FGL_J1504.4+1029_daily_bin743.fits outfile=/scratch/kocevski/2155/expmap_431913601_432172801_4FGL_J1504.4+1029_daily_bin743.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/2155/ltcube_431913601_432172801_4FGL_J1504.4+1029_daily_bin743.fits
.....................!
real 190.28
user 185.49
sys 4.47

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/2155/ft1_filtered_4FGL_J1504.4+1029_daily_bin743.fits scfile=/scratch/kocevski/2155/ft2_4FGL_J1504.4+1029_daily_bin743.fits outfile=/scratch/kocevski/2155/cmap_431913601_432172801_4FGL_J1504.4+1029_daily_bin743.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2155/ft1_filtered_4FGL_J1504.4+1029_daily_bin743.fits scfile=/scratch/kocevski/2155/ft2_4FGL_J1504.4+1029_daily_bin743.fits outfile=/scratch/kocevski/2155/cmap_HighResolution_431913601_432172801_4FGL_J1504.4+1029_daily_bin743.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=226.103 yref=10.4978 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6914       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7675       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .21578       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.579       1.0000         .10000E-03   10000.    
    14 'norm      '    .39932E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0188       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6175       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4221       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.364       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9526       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11455E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8075       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.791       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2857       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93187       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=   10134.00     FROM MIGRAD    STATUS=CONVERGED   1237 CALLS     4056 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.518        .18142E-02** at limit **
   2  norm          4.6925        11.604        .18579E-03    .28270E-04
   3  Prefactor     .10000E-03    10.997        .18142E-02** at limit **
   4  Prefactor     1.7712        6.9289        .15752E-02    .23907E-02
   5  norm          2.4367        2.4162        .15113E-03    .21213E-04
   6  Prefactor     .10000E-03    35.012        .18142E-02** at limit **
   7  Prefactor     .10000E-03    20.724        .18142E-02** at limit **
   8  norm          .17429        13.731        .94546E-01    .39435E-03
   9  Prefactor     .10000E-03    25.398        .18142E-02** at limit **
  10  Prefactor     8.6538        12.228        .68132E-03    .22303E-03
  11  Prefactor     6.8066        15.664        .15382E-03    .30156E-04
  12  Prefactor     .10000E-03    11.733        .18142E-02** at limit **
  13  Prefactor     17.558        31.462        .95527E-04   -.71644E-04
  14  norm          .39995E-01    .11320        .46882E-03    .34659E-02
  15  norm          4.0188        1.8631        .88209E-04    .30081E-03
  16  norm          4.6161        5.7983        .18731E-03    .18111E-03
  17  norm          .10000E-03    11.038        .18142E-02** at limit **
  18  norm          6.4223        3.3924        .12842E-03    .12464E-03
  19  Prefactor     11.350        42.167        .11884E-03   -.56058E-04
  20  Prefactor     5.9534        19.725        .16458E-03    .12986E-04
  21  Prefactor     .10001E-03    140.12        .36321E-02** at limit **
  22  Prefactor     2.8077        3.1502        .18298E-03    .14328E-03
  23  Prefactor     .10000E-03    18.768        .18142E-02** at limit **
  24  Prefactor     24.792        18.654        .80452E-04    .15827E-04
  25  norm          .10000E-03    .92033        .93229E-03** at limit **
  26  Prefactor     .10000E-03    20.915        .18142E-02** at limit **
  27  Normalizat    1.2858        .23608        .30025E-03   -.14918E-04
  28  Prefactor     .93181        .13363        .20053E-03   -.77832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.69246
  Prefactor  = 0.0001
  Prefactor  = 1.77117
  norm       = 2.43668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.174286
  Prefactor  = 0.0001
  Prefactor  = 8.65383
  Prefactor  = 6.80657
  Prefactor  = 0.000100001
  Prefactor  = 17.5578
  norm       = 0.0399945
  norm       = 4.01883
  norm       = 4.61614
  norm       = 0.0001
  norm       = 6.42233
  Prefactor  = 11.3498
  Prefactor  = 5.95341
  Prefactor  = 0.00010001
  Prefactor  = 2.80767
  Prefactor  = 0.0001
  Prefactor  = 24.7925
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2858
  Prefactor  = 0.931807
 **********
 **   18 **HESSE 
 **********

 FCN=   10134.00     FROM HESSE     STATUS=OK           503 CALLS     4559 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6925        11.603        .74317E-05   -1.5275    
   3  Prefactor     .10000E-03    11.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7712        6.9201        .63008E-04   -1.5442    
   5  norm          2.4367        2.4159        .60452E-05   -1.5396    
   6  Prefactor     .10000E-03    35.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .17429        12.614        .10014       -1.5624    
   9  Prefactor     .10000E-03    25.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6538        12.225        .27253E-04   -1.5120    
  11  Prefactor     6.8066        15.662        .61526E-05   -1.5186    
  12  Prefactor     .10000E-03    11.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.558        31.442        .38211E-05   -1.4870    
  14  norm          .39995E-01    .11289        .18753E-04   -1.5668    
  15  norm          4.0188        1.8629        .35284E-05   -1.5307    
  16  norm          4.6161        5.7960        .74923E-05   -1.5278    
  17  norm          .10000E-03    11.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4223        3.3922        .51369E-05   -1.5201    
  19  Prefactor     11.350        42.125        .47537E-05   -1.5034    
  20  Prefactor     5.9534        19.723        .65834E-05   -1.5220    
  21  Prefactor     .10001E-03    141.12        .72642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.8077        3.1499        .73191E-05   -1.5373    
  23  Prefactor     .10000E-03    18.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.792        18.652        .32181E-05   -1.4712    
  25  norm          .10000E-03    .92055        .18646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2858        .23614        .12010E-04   -.83991    
  28  Prefactor     .93181        .13379        .40106E-04   -.95038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77375e-08
Minuit parameter uncertainties:
  1  5.45125e-05
  2  11.6087
  3  1.81661e-05
  4  6.92327
  5  2.41596
  6  3.37744e-05
  7  3.76906e-05
  8  2.96519
  9  9.14625e-05
  10  12.229
  11  15.6714
  12  0.000239586
  13  31.4717
  14  0.112895
  15  1.86292
  16  5.79671
  17  1.29804e-05
  18  3.39231
  19  42.2353
  20  19.7444
  21  0.00243592
  22  3.15008
  23  5.18155e-05
  24  18.6568
  25  3.49139e-06
  26  3.04946e-05
  27  0.236336
  28  0.133837
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.999e-02  1.129e-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.318e-01  1.338e-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.286e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/2155/likelihoodResults_431913601_432172801_4FGL_J1504.4+1029_daily_bin743.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) = 10133.9750981
delta logL = 0.0239375111742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10133.9741702
delta logL = 0.0248654324714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43934E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4841       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93442       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=   10133.97     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      285 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43880E-01    .11828        .41852E-03    .11617E-02
   2  alpha         2.4831        1.6308        .51284E-01    .25826E-05
   3  Normalizat    1.2789        .22799        .30095E-03    .12088E-05
   4  Prefactor     .93424        .13172        .20030E-03    .14757E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0438803
  alpha      = 2.48312
  Normalizat = 1.27888
  Prefactor  = 0.934236
 **********
 **   18 **HESSE 
 **********

 FCN=   10133.97     FROM HESSE     STATUS=OK            27 CALLS      312 TOTAL
                     EDM=   .13E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43880E-01    .10823        .16741E-04   -1.5666    
   2  alpha         2.4831        1.5179        .20514E-02   -.67504E-02
   3  Normalizat    1.2789        .22847        .12038E-04   -.84199    
   4  Prefactor     .93424        .13178        .80119E-05   -.94955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33881e-14
Minuit parameter uncertainties:
  1  0.108235
  2  1.63126
  3  0.228646
  4  0.131822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2155': 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) = 10133.9741687
delta logL = 0.0248669777175

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.388e-02  1.082e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.483e+00  1.631e+00  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.342e-01  1.318e-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.279e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/2155/cmap_HighResolution_431913601_432172801_4FGL_J1504.4+1029_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-10 21:47:26.044054', job_id='2155', GAL2='0.93', fit_tolerance='1e-08', EG2='1.28', EG='1.29', time_epoch_completed='1631335646.04', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.49e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='743' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:47:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 2155: <4FGL_J1504.4+1029_daily_bin743> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin743> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:31:07 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:31:09 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:31:09 2021
Terminated at Fri Sep 10 21:47:26 2021
Results reported at Fri Sep 10 21:47:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin743 226.103 10.4978 431913601 432172801 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 :                                   960.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

