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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin512
RA = 226.103, Dec = 10.4978
tmin = 372038401, tmax = 372297601
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='197', job_status='RUN', time_executed='2021-09-10 21:26:21.269236', time_epoch_executed='1631334381.27' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197/ft1_4FGL_J1504.4+1029_daily_bin512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197/ft2_4FGL_J1504.4+1029_daily_bin512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197/ft1_4FGL_J1504.4+1029_daily_bin512.fits outfile=/scratch/kocevski/197/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin512.fits ra=226.103 dec=10.4978 rad=12.0 tmin=372038401.0 tmax=372297601.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.40
user 4.16
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197/ft1_filtered_4FGL_J1504.4+1029_daily_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/197/ft2_4FGL_J1504.4+1029_daily_bin512.fits sctable="SC_DATA" expcube=/scratch/kocevski/197/ltcube_372038401_372297601_4FGL_J1504.4+1029_daily_bin512.fits outfile=/scratch/kocevski/197/expmap_372038401_372297601_4FGL_J1504.4+1029_daily_bin512.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/197/ltcube_372038401_372297601_4FGL_J1504.4+1029_daily_bin512.fits
.....................!
real 190.97
user 185.51
sys 4.99

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/197/ft1_filtered_4FGL_J1504.4+1029_daily_bin512.fits scfile=/scratch/kocevski/197/ft2_4FGL_J1504.4+1029_daily_bin512.fits outfile=/scratch/kocevski/197/cmap_372038401_372297601_4FGL_J1504.4+1029_daily_bin512.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197/ft1_filtered_4FGL_J1504.4+1029_daily_bin512.fits scfile=/scratch/kocevski/197/ft2_4FGL_J1504.4+1029_daily_bin512.fits outfile=/scratch/kocevski/197/cmap_HighResolution_372038401_372297601_4FGL_J1504.4+1029_daily_bin512.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.305       1.0000         .10000E-03   10000.    
     2 'norm      '    .10324E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2986       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    58.227       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2413       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.835       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8001       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.549       1.0000         .10000E-03   10000.    
    14 'norm      '    .28756       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5271       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11347E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.227       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.034       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7190       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11827E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2483       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92765       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=   6664.353     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3574 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.240        37.346        .90481E-06   -.10114E-04
   2  norm          .10000E-03    13.600       -.18421E-06** at limit **
   3  Prefactor     .10000E-03    13.430        .99009E-06** at limit **
   4  Prefactor     1.2974        3.4630        .92362E-06   -.20849E-04
   5  norm          .10000E-03    .86849        .69497E-07** at limit **
   6  Prefactor     57.988        76.589       -.24860E-05   -.35395E-03
   7  Prefactor     .10000E-03    30.513       -.68635E-06** at limit **
   8  norm          4.2380        17.980        .78443E-06   -.45109E-05
   9  Prefactor     10.446        15.514        .29171E-06   -.88519E-05
  10  Prefactor     38.818        26.980        .35332E-06   -.13787E-04
  11  Prefactor     2.7839        19.072        .17824E-05    .26780E-05
  12  Prefactor     .10000E-03    8.2439        .33983E-07** at limit **
  13  Prefactor     64.526        50.908        .22259E-06   -.51455E-04
  14  norm          .28749        .17627        .42083E-07   -.10179E-03
  15  norm          4.5255        3.2577       -.21502E-06   -.27686E-03
  16  norm          .10000E-03    1.9304        .29388E-07** at limit **
  17  norm          .10000E-03    17.376        .32293E-07** at limit **
  18  norm          .10000E-03    4.0713        .33079E-06** at limit **
  19  Prefactor     28.205        36.092        .64638E-06   -.14176E-04
  20  Prefactor     .10001E-03    104.58       -.18289E-05** at limit **
  21  Prefactor     13.018        27.533        .95719E-06   -.10749E-04
  22  Prefactor     3.7162        8.7550        .12469E-04   -.41347E-03
  23  Prefactor     .10000E-03    13.436        .20388E-06** at limit **
  24  Prefactor     .10001E-03    168.31        .50551E-05** at limit **
  25  norm          .10000E-03    1.1680        .35566E-06** at limit **
  26  Prefactor     .10000E-03    46.210        .40371E-06** at limit **
  27  Normalizat    1.2493        .24359       -.25685E-05   -.14776E-03
  28  Prefactor     .92717        .13379       -.79692E-06   -.30238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2403
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.2974
  norm       = 0.0001
  Prefactor  = 57.9882
  Prefactor  = 0.0001
  norm       = 4.23799
  Prefactor  = 10.4457
  Prefactor  = 38.8178
  Prefactor  = 2.78388
  Prefactor  = 0.0001
  Prefactor  = 64.5258
  norm       = 0.287491
  norm       = 4.52545
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 28.2049
  Prefactor  = 0.00010001
  Prefactor  = 13.0183
  Prefactor  = 3.71621
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24925
  Prefactor  = 0.927175
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.353     FROM HESSE     STATUS=OK           519 CALLS     4093 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.240        37.441        .86776E-04   -1.4786    
   2  norm          .10000E-03    13.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2974        3.4003        .24114E-03   -1.5480    
   5  norm          .10000E-03    .87062        .74297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     57.988        76.525        .26288E-03   -1.4183    
   7  Prefactor     .10000E-03    30.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2380        17.882        .19566E-03   -1.5296    
   9  Prefactor     10.446        15.508        .12394E-03   -1.5061    
  10  Prefactor     38.818        27.061        .64317E-04   -1.4461    
  11  Prefactor     2.7839        19.037        .24312E-03   -1.5374    
  12  Prefactor     .10000E-03    8.2469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     64.526        50.822        .49950E-04   -1.4100    
  14  norm          .28749        .17305        .25522E-04   -1.5601    
  15  norm          4.5255        3.1678        .11395E-03   -1.5282    
  16  norm          .10000E-03    1.9310        .11077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.9195        .30688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.205        36.115        .75407E-04   -1.4645    
  20  Prefactor     .10001E-03    105.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.018        27.607        .11095E-03   -1.4986    
  22  Prefactor     3.7162        8.7621        .10470E-02   -1.5322    
  23  Prefactor     .10000E-03    13.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    170.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.1278        .17190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    46.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2493        .29667        .31026E-03   -.85094    
  28  Prefactor     .92717        .16218        .20381E-03   -.95198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94209e-09
