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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1324
RA = 56.3187, Dec = -23.885
tmin = 582508801, tmax = 582768001
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='939029', job_status='RUN', time_executed='2021-08-19 10:44:32.507708', time_epoch_executed='1629395072.51' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939029

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939029/ft1_4FGL_J0345.2-2353_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939029/ft2_4FGL_J0345.2-2353_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939029/ft1_4FGL_J0345.2-2353_daily_bin1324.fits outfile=/scratch/kocevski/939029/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1324.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=582508801.0 tmax=582768001.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.84
user 3.45
sys 3.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/939029/ft1_filtered_4FGL_J0345.2-2353_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/939029/ft2_4FGL_J0345.2-2353_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/939029/ltcube_582508801_582768001_4FGL_J0345.2-2353_daily_bin1324.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/939029/ft2_4FGL_J0345.2-2353_daily_bin1324.fits
.....................!
real 15.42
user 11.46
sys 3.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939029/ft1_filtered_4FGL_J0345.2-2353_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/939029/ft2_4FGL_J0345.2-2353_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/939029/ltcube_582508801_582768001_4FGL_J0345.2-2353_daily_bin1324.fits outfile=/scratch/kocevski/939029/expmap_582508801_582768001_4FGL_J0345.2-2353_daily_bin1324.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/939029/ltcube_582508801_582768001_4FGL_J0345.2-2353_daily_bin1324.fits
.....................!
real 195.70
user 186.18
sys 9.15

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/939029/ft1_filtered_4FGL_J0345.2-2353_daily_bin1324.fits scfile=/scratch/kocevski/939029/ft2_4FGL_J0345.2-2353_daily_bin1324.fits outfile=/scratch/kocevski/939029/cmap_582508801_582768001_4FGL_J0345.2-2353_daily_bin1324.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 3.65
user 0.36
sys 3.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939029/ft1_filtered_4FGL_J0345.2-2353_daily_bin1324.fits scfile=/scratch/kocevski/939029/ft2_4FGL_J0345.2-2353_daily_bin1324.fits outfile=/scratch/kocevski/939029/cmap_HighResolution_582508801_582768001_4FGL_J0345.2-2353_daily_bin1324.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 3.59
user 0.38
sys 3.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/939029/ft1_filtered_4FGL_J0345.2-2353_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/939029/ft2_4FGL_J0345.2-2353_daily_bin1324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/939029/Model_4FGL_J0345.2-2353_daily_bin1324.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/939029/ft1_filtered_4FGL_J0345.2-2353_daily_bin1324.fits.....................!
real 150.25
user 143.96
sys 5.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.1730       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12716E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.004       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9616       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2327       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.999       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.797       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.769       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6761       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.047       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .45716       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17849E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.347       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91312       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79010       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=   6200.787     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2868 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7643        .17250E-07** at limit **
   2  norm          9.1732        3.9224        .99943E-08    .46446E-05
   3  Prefactor     .10000E-03    136.71        .67792E-06** at limit **
   4  Prefactor     .10000E-03    2.1595       -.18893E-08** at limit **
   5  Prefactor     .10000E-03    25.378       -.46577E-07** at limit **
   6  Prefactor     .10000E-03    11.747       -.13892E-06** at limit **
   7  Prefactor     .10000E-03    16.370        .15983E-06** at limit **
   8  Prefactor     9.9851        40.267       -.80236E-05   -.14403E-03
   9  Prefactor     4.9613        2.8225        .37181E-07    .30498E-03
  10  Prefactor     4.2353        6.2057        .95734E-06    .32984E-03
  11  Prefactor     .10000E-03    2.8500       -.17779E-06** at limit **
  12  norm          22.999        2.4802       -.52973E-07    .17876E-03
  13  Prefactor     27.792        36.601       -.70786E-06   -.97166E-05
  14  norm          .10000E-03    .98576       -.23048E-06** at limit **
  15  Prefactor     .10000E-03    67.349       -.10328E-06** at limit **
  16  Prefactor     40.773        34.006        .85299E-06    .14690E-03
  17  Prefactor     5.6781        3.0574        .76926E-06   -.18060E-02
  18  norm          .10000E-03    4.9993       -.31122E-08** at limit **
  19  Prefactor     10.045        28.380       -.64204E-06    .96322E-05
  20  Prefactor     .46449        6.6501       -.51134E-06    .36214E-04
  21  Prefactor     .10000E-03    4.1798       -.13203E-06** at limit **
  22  Prefactor     13.354        26.416       -.66520E-07   -.36361E-05
  23  Normalizat    .91311        .19155       -.10278E-05    .16934E-03
  24  Prefactor     .79010        .17135        .86920E-06    .65920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.17316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.98506
  Prefactor  = 4.96131
  Prefactor  = 4.23532
  Prefactor  = 0.000100003
  norm       = 22.9989
  Prefactor  = 27.7923
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.773
  Prefactor  = 5.67814
  norm       = 0.0001
  Prefactor  = 10.0445
  Prefactor  = 0.46449
  Prefactor  = 0.0001
  Prefactor  = 13.354
  Normalizat = 0.913112
  Prefactor  = 0.790102
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.787     FROM HESSE     STATUS=OK           405 CALLS     3273 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.1732        3.9255        .98848E-04   -1.5102    
   3  Prefactor     .10000E-03    136.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0395        .22478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.9851        44.548        .12669E-03   -1.5076    
   9  Prefactor     4.9613        2.7438        .92251E-04   -1.5262    
  10  Prefactor     4.2353        5.9822        .19586E-03   -1.5296    
  11  Prefactor     .10000E-03    10.468        .23573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.999        2.4865        .36977E-04   -1.4748    
  13  Prefactor     27.792        36.607        .75986E-04   -1.4653    
  14  norm          .10000E-03    1.6485        .14588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    67.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.773        34.301        .62779E-04   -1.4430    
  17  Prefactor     5.6781        3.6389        .56300E-03   -1.5231    
  18  norm          .10000E-03    5.0026        .17192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.045        28.331        .12641E-03   -1.5074    
  20  Prefactor     .46449        27.434        .38686E-02   -1.5572    
  21  Prefactor     .10000E-03    4.3601        .31401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.354        26.460        .10964E-03   -1.4977    
  23  Normalizat    .91311        .21633        .27534E-03   -.96001    
  24  Prefactor     .79010        .19346        .27261E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79293e-09
