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


Performing analysis on: 4FGL_J1047.2+6740_daily_bin654
RA = 161.82, Dec = 67.6735
tmin = 408844801, tmax = 409104001
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='132806', job_status='RUN', time_executed='2021-09-02 11:58:47.354411', time_epoch_executed='1630609127.35' WHERE source_name='4FGL J1047.2+6740' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/132806

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/132806/ft1_4FGL_J1047.2+6740_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/132806/ft2_4FGL_J1047.2+6740_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/132806/ft1_4FGL_J1047.2+6740_daily_bin654.fits outfile=/scratch/kocevski/132806/ft1_filteredMKT_4FGL_J1047.2+6740_daily_bin654.fits ra=161.82 dec=67.6735 rad=12.0 tmin=408844801.0 tmax=409104001.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 7.30
user 4.13
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/132806/ft2_4FGL_J1047.2+6740_daily_bin654.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/132806/ft2_4FGL_J1047.2+6740_daily_bin654.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/132806/ft1_filteredMKT_4FGL_J1047.2+6740_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/132806/ft1_filtered_4FGL_J1047.2+6740_daily_bin654.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 1.70
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/132806/ft1_filtered_4FGL_J1047.2+6740_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/132806/ft2_4FGL_J1047.2+6740_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/132806/ltcube_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.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/132806/ft2_4FGL_J1047.2+6740_daily_bin654.fits
.....................!
real 15.64
user 13.68
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/132806/ft1_filtered_4FGL_J1047.2+6740_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/132806/ft2_4FGL_J1047.2+6740_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/132806/ltcube_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.fits outfile=/scratch/kocevski/132806/expmap_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.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/132806/ltcube_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.fits
.....................!
real 196.77
user 187.45
sys 5.24

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 237 point sources and 0 extended sources

Setting source of interest to:
4FGL J1047.2+6740 @ 161.82 67.6735

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/132806/ft1_filtered_4FGL_J1047.2+6740_daily_bin654.fits scfile=/scratch/kocevski/132806/ft2_4FGL_J1047.2+6740_daily_bin654.fits outfile=/scratch/kocevski/132806/cmap_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.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=161.82 yref=67.6735 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/132806/ft1_filtered_4FGL_J1047.2+6740_daily_bin654.fits scfile=/scratch/kocevski/132806/ft2_4FGL_J1047.2+6740_daily_bin654.fits outfile=/scratch/kocevski/132806/cmap_HighResolution_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.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=161.82 yref=67.6735 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/132806/ft1_filtered_4FGL_J1047.2+6740_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/132806/ft2_4FGL_J1047.2+6740_daily_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/132806/Model_4FGL_J1047.2+6740_daily_bin654.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/132806/ft1_filtered_4FGL_J1047.2+6740_daily_bin654.fits..........................!
real 21.27
user 20.03
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/132806/ft1_filtered_4FGL_J1047.2+6740_daily_bin654.fits', '/scratch/kocevski/132806/ft2_4FGL_J1047.2+6740_daily_bin654.fits', expMap='/scratch/kocevski/132806/expmap_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.fits', expCube='/scratch/kocevski/132806/ltcube_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/132806/Model_4FGL_J1047.2+6740_daily_bin654.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.2+6740'

4FGL J1047.2+6740
   Spectrum: PowerLaw
