/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 9 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0347.7-3616_daily_bin270
RA = 56.947, Dec = -36.2808
tmin = 309312001, tmax = 309571201
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='969148', job_status='RUN', time_executed='2021-08-19 12:30:44.749577', time_epoch_executed='1629401444.75' WHERE source_name='4FGL J0347.7-3616' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/969148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/969148/ft1_4FGL_J0347.7-3616_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/969148/ft2_4FGL_J0347.7-3616_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/969148/ft1_4FGL_J0347.7-3616_daily_bin270.fits outfile=/scratch/kocevski/969148/ft1_filteredMKT_4FGL_J0347.7-3616_daily_bin270.fits ra=56.947 dec=-36.2808 rad=12.0 tmin=309312001.0 tmax=309571201.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 4.00
user 3.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/969148/ft2_4FGL_J0347.7-3616_daily_bin270.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/969148/ft1_filteredMKT_4FGL_J0347.7-3616_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/969148/ft1_filtered_4FGL_J0347.7-3616_daily_bin270.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/969148/ft1_filtered_4FGL_J0347.7-3616_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/969148/ft2_4FGL_J0347.7-3616_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/969148/ltcube_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.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/969148/ft2_4FGL_J0347.7-3616_daily_bin270.fits
.....................!
real 12.06
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/969148/ft1_filtered_4FGL_J0347.7-3616_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/969148/ft2_4FGL_J0347.7-3616_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/969148/ltcube_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.fits outfile=/scratch/kocevski/969148/expmap_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.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/969148/ltcube_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.fits
.....................!
real 190.62
user 184.95
sys 5.36

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/969148/ft1_filtered_4FGL_J0347.7-3616_daily_bin270.fits scfile=/scratch/kocevski/969148/ft2_4FGL_J0347.7-3616_daily_bin270.fits outfile=/scratch/kocevski/969148/cmap_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.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 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/969148/ft1_filtered_4FGL_J0347.7-3616_daily_bin270.fits scfile=/scratch/kocevski/969148/ft2_4FGL_J0347.7-3616_daily_bin270.fits outfile=/scratch/kocevski/969148/cmap_HighResolution_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.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 0.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/969148/ft1_filtered_4FGL_J0347.7-3616_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/969148/ft2_4FGL_J0347.7-3616_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/969148/Model_4FGL_J0347.7-3616_daily_bin270.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/969148/ft1_filtered_4FGL_J0347.7-3616_daily_bin270.fits.....................!
real 152.42
user 150.93
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/969148/ft1_filtered_4FGL_J0347.7-3616_daily_bin270.fits', '/scratch/kocevski/969148/ft2_4FGL_J0347.7-3616_daily_bin270.fits', expMap='/scratch/kocevski/969148/expmap_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.fits', expCube='/scratch/kocevski/969148/ltcube_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/969148/Model_4FGL_J0347.7-3616_daily_bin270.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/969148/ft1_filtered_4FGL_J0347.7-3616_daily_bin270.fits
Spacecraft file(s): /scratch/kocevski/969148/ft2_4FGL_J0347.7-3616_daily_bin270.fits
Exposure map: /scratch/kocevski/969148/expmap_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.fits
Exposure cube: /scratch/kocevski/969148/ltcube_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/969148/Model_4FGL_J0347.7-3616_daily_bin270.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) = 7209.04305655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12073E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11352E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8990       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0687       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9031       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.639       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .72852       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8222       1.0000         .10000E-03   10000.    
    15 'norm      '    15.329       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12524E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.602       1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.929       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0980       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2361       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .58294       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=   7209.026     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     1924 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.062       -.58886E-05** at limit **
   2  Prefactor     .10000E-03    35.634        .86750E-05** at limit **
   3  Prefactor     .10000E-03    22.653       -.92115E-06** at limit **
   4  Prefactor     .10003E-03    126.73       -.39589E-04** at limit **
   5  norm          1.8994        1.8817       -.49808E-07   -.30935E-03
   6  norm          1.0690        .72486       -.25213E-07   -.60783E-03
   7  Prefactor     .10000E-03    18.193       -.10441E-05** at limit **
   8  Prefactor     .10000E-03    14.027        .16292E-06** at limit **
   9  Prefactor     1.9027        2.2379        .64798E-08    .14787E-03
  10  Prefactor     23.649        15.666        .40130E-07   -.38767E-04
  11  norm          .10000E-03    .24710        .29498E-08** at limit **
  12  Prefactor     .10000E-03    45.390       -.40747E-05** at limit **
  13  norm          .74184        10.180        .28159E-06    .43736E-03
  14  norm          1.8225        .43541       -.48663E-07    .47357E-03
  15  norm          15.331        7.4531        .20331E-05    .74710E-03
  16  Prefactor     .10000E-03    48.865       -.65799E-05** at limit **
  17  Prefactor     12.616        15.305        .61491E-07    .35704E-04
  18  Prefactor     47.945        15.248        .76881E-07    .90081E-04
  19  norm          5.0975        1.1048       -.10032E-07    .76317E-04
  20  Normalizat    1.2353        .15943       -.34654E-06   -.24530E-04
  21  Prefactor     .58339        .17437       -.45945E-06   -.74545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  norm       = 1.89944
  norm       = 1.06905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90273
  Prefactor  = 23.6489
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.741836
  norm       = 1.82249
  norm       = 15.3309
  Prefactor  = 0.000100001
  Prefactor  = 12.6157
  Prefactor  = 47.9452
  norm       = 5.09747
  Normalizat = 1.23525
  Prefactor  = 0.583394
 **********
 **   18 **HESSE 
 **********

 FCN=   7209.026     FROM HESSE     STATUS=OK           321 CALLS     2245 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    128.57        .70921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8994        1.8903        .11212E-03   -1.5432    
   6  norm          1.0690        .70862        .56966E-04   -1.5501    
   7  Prefactor     .10000E-03    18.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9027        2.2227        .13377E-03   -1.5432    
  10  Prefactor     23.649        15.671        .82387E-04   -1.4735    
  11  norm          .10000E-03    .25838        .82279E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .74184        13.156        .48683E-03   -1.5536    
  14  norm          1.8225        .43691        .25399E-04   -1.5438    
  15  norm          15.331        7.5906        .10230E-03   -1.4925    
  16  Prefactor     .10000E-03    49.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.616        15.294        .11284E-03   -1.4997    
  18  Prefactor     47.945        15.329        .57920E-04   -1.4322    
  19  norm          5.0975        1.1113        .35037E-04   -1.5256    
  20  Normalizat    1.2353        .18761        .22026E-03   -.85520    
  21  Prefactor     .58339        .20425        .34538E-03   -1.0829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64462e-09
