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


Performing analysis on: 4FGL_J0347.7-3616_daily_bin840
RA = 56.947, Dec = -36.2808
tmin = 457056001, tmax = 457315201
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='973284', job_status='RUN', time_executed='2021-08-19 12:47:05.072243', time_epoch_executed='1629402425.07' WHERE source_name='4FGL J0347.7-3616' and cadence='daily' and bin_id='840'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973284/ft1_4FGL_J0347.7-3616_daily_bin840.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973284/ft2_4FGL_J0347.7-3616_daily_bin840.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973284/ft1_4FGL_J0347.7-3616_daily_bin840.fits outfile=/scratch/kocevski/973284/ft1_filteredMKT_4FGL_J0347.7-3616_daily_bin840.fits ra=56.947 dec=-36.2808 rad=12.0 tmin=457056001.0 tmax=457315201.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 9.41
user 4.12
sys 5.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/973284/ft2_4FGL_J0347.7-3616_daily_bin840.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/973284/ft2_4FGL_J0347.7-3616_daily_bin840.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/973284/ft1_filteredMKT_4FGL_J0347.7-3616_daily_bin840.fits evtable="EVENTS" outfile="/scratch/kocevski/973284/ft1_filtered_4FGL_J0347.7-3616_daily_bin840.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 5.54
user 0.33
sys 5.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973284/ft1_filtered_4FGL_J0347.7-3616_daily_bin840.fits" evtable="EVENTS" scfile=/scratch/kocevski/973284/ft2_4FGL_J0347.7-3616_daily_bin840.fits sctable="SC_DATA" outfile=/scratch/kocevski/973284/ltcube_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.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/973284/ft2_4FGL_J0347.7-3616_daily_bin840.fits
.....................!
real 17.58
user 11.51
sys 6.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973284/ft1_filtered_4FGL_J0347.7-3616_daily_bin840.fits evtable="EVENTS" scfile=/scratch/kocevski/973284/ft2_4FGL_J0347.7-3616_daily_bin840.fits sctable="SC_DATA" expcube=/scratch/kocevski/973284/ltcube_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.fits outfile=/scratch/kocevski/973284/expmap_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.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/973284/ltcube_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.fits
.....................!
real 197.38
user 186.00
sys 11.04

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 178 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0347.7-3616 @ 56.947 -36.2808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/973284/ft1_filtered_4FGL_J0347.7-3616_daily_bin840.fits scfile=/scratch/kocevski/973284/ft2_4FGL_J0347.7-3616_daily_bin840.fits outfile=/scratch/kocevski/973284/cmap_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.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=56.947 yref=-36.2808 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 5.43
user 0.36
sys 5.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973284/ft1_filtered_4FGL_J0347.7-3616_daily_bin840.fits scfile=/scratch/kocevski/973284/ft2_4FGL_J0347.7-3616_daily_bin840.fits outfile=/scratch/kocevski/973284/cmap_HighResolution_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.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=56.947 yref=-36.2808 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 5.42
user 0.38
sys 5.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/973284/ft1_filtered_4FGL_J0347.7-3616_daily_bin840.fits evtable="EVENTS" scfile=/scratch/kocevski/973284/ft2_4FGL_J0347.7-3616_daily_bin840.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/973284/Model_4FGL_J0347.7-3616_daily_bin840.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/973284/ft1_filtered_4FGL_J0347.7-3616_daily_bin840.fits.....................!
real 121.04
user 113.05
sys 7.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/973284/ft1_filtered_4FGL_J0347.7-3616_daily_bin840.fits', '/scratch/kocevski/973284/ft2_4FGL_J0347.7-3616_daily_bin840.fits', expMap='/scratch/kocevski/973284/expmap_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.fits', expCube='/scratch/kocevski/973284/ltcube_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/973284/Model_4FGL_J0347.7-3616_daily_bin840.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0347.7-3616'

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  1.940e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/973284/ft1_filtered_4FGL_J0347.7-3616_daily_bin840.fits
Spacecraft file(s): /scratch/kocevski/973284/ft2_4FGL_J0347.7-3616_daily_bin840.fits
Exposure map: /scratch/kocevski/973284/expmap_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.fits
Exposure cube: /scratch/kocevski/973284/ltcube_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/973284/Model_4FGL_J0347.7-3616_daily_bin840.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) = 5328.07908019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90709E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.768       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1667       1.0000         .10000E-03   10000.    
     5 'norm      '    5.8635       1.0000         .10000E-03   10000.    
     6 'norm      '    .14449       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.065       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.437       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .53413E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.286       1.0000         .10000E-03   10000.    
    13 'norm      '    8.2237       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4983       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.809       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.2637       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92501       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5328.074     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2497 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    6528.0       -.55061E-03** at limit **
   2  Prefactor     23.759        25.573       -.13864E-04    .10248E-03
   3  Prefactor     .10000E-03    12.120        .33525E-06** at limit **
   4  Prefactor     6.1201        117.30       -.17795E-03    .62358E-05
   5  norm          5.8636        3.7774        .11202E-07    .29563E-03
   6  norm          .14455        .65284       -.49883E-06   -.11854E-02
   7  Prefactor     42.098        62.602        .48260E-04    .16440E-04
   8  Prefactor     13.463        70.825        .68317E-04    .22234E-03
   9  Prefactor     .10000E-03    6.3658       -.11504E-05** at limit **
  10  Prefactor     .10000E-03    7.8757       -.15365E-05** at limit **
  11  norm          .53170E-01    .58040       -.13006E-05    .10248E-02
  12  Prefactor     72.358        129.42        .84146E-04    .51157E-04
  13  norm          8.2261        8.8887        .35808E-06    .10573E-03
  14  norm          3.4983        .66075       -.18545E-06    .12998E-02
  15  norm          .10000E-03    4.1541       -.21879E-06** at limit **
  16  Prefactor     58.808        46.858       -.13871E-05    .36883E-05
  17  Prefactor     .10000E-03    8.2417        .79824E-06** at limit **
  18  Prefactor     .10000E-03    6.3220        .14836E-05** at limit **
  19  norm          8.2637        1.2652       -.26019E-07   -.13306E-03
  20  Normalizat    .92507        .21277        .35486E-05    .67516E-03
  21  Prefactor     1.1099        .23315       -.23466E-05    .80587E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100247
  Prefactor  = 23.7593
  Prefactor  = 0.0001
  Prefactor  = 6.12013
  norm       = 5.86359
  norm       = 0.144552
  Prefactor  = 42.0982
  Prefactor  = 13.4628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0531703
  Prefactor  = 72.3584
  norm       = 8.22614
  norm       = 3.49825
  norm       = 0.0001
  Prefactor  = 58.808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.2637
  Normalizat = 0.92507
  Prefactor  = 1.10986
 **********
 **   18 **HESSE 
 **********

 FCN=   5328.074     FROM HESSE     STATUS=OK           319 CALLS     2816 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10025E-03    6541.5        .20825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.759        25.566        .82163E-04   -1.4733    
   3  Prefactor     .10000E-03    12.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1201        118.86        .16166E-03   -1.5213    
   5  norm          5.8636        3.7640        .10924E-03   -1.5224    
   6  norm          .14455        .99229        .11014E-02   -1.5632    
   7  Prefactor     42.098        62.497        .61808E-04   -1.4409    
   8  Prefactor     13.463        69.671        .10927E-03   -1.4974    
   9  Prefactor     .10000E-03    6.5876        .35856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .53170E-01    2.6731        .10238E-02   -1.5662    
  12  Prefactor     72.358        129.39        .23610E-03   -1.4005    
  13  norm          8.2261        8.8915        .13980E-03   -1.5134    
  14  norm          3.4983        .66350        .24334E-04   -1.5334    
  15  norm          .10000E-03    4.1668        .14526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     58.808        46.889        .52316E-04   -1.4173    
  17  Prefactor     .10000E-03    8.2594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3530        .17914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.2637        1.2649        .31052E-04   -1.5133    
  20  Normalizat    .92507        .25532        .27518E-03   -.95585    
  21  Prefactor     1.1099        .28108        .29162E-03   -.89152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63526e-09
