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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1052
RA = 56.3187, Dec = -23.885
tmin = 512006401, tmax = 512265601
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='938658', job_status='RUN', time_executed='2021-08-19 10:42:25.633268', time_epoch_executed='1629394945.63' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938658/ft1_4FGL_J0345.2-2353_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938658/ft2_4FGL_J0345.2-2353_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938658/ft1_4FGL_J0345.2-2353_daily_bin1052.fits outfile=/scratch/kocevski/938658/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1052.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=512006401.0 tmax=512265601.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 3.59
user 3.25
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938658/ft1_filtered_4FGL_J0345.2-2353_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/938658/ft2_4FGL_J0345.2-2353_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/938658/ltcube_512006401_512265601_4FGL_J0345.2-2353_daily_bin1052.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/938658/ft2_4FGL_J0345.2-2353_daily_bin1052.fits
.....................!
real 11.73
user 11.28
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938658/ft1_filtered_4FGL_J0345.2-2353_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/938658/ft2_4FGL_J0345.2-2353_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/938658/ltcube_512006401_512265601_4FGL_J0345.2-2353_daily_bin1052.fits outfile=/scratch/kocevski/938658/expmap_512006401_512265601_4FGL_J0345.2-2353_daily_bin1052.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/938658/ltcube_512006401_512265601_4FGL_J0345.2-2353_daily_bin1052.fits
.....................!
real 190.06
user 185.48
sys 4.24

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/938658/ft1_filtered_4FGL_J0345.2-2353_daily_bin1052.fits scfile=/scratch/kocevski/938658/ft2_4FGL_J0345.2-2353_daily_bin1052.fits outfile=/scratch/kocevski/938658/cmap_512006401_512265601_4FGL_J0345.2-2353_daily_bin1052.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 0.61
user 0.37
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938658/ft1_filtered_4FGL_J0345.2-2353_daily_bin1052.fits scfile=/scratch/kocevski/938658/ft2_4FGL_J0345.2-2353_daily_bin1052.fits outfile=/scratch/kocevski/938658/cmap_HighResolution_512006401_512265601_4FGL_J0345.2-2353_daily_bin1052.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 0.60
user 0.37
sys 0.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938658/ft1_filtered_4FGL_J0345.2-2353_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/938658/ft2_4FGL_J0345.2-2353_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938658/Model_4FGL_J0345.2-2353_daily_bin1052.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/938658/ft1_filtered_4FGL_J0345.2-2353_daily_bin1052.fits.....................!
real 104.50
user 102.53
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5009       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2620       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.824       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.076       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0624       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.911       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .51991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0341       1.0000         .10000E-03   10000.    
    14 'norm      '    .37951E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.161       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7274       1.0000         .10000E-03   10000.    
    18 'norm      '    .10494E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9829       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.768       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87930       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1129       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=   4618.720     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2747 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4979        14.248       -.57311E-05   -.69070E-04
   2  norm          .10000E-03    .95035       -.87158E-07** at limit **
   3  Prefactor     .10000E-03    75.315        .40195E-04** at limit **
   4  Prefactor     4.2613        4.4293       -.76393E-06    .10211E-03
   5  Prefactor     29.821        26.932       -.52777E-05    .15804E-03
   6  Prefactor     .10000E-03    13.130       -.23440E-06** at limit **
   7  Prefactor     .10000E-03    43.128       -.12011E-04** at limit **
   8  Prefactor     60.090        58.752        .17540E-04    .15679E-03
   9  Prefactor     3.0649        2.4668       -.50335E-06    .51818E-03
  10  Prefactor     11.911        6.4354        .70766E-06    .47384E-03
  11  Prefactor     .10000E-03    1.2037       -.37553E-07** at limit **
  12  norm          .51972        .92574       -.22265E-06   -.34829E-04
  13  Prefactor     2.9569        57.868       -.86425E-04   -.28116E-04
  14  norm          .10005E-03    .86543       -.43581E-06** at limit **
  15  Prefactor     13.030        176.44       -.32930E-03    .34653E-04
  16  Prefactor     .10000E-03    9.3760        .49742E-06** at limit **
  17  Prefactor     1.7293        3.4959       -.14783E-05   -.19282E-03
  18  norm          .10000E-03    20.026        .32266E-05** at limit **
  19  Prefactor     1.9781        116.22       -.27030E-04   -.40700E-04
  20  Prefactor     .10000E-03    3.7800       -.89071E-08** at limit **
  21  Prefactor     .10000E-03    2.6988       -.54011E-07** at limit **
  22  Prefactor     12.733        29.258       -.32094E-04    .21519E-04
  23  Normalizat    .87933        .20999        .11937E-04    .48084E-03
  24  Prefactor     1.1130        .19815        .61179E-05    .65060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.49791
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26133
  Prefactor  = 29.8209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.0897
  Prefactor  = 3.06487
  Prefactor  = 11.9109
  Prefactor  = 0.0001
  norm       = 0.51972
  Prefactor  = 2.95687
  norm       = 0.000100046
  Prefactor  = 13.0299
  Prefactor  = 0.0001
  Prefactor  = 1.72933
  norm       = 0.0001
  Prefactor  = 1.97807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7329
  Normalizat = 0.879328
  Prefactor  = 1.11301
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.720     FROM HESSE     STATUS=OK           397 CALLS     3144 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4979        14.260        .18978E-03   -1.5284    
   2  norm          .10000E-03    .95191        .64698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    75.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2613        4.4214        .13669E-03   -1.5295    
   5  Prefactor     29.821        26.889        .73365E-04   -1.4615    
   6  Prefactor     .10000E-03    13.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     60.090        58.752        .51765E-04   -1.4156    
   9  Prefactor     3.0649        2.4307        .90720E-04   -1.5358    
  10  Prefactor     11.911        6.3189        .11421E-03   -1.5018    
  11  Prefactor     .10000E-03    1.2049        .72788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .51972        .80008        .79914E-03   -1.5564    
  13  Prefactor     2.9569        58.375        .23295E-03   -1.5364    
  14  norm          .10005E-03    23.214        .11762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.030        177.18        .11041E-03   -1.4986    
  16  Prefactor     .10000E-03    9.3817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7293        3.4173        .16691E-03   -1.5445    
  18  norm          .10000E-03    20.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9781        115.43        .29431E-03   -1.5427    
  20  Prefactor     .10000E-03    3.7871        .12904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7217        .10896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.733        29.274        .11210E-03   -1.4994    
  23  Normalizat    .87933        .23614        .26749E-03   -.97190    
  24  Prefactor     1.1130        .22358        .23371E-03   -.89052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0115e-09
