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


Performing analysis on: 4FGL_J1047.7+7238_daily_bin679
RA = 161.939, Dec = 72.642
tmin = 415324801, tmax = 415584001
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='175604', job_status='RUN', time_executed='2021-09-02 14:19:58.708880', time_epoch_executed='1630617598.71' WHERE source_name='4FGL J1047.7+7238' and cadence='daily' and bin_id='679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175604

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175604/ft1_4FGL_J1047.7+7238_daily_bin679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175604/ft2_4FGL_J1047.7+7238_daily_bin679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175604/ft1_4FGL_J1047.7+7238_daily_bin679.fits outfile=/scratch/kocevski/175604/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin679.fits ra=161.939 dec=72.642 rad=12.0 tmin=415324801.0 tmax=415584001.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.09
user 5.80
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175604/ft2_4FGL_J1047.7+7238_daily_bin679.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/175604/ft1_filteredMKT_4FGL_J1047.7+7238_daily_bin679.fits evtable="EVENTS" outfile="/scratch/kocevski/175604/ft1_filtered_4FGL_J1047.7+7238_daily_bin679.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175604/ft1_filtered_4FGL_J1047.7+7238_daily_bin679.fits" evtable="EVENTS" scfile=/scratch/kocevski/175604/ft2_4FGL_J1047.7+7238_daily_bin679.fits sctable="SC_DATA" outfile=/scratch/kocevski/175604/ltcube_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.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/175604/ft2_4FGL_J1047.7+7238_daily_bin679.fits
.....................!
real 15.29
user 14.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175604/ft1_filtered_4FGL_J1047.7+7238_daily_bin679.fits evtable="EVENTS" scfile=/scratch/kocevski/175604/ft2_4FGL_J1047.7+7238_daily_bin679.fits sctable="SC_DATA" expcube=/scratch/kocevski/175604/ltcube_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.fits outfile=/scratch/kocevski/175604/expmap_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.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/175604/ltcube_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.fits
.....................!
real 191.59
user 186.43
sys 4.55

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/175604/ft1_filtered_4FGL_J1047.7+7238_daily_bin679.fits scfile=/scratch/kocevski/175604/ft2_4FGL_J1047.7+7238_daily_bin679.fits outfile=/scratch/kocevski/175604/cmap_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.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.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175604/ft1_filtered_4FGL_J1047.7+7238_daily_bin679.fits scfile=/scratch/kocevski/175604/ft2_4FGL_J1047.7+7238_daily_bin679.fits outfile=/scratch/kocevski/175604/cmap_HighResolution_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175604/ft1_filtered_4FGL_J1047.7+7238_daily_bin679.fits evtable="EVENTS" scfile=/scratch/kocevski/175604/ft2_4FGL_J1047.7+7238_daily_bin679.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175604/Model_4FGL_J1047.7+7238_daily_bin679.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/175604/ft1_filtered_4FGL_J1047.7+7238_daily_bin679.fits.....................!
real 60.32
user 58.90
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/175604/ft1_filtered_4FGL_J1047.7+7238_daily_bin679.fits', '/scratch/kocevski/175604/ft2_4FGL_J1047.7+7238_daily_bin679.fits', expMap='/scratch/kocevski/175604/expmap_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.fits', expCube='/scratch/kocevski/175604/ltcube_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/175604/Model_4FGL_J1047.7+7238_daily_bin679.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/175604/ft1_filtered_4FGL_J1047.7+7238_daily_bin679.fits
Spacecraft file(s): /scratch/kocevski/175604/ft2_4FGL_J1047.7+7238_daily_bin679.fits
Exposure map: /scratch/kocevski/175604/expmap_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.fits
Exposure cube: /scratch/kocevski/175604/ltcube_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/175604/Model_4FGL_J1047.7+7238_daily_bin679.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) = 4692.13726071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1543       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.993       1.0000         .10000E-03   10000.    
     6 'norm      '    .10230E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3686       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.592       1.0000         .10000E-03   10000.    
    11 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.597       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9241       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.457       1.0000         .10000E-03   10000.    
    23 'Prefactor '    147.69       1.0000         .10000E-03   10000.    
    24 'Prefactor '    603.92       1.0000         .10000E-03   10000.    
    25 'norm      '    .10404E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10857E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.5140       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88735       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95012       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=   4692.082     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3683 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.234        .95978E-07** at limit **
   2  Prefactor     .10000E-03    1.3581        .33552E-07** at limit **
   3  norm          1.1536        2.2413        .47931E-06    .23663E-04
   4  Prefactor     .10000E-03    27.225       -.37216E-07** at limit **
   5  Prefactor     32.994        17.372       -.14006E-06   -.68904E-04
   6  norm          .10000E-03    .24114        .19857E-06** at limit **
   7  norm          4.3694        13.825        .33996E-06   -.13891E-04
   8  Prefactor     .10000E-03    8.1720       -.12269E-06** at limit **
   9  Prefactor     .10000E-03    5.6107        .88655E-07** at limit **
  10  Prefactor     12.580        20.707        .55175E-07   -.26882E-05
  11  norm          .10000E-03    2.5428        .19901E-06** at limit **
  12  Prefactor     .10000E-03    19.830       -.67006E-07** at limit **
  13  norm          .10000E-03    1.4710        .28635E-07** at limit **
  14  Prefactor     .10000E-03    60.505        .59014E-07** at limit **
  15  Prefactor     10.597        8.5786        .13589E-05   -.50666E-04
  16  norm          6.9241        1.6823       -.15411E-06    .14033E-03
  17  norm          .10000E-03    .97712        .43667E-07** at limit **
  18  Prefactor     .10000E-03    2.7633        .84550E-08** at limit **
  19  Prefactor     .10000E-03    1.8074        .19842E-07** at limit **
  20  Prefactor     .10000E-03    29.809        .20397E-06** at limit **
  21  Prefactor     .10000E-03    1.8167       -.10842E-09** at limit **
  22  Prefactor     18.463        13.984        .63688E-06    .28817E-03
  23  Prefactor     147.59        100.63       -.27786E-06   -.32817E-04
  24  Prefactor     603.96        247.11        .42249E-06    .41785E-05
  25  norm          .10000E-03    8.2896       -.13521E-06** at limit **
  26  norm          .10000E-03    3.8958       -.96036E-06** at limit **
  27  Prefactor     9.4702        139.82        .84262E-07   -.51407E-07
  28  Normalizat    .88648        .21587       -.19449E-05    .85078E-05
  29  Prefactor     .95103        .18570        .95263E-06   -.51146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15361
  Prefactor  = 0.0001
  Prefactor  = 32.9935
  norm       = 0.0001
  norm       = 4.3694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5804
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5968
  norm       = 6.92412
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4632
  Prefactor  = 147.591
  Prefactor  = 603.956
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 9.47024
  Normalizat = 0.886484
  Prefactor  = 0.951033
 **********
 **   18 **HESSE 
 **********

 FCN=   4692.082     FROM HESSE     STATUS=OK           547 CALLS     4230 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3594        .77962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1536        2.2267        .13349E-03   -1.5493    
   4  Prefactor     .10000E-03    27.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.994        17.393        .69762E-04   -1.4559    
   6  norm          .10000E-03    .28257        .64911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3694        13.796        .19270E-03   -1.5290    
   8  Prefactor     .10000E-03    8.1907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6289        .15847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.580        20.670        .11288E-03   -1.4998    
  11  norm          .10000E-03    2.6146        .21338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4766        .81118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    60.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.597        8.5799        .61541E-03   -1.5057    
  16  norm          6.9241        1.6906        .35692E-04   -1.5182    
  17  norm          .10000E-03    .98176        .66068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7654        .11119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8098        .89911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.8174        .90169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.463        13.652        .93228E-04   -1.4848    
  23  Prefactor     147.59        100.60        .16580E-03   -1.3272    
  24  Prefactor     603.96        247.62        .83959E-04   -1.0742    
  25  norm          .10000E-03    8.4182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.4764        .24135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.4702        140.32        .12992E-03   -1.5092    
  28  Normalizat    .88648        .23860        .28116E-03   -.96937    
  29  Prefactor     .95103        .20687        .23677E-03   -.94380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37667e-10