Minuit parameter uncertainties:
  1  0.0584934
  2  25.5773
  3  0.000104686
  4  54.0652
  5  3.76412
  6  0.757216
  7  62.594
  8  61.3651
  9  4.56659e-05
  10  1.14207e-05
  11  0.753335
  12  129.898
  13  8.89288
  14  0.663501
  15  1.40651e-07
  16  46.9188
  17  1.47897e-06
  18  5.45771e-06
  19  1.26494
  20  0.255658
  21  0.281452
Done.

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

Extracting fit parameters...

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.142e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  1.110e+00  2.815e-01  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  9.251e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 56.947 -36.281
Photon Flux Upper Limit: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/973284/likelihoodResults_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.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) = 5328.07472887
delta logL = -0.000603614045758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5328.07412526
delta logL = 2.02544470085e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3776       1.0000          .0000       10.000    
     3 'Normalizat'    .92508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+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=   5328.074     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10170E-03    102.67        .18142E-02** at limit **
   2  Index         2.3047        6.9367        .50000        .15171E-04
   3  Normalizat    .92507        .17659E-01    .27518E-03    .54120E-05
   4  Prefactor     1.1099        .20388E-01    .29162E-03    .17855E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101701
  Index      = 2.30466
  Normalizat = 0.925071
  Prefactor  = 1.10986
 **********
 **   18 **HESSE 
 **********

 FCN=   5328.074     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10170E-03    423.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3047        7.1319        .50000       -.56933    
   3  Normalizat    .92507        .37790E-01    .11007E-04   -.95585    
   4  Prefactor     1.1099        .43629E-01    .11665E-04   -.89152    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.62877e-08
Minuit parameter uncertainties:
  1  0.0540744
  2  911.832
  3  0.0377907
  4  0.0436299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973284': 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) = 5328.074125
delta logL = 2.59807166003e-07

Extracting fit parameters...

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  1.017e-04  5.407e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.305e+00  9.118e+02  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  1.110e+00  4.363e-02  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  9.251e-01  3.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 56.947 -36.281

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/973284/cmap_HighResolution_457056001_457315201_4FGL_J0347.7-3616_daily_bin840.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-08-19 12:59:30.255668', job_id='973284', GAL2='1.11', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1629403170.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='840' AND source_name='4FGL J0347.7-3616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 12:59:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 973284: <4FGL_J0347.7-3616_daily_bin840> in cluster <slac> Done

Job <4FGL_J0347.7-3616_daily_bin840> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 19 12:45:29 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 12:45:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 12:45:30 2021
Terminated at Thu Aug 19 12:59:31 2021
Results reported at Thu Aug 19 12:59:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0347.7-3616_daily_bin840 56.947 -36.2808 457056001 457315201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0347.7-3616 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   820.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            842 sec.

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

