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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1083
RA = 226.103, Dec = 10.4978
tmin = 520041601, tmax = 520300801
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='5648', job_status='RUN', time_executed='2021-09-10 21:44:48.109504', time_epoch_executed='1631335488.11' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5648

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5648/ft1_4FGL_J1504.4+1029_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5648/ft2_4FGL_J1504.4+1029_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5648/ft1_4FGL_J1504.4+1029_daily_bin1083.fits outfile=/scratch/kocevski/5648/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1083.fits ra=226.103 dec=10.4978 rad=12.0 tmin=520041601.0 tmax=520300801.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 4.28
user 4.03
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5648/ft1_filtered_4FGL_J1504.4+1029_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/5648/ft2_4FGL_J1504.4+1029_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/5648/ltcube_520041601_520300801_4FGL_J1504.4+1029_daily_bin1083.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/5648/ft2_4FGL_J1504.4+1029_daily_bin1083.fits
.....................!
real 12.05
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5648/ft1_filtered_4FGL_J1504.4+1029_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/5648/ft2_4FGL_J1504.4+1029_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/5648/ltcube_520041601_520300801_4FGL_J1504.4+1029_daily_bin1083.fits outfile=/scratch/kocevski/5648/expmap_520041601_520300801_4FGL_J1504.4+1029_daily_bin1083.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/5648/ltcube_520041601_520300801_4FGL_J1504.4+1029_daily_bin1083.fits
.....................!
real 191.51
user 185.83
sys 5.31

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/5648/ft1_filtered_4FGL_J1504.4+1029_daily_bin1083.fits scfile=/scratch/kocevski/5648/ft2_4FGL_J1504.4+1029_daily_bin1083.fits outfile=/scratch/kocevski/5648/cmap_520041601_520300801_4FGL_J1504.4+1029_daily_bin1083.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5648/ft1_filtered_4FGL_J1504.4+1029_daily_bin1083.fits scfile=/scratch/kocevski/5648/ft2_4FGL_J1504.4+1029_daily_bin1083.fits outfile=/scratch/kocevski/5648/cmap_HighResolution_520041601_520300801_4FGL_J1504.4+1029_daily_bin1083.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/5648/ft1_filtered_4FGL_J1504.4+1029_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/5648/ft2_4FGL_J1504.4+1029_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/5648/Model_4FGL_J1504.4+1029_daily_bin1083.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/5648/ft1_filtered_4FGL_J1504.4+1029_daily_bin1083.fits.....................!
real 57.98
user 56.48
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.902       1.0000         .10000E-03   10000.    
     8 'norm      '    9.8658       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.002       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.731       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1296       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6944       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0593       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.9028       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4538       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.1588       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.9693       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4087       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88535       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=   7600.092     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3419 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.448        .54905E-05** at limit **
   2  norm          .10000E-03    17.861        .51885E-05** at limit **
   3  Prefactor     .10000E-03    2.4749       -.78413E-07** at limit **
   4  Prefactor     .10000E-03    2.3633       -.12131E-06** at limit **
   5  norm          .10000E-03    1.5004       -.40098E-07** at limit **
   6  Prefactor     .10000E-03    158.91       -.57057E-05** at limit **
   7  Prefactor     22.902        27.463        .33338E-06   -.76397E-05
   8  norm          9.8650        15.417       -.10085E-05   -.38310E-03
   9  Prefactor     16.002        16.755        .73125E-07    .10160E-04
  10  Prefactor     .10000E-03    13.139        .47007E-05** at limit **
  11  Prefactor     .10000E-03    22.639        .20950E-05** at limit **
  12  Prefactor     .10000E-03    19.052       -.55147E-05** at limit **
  13  Prefactor     14.726        41.605       -.32535E-05    .20710E-04
  14  norm          2.1297        .31417       -.55676E-08    .54679E-04
  15  norm          1.6944        2.3066       -.35374E-06   -.74398E-03
  16  norm          6.0592        6.1613        .13028E-06    .10473E-04
  17  norm          .10000E-03    34.849       -.56506E-05** at limit **
  18  norm          3.9028        3.9474       -.18062E-07   -.23182E-03
  19  Prefactor     .10000E-03    13.035       -.47791E-05** at limit **
  20  Prefactor     .10000E-03    23.466        .48732E-05** at limit **
  21  Prefactor     .10000E-03    5.8351        .28521E-06** at limit **
  22  Prefactor     3.4546        5.6558       -.41106E-05   -.23401E-03
  23  Prefactor     .10000E-03    18.776       -.42474E-05** at limit **
  24  Prefactor     .10000E-03    5.2487       -.47028E-06** at limit **
  25  norm          2.1588        2.0047       -.62516E-08    .15633E-04
  26  Prefactor     9.9691        36.112       -.18994E-05   -.14510E-03
  27  Normalizat    1.4085        .22485        .10132E-05   -.12007E-05
  28  Prefactor     .88544        .12836       -.57365E-07    .86537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9024
  norm       = 9.86497
  Prefactor  = 16.0017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7264
  norm       = 2.12966
  norm       = 1.69444
  norm       = 6.05922
  norm       = 0.0001
  norm       = 3.90285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.45463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.15877
  Prefactor  = 9.96907
  Normalizat = 1.40846
  Prefactor  = 0.885437
 **********
 **   18 **HESSE 
 **********

 FCN=   7600.092     FROM HESSE     STATUS=OK           515 CALLS     3934 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4794        .13394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3757        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5223        .10427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    159.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.902        27.514        .83700E-04   -1.4750    
   8  norm          9.8650        15.599        .63788E-03   -1.5080    
   9  Prefactor     16.002        16.767        .10012E-03   -1.4908    
  10  Prefactor     .10000E-03    13.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.726        41.589        .10436E-03   -1.4940    
  14  norm          2.1297        .31511        .17867E-04   -1.5416    
  15  norm          1.6944        2.2948        .14603E-03   -1.5448    
  16  norm          6.0592        6.1646        .16311E-03   -1.5216    
  17  norm          .10000E-03    34.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.9028        3.9348        .16613E-03   -1.5313    
  19  Prefactor     .10000E-03    12.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.4546        5.8262        .21762E-03   -1.5336    
  23  Prefactor     .10000E-03    18.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.2475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.1588        2.0065        .11581E-03   -1.5414    
  26  Prefactor     9.9691        36.431        .63455E-03   -1.5076    
  27  Normalizat    1.4085        .27033        .30850E-03   -.80384    
  28  Prefactor     .88544        .15439        .21797E-03   -.96652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0549e-09
