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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1110
RA = 56.3187, Dec = -23.885
tmin = 527040001, tmax = 527299201
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='938743', job_status='RUN', time_executed='2021-08-19 10:43:22.511024', time_epoch_executed='1629395002.51' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938743

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938743/ft1_4FGL_J0345.2-2353_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938743/ft2_4FGL_J0345.2-2353_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938743/ft1_4FGL_J0345.2-2353_daily_bin1110.fits outfile=/scratch/kocevski/938743/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1110.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=527040001.0 tmax=527299201.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.88
user 5.66
sys 1.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938743/ft2_4FGL_J0345.2-2353_daily_bin1110.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/938743/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/938743/ft1_filtered_4FGL_J0345.2-2353_daily_bin1110.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 1.40
user 0.31
sys 1.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938743/ft1_filtered_4FGL_J0345.2-2353_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/938743/ft2_4FGL_J0345.2-2353_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/938743/ltcube_527040001_527299201_4FGL_J0345.2-2353_daily_bin1110.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/938743/ft2_4FGL_J0345.2-2353_daily_bin1110.fits
.....................!
real 12.97
user 11.67
sys 1.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938743/ft1_filtered_4FGL_J0345.2-2353_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/938743/ft2_4FGL_J0345.2-2353_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/938743/ltcube_527040001_527299201_4FGL_J0345.2-2353_daily_bin1110.fits outfile=/scratch/kocevski/938743/expmap_527040001_527299201_4FGL_J0345.2-2353_daily_bin1110.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/938743/ltcube_527040001_527299201_4FGL_J0345.2-2353_daily_bin1110.fits
.....................!
real 194.13
user 187.18
sys 6.55

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/938743/ft1_filtered_4FGL_J0345.2-2353_daily_bin1110.fits scfile=/scratch/kocevski/938743/ft2_4FGL_J0345.2-2353_daily_bin1110.fits outfile=/scratch/kocevski/938743/cmap_527040001_527299201_4FGL_J0345.2-2353_daily_bin1110.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 1.44
user 0.38
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938743/ft1_filtered_4FGL_J0345.2-2353_daily_bin1110.fits scfile=/scratch/kocevski/938743/ft2_4FGL_J0345.2-2353_daily_bin1110.fits outfile=/scratch/kocevski/938743/cmap_HighResolution_527040001_527299201_4FGL_J0345.2-2353_daily_bin1110.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 1.43
user 0.39
sys 1.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938743/ft1_filtered_4FGL_J0345.2-2353_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/938743/ft2_4FGL_J0345.2-2353_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938743/Model_4FGL_J0345.2-2353_daily_bin1110.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/938743/ft1_filtered_4FGL_J0345.2-2353_daily_bin1110.fits......................!
real 74.05
user 71.40
sys 2.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2496       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.541       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4333       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5489       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .90439       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.4257       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.333       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.418       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3086       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.283       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2172       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .58412       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=   2946.949     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2704 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3592        .55682E-07** at limit **
   2  norm          .10000E-03    2.0184        .99866E-07** at limit **
   3  Prefactor     .10000E-03    127.94       -.28854E-06** at limit **
   4  Prefactor     2.2495        7.1351        .28788E-05    .93065E-04
   5  Prefactor     .10000E-03    87.100        .53347E-07** at limit **
   6  Prefactor     11.521        40.131       -.84281E-06   -.89174E-05
   7  Prefactor     5.3378        167.82       -.24962E-05   -.97429E-05
   8  Prefactor     .10000E-03    90.691        .75255E-06** at limit **
   9  Prefactor     3.0913        4.5826        .12882E-06    .54172E-04
  10  Prefactor     .10000E-03    3.8360       -.50709E-06** at limit **
  11  Prefactor     .10000E-03    4.6087       -.29228E-06** at limit **
  12  norm          2.5492        1.3957       -.13499E-06   -.52506E-04
  13  Prefactor     .10000E-03    20.307        .18954E-06** at limit **
  14  norm          .90513        2.3072        .25695E-06    .27898E-04
  15  Prefactor     .10000E-03    39.150       -.50796E-07** at limit **
  16  Prefactor     8.4297        27.030        .41671E-06    .13724E-05
  17  Prefactor     .10000E-03    3.2565        .10565E-06** at limit **
  18  norm          .10000E-03    13.720       -.67192E-07** at limit **
  19  Prefactor     18.322        38.918       -.35558E-06   -.27254E-06
  20  Prefactor     34.418        17.906       -.68958E-07    .63362E-05
  21  Prefactor     3.3078        4.9474        .10307E-06    .14034E-04
  22  Prefactor     45.277        40.340       -.56742E-08   -.21691E-05
  23  Normalizat    1.2173        .26240        .26419E-05   -.60271E-04
  24  Prefactor     .58408        .23580       -.35571E-05    .54384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.24947
  Prefactor  = 0.000100002
  Prefactor  = 11.5212
  Prefactor  = 5.33783
  Prefactor  = 0.0001
  Prefactor  = 3.0913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.54917
  Prefactor  = 0.0001
  norm       = 0.905128
  Prefactor  = 0.0001
  Prefactor  = 8.42965
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.3215
  Prefactor  = 34.4176
  Prefactor  = 3.30783
  Prefactor  = 45.2771
  Normalizat = 1.21728
  Prefactor  = 0.584082
 **********
 **   18 **HESSE 
 **********

 FCN=   2946.949     FROM HESSE     STATUS=OK           397 CALLS     3101 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3616        .15331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0227        .75323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    128.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2495        7.1837        .24315E-03   -1.5408    
   5  Prefactor     .10000E-03    88.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.521        40.128        .11792E-03   -1.5029    
   7  Prefactor     5.3378        170.16        .17239E-03   -1.5246    
   8  Prefactor     .10000E-03    90.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0913        4.4350        .12019E-03   -1.5356    
  10  Prefactor     .10000E-03    3.8751        .10387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.6473        .11369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5492        1.3913        .44404E-04   -1.5389    
  13  Prefactor     .10000E-03    20.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .90513        2.1371        .11074E-03   -1.5518    
  15  Prefactor     .10000E-03    39.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.4297        26.989        .13811E-03   -1.5127    
  17  Prefactor     .10000E-03    3.3273        .19084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.322        38.838        .93542E-04   -1.4852    
  20  Prefactor     34.418        17.913        .68307E-04   -1.4534    
  21  Prefactor     3.3078        4.9361        .14065E-03   -1.5344    
  22  Prefactor     45.277        40.328        .59581E-04   -1.4361    
  23  Normalizat    1.2173        .28975        .22336E-03   -.86071    
  24  Prefactor     .58408        .25727        .28022E-03   -1.0826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56644e-10
