/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 2 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 = 7416
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2345.2-1555_daily_bin419
RA = 356.303, Dec = -15.9182
tmin = 347932801, tmax = 348192001
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='96783', job_status='RUN', time_executed='2021-09-30 03:50:52.442133', time_epoch_executed='1632999052.44' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96783

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96783/ft1_4FGL_J2345.2-1555_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/96783/ft2_4FGL_J2345.2-1555_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96783/ft1_4FGL_J2345.2-1555_daily_bin419.fits outfile=/scratch/kocevski/96783/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin419.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=347932801.0 tmax=348192001.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.42
user 3.22
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/96783/ft2_4FGL_J2345.2-1555_daily_bin419.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/96783/ft2_4FGL_J2345.2-1555_daily_bin419.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/96783/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin419.fits evtable="EVENTS" outfile="/scratch/kocevski/96783/ft1_filtered_4FGL_J2345.2-1555_daily_bin419.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/96783/ft1_filtered_4FGL_J2345.2-1555_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/96783/ft2_4FGL_J2345.2-1555_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/96783/ltcube_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.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/96783/ft2_4FGL_J2345.2-1555_daily_bin419.fits
.....................!
real 11.92
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96783/ft1_filtered_4FGL_J2345.2-1555_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/96783/ft2_4FGL_J2345.2-1555_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/96783/ltcube_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.fits outfile=/scratch/kocevski/96783/expmap_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.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/96783/ltcube_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.fits
.....................!
real 190.67
user 185.85
sys 4.42

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
Added 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2345.2-1555 @ 356.303 -15.9182

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/96783/ft1_filtered_4FGL_J2345.2-1555_daily_bin419.fits scfile=/scratch/kocevski/96783/ft2_4FGL_J2345.2-1555_daily_bin419.fits outfile=/scratch/kocevski/96783/cmap_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.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=356.303 yref=-15.9182 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/96783/ft1_filtered_4FGL_J2345.2-1555_daily_bin419.fits scfile=/scratch/kocevski/96783/ft2_4FGL_J2345.2-1555_daily_bin419.fits outfile=/scratch/kocevski/96783/cmap_HighResolution_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.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=356.303 yref=-15.9182 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/96783/ft1_filtered_4FGL_J2345.2-1555_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/96783/ft2_4FGL_J2345.2-1555_daily_bin419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/96783/Model_4FGL_J2345.2-1555_daily_bin419.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 GAL_V02
Working on...
/scratch/kocevski/96783/ft1_filtered_4FGL_J2345.2-1555_daily_bin419.fits.....................!
real 41.20
user 39.86
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/96783/ft1_filtered_4FGL_J2345.2-1555_daily_bin419.fits', '/scratch/kocevski/96783/ft2_4FGL_J2345.2-1555_daily_bin419.fits', expMap='/scratch/kocevski/96783/expmap_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.fits', expCube='/scratch/kocevski/96783/ltcube_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/96783/Model_4FGL_J2345.2-1555_daily_bin419.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2345.2-1555'

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.857e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.034e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/96783/ft1_filtered_4FGL_J2345.2-1555_daily_bin419.fits
Spacecraft file(s): /scratch/kocevski/96783/ft2_4FGL_J2345.2-1555_daily_bin419.fits
Exposure map: /scratch/kocevski/96783/expmap_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.fits
Exposure cube: /scratch/kocevski/96783/ltcube_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/96783/Model_4FGL_J2345.2-1555_daily_bin419.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) = 4515.81742864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.313       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8065       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.597       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19706E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9358       1.0000         .10000E-03   10000.    
    11 'norm      '    .50748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    97.639       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.7998       1.0000         .10000E-03   10000.    
    18 'norm      '    9.9720       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5000       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87091       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0155       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4515.809     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2177 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.964       -.54211E-06** at limit **
   2  norm          .10000E-03    17.750        .52269E-06** at limit **
   3  Prefactor     .10000E-03    19.460       -.23940E-06** at limit **
   4  Prefactor     20.314        22.474       -.43920E-07   -.16004E-04
   5  Prefactor     .10000E-03    10.456        .29923E-07** at limit **
   6  Prefactor     .10000E-03    6.2380        .35555E-07** at limit **
   7  Prefactor     7.8015        76.598        .24116E-05    .14445E-03
   8  Prefactor     17.598        30.328        .18439E-07    .26238E-05
   9  Prefactor     .10003E-03    10.507       -.28543E-05** at limit **
  10  norm          1.9366        5.1333        .94932E-06    .35072E-03
  11  norm          .50975        4.5554        .25909E-05    .55885E-04
  12  Prefactor     .10001E-03    113.29       -.22618E-05** at limit **
  13  Prefactor     .10000E-03    42.033        .53264E-07** at limit **
  14  Prefactor     .10000E-03    18.601        .22821E-06** at limit **
  15  Prefactor     97.627        73.935       -.31650E-06   -.38796E-04
  16  Prefactor     .10001E-03    98.544        .20467E-05** at limit **
  17  norm          7.7999        1.5457       -.13835E-07   -.15511E-03
  18  norm          9.9719        8.4880        .63843E-07   -.28477E-04
  19  Prefactor     1.5013        14.610        .29991E-05    .44863E-04
  20  Normalizat    .87087        .21908       -.11505E-05   -.45888E-05
  21  Prefactor     1.0155        .20241       -.50604E-06    .74799E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.3139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.80151
  Prefactor  = 17.5976
  Prefactor  = 0.000100031
  norm       = 1.93657
  norm       = 0.509751
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.6272
  Prefactor  = 0.00010001
  norm       = 7.79988
  norm       = 9.97194
  Prefactor  = 1.50128
  Normalizat = 0.870867
  Prefactor  = 1.01554
 **********
 **   18 **HESSE 
 **********

 FCN=   4515.809     FROM HESSE     STATUS=OK           315 CALLS     2492 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.314        22.466        .88868E-04   -1.4806    
   5  Prefactor     .10000E-03    10.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2547        .16392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8015        64.542        .14352E-03   -1.5149    
   8  Prefactor     17.598        30.315        .95477E-04   -1.4869    
   9  Prefactor     .10003E-03    19.612        .33012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9366        5.1287        .23768E-03   -1.5430    
  11  norm          .50975        4.6653        .27041E-02   -1.5565    
  12  Prefactor     .10001E-03    114.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     97.627        73.923        .40680E-04   -1.3729    
  16  Prefactor     .10001E-03    99.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.7999        1.5602        .31596E-04   -1.5149    
  18  norm          9.9719        8.5639        .12689E-03   -1.5076    
  19  Prefactor     1.5013        14.862        .34966E-03   -1.5463    
  20  Normalizat    .87087        .25003        .28098E-03   -.97491    
  21  Prefactor     1.0155        .23188        .24779E-03   -.92213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49132e-09