Minuit parameter uncertainties:
  1  4.81161e-07
  2  3.92564
  3  0.000251416
  4  3.70102e-05
  5  7.64661e-05
  6  1.58543e-05
  7  1.94848e-05
  8  42.2336
  9  2.74383
  10  5.98306
  11  0.000327426
  12  2.48652
  13  36.6369
  14  2.3398e-06
  15  3.02229e-05
  16  34.3178
  17  3.639
  18  1.21619e-07
  19  28.3685
  20  7.14207
  21  1.01275e-05
  22  26.4834
  23  0.216531
  24  0.193622
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  3.274e-04  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:  7.901e-01  1.936e-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.131e-01  2.165e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/939029/likelihoodResults_582508801_582768001_4FGL_J0345.2-2353_daily_bin1324.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) = 6200.7870925
delta logL = -0.000455106595837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6200.78663775
delta logL = -3.61343154509e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11091E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4902       1.0000          .0000       10.000    
     3 'Normalizat'    .91325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79001       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=   6200.787     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      232 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .15920        .66350E-01** at limit **
   2  Index         2.5326        7.8375        .50000       -.27676E-04
   3  Normalizat    .91311        .12464E-02    .45071E-01    .63339E-05
   4  Prefactor     .79010        .11621E-02    .43587E-01    .79402E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.53258
  Normalizat = 0.91311
  Prefactor  = 0.790103
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.787     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      267 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.979        .22568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5326        7.1561        .50000       -.51609    
   3  Normalizat    .91311        .11614E-01    .27534E-03   -.96001    
   4  Prefactor     .79010        .10829E-01    .27261E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63013e-06
Minuit parameter uncertainties:
  1  0.000578422
  2  204.33
  3  0.011614
  4  0.0108289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939029': 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) = 6200.78663672
delta logL = 6.72862370266e-07

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  5.784e-04  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.533e+00  2.043e+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:  7.901e-01  1.083e-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:  9.131e-01  1.161e-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/939029/cmap_HighResolution_582508801_582768001_4FGL_J0345.2-2353_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.13e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-08-19 10:57:49.759343', job_id='939029', GAL2='0.79', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1629395869.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='6.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1324' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 10:57:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 939029: <4FGL_J0345.2-2353_daily_bin1324> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1324> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 10:41:49 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 10:41:51 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:51 2021
Terminated at Thu Aug 19 10:57:51 2021
Results reported at Thu Aug 19 10:57:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1324 56.3187 -23.885 582508801 582768001 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 :                                   843.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