Minuit parameter uncertainties:
  1  14.271
  2  7.66786e-06
  3  6.37587e-05
  4  4.42171
  5  26.8995
  6  8.67797e-06
  7  2.09587e-05
  8  58.8085
  9  2.43082
  10  6.31924
  11  6.08386e-06
  12  0.800094
  13  26.3052
  14  0.00207207
  15  96.4471
  16  0.00012136
  17  3.41766
  18  9.09807e-05
  19  30.2816
  20  1.86126e-06
  21  5.33785e-06
  22  29.3068
  23  0.236419
  24  0.223772
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  6.084e-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:  1.113e+00  2.238e-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.793e-01  2.364e-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: 6.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938658/likelihoodResults_512006401_512265601_4FGL_J0345.2-2353_daily_bin1052.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) = 4618.72417298
delta logL = -0.00377776153618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4618.72039488
delta logL = 3.35720869771e-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.4313       1.0000          .0000       10.000    
     3 'Normalizat'    .87930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1130       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=   4618.720     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      240 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.664        .73454E-02** at limit **
   2  Index         1.9804        5.1907        .50000        .16239E-06
   3  Normalizat    .87933        .15322E-01    .26748E-03   -.31956E-03
   4  Prefactor     1.1130        .14959E-01    .23371E-03   -.35384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98044
  Normalizat = 0.879328
  Prefactor  = 1.113
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.720     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.87        .78844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9804        5.4852        .50000       -.64840    
   3  Normalizat    .87933        .48239E-01    .53496E-04   -.97190    
   4  Prefactor     1.1130        .47096E-01    .46741E-04   -.89052    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.21926e-10
Minuit parameter uncertainties:
  1  1.43207e-05
  2  600.061
  3  0.048241
  4  0.0470977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938658': 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) = 4618.72038913
delta logL = 6.08432128502e-06

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  1.432e-05  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  1.980e+00  6.001e+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:  1.113e+00  4.710e-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.793e-01  4.824e-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/938658/cmap_HighResolution_512006401_512265601_4FGL_J0345.2-2353_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2021-08-19 10:54:26.424544', job_id='938658', GAL2='1.11', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1629395666.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='6.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1052' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 10:54:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 938658: <4FGL_J0345.2-2353_daily_bin1052> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1052> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 10:41:18 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 10:41:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 10:41:20 2021
Terminated at Thu Aug 19 10:54:26 2021
Results reported at Thu Aug 19 10:54:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1052 56.3187 -23.885 512006401 512265601 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 :                                   603.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