Minuit parameter uncertainties:
  1  3.03563e-07
  2  1.03627e-06
  3  0.000433435
  4  7.18641
  5  0.00076792
  6  40.2226
  7  60.4645
  8  0.000109129
  9  4.43548
  10  1.06986e-05
  11  1.4151e-05
  12  1.39135
  13  1.68423e-06
  14  2.13724
  15  2.85199e-05
  16  27.0285
  17  2.56188e-06
  18  9.05844e-06
  19  38.8919
  20  17.9157
  21  4.93672
  22  40.3524
  23  0.290131
  24  0.257785
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  1.415e-05  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:  5.841e-01  2.578e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.217e+00  2.901e-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.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938743/likelihoodResults_527040001_527299201_4FGL_J0345.2-2353_daily_bin1110.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) = 2946.95048235
delta logL = -0.00102294524913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2946.94946014
delta logL = -7.40768427931e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10895E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4844       1.0000          .0000       10.000    
     3 'Normalizat'    1.2171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58432       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=   2946.949     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      251 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    702.28        .12158E-02** at limit **
   2  Index         2.5264        7.2882        .50000       -.79786E-04
   3  Normalizat    1.2173        .87773E-01    .22335E-03   -.10994E-04
   4  Prefactor     .58408        .79093E-01    .28022E-03    .57630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100034
  Index      = 2.52642
  Normalizat = 1.21728
  Prefactor  = 0.584081
 **********
 **   18 **HESSE 
 **********

 FCN=   2946.949     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    7.7774        .24316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5264        6.2335        .50000       -.51751    
   3  Normalizat    1.2173        .26977        .89342E-05   -.86071    
   4  Prefactor     .58408        .24314        .11209E-04   -1.0826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23322e-09
Minuit parameter uncertainties:
  1  0.0010338
  2  5.24771
  3  0.270076
  4  0.243581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938743': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2946.949458
delta logL = 1.39928079079e-06

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.217e+00  2.701e-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/938743/cmap_HighResolution_527040001_527299201_4FGL_J0345.2-2353_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-08-19 10:57:39.097836', job_id='938743', GAL2='0.58', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1629395859.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1110' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 10:57:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 938743: <4FGL_J0345.2-2353_daily_bin1110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1110 56.3187 -23.885 527040001 527299201 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 :                                   543.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

