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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin406
RA = 226.103, Dec = 10.4978
tmin = 344563201, tmax = 344822401
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='998887', job_status='RUN', time_executed='2021-09-10 21:21:26.906039', time_epoch_executed='1631334086.91' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998887/ft1_4FGL_J1504.4+1029_daily_bin406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998887/ft2_4FGL_J1504.4+1029_daily_bin406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998887/ft1_4FGL_J1504.4+1029_daily_bin406.fits outfile=/scratch/kocevski/998887/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin406.fits ra=226.103 dec=10.4978 rad=12.0 tmin=344563201.0 tmax=344822401.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.36
user 3.14
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998887/ft1_filtered_4FGL_J1504.4+1029_daily_bin406.fits evtable="EVENTS" scfile=/scratch/kocevski/998887/ft2_4FGL_J1504.4+1029_daily_bin406.fits sctable="SC_DATA" expcube=/scratch/kocevski/998887/ltcube_344563201_344822401_4FGL_J1504.4+1029_daily_bin406.fits outfile=/scratch/kocevski/998887/expmap_344563201_344822401_4FGL_J1504.4+1029_daily_bin406.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/998887/ltcube_344563201_344822401_4FGL_J1504.4+1029_daily_bin406.fits
.....................!
real 191.44
user 185.67
sys 5.46

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/998887/ft1_filtered_4FGL_J1504.4+1029_daily_bin406.fits scfile=/scratch/kocevski/998887/ft2_4FGL_J1504.4+1029_daily_bin406.fits outfile=/scratch/kocevski/998887/cmap_344563201_344822401_4FGL_J1504.4+1029_daily_bin406.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.56
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.457       1.0000         .10000E-03   10000.    
     2 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8850       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14394E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.629       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.080       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.578       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8041       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .17881       1.0000         .10000E-03   10000.    
    15 'norm      '    .74032       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.649       1.0000         .10000E-03   10000.    
    18 'norm      '    6.3206       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    72.518       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2238       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .62116       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2245       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=   7463.935     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     3518 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.459        32.441        .81622E-07   -.22383E-04
   2  norm          .10000E-03    21.048        .92740E-06** at limit **
   3  Prefactor     5.8768        9.2278        .21566E-05    .65398E-04
   4  Prefactor     .10000E-03    8.6763       -.12233E-06** at limit **
   5  norm          .10010E-03    2.1730        .13172E-05** at limit **
   6  Prefactor     .10000E-03    36.915       -.14906E-05** at limit **
   7  Prefactor     .10000E-03    24.447        .27430E-05** at limit **
   8  norm          11.631        13.351       -.40591E-06   -.20263E-03
   9  Prefactor     20.043        23.882        .17558E-05    .25582E-04
  10  Prefactor     33.583        23.802       -.87322E-07   -.16015E-04
  11  Prefactor     2.8070        16.008        .79179E-05    .10842E-03
  12  Prefactor     .10000E-03    9.7791       -.11157E-05** at limit **
  13  Prefactor     .10000E-03    18.805       -.10823E-05** at limit **
  14  norm          .17877        .12612        .12904E-07    .36976E-03
  15  norm          .73819        1.7237        .13338E-06   -.11883E-03
  16  norm          .10000E-03    4.4675        .20826E-07** at limit **
  17  norm          17.646        37.175        .72140E-06    .67382E-06
  18  norm          6.3214        4.9989        .26936E-06    .88555E-04
  19  Prefactor     .10000E-03    36.125       -.11434E-05** at limit **
  20  Prefactor     .10000E-03    11.002        .37931E-06** at limit **
  21  Prefactor     .10000E-03    12.463        .50520E-07** at limit **
  22  Prefactor     .10000E-03    3.5195        .84513E-08** at limit **
  23  Prefactor     72.519        43.325        .16397E-06    .49420E-05
  24  Prefactor     .10000E-03    11.698        .50066E-06** at limit **
  25  norm          1.2241        2.1477        .17088E-06    .54910E-04
  26  Prefactor     .10000E-03    66.838        .90935E-06** at limit **
  27  Normalizat    .62078        .23220       -.20595E-05    .35212E-04
  28  Prefactor     1.2247        .13143        .14102E-06    .10805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4595
  norm       = 0.0001
  Prefactor  = 5.87681
  Prefactor  = 0.0001
  norm       = 0.000100096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6312
  Prefactor  = 20.0426
  Prefactor  = 33.5832
  Prefactor  = 2.80698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.178771
  norm       = 0.738194
  norm       = 0.0001
  norm       = 17.6458
  norm       = 6.32144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.5191
  Prefactor  = 0.0001
  norm       = 1.22408
  Prefactor  = 0.0001
  Normalizat = 0.620778
  Prefactor  = 1.22467
 **********
 **   18 **HESSE 
 **********

 FCN=   7463.935     FROM HESSE     STATUS=OK           523 CALLS     4041 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.459        32.460        .11836E-03   -1.5031    
   2  norm          .10000E-03    21.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8768        9.2512        .82770E-03   -1.5223    
   4  Prefactor     .10000E-03    8.9509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10010E-03    18.185        .21664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.631        13.366        .11747E-03   -1.5026    
   9  Prefactor     20.043        23.842        .89382E-04   -1.4812    
  10  Prefactor     33.583        23.783        .69153E-04   -1.4548    
  11  Prefactor     2.8070        16.154        .12147E-02   -1.5373    
  12  Prefactor     .10000E-03    9.8398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .17877        .12154        .24666E-03   -1.5623    
  15  norm          .73819        1.5803        .15978E-02   -1.5536    
  16  norm          .10000E-03    4.5320        .17832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.646        37.187        .95336E-04   -1.4868    
  18  norm          6.3214        4.9328        .15966E-03   -1.5205    
  19  Prefactor     .10000E-03    36.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5977        .15824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     72.519        43.267        .47144E-04   -1.4003    
  24  Prefactor     .10000E-03    11.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2241        2.1033        .16270E-03   -1.5487    
  26  Prefactor     .10000E-03    66.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .62078        .25800        .39012E-03   -1.0711    
  28  Prefactor     1.2247        .14959        .17481E-03   -.85576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39299e-08