Minuit parameter uncertainties:
  1  2.92007e-06
  2  1.6961e-07
  3  2.22682
  4  5.35213e-05
  5  17.3957
  6  6.21939e-07
  7  13.8065
  8  2.07433e-06
  9  1.41731e-06
  10  20.682
  11  3.26167e-06
  12  1.15912e-05
  13  2.98553e-07
  14  1.35241e-05
  15  8.58086
  16  1.69061
  17  7.66124e-07
  18  7.90112e-09
  19  5.62429e-07
  20  7.59018e-06
  21  2.07044e-07
  22  13.6544
  23  100.717
  24  248.07
  25  3.39479e-06
  26  0.000142232
  27  73.1145
  28  0.238885
  29  0.207039
Done.

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

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.060e+01  8.581e+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

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.510e-01  2.070e-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.865e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 161.939 72.642
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 8.22e-08 +/- 6.66e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 2.81e-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) = 4692.02716911
delta logL = 0.0545308131341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4692.0128835
delta logL = 0.0688164315989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.089       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0506       1.0000          .0000       10.000    
     3 'Normalizat'    .89653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94707       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=   4692.013     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      278 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.092        11.329        .11072E-03    .64587E-04
   2  Index         2.0504        .50912        .56836E-02    .37049E-03
   3  Normalizat    .89648        .23315        .27997E-03   -.36384E-04
   4  Prefactor     .94706        .20227        .23731E-03   -.40002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0923
  Index      = 2.05041
  Normalizat = 0.896479
  Prefactor  = 0.947057
 **********
 **   18 **HESSE 
 **********

 FCN=   4692.013     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.092        11.014        .44287E-05   -1.4984    
   2  Index         2.0504        .49483        .11367E-02   -.63096    
   3  Normalizat    .89648        .23317        .11199E-04   -.96584    
   4  Prefactor     .94706        .20238        .94924E-05   -.94516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35475e-11