399    Prefactor:  7.402e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
400        Index:  1.894e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
401        Scale:  3.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/132806/ft1_filtered_4FGL_J1047.2+6740_daily_bin654.fits
Spacecraft file(s): /scratch/kocevski/132806/ft2_4FGL_J1047.2+6740_daily_bin654.fits
Exposure map: /scratch/kocevski/132806/expmap_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.fits
Exposure cube: /scratch/kocevski/132806/ltcube_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/132806/Model_4FGL_J1047.2+6740_daily_bin654.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) = 739.378861726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9183       1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.589       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    297.02       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6767       1.0000         .10000E-03   10000.    
    11 'norm      '    45.774       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11773E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11362E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.3219       1.0000         .10000E-03   10000.    
    17 'Prefactor '    110.76       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15700E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.856       1.0000         .10000E-03   10000.    
    21 'norm      '    .18284E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8246       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.541       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    33.210       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10790E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .46554E-02   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    130.25       1.0000         .10000E-03   10000.    
    36 'norm      '    31.766       1.0000         .10000E-03   10000.    
    37 'Normalizat'    1.5094       1.0000         .10000E-01   10.000    
    38 'Prefactor '    .12741E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   739.3696     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     5835 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8962       -.34730E-06** at limit **
   2  Prefactor     .11130E-03    73.672        .10084E-03** at limit **
   3  Prefactor     .10072E-03    33.870       -.84477E-04** at limit **
   4  norm          2.9220        4.7188        .76379E-06    .29441E-03
   5  Prefactor     63.612        5.1403        .56132E-05   -.14054E-02
   6  Prefactor     .10007E-03    14.174       -.97939E-06** at limit **
   7  Prefactor     .10009E-03    16.278        .21476E-04** at limit **
   8  norm          .10048E-03    13.041        .41554E-04** at limit **
   9  Prefactor     297.02        1.4464        .59393E-06   -.14343E-02
  10  norm          2.6787        3.0591       -.25580E-06    .43581E-03
  11  norm          45.789        3.8048        .49888E-05   -.13039E-02
  12  Prefactor     .10218E-03    17.724       -.25628E-04** at limit **
  13  Prefactor     .12622E-03    87.969        .50751E-04** at limit **
  14  Prefactor     .10031E-03    13.261        .44114E-04** at limit **
  15  norm          .10000E-03    4.3073       -.27941E-06** at limit **
  16  norm          9.3248        1.0284       -.60282E-06   -.51420E-03
  17  Prefactor     110.75        3.8936       -.34546E-05    .31465E-02
  18  Prefactor     .10028E-03    366.61       -.30837E-03** at limit **
  19  Prefactor     .10009E-03    11.123       -.25971E-04** at limit **
  20  norm          14.861        4.6854        .24909E-06    .89824E-04
  21  norm          .10000E-03    17.887       -.58753E-06** at limit **
  22  norm          .10000E-03    4.9675        .59458E-06** at limit **
  23  Prefactor     1.7929        1.8691       -.72778E-06    .28825E-03
  24  Prefactor     22.554        3.4299        .63379E-05   -.82167E-03
  25  Prefactor     .10000E-03    15.340       -.49848E-06** at limit **
  26  Prefactor     .10070E-03    12.777        .35847E-04** at limit **
  27  Prefactor     .10123E-03    9.6612       -.71061E-05** at limit **
  28  Prefactor     .10000E-03    9.6438       -.92883E-07** at limit **
  29  norm          .10068E-03    9.8831       -.18671E-04** at limit **
  30  norm          33.220        1.4556       -.92392E-06   -.45410E-03
  31  Prefactor     .10103E-03    11.110        .16991E-04** at limit **
  32  Prefactor     .10016E-03    10.856       -.25104E-04** at limit **
  33  Prefactor     .57110E-03    114.22       -.19190E-03** at limit **
  34  Prefactor     .10070E-03    15.036       -.28284E-04** at limit **
  35  Prefactor     130.25        1.2976        .70618E-06   -.81303E-03
  36  norm          31.769        1.1515        .67436E-06    .55048E-04
  37  Normalizat    1.5090        .33451       -.10305E-04   -.67511E-04
  38  Prefactor     .92531E-09    6.6859       -.72187E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000111303
  Prefactor  = 0.000100717
  norm       = 2.92201
  Prefactor  = 63.6116
  Prefactor  = 0.000100066
  Prefactor  = 0.000100094
  norm       = 0.000100485
  Prefactor  = 297.023
  norm       = 2.67869
  norm       = 45.7888
  Prefactor  = 0.000102183
  Prefactor  = 0.000126218
  Prefactor  = 0.000100313
  norm       = 0.0001
  norm       = 9.32481
  Prefactor  = 110.747
  Prefactor  = 0.000100283
  Prefactor  = 0.000100092
  norm       = 14.8613
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 1.79294
  Prefactor  = 22.5544
  Prefactor  = 0.0001
  Prefactor  = 0.000100695
  Prefactor  = 0.000101231
  Prefactor  = 0.000100001
  norm       = 0.000100677
  norm       = 33.2202
  Prefactor  = 0.000101028
  Prefactor  = 0.000100162
  Prefactor  = 0.000571104
  Prefactor  = 0.000100699
  Prefactor  = 130.25
  norm       = 31.7686
  Normalizat = 1.50899
  Prefactor  = 9.25312e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   739.3696     FROM HESSE     STATUS=OK           960 CALLS     6795 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8929        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11130E-03    126.81        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10072E-03    36.987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9220        4.8058        .59454E-02   -1.5366    
   5  Prefactor     63.612        63.596        .12581E-02   -1.4111    
   6  Prefactor     .10007E-03    29.928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10009E-03    29.654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10048E-03    45.706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     297.02        202.88        .58905E-03   -1.2244    
  10  norm          2.6787        3.1505        .62269E-02   -1.5381    
  11  norm          45.789        76.818        .14815E-02   -1.4354    
  12  Prefactor     .10218E-03    73.790        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12622E-03    170.31        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10031E-03    46.487        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3032        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.3248        9.3517        .32816E-02   -1.5097    
  17  Prefactor     110.75        253.49        .95550E-03   -1.3599    
  18  Prefactor     .10028E-03    500.12        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10009E-03    65.939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.861        5.8012        .25979E-02   -1.4937    
  21  norm          .10000E-03    17.925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.9686        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7929        63.268        .77268E-02   -1.5440    
  24  Prefactor     22.554        74.248        .21092E-02   -1.4758    
  25  Prefactor     .10000E-03    15.337        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10070E-03    44.614        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10123E-03    60.063        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.6404        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10068E-03    63.112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          33.220        25.038        .17384E-02   -1.4555    
  31  Prefactor     .10103E-03    55.228        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10016E-03    65.779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .57110E-03    1075.3        .96496E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10070E-03    71.268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     130.25        341.03        .88200E-03   -1.3420    
  36  norm          31.769        31.881        .17773E-02   -1.4580    
  37  Normalizat    1.5090        .49030        .52164E-01   -.77526    
  38  Prefactor     .92531E-09    1.2142        .20692       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54937e-06
