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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1368
RA = 356.303, Dec = -15.9182
tmin = 593913601, tmax = 594172801
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='102946', job_status='RUN', time_executed='2021-09-30 04:07:40.917243', time_epoch_executed='1633000060.92' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102946

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102946/ft1_4FGL_J2345.2-1555_daily_bin1368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102946/ft2_4FGL_J2345.2-1555_daily_bin1368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102946/ft1_4FGL_J2345.2-1555_daily_bin1368.fits outfile=/scratch/kocevski/102946/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1368.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=593913601.0 tmax=594172801.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.56
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102946/ft1_filtered_4FGL_J2345.2-1555_daily_bin1368.fits" evtable="EVENTS" scfile=/scratch/kocevski/102946/ft2_4FGL_J2345.2-1555_daily_bin1368.fits sctable="SC_DATA" outfile=/scratch/kocevski/102946/ltcube_593913601_594172801_4FGL_J2345.2-1555_daily_bin1368.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/102946/ft2_4FGL_J2345.2-1555_daily_bin1368.fits
.....................!
real 12.35
user 11.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102946/ft1_filtered_4FGL_J2345.2-1555_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/102946/ft2_4FGL_J2345.2-1555_daily_bin1368.fits sctable="SC_DATA" expcube=/scratch/kocevski/102946/ltcube_593913601_594172801_4FGL_J2345.2-1555_daily_bin1368.fits outfile=/scratch/kocevski/102946/expmap_593913601_594172801_4FGL_J2345.2-1555_daily_bin1368.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/102946/ltcube_593913601_594172801_4FGL_J2345.2-1555_daily_bin1368.fits
.....................!
real 191.48
user 186.39
sys 4.59

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/102946/ft1_filtered_4FGL_J2345.2-1555_daily_bin1368.fits scfile=/scratch/kocevski/102946/ft2_4FGL_J2345.2-1555_daily_bin1368.fits outfile=/scratch/kocevski/102946/cmap_593913601_594172801_4FGL_J2345.2-1555_daily_bin1368.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102946/ft1_filtered_4FGL_J2345.2-1555_daily_bin1368.fits scfile=/scratch/kocevski/102946/ft2_4FGL_J2345.2-1555_daily_bin1368.fits outfile=/scratch/kocevski/102946/cmap_HighResolution_593913601_594172801_4FGL_J2345.2-1555_daily_bin1368.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/102946/ft1_filtered_4FGL_J2345.2-1555_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/102946/ft2_4FGL_J2345.2-1555_daily_bin1368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/102946/Model_4FGL_J2345.2-1555_daily_bin1368.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/102946/ft1_filtered_4FGL_J2345.2-1555_daily_bin1368.fits.....................!
real 52.76
user 51.38
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1132       1.0000         .10000E-03   10000.    
     2 'norm      '    19.401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0186       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.609       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8906       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.2657       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3849       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.131       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    36.874       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4512       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .80230       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87342       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=   6645.716     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2188 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1151        8.4134        .57865E-05   -.58236E-03
   2  norm          19.402        22.115       -.97116E-07   -.19776E-06
   3  Prefactor     39.711        42.104       -.45847E-05    .37263E-04
   4  Prefactor     .10000E-03    4.7072       -.61797E-07** at limit **
   5  Prefactor     .10000E-03    5.9045        .13292E-06** at limit **
   6  Prefactor     6.0185        7.0328       -.11906E-06   -.99725E-04
   7  Prefactor     .10000E-03    18.270        .20212E-05** at limit **
   8  Prefactor     10.608        15.885       -.18950E-06    .48197E-05
   9  Prefactor     1.8916        4.8558       -.53736E-05   -.42149E-03
  10  norm          .10000E-03    1.8214       -.24121E-07** at limit **
  11  norm          8.2653        3.2436       -.66178E-07   -.25335E-04
  12  Prefactor     .10000E-03    73.006       -.34071E-05** at limit **
  13  Prefactor     5.3665        11.447       -.84244E-06   -.14754E-04
  14  Prefactor     17.130        16.742       -.55660E-07    .11085E-05
  15  Prefactor     .10000E-03    24.219       -.25709E-05** at limit **
  16  Prefactor     .10000E-03    39.078        .37989E-05** at limit **
  17  norm          .10000E-03    .20158       -.85021E-07** at limit **
  18  norm          36.872        6.3836        .44870E-06   -.33898E-04
  19  Prefactor     2.4511        3.3302       -.39040E-06   -.26511E-03
  20  Normalizat    .80227        .15028       -.76236E-06    .10747E-03
  21  Prefactor     .87341        .14685        .70013E-06   -.10148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11509
  norm       = 19.4016
  Prefactor  = 39.7114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.01854
  Prefactor  = 0.0001
  Prefactor  = 10.608
  Prefactor  = 1.89157
  norm       = 0.0001
  norm       = 8.2653
  Prefactor  = 0.000100001
  Prefactor  = 5.36649
  Prefactor  = 17.1305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 36.8723
  Prefactor  = 2.45105
  Normalizat = 0.802268
  Prefactor  = 0.873413
 **********
 **   18 **HESSE 
 **********

 FCN=   6645.716     FROM HESSE     STATUS=OK           319 CALLS     2507 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1151        7.9020        .28378E-03   -1.5417    
   2  norm          19.402        22.115        .90931E-04   -1.4827    
   3  Prefactor     39.711        41.568        .63602E-04   -1.4447    
   4  Prefactor     .10000E-03    4.7095        .17273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0185        7.0349        .16367E-03   -1.5217    
   7  Prefactor     .10000E-03    18.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.608        15.881        .12301E-03   -1.5056    
   9  Prefactor     1.8916        5.3186        .30262E-03   -1.5433    
  10  norm          .10000E-03    1.8316        .10740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.2653        3.2449        .86835E-04   -1.5133    
  12  Prefactor     .10000E-03    73.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3665        11.425        .17318E-03   -1.5245    
  14  Prefactor     17.130        16.747        .96768E-04   -1.4880    
  15  Prefactor     .10000E-03    24.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .37872        .67938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          36.872        6.1107        .66000E-04   -1.4493    
  19  Prefactor     2.4511        3.3176        .16719E-03   -1.5395    
  20  Normalizat    .80227        .17391        .24304E-03   -.99985    
  21  Prefactor     .87341        .17035        .23142E-03   -.97076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58744e-09