Minuit parameter uncertainties:
  1  0.00059057
  2  0.000231651
  3  4.35342e-05
  4  0.00387916
  5  1.89034
  6  0.708627
  7  5.76403e-05
  8  1.49976e-05
  9  2.22276
  10  15.6733
  11  1.4003e-06
  12  0.000360482
  13  6.24918
  14  0.436908
  15  7.59107
  16  0.00051287
  17  15.2991
  18  15.3306
  19  1.1113
  20  0.187716
  21  0.204507
Done.

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

Extracting fit parameters...

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  2.365e+01  1.567e+01  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:  5.834e-01  2.045e-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:  1.235e+00  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.04
Ra Dec: 56.947 -36.281
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.14e-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) = 7209.02425895
delta logL = 0.0013476321019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7209.02333248
delta logL = 0.00227410099433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.847       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4341       1.0000          .0000       10.000    
     3 'Normalizat'    1.2333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58495       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=   7209.023     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      276 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.858        20.202        .83800E-04    .84519E-04
   2  Index         2.4338        .61404        .70867E-02    .42981E-03
   3  Normalizat    1.2332        .18438        .22040E-03   -.56255E-04
   4  Prefactor     .58494        .20326        .34495E-03   -.23432E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8584
  Index      = 2.43378
  Normalizat = 1.23323
  Prefactor  = 0.584941
 **********
 **   18 **HESSE 
 **********

 FCN=   7209.023     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.858        19.329        .33520E-05   -1.4751    
   2  Index         2.4338        .58719        .14173E-02   -.53896    
   3  Normalizat    1.2332        .18427        .44080E-04   -.85582    
   4  Prefactor     .58494        .20322        .13798E-04   -1.0822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57414e-11
Minuit parameter uncertainties:
  1  19.3346
  2  0.58904
  3  0.184363
  4  0.203475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/969148': 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) = 7209.0233322
delta logL = 0.00227437465583

Extracting fit parameters...

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  2.286e+01  1.933e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.434e+00  5.890e-01  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:  5.849e-01  2.035e-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:  1.233e+00  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.04
Ra Dec: 56.947 -36.281
Photon Index (Free Index): 2.43 +/- 0.59
Photon Flux (Free Index): 5.39e-08 +/- 4.28e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/969148/cmap_HighResolution_309312001_309571201_4FGL_J0347.7-3616_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='1.69e-05', photon_flux_error='3.45e-08', dlogl='2.27e-03', energy_flux='1.72e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-08-19 12:42:20.649537', photon_index_error2='0.59', photon_index2='2.43', ts='4.04', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='1.24', time_epoch_completed='1629402140.65', return_code='0', job_id='969148', GAL2='0.58', EG2='1.23', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.28e-08', ts2='4.04', photon_index='2.39' WHERE bin_id='270' AND source_name='4FGL J0347.7-3616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 12:42:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 969148: <4FGL_J0347.7-3616_daily_bin270> in cluster <slac> Done

Job <4FGL_J0347.7-3616_daily_bin270> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 12:30:25 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 12:30:27 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:30:27 2021
Terminated at Thu Aug 19 12:42:21 2021
Results reported at Thu Aug 19 12:42:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0347.7-3616_daily_bin270 56.947 -36.2808 309312001 309571201 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 :                                   690.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            716 sec.

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

