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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin635
RA = 356.303, Dec = -15.9182
tmin = 403920001, tmax = 404179201
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='99250', job_status='RUN', time_executed='2021-09-30 03:58:57.066394', time_epoch_executed='1632999537.07' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99250

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99250/ft1_4FGL_J2345.2-1555_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99250/ft2_4FGL_J2345.2-1555_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99250/ft1_4FGL_J2345.2-1555_daily_bin635.fits outfile=/scratch/kocevski/99250/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin635.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.36
user 10.03
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99250/ft1_filtered_4FGL_J2345.2-1555_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/99250/ft2_4FGL_J2345.2-1555_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/99250/ltcube_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.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/99250/ft2_4FGL_J2345.2-1555_daily_bin635.fits
.....................!
real 9.53
user 9.04
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99250/ft1_filtered_4FGL_J2345.2-1555_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/99250/ft2_4FGL_J2345.2-1555_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/99250/ltcube_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.fits outfile=/scratch/kocevski/99250/expmap_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.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/99250/ltcube_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.fits
.....................!
real 190.53
user 186.08
sys 3.97

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/99250/ft1_filtered_4FGL_J2345.2-1555_daily_bin635.fits scfile=/scratch/kocevski/99250/ft2_4FGL_J2345.2-1555_daily_bin635.fits outfile=/scratch/kocevski/99250/cmap_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.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.51
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99250/ft1_filtered_4FGL_J2345.2-1555_daily_bin635.fits scfile=/scratch/kocevski/99250/ft2_4FGL_J2345.2-1555_daily_bin635.fits outfile=/scratch/kocevski/99250/cmap_HighResolution_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99250/ft1_filtered_4FGL_J2345.2-1555_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/99250/ft2_4FGL_J2345.2-1555_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99250/Model_4FGL_J2345.2-1555_daily_bin635.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/99250/ft1_filtered_4FGL_J2345.2-1555_daily_bin635.fits.......................!
real 24.36
user 23.11
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99250/ft1_filtered_4FGL_J2345.2-1555_daily_bin635.fits', '/scratch/kocevski/99250/ft2_4FGL_J2345.2-1555_daily_bin635.fits', expMap='/scratch/kocevski/99250/expmap_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.fits', expCube='/scratch/kocevski/99250/ltcube_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99250/Model_4FGL_J2345.2-1555_daily_bin635.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/99250/ft1_filtered_4FGL_J2345.2-1555_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/99250/ft2_4FGL_J2345.2-1555_daily_bin635.fits
Exposure map: /scratch/kocevski/99250/expmap_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.fits
Exposure cube: /scratch/kocevski/99250/ltcube_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99250/Model_4FGL_J2345.2-1555_daily_bin635.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) = 1768.41560733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.528       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.788       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.474       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    119.68       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.414       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7640       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    87.285       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9941       1.0000         .10000E-03   10000.    
    18 'norm      '    7.6459       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5034       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .39218       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=   1768.291     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2501 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.529        15.139       -.69232E-07    .29349E-05
   2  norm          .10000E-03    44.429       -.94499E-06** at limit **
   3  Prefactor     40.799        85.311        .11412E-05    .29493E-04
   4  Prefactor     .10000E-03    91.702       -.17741E-05** at limit **
   5  Prefactor     13.473        28.857       -.40885E-07   -.49480E-05
   6  Prefactor     .10000E-03    33.524        .50160E-06** at limit **
   7  Prefactor     119.65        101.17       -.20034E-05   -.73578E-04
   8  Prefactor     .10000E-03    19.065        .33486E-07** at limit **
   9  Prefactor     .10000E-03    20.734       -.11728E-05** at limit **
  10  norm          14.414        12.362        .27247E-06    .17961E-04
  11  norm          .10000E-03    9.6054        .74866E-06** at limit **
  12  Prefactor     .10000E-03    48.948       -.18819E-06** at limit **
  13  Prefactor     2.7559        73.201       -.27662E-06   -.11885E-04
  14  Prefactor     1.5588        687.70        .94065E-05    .64013E-05
  15  Prefactor     .10000E-03    74.200        .25710E-05** at limit **
  16  Prefactor     87.257        231.33       -.26540E-05   -.15516E-04
  17  norm          1.9942        1.5996       -.34806E-06    .25527E-03
  18  norm          7.6429        11.274        .24866E-05   -.10666E-03
  19  Prefactor     .10000E-03    5.6647        .10570E-07** at limit **
  20  Normalizat    1.5035        .35480        .61361E-07   -.12469E-04
  21  Prefactor     .39212        .31242       -.58680E-06   -.10684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5289
  norm       = 0.0001
  Prefactor  = 40.7986
  Prefactor  = 0.000100001
  Prefactor  = 13.4728
  Prefactor  = 0.0001
  Prefactor  = 119.652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4141
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.75588
  Prefactor  = 1.55877
  Prefactor  = 0.000100002
  Prefactor  = 87.2568
  norm       = 1.9942
  norm       = 7.64294
  Prefactor  = 0.0001
  Normalizat = 1.50349
  Prefactor  = 0.392121
 **********
 **   18 **HESSE 
 **********

 FCN=   1768.291     FROM HESSE     STATUS=OK           315 CALLS     2816 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.529        15.131        .98518E-04   -1.4895    
   2  norm          .10000E-03    44.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.799        85.722        .62764E-04   -1.4430    
   4  Prefactor     .10000E-03    94.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.473        28.851        .10912E-03   -1.4974    
   6  Prefactor     .10000E-03    33.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     119.65        103.05        .18393E-03   -1.3516    
   8  Prefactor     .10000E-03    19.066        .17939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.414        12.382        .10550E-03   -1.4948    
  11  norm          .10000E-03    9.6518        .12612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7559        73.310        .24482E-03   -1.5376    
  14  Prefactor     1.5588        691.45        .34273E-03   -1.5458    
  15  Prefactor     .10000E-03    75.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     87.257        232.73        .43003E-04   -1.3837    
  17  norm          1.9942        1.6218        .37796E-04   -1.5426    
  18  norm          7.6429        11.588        .69143E-03   -1.5155    
  19  Prefactor     .10000E-03    5.6757        .97738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5035        .40384        .21312E-03   -.77680    
  21  Prefactor     .39212        .34924        .34765E-03   -1.1721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97933e-10