Minuit parameter uncertainties:
  1  37.4829
  2  2.39169e-06
  3  1.91824e-05
  4  3.40082
  5  7.47729e-07
  6  76.6548
  7  3.25363e-05
  8  17.4197
  9  15.5141
  10  27.0692
  11  14.5661
  12  3.76846e-06
  13  50.8562
  14  0.173054
  15  3.16789
  16  5.36927e-07
  17  7.6083e-06
  18  0.000278817
  19  36.1432
  20  0.00200498
  21  27.634
  22  8.76509
  23  2.34492e-05
  24  0.00216098
  25  2.28597e-05
  26  0.000107371
  27  0.297073
  28  0.162268
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.875e-01  1.731e-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.272e-01  1.623e-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.249e+00  2.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.83
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 7.00e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 2.83e-05 +/- 1.71e-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) = 6664.28777678
delta logL = 0.0651633886428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6664.28445127
delta logL = 0.0684888985388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29587       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3613       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93554       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=   6664.284     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29562        3.8030        .54717E-02    .95059E-03
   2  alpha         2.3607        2.9926        .41232        .16394E-05
   3  Normalizat    1.2274        .11290        .70635E-01    .20071E-04
   4  Prefactor     .93515        .63528E-01    .45456E-01    .70867E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.295623
  alpha      = 2.36072
  Normalizat = 1.22736
  Prefactor  = 0.935146
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.284     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29562        .16927        .24545E-04   -1.5599    
   2  alpha         2.3607        .63957        .16458E-01   -.55740E-01
   3  Normalizat    1.2274        .28502        .31255E-03   -.85761    
   4  Prefactor     .93515        .16207        .20301E-03   -.94924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12832e-12
Minuit parameter uncertainties:
  1  0.169274
  2  0.646785
  3  0.285382
  4  0.162155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197': 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) = 6664.28444401
delta logL = 0.0684961579427

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.956e-01  1.693e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.361e+00  6.468e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.351e-01  1.622e-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.227e+00  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.97
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.36 +/- 0.65
Photon Flux (Free Index): 8.68e-08 +/- 6.59e-08
Energy Flux (Free Index): 2.71e-05 +/- 1.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/197/cmap_HighResolution_372038401_372297601_4FGL_J1504.4+1029_daily_bin512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.00e-08', energy_flux2='2.71e-05', photon_flux_error='4.21e-08', dlogl='6.85e-02', energy_flux='2.83e-05', photon_flux2='8.68e-08', job_status='DONE', time_completed='2021-09-10 21:37:04.597225', photon_index_error2='0.65', photon_index2='2.36', ts='5.83', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.25', time_epoch_completed='1631335024.6', return_code='0', job_id='197', GAL2='0.94', EG2='1.23', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='6.59e-08', ts2='5.97', photon_index='2.12' WHERE bin_id='512' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:37:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 197: <4FGL_J1504.4+1029_daily_bin512> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin512 226.103 10.4978 372038401 372297601 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 :                                   639.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            659 sec.

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

