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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1250
RA = 56.3187, Dec = -23.885
tmin = 563328001, tmax = 563587201
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='838416', job_status='RUN', time_executed='2021-08-19 04:20:33.879518', time_epoch_executed='1629372033.88' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838416/ft1_4FGL_J0345.2-2353_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838416/ft2_4FGL_J0345.2-2353_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838416/ft1_4FGL_J0345.2-2353_daily_bin1250.fits outfile=/scratch/kocevski/838416/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1250.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=563328001.0 tmax=563587201.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.93
user 2.76
sys 4.13

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/838416/ft2_4FGL_J0345.2-2353_daily_bin1250.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/838416/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1250.fits evtable="EVENTS" outfile="/scratch/kocevski/838416/ft1_filtered_4FGL_J0345.2-2353_daily_bin1250.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 4.44
user 0.33
sys 4.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838416/ft1_filtered_4FGL_J0345.2-2353_daily_bin1250.fits" evtable="EVENTS" scfile=/scratch/kocevski/838416/ft2_4FGL_J0345.2-2353_daily_bin1250.fits sctable="SC_DATA" outfile=/scratch/kocevski/838416/ltcube_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.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/838416/ft2_4FGL_J0345.2-2353_daily_bin1250.fits
.....................!
real 16.42
user 11.74
sys 4.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838416/ft1_filtered_4FGL_J0345.2-2353_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/838416/ft2_4FGL_J0345.2-2353_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/838416/ltcube_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.fits outfile=/scratch/kocevski/838416/expmap_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.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/838416/ltcube_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.fits
.....................!
real 194.66
user 184.49
sys 9.84

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/838416/ft1_filtered_4FGL_J0345.2-2353_daily_bin1250.fits scfile=/scratch/kocevski/838416/ft2_4FGL_J0345.2-2353_daily_bin1250.fits outfile=/scratch/kocevski/838416/cmap_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.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 4.39
user 0.36
sys 3.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838416/ft1_filtered_4FGL_J0345.2-2353_daily_bin1250.fits scfile=/scratch/kocevski/838416/ft2_4FGL_J0345.2-2353_daily_bin1250.fits outfile=/scratch/kocevski/838416/cmap_HighResolution_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.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 4.38
user 0.38
sys 3.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838416/ft1_filtered_4FGL_J0345.2-2353_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/838416/ft2_4FGL_J0345.2-2353_daily_bin1250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838416/Model_4FGL_J0345.2-2353_daily_bin1250.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/838416/ft1_filtered_4FGL_J0345.2-2353_daily_bin1250.fits.....................!
real 87.59
user 81.17
sys 6.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/838416/ft1_filtered_4FGL_J0345.2-2353_daily_bin1250.fits', '/scratch/kocevski/838416/ft2_4FGL_J0345.2-2353_daily_bin1250.fits', expMap='/scratch/kocevski/838416/expmap_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.fits', expCube='/scratch/kocevski/838416/ltcube_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/838416/Model_4FGL_J0345.2-2353_daily_bin1250.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/838416/ft1_filtered_4FGL_J0345.2-2353_daily_bin1250.fits
Spacecraft file(s): /scratch/kocevski/838416/ft2_4FGL_J0345.2-2353_daily_bin1250.fits
Exposure map: /scratch/kocevski/838416/expmap_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.fits
Exposure cube: /scratch/kocevski/838416/ltcube_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/838416/Model_4FGL_J0345.2-2353_daily_bin1250.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) = 3569.10316834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6820       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11304E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.506       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9348       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27144       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6122       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.611       1.0000         .10000E-03   10000.    
    14 'norm      '    .49828       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.474       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5322       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.388       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.275       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82932       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93673       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=   3569.099     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     3292 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.365       -.44256E-07** at limit **
   2  norm          4.6819        4.3258        .57410E-07    .13171E-04
   3  Prefactor     .10000E-03    272.74        .32814E-07** at limit **
   4  Prefactor     11.498        10.859       -.34394E-06   -.50129E-04
   5  Prefactor     .10000E-03    30.550       -.34819E-06** at limit **
   6  Prefactor     .10000E-03    23.129       -.83745E-07** at limit **
   7  Prefactor     8.9290        62.207        .46289E-06    .35222E-05
   8  Prefactor     .10000E-03    28.266       -.57675E-06** at limit **
   9  Prefactor     .26364        4.1943        .12234E-05   -.86339E-03
  10  Prefactor     .10000E-03    4.4614       -.21033E-06** at limit **
  11  Prefactor     .10000E-03    1.5141       -.82088E-07** at limit **
  12  norm          4.6128        1.4980        .45459E-07   -.11867E-03
  13  Prefactor     16.367        57.825        .10895E-05   -.15845E-04
  14  norm          .49914        1.7133        .10537E-05    .38572E-03
  15  Prefactor     .10000E-03    31.372       -.23664E-07** at limit **
  16  Prefactor     38.510        56.129       -.23456E-05   -.97045E-04
  17  Prefactor     4.5312        4.0413       -.67821E-07   -.98429E-04
  18  norm          .10000E-03    15.109       -.74075E-06** at limit **
  19  Prefactor     14.385        37.841       -.60755E-06   -.33209E-04
  20  Prefactor     35.232        26.856        .56020E-07   -.14234E-04
  21  Prefactor     .10000E-03    1.8519        .31216E-06** at limit **
  22  Prefactor     .10000E-03    13.345        .11472E-06** at limit **
  23  Normalizat    .82874        .23942       -.47432E-05   -.10961E-03
  24  Prefactor     .93744        .23747        .43891E-05   -.49516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.68189
  Prefactor  = 0.0001
  Prefactor  = 11.4975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.92902
  Prefactor  = 0.0001
  Prefactor  = 0.26364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.61278
  Prefactor  = 16.3671
  norm       = 0.499138
  Prefactor  = 0.0001
  Prefactor  = 38.5098
  Prefactor  = 4.53116
  norm       = 0.0001
  Prefactor  = 14.3849
  Prefactor  = 35.2319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.828744
  Prefactor  = 0.937435
 **********
 **   18 **HESSE 
 **********

 FCN=   3569.099     FROM HESSE     STATUS=OK           399 CALLS     3691 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6819        4.3238        .11540E-03   -1.5275    
   3  Prefactor     .10000E-03    272.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.498        10.853        .11810E-03   -1.5030    
   5  Prefactor     .10000E-03    30.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9290        62.236        .13409E-03   -1.5110    
   8  Prefactor     .10000E-03    28.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26364        14.707        .17521E-02   -1.5605    
  10  Prefactor     .10000E-03    4.5897        .24604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5168        .71779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6128        1.4984        .38546E-04   -1.5278    
  13  Prefactor     16.367        58.044        .98269E-04   -1.4899    
  14  norm          .49914        1.7859        .13337E-03   -1.5567    
  15  Prefactor     .10000E-03    31.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.510        56.342        .64618E-04   -1.4466    
  17  Prefactor     4.5312        4.0259        .10741E-03   -1.5282    
  18  norm          .10000E-03    15.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.385        37.828        .10559E-03   -1.4949    
  20  Prefactor     35.232        26.842        .67474E-04   -1.4520    
  21  Prefactor     .10000E-03    1.8603        .79472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82874        .24598        .25987E-03   -.99011    
  24  Prefactor     .93744        .24856        .24375E-03   -.94845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45776e-09
