/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 63 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_bin1058
RA = 56.3187, Dec = -23.885
tmin = 513561601, tmax = 513820801
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='938667', job_status='RUN', time_executed='2021-08-19 10:44:25.228445', time_epoch_executed='1629395065.23' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938667/ft1_4FGL_J0345.2-2353_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938667/ft2_4FGL_J0345.2-2353_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938667/ft1_4FGL_J0345.2-2353_daily_bin1058.fits outfile=/scratch/kocevski/938667/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1058.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=513561601.0 tmax=513820801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 9.91
user 3.43
sys 6.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938667/ft1_filtered_4FGL_J0345.2-2353_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/938667/ft2_4FGL_J0345.2-2353_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/938667/ltcube_513561601_513820801_4FGL_J0345.2-2353_daily_bin1058.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/938667/ft2_4FGL_J0345.2-2353_daily_bin1058.fits
.....................!
real 18.76
user 11.44
sys 7.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938667/ft1_filtered_4FGL_J0345.2-2353_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/938667/ft2_4FGL_J0345.2-2353_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/938667/ltcube_513561601_513820801_4FGL_J0345.2-2353_daily_bin1058.fits outfile=/scratch/kocevski/938667/expmap_513561601_513820801_4FGL_J0345.2-2353_daily_bin1058.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/938667/ltcube_513561601_513820801_4FGL_J0345.2-2353_daily_bin1058.fits
.....................!
real 199.28
user 186.79
sys 12.03

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/938667/ft1_filtered_4FGL_J0345.2-2353_daily_bin1058.fits scfile=/scratch/kocevski/938667/ft2_4FGL_J0345.2-2353_daily_bin1058.fits outfile=/scratch/kocevski/938667/cmap_513561601_513820801_4FGL_J0345.2-2353_daily_bin1058.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.58
user 0.38
sys 6.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938667/ft1_filtered_4FGL_J0345.2-2353_daily_bin1058.fits scfile=/scratch/kocevski/938667/ft2_4FGL_J0345.2-2353_daily_bin1058.fits outfile=/scratch/kocevski/938667/cmap_HighResolution_513561601_513820801_4FGL_J0345.2-2353_daily_bin1058.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.56
user 0.37
sys 6.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938667/ft1_filtered_4FGL_J0345.2-2353_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/938667/ft2_4FGL_J0345.2-2353_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938667/Model_4FGL_J0345.2-2353_daily_bin1058.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/938667/ft1_filtered_4FGL_J0345.2-2353_daily_bin1058.fits.....................!
real 111.61
user 101.60
sys 9.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.7144       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4670       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5881       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .84144       1.0000         .10000E-03   10000.    
    15 'Prefactor '    150.29       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10405E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.828       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.590       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9838       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.223       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97333       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1084       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=   4494.294     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2701 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1323       -.68815E-06** at limit **
   2  norm          1.7137        3.8688       -.17264E-05   -.64562E-03
   3  Prefactor     .10000E-03    204.05       -.20766E-05** at limit **
   4  Prefactor     .10000E-03    1.2969       -.97691E-07** at limit **
   5  Prefactor     6.1231        21.011        .13410E-04   -.69446E-05
   6  Prefactor     .10000E-03    31.874        .11959E-05** at limit **
   7  Prefactor     .10000E-03    19.093       -.63959E-05** at limit **
   8  Prefactor     .10000E-03    13.824       -.86798E-05** at limit **
   9  Prefactor     1.4672        2.7450       -.12448E-05   -.69542E-03
  10  Prefactor     .10000E-03    2.5864       -.59121E-07** at limit **
  11  Prefactor     .10000E-03    1.7128       -.34802E-07** at limit **
  12  norm          1.5884        1.0965        .41674E-06    .32301E-03
  13  Prefactor     .10000E-03    15.616        .12899E-04** at limit **
  14  norm          .84004        1.6144       -.77885E-06   -.10369E-02
  15  Prefactor     150.09        133.52       -.15354E-03    .14411E-04
  16  Prefactor     .10000E-03    10.093        .11348E-05** at limit **
  17  Prefactor     .10000E-03    1.5987       -.51973E-07** at limit **
  18  norm          .10000E-03    7.5024        .21161E-06** at limit **
  19  Prefactor     18.807        32.579       -.56774E-05    .34128E-04
  20  Prefactor     15.589        12.739       -.10634E-05   -.96087E-05
  21  Prefactor     2.9818        6.0854       -.24347E-05   -.48264E-03
  22  Prefactor     13.215        31.733       -.46339E-05    .12847E-04
  23  Normalizat    .97285        .21724        .11681E-04   -.10523E-03
  24  Prefactor     1.1090        .19981       -.39209E-06    .31744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.71366
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.12306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.46719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.5884
  Prefactor  = 0.0001
  norm       = 0.84004
  Prefactor  = 150.088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.8072
  Prefactor  = 15.5893
  Prefactor  = 2.98177
  Prefactor  = 13.2152
  Normalizat = 0.972851
  Prefactor  = 1.10897
 **********
 **   18 **HESSE 
 **********

 FCN=   4494.294     FROM HESSE     STATUS=OK           395 CALLS     3096 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7137        3.8495        .19046E-03   -1.5446    
   3  Prefactor     .10000E-03    204.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2972        .74549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1231        20.969        .16202E-03   -1.5213    
   6  Prefactor     .10000E-03    31.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4672        2.6623        .13834E-03   -1.5466    
  10  Prefactor     .10000E-03    2.6220        .10517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7194        .85630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5884        1.0994        .33679E-04   -1.5456    
  13  Prefactor     .10000E-03    15.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .84004        1.5367        .10713E-03   -1.5525    
  15  Prefactor     150.09        133.62        .16438E-03   -1.3252    
  16  Prefactor     .10000E-03    10.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.6150        .82661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.5154        .17930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.807        32.566        .92305E-04   -1.4840    
  20  Prefactor     15.589        12.740        .10144E-03   -1.4918    
  21  Prefactor     2.9818        6.0669        .21721E-03   -1.5363    
  22  Prefactor     13.215        31.689        .11015E-03   -1.4981    
  23  Normalizat    .97285        .25124        .26488E-03   -.93946    
  24  Prefactor     1.1090        .23269        .23918E-03   -.89180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18731e-09