Minuit parameter uncertainties:
  1  32.5099
  2  3.06575e-06
  3  9.25343
  4  0.000112064
  5  0.00264009
  6  5.07926e-05
  7  3.74004e-05
  8  13.3691
  9  23.8531
  10  23.7901
  11  13.4729
  12  5.23545e-05
  13  1.27943e-05
  14  0.121537
  15  1.58043
  16  1.84318e-06
  17  37.2354
  18  4.93308
  19  6.42755e-05
  20  2.91612e-06
  21  4.58447e-06
  22  3.39817e-06
  23  43.2859
  24  3.84049e-06
  25  2.1034
  26  7.85236e-06
  27  0.258505
  28  0.149647
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.788e-01  1.215e-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.225e+00  1.496e-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.208e-01  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.20e-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) = 7463.74462261
delta logL = 0.190538154396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7463.74376339
delta logL = 0.191397374776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15243       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7263       1.0000          .0000       5.0000    
     3 'Normalizat'    .63843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2187       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=   7463.744     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15244        .10964        .51183E-02    .97309E-03
   2  alpha         1.7263        .43407        .41445       -.94193E-04
   3  Normalizat    .63827        .20984        .86934E-01    .36054E-04
   4  Prefactor     1.2188        .12853        .34202E-01   -.66489E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.152437
  alpha      = 1.72631
  Normalizat = 0.638272
  Prefactor  = 1.21883
 **********
 **   18 **HESSE 
 **********

 FCN=   7463.744     FROM HESSE     STATUS=OK            35 CALLS      237 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15244        .12506        .23289E-03   -1.5630    
   2  alpha         1.7263        .60970        .15264E-01   -.31464    
   3  Normalizat    .63827        .23705        .38508E-03   -1.0638    
   4  Prefactor     1.2188        .14552        .17516E-03   -.85754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03619e-10
Minuit parameter uncertainties:
  1  0.125064
  2  0.616593
  3  0.237434
  4  0.145572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998887': 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) = 7463.74376311
delta logL = 0.191397660235

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.524e-01  1.251e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.726e+00  6.166e-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.219e+00  1.456e-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.383e-01  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.66
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.73 +/- 0.62
Photon Flux (Free Index): 2.95e-08 +/- 2.88e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.99e-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/998887/cmap_HighResolution_344563201_344822401_4FGL_J1504.4+1029_daily_bin406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='2.28e-05', photon_flux_error='2.96e-08', dlogl='1.91e-01', energy_flux='1.76e-05', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-09-10 21:32:21.064820', photon_index_error2='0.62', photon_index2='1.73', ts='4.27', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='0.62', time_epoch_completed='1631334741.06', return_code='0', job_id='998887', GAL2='1.22', EG2='0.64', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='2.88e-08', ts2='4.66', photon_index='2.12' WHERE bin_id='406' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:32:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 998887: <4FGL_J1504.4+1029_daily_bin406> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin406 226.103 10.4978 344563201 344822401 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 :                                   652.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             341.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            670 sec.

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