Minuit parameter uncertainties:
  1  1.60931e-06
  2  4.32411
  3  7.2282e-06
  4  10.8544
  5  7.67357e-05
  6  5.42882e-06
  7  47.2168
  8  0.000110923
  9  3.93846
  10  1.76263e-05
  11  5.24098e-06
  12  1.49841
  13  58.2458
  14  1.78609
  15  3.39241e-06
  16  56.4197
  17  4.0261
  18  8.67646e-05
  19  37.8906
  20  26.8511
  21  1.26116e-05
  22  1.41001e-05
  23  0.246314
  24  0.248859
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  5.241e-06  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.374e-01  2.489e-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:  8.287e-01  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 56.319 -23.885
Photon Flux Upper Limit: 7.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838416/likelihoodResults_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.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) = 3569.10232587
delta logL = -0.00303675417445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3569.09928897
delta logL = 1.51275344251e-07

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 'Index     '    2.4346       1.0000          .0000       10.000    
     3 'Normalizat'    .82875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93745       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3569.099     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      242 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.497        .72165E-02** at limit **
   2  Index         2.0429        5.3151        .50000        .10435E-06
   3  Normalizat    .82875        .18288E-01    .25988E-03   -.16851E-03
   4  Prefactor     .93743        .18247E-01    .24374E-03   -.16985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04289
  Normalizat = 0.828745
  Prefactor  = 0.937434
 **********
 **   18 **HESSE 
 **********

 FCN=   3569.099     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    159.57        .75650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0429        7.2979        .50000       -.63282    
   3  Normalizat    .82875        .60386E-01    .10395E-04   -.99011    
   4  Prefactor     .93743        .60249E-01    .48748E-04   -.94845    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.51198e-08
Minuit parameter uncertainties:
  1  0.00055872
  2  822.105
  3  0.0603905
  4  0.0602532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838416': 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) = 3569.09928588
delta logL = 3.24093480231e-06

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  5.587e-04  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.043e+00  8.221e+02  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.374e-01  6.025e-02  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:  8.287e-01  6.039e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/838416/cmap_HighResolution_563328001_563587201_4FGL_J0345.2-2353_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.88e-08', time_completed='2021-08-19 04:30:42.457409', job_id='838416', GAL2='0.94', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629372642.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1250' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 04:30:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 838416: <4FGL_J0345.2-2353_daily_bin1250> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1250> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 04:15:31 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 04:15:32 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:32 2021
Terminated at Thu Aug 19 04:30:43 2021
Results reported at Thu Aug 19 04:30:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1250 56.3187 -23.885 563328001 563587201 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 :                                   667.47 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             257.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