Minuit parameter uncertainties:
  1  7.90593
  2  22.1248
  3  41.5986
  4  2.32198e-06
  5  3.27938e-06
  6  7.03584
  7  1.77058e-05
  8  15.8869
  9  5.31995
  10  2.1475e-05
  11  3.24497
  12  0.000489216
  13  11.4293
  14  16.752
  15  0.000163057
  16  0.000237957
  17  8.00387e-06
  18  6.11081
  19  3.31787
  20  0.174028
  21  0.17045
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  8.004e-06  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:  8.734e-01  1.704e-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.023e-01  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 356.303 -15.918
Photon Flux Upper Limit: 5.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102946/likelihoodResults_593913601_594172801_4FGL_J2345.2-1555_daily_bin1368.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) = 6645.71702342
delta logL = -0.000530761221853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6645.71648698
delta logL = 5.68060750084e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0783       1.0000          .0000       5.0000    
     3 'Normalizat'    .80227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87341       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6645.716     FROM MIGRAD    STATUS=FAILED       141 CALLS      299 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .98998E-01    .40463E-02** at limit **
   2  alpha         4.0214        4.4147        .50000        .12667E-04
   3  Normalizat    .80217        .49902E-02    .24305E-03   -.22031E-04
   4  Prefactor     .87347        .49700E-02    .23141E-03   -.28052E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6645.716     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      450 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .98998E-01    .16807E-03** at limit **
   2  alpha         4.0214        4.4147        .12823E-03    .12667E-04
   3  Normalizat    .80217        .49902E-02    .24322E-06   -.22031E-04
   4  Prefactor     .87347        .49700E-02    .60891E-07   -.28052E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6645.716     FROM MIGRAD    STATUS=FAILED        95 CALLS      545 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .84090E-01    .42582E-02** at limit **
   2  alpha         4.0214        2.8670        .50000        .12667E-04
   3  Normalizat    .80217        .48004E-02    .19444E-05   -.22218E-04
   4  Prefactor     .87347        .47805E-02    .18513E-05   -.28248E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 4.02137
  Normalizat = 0.802172
  Prefactor  = 0.873469
 **********
 **   18 **HESSE 
 **********

 FCN=   6645.716     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      582 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .78223E-01    .43564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.0214        2.7648        .50000        .65423    
   3  Normalizat    .80217        .47023E-02    .38888E-06   -.99988    
   4  Prefactor     .87347        .46828E-02    .37026E-06   -.97074    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.24274e-07
Minuit parameter uncertainties:
  1  1.0851e-07
  2  74.1764
  3  0.00470232
  4  0.00468279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102946': 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): 1
logL (Free Index) = 6645.71641795
delta logL = 7.47073054299e-05

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  1.085e-07  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  4.021e+00  7.418e+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:  8.735e-01  4.683e-03  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.022e-01  4.702e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 356.303 -15.918

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/102946/cmap_HighResolution_593913601_594172801_4FGL_J2345.2-1555_daily_bin1368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-05', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2021-09-30 04:19:08.015291', job_id='102946', GAL2='0.87', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1633000748.02', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='7.47e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1368' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:19:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 102946: <4FGL_J2345.2-1555_daily_bin1368> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1368> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 04:05:51 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:05:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 04:05:52 2021
Terminated at Thu Sep 30 04:19:08 2021
Results reported at Thu Sep 30 04:19:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1368 356.303 -15.9182 593913601 594172801 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 :                                   631.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            797 sec.

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

