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


Performing analysis on: 4FGL_J1047.7+7238_daily_bin664
RA = 161.939, Dec = 72.642
tmin = 411436801, tmax = 411696001
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='175577', job_status='RUN', time_executed='2021-09-02 14:19:04.950800', time_epoch_executed='1630617544.95' WHERE source_name='4FGL J1047.7+7238' and cadence='daily' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175577/ft1_4FGL_J1047.7+7238_daily_bin664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175577/ft2_4FGL_J1047.7+7238_daily_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175577/ft1_4FGL_J1047.7+7238_daily_bin664.fits outfile=/scratch/kocevski/175577/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin664.fits ra=161.939 dec=72.642 rad=12.0 tmin=411436801.0 tmax=411696001.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 6.84
user 6.49
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/175577/ft2_4FGL_J1047.7+7238_daily_bin664.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175577/ft2_4FGL_J1047.7+7238_daily_bin664.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/175577/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin664.fits evtable="EVENTS" outfile="/scratch/kocevski/175577/ft1_filtered_4FGL_J1047.7+7238_daily_bin664.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.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175577/ft1_filtered_4FGL_J1047.7+7238_daily_bin664.fits" evtable="EVENTS" scfile=/scratch/kocevski/175577/ft2_4FGL_J1047.7+7238_daily_bin664.fits sctable="SC_DATA" outfile=/scratch/kocevski/175577/ltcube_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.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/175577/ft2_4FGL_J1047.7+7238_daily_bin664.fits
.....................!
real 15.77
user 15.36
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175577/ft1_filtered_4FGL_J1047.7+7238_daily_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/175577/ft2_4FGL_J1047.7+7238_daily_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/175577/ltcube_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.fits outfile=/scratch/kocevski/175577/expmap_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.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/175577/ltcube_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.fits
.....................!
real 190.68
user 185.89
sys 4.26

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

Setting source of interest to:
4FGL J1047.7+7238 @ 161.939 72.642

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/175577/ft1_filtered_4FGL_J1047.7+7238_daily_bin664.fits scfile=/scratch/kocevski/175577/ft2_4FGL_J1047.7+7238_daily_bin664.fits outfile=/scratch/kocevski/175577/cmap_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.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.939 yref=72.642 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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175577/ft1_filtered_4FGL_J1047.7+7238_daily_bin664.fits scfile=/scratch/kocevski/175577/ft2_4FGL_J1047.7+7238_daily_bin664.fits outfile=/scratch/kocevski/175577/cmap_HighResolution_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.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.939 yref=72.642 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175577/ft1_filtered_4FGL_J1047.7+7238_daily_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/175577/ft2_4FGL_J1047.7+7238_daily_bin664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175577/Model_4FGL_J1047.7+7238_daily_bin664.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/175577/ft1_filtered_4FGL_J1047.7+7238_daily_bin664.fits.....................!
real 53.87
user 52.41
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/175577/ft1_filtered_4FGL_J1047.7+7238_daily_bin664.fits', '/scratch/kocevski/175577/ft2_4FGL_J1047.7+7238_daily_bin664.fits', expMap='/scratch/kocevski/175577/expmap_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.fits', expCube='/scratch/kocevski/175577/ltcube_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/175577/Model_4FGL_J1047.7+7238_daily_bin664.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.7+7238'

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.026e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/175577/ft1_filtered_4FGL_J1047.7+7238_daily_bin664.fits
Spacecraft file(s): /scratch/kocevski/175577/ft2_4FGL_J1047.7+7238_daily_bin664.fits
Exposure map: /scratch/kocevski/175577/expmap_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.fits
Exposure cube: /scratch/kocevski/175577/ltcube_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/175577/Model_4FGL_J1047.7+7238_daily_bin664.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) = 3909.39911231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.421       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.3709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    78.570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .27006       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12316E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4467       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.838       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10948E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    666.77       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.158       1.0000         .10000E-03   10000.    
    17 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.413       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.175       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14824E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .59077E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10295E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83027       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82896       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3909.371     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3800 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.474        94.361        .12067E-06    .35801E-04
   2  Prefactor     .10000E-03    5.1488        .23568E-06** at limit **
   3  norm          9.3702        10.009       -.24417E-06   -.23039E-05
   4  Prefactor     78.610        103.89        .93829E-06    .25305E-04
   5  Prefactor     .10000E-03    23.718        .35706E-08** at limit **
   6  norm          .27044        .91279        .34570E-06   -.65056E-03
   7  norm          .10000E-03    12.266       -.79498E-07** at limit **
   8  Prefactor     .10000E-03    113.33        .23068E-04** at limit **
   9  Prefactor     2.5070        98.324        .15398E-06   -.83167E-05
  10  Prefactor     33.911        59.419       -.34663E-05   -.12317E-03
  11  norm          .10000E-03    1.3055       -.38042E-07** at limit **
  12  Prefactor     .10000E-03    71.504        .13155E-05** at limit **
  13  norm          .10000E-03    12.169       -.92845E-06** at limit **
  14  Prefactor     666.88        408.91       -.16522E-06    .15324E-04
  15  Prefactor     .10000E-03    4.0814        .25634E-06** at limit **
  16  norm          16.158        2.2996       -.46683E-07   -.56295E-03
  17  norm          .10000E-03    3.5580       -.47020E-07** at limit **
  18  Prefactor     10.382        21.967        .40653E-06    .11599E-04
  19  Prefactor     .10000E-03    6.7459       -.37156E-07** at limit **
  20  Prefactor     .10000E-03    22.987       -.68508E-06** at limit **
  21  Prefactor     .10000E-03    4.4926       -.34803E-06** at limit **
  22  Prefactor     .10000E-03    19.775       -.94883E-07** at limit **
  23  Prefactor     32.262        74.028        .17254E-05    .81063E-04
  24  Prefactor     .10140E-03    23.591        .98765E-06** at limit **
  25  norm          .10000E-03    3.6115       -.77841E-06** at limit **
  26  norm          .10000E-03    3.4581       -.22364E-06** at limit **
  27  Prefactor     .10000E-03    20.489       -.13583E-06** at limit **
  28  Normalizat    .83005        .22340        .43212E-05   -.67007E-04
  29  Prefactor     .82876        .20782       -.21386E-05    .13248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.4741
  Prefactor  = 0.0001
  norm       = 9.37022
  Prefactor  = 78.6098
  Prefactor  = 0.0001
  norm       = 0.270442
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.50697
  Prefactor  = 33.9106
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 666.878
  Prefactor  = 0.0001
  norm       = 16.1583
  norm       = 0.0001
  Prefactor  = 10.3818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2618
  Prefactor  = 0.000101399
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.830054
  Prefactor  = 0.828763
 **********
 **   18 **HESSE 
 **********

 FCN=   3909.371     FROM HESSE     STATUS=OK           543 CALLS     4343 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.474        94.174        .63048E-04   -1.4435    
   2  Prefactor     .10000E-03    5.1523        .13854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.3702        10.077        .13092E-03   -1.5096    
   4  Prefactor     78.610        104.54        .45306E-04   -1.3932    
   5  Prefactor     .10000E-03    23.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .27044        1.1890        .10383E-02   -1.5604    
   7  norm          .10000E-03    12.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    115.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5070        89.568        .26153E-03   -1.5391    
  10  Prefactor     33.911        61.413        .68888E-04   -1.4543    
  11  norm          .10000E-03    1.3063        .69772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    71.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     666.88        408.51        .80172E-04   -1.0484    
  15  Prefactor     .10000E-03    4.0912        .12327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.158        2.2939        .33740E-04   -1.4904    
  17  norm          .10000E-03    3.5953        .11489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.382        20.769        .12417E-03   -1.5063    
  19  Prefactor     .10000E-03    6.7649        .15850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5961        .12940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.262        73.929        .70640E-04   -1.4571    
  24  Prefactor     .10140E-03    229.80        .57324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    16.466        .22344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    12.186        .21553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .83005        .24290        .27877E-03   -.98963    
  29  Prefactor     .82876        .22885        .25075E-03   -.98677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42661e-09
