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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1018
RA = 226.103, Dec = 10.4978
tmin = 503193601, tmax = 503452801
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='3915', job_status='RUN', time_executed='2021-09-10 21:40:07.281172', time_epoch_executed='1631335207.28' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3915/ft1_4FGL_J1504.4+1029_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3915/ft2_4FGL_J1504.4+1029_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3915/ft1_4FGL_J1504.4+1029_daily_bin1018.fits outfile=/scratch/kocevski/3915/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1018.fits ra=226.103 dec=10.4978 rad=12.0 tmin=503193601.0 tmax=503452801.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.18
user 4.83
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3915/ft1_filtered_4FGL_J1504.4+1029_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/3915/ft2_4FGL_J1504.4+1029_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/3915/ltcube_503193601_503452801_4FGL_J1504.4+1029_daily_bin1018.fits outfile=/scratch/kocevski/3915/expmap_503193601_503452801_4FGL_J1504.4+1029_daily_bin1018.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/3915/ltcube_503193601_503452801_4FGL_J1504.4+1029_daily_bin1018.fits
.....................!
real 192.79
user 186.60
sys 5.48

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/3915/ft1_filtered_4FGL_J1504.4+1029_daily_bin1018.fits scfile=/scratch/kocevski/3915/ft2_4FGL_J1504.4+1029_daily_bin1018.fits outfile=/scratch/kocevski/3915/cmap_503193601_503452801_4FGL_J1504.4+1029_daily_bin1018.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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3915/ft1_filtered_4FGL_J1504.4+1029_daily_bin1018.fits scfile=/scratch/kocevski/3915/ft2_4FGL_J1504.4+1029_daily_bin1018.fits outfile=/scratch/kocevski/3915/cmap_HighResolution_503193601_503452801_4FGL_J1504.4+1029_daily_bin1018.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/3915/ft1_filtered_4FGL_J1504.4+1029_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/3915/ft2_4FGL_J1504.4+1029_daily_bin1018.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/3915/Model_4FGL_J1504.4+1029_daily_bin1018.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/3915/ft1_filtered_4FGL_J1504.4+1029_daily_bin1018.fits.....................!
real 57.35
user 55.76
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.460       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.7261       1.0000         .10000E-03   10000.    
     6 'Prefactor '    93.967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.080       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4417       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0613       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8849       1.0000         .10000E-03   10000.    
    17 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .50673       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.276       1.0000         .10000E-03   10000.    
    21 'Prefactor '    147.49       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5194       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.848       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .43326       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1363       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .79299       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1099       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=   7199.133     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3628 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.469        44.089       -.14295E-05   -.92444E-05
   2  norm          .10000E-03    20.908        .26875E-05** at limit **
   3  Prefactor     .10000E-03    2.1008       -.10556E-07** at limit **
   4  Prefactor     .10000E-03    1.9185       -.12019E-07** at limit **
   5  norm          7.7265        4.5959        .91596E-09    .66993E-05
   6  Prefactor     93.972        67.415       -.97888E-06   -.23077E-05
   7  Prefactor     .10000E-03    13.872       -.14527E-07** at limit **
   8  norm          .10000E-03    5.8548        .91661E-08** at limit **
   9  Prefactor     17.358        26.768       -.11785E-06    .70914E-05
  10  Prefactor     .10000E-03    18.525        .89633E-06** at limit **
  11  Prefactor     .10000E-03    25.854       -.34028E-06** at limit **
  12  Prefactor     17.087        33.054        .77187E-07    .15622E-04
  13  Prefactor     .10000E-03    20.017       -.32162E-05** at limit **
  14  norm          2.4418        .36412       -.81427E-08    .76813E-04
  15  norm          1.0621        2.4772        .97492E-07   -.23354E-04
  16  norm          2.8854        5.4057        .14678E-05    .98246E-05
  17  norm          .10000E-03    59.043        .39078E-07** at limit **
  18  norm          .50717        3.6945        .56559E-06   -.10360E-04
  19  Prefactor     .10000E-03    172.95       -.79525E-06** at limit **
  20  Prefactor     12.278        18.296       -.94016E-07   -.72894E-08
  21  Prefactor     147.49        53.768       -.35614E-06    .18003E-05
  22  Prefactor     2.5199        4.2147        .55026E-07   -.18193E-05
  23  Prefactor     13.868        50.768        .24896E-05   -.12602E-05
  24  Prefactor     .10000E-03    10.836       -.60495E-08** at limit **
  25  norm          .43370        2.5301        .26842E-06   -.13951E-03
  26  Prefactor     1.6790        1686.0       -.68388E-05   -.29457E-06
  27  Normalizat    .79303        .26637        .26756E-06    .15980E-06
  28  Prefactor     1.1097        .14284        .24619E-07    .46081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.4686
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.72647
  Prefactor  = 93.9717
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.3583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0867
  Prefactor  = 0.0001
  norm       = 2.44182
  norm       = 1.06211
  norm       = 2.8854
  norm       = 0.0001
  norm       = 0.507165
  Prefactor  = 0.0001
  Prefactor  = 12.2777
  Prefactor  = 147.491
  Prefactor  = 2.51993
  Prefactor  = 13.8678
  Prefactor  = 0.0001
  norm       = 0.433701
  Prefactor  = 1.67895
  Normalizat = 0.793026
  Prefactor  = 1.10973
 **********
 **   18 **HESSE 
 **********

 FCN=   7199.133     FROM HESSE     STATUS=OK           523 CALLS     4151 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.469        44.495        .77879E-04   -1.4679    
   2  norm          .10000E-03    21.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1022        .12010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9209        .11477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.7265        4.5933        .13522E-03   -1.5152    
   6  Prefactor     93.972        67.457        .20730E-03   -1.3766    
   7  Prefactor     .10000E-03    13.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.8582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.358        26.727        .96142E-04   -1.4874    
  10  Prefactor     .10000E-03    18.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.087        32.977        .96912E-04   -1.4881    
  13  Prefactor     .10000E-03    19.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4418        .36490        .18591E-04   -1.5395    
  15  norm          1.0621        2.4253        .18565E-03   -1.5502    
  16  norm          2.8854        5.4294        .11964E-02   -1.5368    
  17  norm          .10000E-03    59.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .50717        3.6885        .30838E-03   -1.5566    
  19  Prefactor     .10000E-03    175.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.278        18.294        .11433E-03   -1.5007    
  21  Prefactor     147.49        53.748        .33183E-04   -1.3273    
  22  Prefactor     2.5199        4.1990        .21752E-03   -1.5390    
  23  Prefactor     13.868        50.589        .10764E-03   -1.4963    
  24  Prefactor     .10000E-03    10.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .43370        5.0177        .25555E-02   -1.5576    
  26  Prefactor     1.6790        1713.1        .43705E-03   -1.5449    
  27  Normalizat    .79303        .30212        .40700E-03   -1.0033    
  28  Prefactor     1.1097        .16467        .20039E-03   -.89156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7298e-08