Minuit parameter uncertainties:
  1  11.0154
  2  0.496074
  3  0.233437
  4  0.202541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175604': 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) = 4692.01288327
delta logL = 0.0688166626287

Extracting fit parameters...

4FGL J1047.7+7238
   Spectrum: PowerLaw
374    Prefactor:  1.309e+01  1.102e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.050e+00  4.961e-01  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:  9.471e-01  2.025e-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.965e-01  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.93
Ra Dec: 161.939 72.642
Photon Index (Free Index): 2.05 +/- 0.50
Photon Flux (Free Index): 6.79e-08 +/- 6.43e-08
Energy Flux (Free Index): 4.16e-05 +/- 3.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/175604/cmap_HighResolution_415324801_415584001_4FGL_J1047.7+7238_daily_bin679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.22e-08', energy_flux2='4.16e-05', photon_flux_error='6.66e-08', dlogl='6.88e-02', energy_flux='3.47e-05', photon_flux2='6.79e-08', job_status='DONE', time_completed='2021-09-02 14:32:38.673805', photon_index_error2='0.50', photon_index2='2.05', ts='4.56', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.71e-05', EG='0.89', time_epoch_completed='1630618358.67', return_code='0', job_id='175604', GAL2='0.95', EG2='0.90', return_code2='0', energy_flux_error='2.81e-05', photon_flux_error2='6.43e-08', ts2='4.93', photon_index='2.23' WHERE bin_id='679' AND source_name='4FGL J1047.7+7238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 14:32:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 175604: <4FGL_J1047.7+7238_daily_bin679> in cluster <slac> Done

Job <4FGL_J1047.7+7238_daily_bin679> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 14:16:16 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 14:16:57 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:57 2021
Terminated at Thu Sep  2 14:32:39 2021
Results reported at Thu Sep  2 14:32:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1047.7+7238_daily_bin679 161.939 72.642 415324801 415584001 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 :                                   752.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            983 sec.

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

