/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 45 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 = 7430
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1215
RA = 56.3187, Dec = -23.885
tmin = 554256001, tmax = 554515201
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='838361', job_status='RUN', time_executed='2021-08-19 04:20:04.990186', time_epoch_executed='1629372004.99' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838361

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838361/ft1_4FGL_J0345.2-2353_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838361/ft1_4FGL_J0345.2-2353_daily_bin1215.fits outfile=/scratch/kocevski/838361/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1215.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=554256001.0 tmax=554515201.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 10.49
user 3.78
sys 6.66

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.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/838361/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/838361/ft1_filtered_4FGL_J0345.2-2353_daily_bin1215.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 6.92
user 0.32
sys 6.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838361/ft1_filtered_4FGL_J0345.2-2353_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/838361/ltcube_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.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/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.fits
.....................!
real 19.00
user 11.46
sys 7.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838361/ft1_filtered_4FGL_J0345.2-2353_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/838361/ltcube_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.fits outfile=/scratch/kocevski/838361/expmap_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.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/838361/ltcube_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.fits
.....................!
real 198.18
user 184.86
sys 12.90

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 155 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 J0345.2-2353 @ 56.3187 -23.885

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/838361/ft1_filtered_4FGL_J0345.2-2353_daily_bin1215.fits scfile=/scratch/kocevski/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.fits outfile=/scratch/kocevski/838361/cmap_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.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.3187 yref=-23.885 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 6.85
user 0.37
sys 6.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838361/ft1_filtered_4FGL_J0345.2-2353_daily_bin1215.fits scfile=/scratch/kocevski/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.fits outfile=/scratch/kocevski/838361/cmap_HighResolution_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.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.3187 yref=-23.885 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 6.79
user 0.39
sys 6.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838361/ft1_filtered_4FGL_J0345.2-2353_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838361/Model_4FGL_J0345.2-2353_daily_bin1215.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/838361/ft1_filtered_4FGL_J0345.2-2353_daily_bin1215.fits.....................!
real 108.77
user 98.98
sys 9.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/838361/ft1_filtered_4FGL_J0345.2-2353_daily_bin1215.fits', '/scratch/kocevski/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.fits', expMap='/scratch/kocevski/838361/expmap_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.fits', expCube='/scratch/kocevski/838361/ltcube_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/838361/Model_4FGL_J0345.2-2353_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0345.2-2353'

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  2.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/838361/ft1_filtered_4FGL_J0345.2-2353_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/838361/ft2_4FGL_J0345.2-2353_daily_bin1215.fits
Exposure map: /scratch/kocevski/838361/expmap_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.fits
Exposure cube: /scratch/kocevski/838361/ltcube_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/838361/Model_4FGL_J0345.2-2353_daily_bin1215.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) = 4442.52537735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8755       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    85.699       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9310       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9848       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.223       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3964       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    68.231       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4596       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95075       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4442.517     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2735 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.982       -.53439E-05** at limit **
   2  norm          .10000E-03    1.6237        .11396E-06** at limit **
   3  Prefactor     .10001E-03    156.18        .27370E-04** at limit **
   4  Prefactor     1.2807        35.741        .18009E-04   -.14342E-03
   5  Prefactor     6.0379        128.59       -.38478E-05   -.53043E-04
   6  Prefactor     .10000E-03    10.535       -.32541E-07** at limit **
   7  Prefactor     .10000E-03    189.85        .25669E-04** at limit **
   8  Prefactor     85.683        88.836       -.57657E-05   -.98615E-04
   9  Prefactor     .10000E-03    4.8278        .21377E-05** at limit **
  10  Prefactor     .10000E-03    4.1185        .75770E-07** at limit **
  11  Prefactor     1.9300        4.1260        .56087E-06   -.16112E-03
  12  norm          2.9835        1.3727        .21984E-06   -.56581E-03
  13  Prefactor     .10000E-03    30.592        .28183E-05** at limit **
  14  norm          .10000E-03    .90017        .20157E-06** at limit **
  15  Prefactor     .10001E-03    73.589       -.29423E-04** at limit **
  16  Prefactor     16.225        42.008        .61566E-06   -.77613E-04
  17  Prefactor     1.3963        3.7812        .88025E-06   -.11831E-03
  18  norm          .10000E-03    5.8350        .29569E-09** at limit **
  19  Prefactor     .10000E-03    36.139       -.14602E-05** at limit **
  20  Prefactor     .10000E-03    52.943        .19575E-04** at limit **
  21  Prefactor     .10000E-03    5.6176        .30652E-07** at limit **
  22  Prefactor     68.234        44.645        .13289E-05   -.10440E-04
  23  Normalizat    1.4598        .24413       -.32724E-05   -.24526E-03
  24  Prefactor     .95054        .23332       -.18309E-06   -.38123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 1.28071
  Prefactor  = 6.03788
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 85.6829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93
  norm       = 2.98346
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 16.2254
  Prefactor  = 1.39625
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 68.2342
  Normalizat = 1.45983
  Prefactor  = 0.950537
 **********
 **   18 **HESSE 
 **********

 FCN=   4442.517     FROM HESSE     STATUS=OK           385 CALLS     3120 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6315        .82944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    156.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2807        37.939        .38295E-03   -1.5482    
   5  Prefactor     6.0379        133.22        .16567E-03   -1.5216    
   6  Prefactor     .10000E-03    10.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    191.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     85.683        89.071        .43396E-04   -1.3854    
   9  Prefactor     .10000E-03    5.0111        .28549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1665        .13183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9300        4.0869        .18916E-03   -1.5430    
  12  norm          2.9835        1.3731        .49919E-04   -1.5362    
  13  Prefactor     .10000E-03    30.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .91387        .61638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    74.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.225        41.963        .99439E-04   -1.4902    
  17  Prefactor     1.3963        3.7546        .20253E-03   -1.5472    
  18  norm          .10000E-03    5.8408        .15725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7023        .15417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     68.234        44.649        .48592E-04   -1.4054    
  23  Normalizat    1.4598        .28960        .25333E-03   -.78914    
  24  Prefactor     .95054        .27734        .29489E-03   -.94397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34419e-10