Minuit parameter uncertainties:
  1  15.1344
  2  0.000213425
  3  85.9822
  4  0.000710385
  5  28.8806
  6  8.89359e-05
  7  103.2
  8  6.87727e-06
  9  5.11689e-05
  10  12.3839
  11  4.71245e-05
  12  2.8943e-05
  13  28.466
  14  66.4447
  15  0.00077465
  16  235.226
  17  1.62187
  18  11.5918
  19  3.07385e-07
  20  0.40471
  21  0.351157
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.994e+00  1.622e+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:  3.921e-01  3.512e-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:  1.503e+00  4.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.09
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 9.27e-08
Energy Flux (Fixed Index): 6.03e-05 +/- 4.91e-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) = 1768.13498778
delta logL = 0.156458518957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1768.13282399
delta logL = 0.158622311295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8828       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3375       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40854       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=   1768.133     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      262 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8835        30.762        .74946E-02    .72314E-04
   2  alpha         2.3379        3.1049        .17526        .15494E-04
   3  Normalizat    1.4661        .23695        .48635E-01   -.30416E-05
   4  Prefactor     .40871        .18647        .76855E-01    .11190E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88346
  alpha      = 2.3379
  Normalizat = 1.46614
  Prefactor  = 0.408705
 **********
 **   18 **HESSE 
 **********

 FCN=   1768.133     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8835        1.2461        .33167E-04   -1.5433    
   2  alpha         2.3379        .53060        .74187E-02   -.64887E-01
   3  Normalizat    1.4661        .39797        .21499E-03   -.78734    
   4  Prefactor     .40871        .34577        .34042E-03   -1.1637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89619e-13
Minuit parameter uncertainties:
  1  1.2461
  2  0.534687
  3  0.398822
  4  0.347548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99250': 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) = 1768.13282315
delta logL = 0.158623154251

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.883e+00  1.246e+00  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.338e+00  5.347e-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:  4.087e-01  3.475e-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:  1.466e+00  3.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.47
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 2.34 +/- 0.53
Photon Flux (Free Index): 1.55e-07 +/- 1.14e-07
Energy Flux (Free Index): 5.47e-05 +/- 3.43e-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/99250/cmap_HighResolution_403920001_404179201_4FGL_J2345.2-1555_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='5.47e-05', photon_flux_error='9.27e-08', dlogl='1.59e-01', energy_flux='6.03e-05', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-30 04:05:56.072291', photon_index_error2='0.53', photon_index2='2.34', ts='9.09', fit_tolerance='1e-08', GAL='0.39', photon_index_error='0.00', energy_flux_error2='3.43e-05', EG='1.50', time_epoch_completed='1632999956.07', return_code='0', job_id='99250', GAL2='0.41', EG2='1.47', return_code2='0', energy_flux_error='4.91e-05', photon_flux_error2='1.14e-07', ts2='9.47', photon_index='2.03' WHERE bin_id='635' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:05:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 99250: <4FGL_J2345.2-1555_daily_bin635> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin635> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 03:55:31 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 03:55:33 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:55:33 2021
Terminated at Thu Sep 30 04:05:56 2021
Results reported at Thu Sep 30 04:05:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin635 356.303 -15.9182 403920001 404179201 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 :                                   413.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            625 sec.

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