Minuit parameter uncertainties:
  1  3.5173e-05
  2  3.8501
  3  0.00078433
  4  1.26865e-05
  5  20.9946
  6  0.000127866
  7  3.60784e-05
  8  3.44383e-05
  9  2.66247
  10  1.40858e-05
  11  4.57965e-06
  12  1.09943
  13  8.97002e-05
  14  1.53682
  15  133.894
  16  3.74456e-05
  17  7.0313e-06
  18  1.15292e-05
  19  32.5968
  20  12.7418
  21  6.06817
  22  31.729
  23  0.251542
  24  0.232906
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  4.580e-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.109e+00  2.329e-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:  9.729e-01  2.515e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938667/likelihoodResults_513561601_513820801_4FGL_J0345.2-2353_daily_bin1058.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) = 4494.29669026
delta logL = -0.00273741977435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4494.29395277
delta logL = 7.35635694582e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4333       1.0000          .0000       10.000    
     3 'Normalizat'    .97287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1090       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4494.294     FROM MIGRAD    STATUS=FAILED       100 CALLS      251 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.622        .86173E-02** at limit **
   2  Index         2.0642        5.5449        .50000       -.25014E-05
   3  Normalizat    .97286        .14343E-01    .26488E-03    .95111E-04
   4  Prefactor     1.1090        .13794E-01    .23918E-03    .11568E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4494.294     FROM SIMPLEX   STATUS=UNCHANGED    163 CALLS      414 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.622        .21964E-03** at limit **
   2  Index         2.0642        5.5449        .16399E-04   -.25014E-05
   3  Normalizat    .97286        .14343E-01    .16120E-06    .95111E-04
   4  Prefactor     1.1090        .13794E-01    .62126E-07    .11568E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4494.294     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      445 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    131.46        .90403E-03** at limit **
   2  Index         2.0645        6.1677        .50000        .53660E-07
   3  Normalizat    .97286        .48119E-01    .10595E-04    .94854E-04
   4  Prefactor     1.1090        .46275E-01    .47836E-04    .11526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06453
  Normalizat = 0.972859
  Prefactor  = 1.10897
 **********
 **   18 **HESSE 
 **********

 FCN=   4494.294     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      474 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    419.80        .18081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0645        8.4457        .50000       -.62746    
   3  Normalizat    .97286        .14790        .21190E-05   -.93945    
   4  Prefactor     1.1090        .14220        .95672E-05   -.89181    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.16976e-10
Minuit parameter uncertainties:
  1  0.000167758
  2  1183.73
  3  0.147959
  4  0.142246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938667': 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) = 4494.29394991
delta logL = 2.937105819e-06

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  1.678e-04  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.065e+00  1.184e+03  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.109e+00  1.422e-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:  9.729e-01  1.480e-01  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/938667/cmap_HighResolution_513561601_513820801_4FGL_J0345.2-2353_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='7.94e-08', time_completed='2021-08-19 10:56:12.757150', job_id='938667', GAL2='1.11', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1629395772.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1058' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 10:56:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 938667: <4FGL_J0345.2-2353_daily_bin1058> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1058> 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) <bullet0216>, 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:56:14 2021
Results reported at Thu Aug 19 10:56:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1058 56.3187 -23.885 513561601 513820801 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 :                                   782.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            896 sec.

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