Minuit parameter uncertainties:
  1  94.5227
  2  3.74802e-06
  3  10.0789
  4  104.79
  5  7.74222e-05
  6  1.13394
  7  1.40629e-05
  8  0.000426446
  9  30.0177
  10  61.5274
  11  1.0476e-06
  12  6.35734e-05
  13  5.22758e-05
  14  410.36
  15  2.45594e-06
  16  2.29391
  17  7.49496e-06
  18  20.7838
  19  1.09612e-05
  20  0.000145029
  21  5.09296e-06
  22  4.20117e-05
  23  74.1396
  24  0.0360022
  25  0.000277209
  26  0.000123641
  27  5.56616e-05
  28  0.243218
  29  0.229114
Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  2.456e-06  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  8.288e-01  2.291e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  8.301e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 161.939 72.642
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/175577/likelihoodResults_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.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) = 3909.37170736
delta logL = -0.00115283673495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3909.37055484
delta logL = -3.12025804305e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1957       1.0000          .0000       10.000    
     3 'Normalizat'    .83010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82873       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3909.371     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      241 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10168E-03    31.245        .13101E-02** at limit **
   2  Index         2.1330        5.3821        .50000        .64765E-04
   3  Normalizat    .83006        .14368E-01    .27876E-03    .20921E-04
   4  Prefactor     .82876        .13007E-01    .25076E-03    .33459E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010168
  Index      = 2.13299
  Normalizat = 0.830058
  Prefactor  = 0.82876
 **********
 **   18 **HESSE 
 **********

 FCN=   3909.371     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10168E-03    131.40        .26203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1330        6.0648        .50000       -.61065    
   3  Normalizat    .83006        .30199E-01    .11151E-04   -.98963    
   4  Prefactor     .82876        .27336E-01    .10030E-04   -.98677    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.62676e-08
Minuit parameter uncertainties:
  1  0.0297792
  2  209.992
  3  0.0301994
  4  0.0273363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175577': 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) = 3909.37055292
delta logL = 1.60294894158e-06

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.017e-04  2.978e-02  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.133e+00  2.100e+02  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  2.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  8.288e-01  2.734e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  8.301e-01  3.020e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 161.939 72.642

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/175577/cmap_HighResolution_411436801_411696001_4FGL_J1047.7+7238_daily_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-02 14:31:45.510180', job_id='175577', GAL2='0.83', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630618305.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='664' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 14:31:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 175577: <4FGL_J1047.7+7238_daily_bin664> in cluster <slac> Done

Job <4FGL_J1047.7+7238_daily_bin664> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 14:16:14 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 14:16:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 14:16:54 2021
Terminated at Thu Sep  2 14:31:46 2021
Results reported at Thu Sep  2 14:31:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1047.7+7238_daily_bin664 161.939 72.642 411436801 411696001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1047.7+7238 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            932 sec.

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