Minuit parameter uncertainties:
  1  1.82989e-05
  2  3.99821e-06
  3  0.00178082
  4  13.9504
  5  56.8663
  6  4.24571e-06
  7  0.00193036
  8  89.2097
  9  5.3997e-06
  10  4.61754e-06
  11  4.08752
  12  1.37313
  13  8.30352e-05
  14  9.94217e-07
  15  0.00130364
  16  42.0393
  17  3.75523
  18  4.83095e-06
  19  2.87456e-05
  20  0.000652828
  21  1.3912e-05
  22  44.6712
  23  0.289926
  24  0.277759
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.930e+00  4.088e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.505e-01  2.778e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.460e+00  2.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 56.319 -23.885
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838361/likelihoodResults_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.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): 0
logL (Free Index) = 4442.50777993
delta logL = 0.00921321594524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4442.50750615
delta logL = 0.00948699691435

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4442.508     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      249 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9675        141.70        .74076E-02    .37834E-03
   2  Index         2.1981        5.9447        .43697       -.15504E-05
   3  Normalizat    1.4659        .58057E-01    .57191E-01    .31090E-05
   4  Prefactor     .94687        .52259E-01    .66778E-01    .17930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96749
  Index      = 2.19812
  Normalizat = 1.46588
  Prefactor  = 0.946866
 **********
 **   18 **HESSE 
 **********

 FCN=   4442.508     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9675        4.1706        .19165E-03   -1.5427    
   2  Index         2.1981        1.6691        .10664E-01   -.59484    
   3  Normalizat    1.4659        .28065        .25289E-03   -.78742    
   4  Prefactor     .94687        .26964        .29538E-03   -.94522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08527e-12
Minuit parameter uncertainties:
  1  4.17119
  2  1.71799
  3  0.280946
  4  0.270027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838361': 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) = 4442.50750048
delta logL = 0.00949266937459

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.967e+00  4.171e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.198e+00  1.718e+00  0.000e+00  1.000e+01 (-1.000e+00)
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.469e-01  2.700e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.466e+00  2.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 56.319 -23.885

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/838361/cmap_HighResolution_554256001_554515201_4FGL_J0345.2-2353_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-08-19 04:31:38.730305', job_id='838361', GAL2='0.95', fit_tolerance='1e-08', EG2='1.47', EG='1.46', time_epoch_completed='1629372698.73', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.49e-03', ts2='0.32', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1215' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 04:31:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 838361: <4FGL_J0345.2-2353_daily_bin1215> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1215> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 04:15:27 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 04:15:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 04:15:29 2021
Terminated at Thu Aug 19 04:31:40 2021
Results reported at Thu Aug 19 04:31:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1215 56.3187 -23.885 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0345.2-2353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   787.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             275.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