Minuit parameter uncertainties:
  1  44.5513
  2  2.03345e-05
  3  3.62533e-07
  4  4.43421e-07
  5  4.59353
  6  67.5119
  7  2.45754e-06
  8  7.55073e-07
  9  26.7457
  10  7.30758e-06
  11  4.2496e-06
  12  33.0121
  13  2.24662e-06
  14  0.364901
  15  2.42555
  16  5.43034
  17  1.10211e-05
  18  2.73544
  19  0.000166213
  20  18.3027
  21  53.7654
  22  4.19948
  23  50.7461
  24  7.86299e-07
  25  2.95035
  26  110.592
  27  0.302762
  28  0.164745
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.442e+00  3.649e-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.110e+00  1.647e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  7.930e-01  3.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 154.20
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.94e-07 +/- 8.88e-08
Energy Flux (Fixed Index): 2.41e-04 +/- 3.60e-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) = 7199.11689221
delta logL = 0.0162846148487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7199.1157344
delta logL = 0.0174424281249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4418       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1549       1.0000          .0000       5.0000    
     3 'Normalizat'    .77868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1149       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=   7199.116     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      196 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4418        .38227        .41829E-02    .22884E-02
   2  alpha         2.1549        .17114        .11778       -.42819E-05
   3  Normalizat    .77868        .25217        .92598E-01    .85200E-05
   4  Prefactor     1.1149        .14138        .37046E-01    .13189E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.44182
  alpha      = 2.15491
  Normalizat = 0.778685
  Prefactor  = 1.1149
 **********
 **   18 **HESSE 
 **********

 FCN=   7199.116     FROM HESSE     STATUS=OK            27 CALLS      223 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4418        .36073        .18488E-04   -1.5395    
   2  alpha         2.1549        .16348        .51444E-03   -.13848    
   3  Normalizat    .77868        .28856        .41024E-03   -1.0086    
   4  Prefactor     1.1149        .16147        .19994E-03   -.88992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27031e-11
Minuit parameter uncertainties:
  1  0.360728
  2  0.163602
  3  0.28913
  4  0.161546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3915': 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) = 7199.1157344
delta logL = 0.017442428737

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.442e+00  3.607e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.155e+00  1.636e-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.115e+00  1.615e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  7.787e-01  2.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 153.33
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.15 +/- 0.16
Photon Flux (Free Index): 6.08e-07 +/- 1.15e-07
Energy Flux (Free Index): 2.37e-04 +/- 4.02e-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/3915/cmap_HighResolution_503193601_503452801_4FGL_J1504.4+1029_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.94e-07', energy_flux2='2.37e-04', photon_flux_error='8.88e-08', dlogl='1.74e-02', energy_flux='2.41e-04', photon_flux2='6.08e-07', job_status='DONE', time_completed='2021-09-10 21:51:35.641720', photon_index_error2='0.16', photon_index2='2.15', ts='154.20', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='4.02e-05', EG='0.79', time_epoch_completed='1631335895.64', return_code='0', job_id='3915', GAL2='1.11', EG2='0.78', return_code2='0', energy_flux_error='3.60e-05', photon_flux_error2='1.15e-07', ts2='153.33', photon_index='2.12' WHERE bin_id='1018' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 3915: <4FGL_J1504.4+1029_daily_bin1018> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1018> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:36:31 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:36:33 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:36:33 2021
Terminated at Fri Sep 10 21:51:36 2021
Results reported at Fri Sep 10 21:51:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1018 226.103 10.4978 503193601 503452801 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 :                                   675.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

