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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin91
RA = 226.103, Dec = 10.4978
tmin = 262915201, tmax = 263174401
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='994716', job_status='RUN', time_executed='2021-09-10 21:09:39.791848', time_epoch_executed='1631333379.79' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994716

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994716/ft1_4FGL_J1504.4+1029_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994716/ft2_4FGL_J1504.4+1029_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994716/ft1_4FGL_J1504.4+1029_daily_bin91.fits outfile=/scratch/kocevski/994716/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin91.fits ra=226.103 dec=10.4978 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.27
user 1.11
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994716/ft1_filtered_4FGL_J1504.4+1029_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/994716/ft2_4FGL_J1504.4+1029_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/994716/ltcube_262915201_263174401_4FGL_J1504.4+1029_daily_bin91.fits outfile=/scratch/kocevski/994716/expmap_262915201_263174401_4FGL_J1504.4+1029_daily_bin91.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/994716/ltcube_262915201_263174401_4FGL_J1504.4+1029_daily_bin91.fits
.....................!
real 190.54
user 185.30
sys 4.85

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/994716/ft1_filtered_4FGL_J1504.4+1029_daily_bin91.fits scfile=/scratch/kocevski/994716/ft2_4FGL_J1504.4+1029_daily_bin91.fits outfile=/scratch/kocevski/994716/cmap_262915201_263174401_4FGL_J1504.4+1029_daily_bin91.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.103 yref=10.4978 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994716/ft1_filtered_4FGL_J1504.4+1029_daily_bin91.fits scfile=/scratch/kocevski/994716/ft2_4FGL_J1504.4+1029_daily_bin91.fits outfile=/scratch/kocevski/994716/cmap_HighResolution_262915201_263174401_4FGL_J1504.4+1029_daily_bin91.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    57.414       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8931       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .49515E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.547       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0051       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9076       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12363E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.1196       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9853       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .78046       1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.340       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5810       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3541       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.803       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .70843       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0660       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=   6881.628     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     3452 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.965        .14844E-08** at limit **
   2  norm          57.415        35.558        .24543E-07    .20697E-05
   3  Prefactor     .10000E-03    3.9038       -.50652E-08** at limit **
   4  Prefactor     3.8924        7.1405        .11915E-06   -.17272E-04
   5  norm          .10000E-03    1.6294        .27499E-08** at limit **
   6  Prefactor     .10000E-03    73.869        .27019E-05** at limit **
   7  Prefactor     .10000E-03    23.096       -.95657E-06** at limit **
   8  norm          .10000E-03    11.045       -.75872E-06** at limit **
   9  Prefactor     .10000E-03    31.810        .20118E-05** at limit **
  10  Prefactor     11.529        31.382        .25966E-05    .14742E-04
  11  Prefactor     3.0042        12.519        .39302E-05   -.97724E-05
  12  Prefactor     2.8888        54.331        .15929E-05    .11920E-05
  13  Prefactor     .10000E-03    54.821       -.25948E-05** at limit **
  14  norm          6.1196        .52848       -.86124E-08    .28887E-03
  15  norm          6.9850        2.8231        .52192E-07    .11281E-03
  16  norm          .10000E-03    2.8844       -.10250E-07** at limit **
  17  norm          .10000E-03    19.444        .79845E-06** at limit **
  18  norm          .78201        2.1730       -.12245E-06   -.30893E-03
  19  Prefactor     45.345        42.734       -.42609E-06   -.36879E-05
  20  Prefactor     .10000E-03    23.915       -.60168E-06** at limit **
  21  Prefactor     .10000E-03    20.293       -.30494E-06** at limit **
  22  Prefactor     7.5814        6.3948       -.42435E-07    .15217E-04
  23  Prefactor     9.3487        55.067        .19552E-05    .10125E-05
  24  Prefactor     23.804        29.345        .93441E-07    .21059E-05
  25  norm          .10000E-03    1.0338       -.29753E-08** at limit **
  26  Prefactor     .10000E-03    52.943       -.19228E-05** at limit **
  27  Normalizat    .70825        .26339       -.47493E-06    .73148E-05
  28  Prefactor     1.0660        .14986       -.23045E-06    .24102E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 57.4146
  Prefactor  = 0.0001
  Prefactor  = 3.89238
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 11.5287
  Prefactor  = 3.00416
  Prefactor  = 2.88879
  Prefactor  = 0.0001
  norm       = 6.1196
  norm       = 6.98503
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.78201
  Prefactor  = 45.3447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.58136
  Prefactor  = 9.34866
  Prefactor  = 23.8042
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.708253
  Prefactor  = 1.06604
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.628     FROM HESSE     STATUS=OK           517 CALLS     3969 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          57.415        35.557        .52944E-04   -1.4191    
   3  Prefactor     .10000E-03    3.9126        .15999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8924        7.1316        .20449E-03   -1.5313    
   5  norm          .10000E-03    1.6416        .10339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    74.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    46.746        .52586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.529        31.314        .11789E-03   -1.5029    
  11  Prefactor     3.0042        12.562        .11707E-02   -1.5361    
  12  Prefactor     2.8888        54.105        .23828E-03   -1.5368    
  13  Prefactor     .10000E-03    55.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.1196        .52939        .16645E-04   -1.5213    
  15  norm          6.9850        2.8119        .84500E-04   -1.5179    
  16  norm          .10000E-03    2.8883        .13759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .78201        1.8351        .20088E-02   -1.5531    
  19  Prefactor     45.345        42.745        .59543E-04   -1.4360    
  20  Prefactor     .10000E-03    23.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5814        6.3868        .14565E-03   -1.5157    
  23  Prefactor     9.3487        55.099        .13103E-03   -1.5096    
  24  Prefactor     23.804        29.358        .82103E-04   -1.4732    
  25  norm          .10000E-03    1.0415        .82362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    52.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .70825        .29851        .42392E-03   -1.0357    
  28  Prefactor     1.0660        .17238        .20783E-03   -.90559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42946e-09