Minuit parameter uncertainties:
  1  0.000140929
  2  0.000210397
  3  9.87683e-05
  4  22.4751
  5  4.72211e-06
  6  2.48085e-06
  7  44.9444
  8  30.3412
  9  0.00154858
  10  5.12985
  11  3.08427
  12  0.00238215
  13  4.59574e-05
  14  0.000104613
  15  73.9926
  16  0.00198231
  17  1.56017
  18  8.56494
  19  9.44991
  20  0.250358
  21  0.232106
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  7.800e+00  1.560e+00  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.034e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  1.016e+00  2.321e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  8.709e-01  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 106.76
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 4.46e-07 +/- 8.92e-08
Energy Flux (Fixed Index): 2.36e-04 +/- 4.72e-05

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): 0
logL (Free Index) = 4515.76389169
delta logL = 0.045539709994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4515.75828109
delta logL = 0.051150315775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9319       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9788       1.0000          .0000       5.0000    
     3 'Normalizat'    .88697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4515.758     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      191 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9319        1.6625        .35592E-02   -.10732E-02
   2  alpha         1.9788        .19426        .97114E-01    .35375E-04
   3  Normalizat    .88698        .21618        .44735E-01    .18224E-04
   4  Prefactor     1.0067        .20144        .43856E-01    .14332E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.93195
  alpha      = 1.9788
  Normalizat = 0.886981
  Prefactor  = 1.00672
 **********
 **   18 **HESSE 
 **********

 FCN=   4515.758     FROM HESSE     STATUS=OK            29 CALLS      220 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9319        1.4540        .32141E-04   -1.5145    
   2  alpha         1.9788        .17174        .42459E-03   -.21002    
   3  Normalizat    .88698        .24808        .27892E-03   -.96919    
   4  Prefactor     1.0067        .23120        .24883E-03   -.92506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48674e-11
Minuit parameter uncertainties:
  1  1.454
  2  0.17188
  3  0.248398
  4  0.231429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96783': 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) = 4515.75828109
delta logL = 0.0511503177086

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  7.932e+00  1.454e+00  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  1.979e+00  1.719e-01  0.000e+00  5.000e+00 ( 1.000e+00)
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  1.007e+00  2.314e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  8.870e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 110.69
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 1.98 +/- 0.17
Photon Flux (Free Index): 4.28e-07 +/- 9.49e-08
Energy Flux (Free Index): 2.47e-04 +/- 5.83e-05

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/96783/cmap_HighResolution_347932801_348192001_4FGL_J2345.2-1555_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.46e-07', energy_flux2='2.47e-04', photon_flux_error='8.92e-08', dlogl='5.12e-02', energy_flux='2.36e-04', photon_flux2='4.28e-07', job_status='DONE', time_completed='2021-09-30 03:58:48.937614', photon_index_error2='0.17', photon_index2='1.98', ts='106.76', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='5.83e-05', EG='0.87', time_epoch_completed='1632999528.94', return_code='0', job_id='96783', GAL2='1.01', EG2='0.89', return_code2='0', energy_flux_error='4.72e-05', photon_flux_error2='9.49e-08', ts2='110.69', photon_index='2.03' WHERE bin_id='419' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 03:58:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 96783: <4FGL_J2345.2-1555_daily_bin419> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin419> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 03:50:39 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 03:50:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 03:50:41 2021
Terminated at Thu Sep 30 03:58:49 2021
Results reported at Thu Sep 30 03:58:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin419 356.303 -15.9182 347932801 348192001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2345.2-1555 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   472.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   488 sec.
    Turnaround time :                            490 sec.

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