Minuit parameter uncertainties:
  1  5.01671e-06
  2  0.0758782
  3  0.0103087
  4  4.80648
  5  63.6639
  6  0.00281669
  7  0.00334432
  8  0.00942116
  9  203.365
  10  3.1507
  11  76.9843
  12  0.0254158
  13  0.134028
  14  0.00763024
  15  7.5122e-05
  16  9.35312
  17  256.034
  18  0.0239877
  19  0.00492137
  20  5.80141
  21  7.26464e-05
  22  0.000100466
  23  21.3251
  24  74.5545
  25  0.00012239
  26  0.011147
  27  0.017218
  28  0.000227358
  29  0.0130853
  30  25.0462
  31  0.0150816
  32  0.00653129
  33  1.45035
  34  0.0141329
  35  346.391
  36  31.8982
  37  0.491861
  38  6.84737e-05
Done.

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

Extracting fit parameters...

4FGL J1047.2+6740
   Spectrum: PowerLaw
399    Prefactor:  1.003e-04  2.399e-02  1.000e-04  1.000e+04 ( 1.000e-15)
400        Index:  1.894e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
401        Scale:  3.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
757    Prefactor:  9.253e-10  6.847e-05  0.000e+00  1.000e+01 ( 1.000e+00)
758        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
759        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
756   Normalization:  1.509e+00  4.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 161.820 67.674
Photon Flux Upper Limit: 2.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/132806/likelihoodResults_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.txt

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): 102
logL (Free Index) = 739.369586239
delta logL = -1.04654515098e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 739.369586105
delta logL = -1.03321099232e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96234E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8939       1.0000          .0000       10.000    
     3 'Normalizat'    1.5090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74642E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   739.3696     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      218 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    350.38        .90725E-02** at limit **
   2  Index         1.8578        5.9284        .50000        .50726E-06
   3  Normalizat    1.5090        .11269E-01    .52164E-01    .26024E-04
   4  Prefactor     .10695E-09    .79524E-03    .20744    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Index      = 1.85778
  Normalizat = 1.50899
  Prefactor  = 1.06954e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   739.3696     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      249 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    1679.5        .18145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8578        8.0586        .50000       -.67955    
   3  Normalizat    1.5090        .25330E-01    .23058E-03   -.77526    
   4  Prefactor     .10695E-09    .25112E-01    .13020E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.56537e-09
Minuit parameter uncertainties:
  1  0.0157297
  2  500.795
  3  0.02533
  4  3.27911e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/132806': 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): 102
logL (Free Index) = 739.369575768
delta logL = 5.28279997525e-09

Extracting fit parameters...

4FGL J1047.2+6740
   Spectrum: PowerLaw
399    Prefactor:  1.000e-04  1.573e-02  1.000e-04  1.000e+04 ( 1.000e-15)
400        Index:  1.858e+00  5.008e+02  0.000e+00  1.000e+01 (-1.000e+00)
401        Scale:  3.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
757    Prefactor:  1.070e-10  3.279e-06  0.000e+00  1.000e+01 ( 1.000e+00)
758        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
759        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
756   Normalization:  1.509e+00  2.533e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 161.820 67.674

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/132806/cmap_HighResolution_408844801_409104001_4FGL_J1047.2+6740_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', job_status='DONE', photon_flux_upper_limit='2.51e-07', time_completed='2021-09-02 12:07:26.074785', job_id='132806', GAL2='0.00', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630609646.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='5.28e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='654' AND source_name='4FGL J1047.2+6740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 12:07:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 132806: <4FGL_J1047.2+6740_daily_bin654> in cluster <slac> Done

Job <4FGL_J1047.2+6740_daily_bin654> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 11:51:40 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:55:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 11:55:04 2021
Terminated at Thu Sep  2 12:07:26 2021
Results reported at Thu Sep  2 12:07:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1047.2+6740_daily_bin654 161.82 67.6735 408844801 409104001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1047.2+6740 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   496.41 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             215.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            946 sec.

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