Minuit parameter uncertainties:
  1  6.94364e-07
  2  35.5701
  3  1.8575e-07
  4  7.13317
  5  1.18059e-07
  6  1.24147e-05
  7  4.35581e-06
  8  0.000920803
  9  6.95795e-05
  10  31.3582
  11  12.2903
  12  25.0297
  13  0.00018125
  14  0.529395
  15  2.81195
  16  3.17557e-08
  17  2.64863e-06
  18  1.83519
  19  42.7737
  20  9.85843e-06
  21  4.00944e-06
  22  6.38736
  23  45.4546
  24  29.3762
  25  5.86992e-08
  26  1.45886e-06
  27  0.299202
  28  0.172472
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  6.120e+00  5.294e-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.066e+00  1.725e-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.083e-01  2.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 559.85
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.49e-06 +/- 1.29e-07
Energy Flux (Fixed Index): 6.03e-04 +/- 5.22e-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) = 6881.56217266
delta logL = 0.06583598204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6881.55338618
delta logL = 0.0746224637169

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0600       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1599       1.0000          .0000       5.0000    
     3 'Normalizat'    .68591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0750       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=   6881.553     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0601        .57926        .37350E-02    .55333E-02
   2  alpha         2.1599        .98261E-01    .62598E-01    .51229E-03
   3  Normalizat    .68592        .25725        .96958E-01    .54223E-04
   4  Prefactor     1.0750        .15012        .38624E-01   -.12347E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.06009
  alpha      = 2.1599
  Normalizat = 0.685923
  Prefactor  = 1.07501
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.553     FROM HESSE     STATUS=OK            25 CALLS      224 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0601        .54197        .16504E-04   -1.5216    
   2  alpha         2.1599        .92261E-01    .27622E-03   -.13646    
   3  Normalizat    .68592        .29309        .42972E-03   -1.0445    
   4  Prefactor     1.0750        .17155        .20698E-03   -.90269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76547e-10
Minuit parameter uncertainties:
  1  0.541969
  2  0.0922827
  3  0.293759
  4  0.171639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994716': 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) = 6881.55338617
delta logL = 0.074622471041

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  6.060e+00  5.420e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.160e+00  9.228e-02  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.075e+00  1.716e-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.859e-01  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 554.89
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.16 +/- 0.09
Photon Flux (Free Index): 1.51e-06 +/- 1.43e-07
Energy Flux (Free Index): 5.87e-04 +/- 6.52e-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/994716/cmap_HighResolution_262915201_263174401_4FGL_J1504.4+1029_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-06', energy_flux2='5.87e-04', photon_flux_error='1.29e-07', dlogl='7.46e-02', energy_flux='6.03e-04', photon_flux2='1.51e-06', job_status='DONE', time_completed='2021-09-10 21:20:13.296217', photon_index_error2='0.09', photon_index2='2.16', ts='559.85', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='6.52e-05', EG='0.71', time_epoch_completed='1631334013.3', return_code='0', job_id='994716', GAL2='1.08', EG2='0.69', return_code2='0', energy_flux_error='5.22e-05', photon_flux_error2='1.43e-07', ts2='554.89', photon_index='2.12' WHERE bin_id='91' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:20:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 994716: <4FGL_J1504.4+1029_daily_bin91> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin91 226.103 10.4978 262915201 263174401 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            852 sec.

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