Minuit parameter uncertainties:
  1  0.000362465
  2  0.000158229
  3  2.67264e-07
  4  3.32631e-07
  5  7.20521e-07
  6  0.000441261
  7  27.5295
  8  15.6058
  9  16.7717
  10  0.000125005
  11  5.86976e-05
  12  0.000176849
  13  41.6713
  14  0.315114
  15  2.29495
  16  6.16525
  17  0.000228875
  18  3.93508
  19  0.000113937
  20  0.000129748
  21  5.61042e-06
  22  5.8272
  23  0.000121089
  24  1.02937e-05
  25  2.00654
  26  36.5121
  27  0.270604
  28  0.154463
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.130e+00  3.151e-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:  8.854e-01  1.545e-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.408e+00  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 166.07
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.18e-07 +/- 7.67e-08
Energy Flux (Fixed Index): 2.10e-04 +/- 3.11e-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) = 7600.08154374
delta logL = 0.0101710883127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7600.0805446
delta logL = 0.0111702244485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1358       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1013       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88239       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=   7600.081     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      204 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1359        .34760        .40617E-02   -.36379E-04
   2  alpha         2.1013        .16635        .11598        .75161E-05
   3  Normalizat    1.4166        .22392        .69580E-01    .88073E-05
   4  Prefactor     .88236        .12772        .44780E-01    .10967E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.13589
  alpha      = 2.10126
  Normalizat = 1.41658
  Prefactor  = 0.882355
 **********
 **   18 **HESSE 
 **********

 FCN=   7600.081     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .55E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1359        .31817        .17950E-04   -1.5416    
   2  alpha         2.1013        .15439        .50689E-03   -.16018    
   3  Normalizat    1.4166        .27136        .30784E-03   -.80150    
   4  Prefactor     .88236        .15415        .21832E-03   -.96760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49522e-16
Minuit parameter uncertainties:
  1  0.318174
  2  0.15449
  3  0.271634
  4  0.154225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5648': 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) = 7600.08054456
delta logL = 0.0111702710747

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.136e+00  3.182e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.101e+00  1.545e-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:  8.824e-01  1.542e-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.417e+00  2.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 165.77
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.10 +/- 0.15
Photon Flux (Free Index): 5.11e-07 +/- 8.91e-08
Energy Flux (Free Index): 2.13e-04 +/- 3.95e-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/5648/cmap_HighResolution_520041601_520300801_4FGL_J1504.4+1029_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.18e-07', energy_flux2='2.13e-04', photon_flux_error='7.67e-08', dlogl='1.12e-02', energy_flux='2.10e-04', photon_flux2='5.11e-07', job_status='DONE', time_completed='2021-09-10 21:56:42.983630', photon_index_error2='0.15', photon_index2='2.10', ts='166.07', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='3.95e-05', EG='1.41', time_epoch_completed='1631336202.98', return_code='0', job_id='5648', GAL2='0.88', EG2='1.42', return_code2='0', energy_flux_error='3.11e-05', photon_flux_error2='8.91e-08', ts2='165.77', photon_index='2.12' WHERE bin_id='1083' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:56:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 5648: <4FGL_J1504.4+1029_daily_bin1083> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1083> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:40:58 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:41:00 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:41:00 2021
Terminated at Fri Sep 10 21:56:43 2021
Results reported at Fri Sep 10 21:56:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1083 226.103 10.4978 520041601 520300801 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 :                                   677.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

