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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1089
RA = 356.303, Dec = -15.9182
tmin = 521596801, tmax = 521856001
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='101269', job_status='RUN', time_executed='2021-09-30 04:04:32.649011', time_epoch_executed='1632999872.65' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101269

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101269/ft1_4FGL_J2345.2-1555_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101269/ft2_4FGL_J2345.2-1555_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101269/ft1_4FGL_J2345.2-1555_daily_bin1089.fits outfile=/scratch/kocevski/101269/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1089.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=521596801.0 tmax=521856001.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 4.36
user 4.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101269/ft2_4FGL_J2345.2-1555_daily_bin1089.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/101269/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1089.fits evtable="EVENTS" outfile="/scratch/kocevski/101269/ft1_filtered_4FGL_J2345.2-1555_daily_bin1089.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.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101269/ft1_filtered_4FGL_J2345.2-1555_daily_bin1089.fits" evtable="EVENTS" scfile=/scratch/kocevski/101269/ft2_4FGL_J2345.2-1555_daily_bin1089.fits sctable="SC_DATA" outfile=/scratch/kocevski/101269/ltcube_521596801_521856001_4FGL_J2345.2-1555_daily_bin1089.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/101269/ft2_4FGL_J2345.2-1555_daily_bin1089.fits
.....................!
real 12.82
user 12.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101269/ft1_filtered_4FGL_J2345.2-1555_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/101269/ft2_4FGL_J2345.2-1555_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/101269/ltcube_521596801_521856001_4FGL_J2345.2-1555_daily_bin1089.fits outfile=/scratch/kocevski/101269/expmap_521596801_521856001_4FGL_J2345.2-1555_daily_bin1089.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/101269/ltcube_521596801_521856001_4FGL_J2345.2-1555_daily_bin1089.fits
.....................!
real 191.38
user 185.74
sys 5.14

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/101269/ft1_filtered_4FGL_J2345.2-1555_daily_bin1089.fits scfile=/scratch/kocevski/101269/ft2_4FGL_J2345.2-1555_daily_bin1089.fits outfile=/scratch/kocevski/101269/cmap_521596801_521856001_4FGL_J2345.2-1555_daily_bin1089.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/101269/ft1_filtered_4FGL_J2345.2-1555_daily_bin1089.fits scfile=/scratch/kocevski/101269/ft2_4FGL_J2345.2-1555_daily_bin1089.fits outfile=/scratch/kocevski/101269/cmap_HighResolution_521596801_521856001_4FGL_J2345.2-1555_daily_bin1089.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4521       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.507       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.526       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    127.99       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.366       1.0000         .10000E-03   10000.    
    10 'norm      '    9.1065       1.0000         .10000E-03   10000.    
    11 'norm      '    5.0200       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.725       1.0000         .10000E-03   10000.    
    15 'Prefactor '    82.470       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8264       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7041       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20753       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4564       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .61282       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=   6193.684     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2212 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4600        12.847        .15216E-05    .12570E-03
   2  norm          .10000E-03    12.300       -.20278E-07** at limit **
   3  Prefactor     16.497        47.447       -.16748E-04    .13160E-04
   4  Prefactor     15.526        20.696        .10686E-05    .34471E-04
   5  Prefactor     .10000E-03    30.535        .11734E-05** at limit **
   6  Prefactor     .10000E-03    18.122       -.16288E-06** at limit **
   7  Prefactor     127.97        78.119       -.12712E-04    .13242E-04
   8  Prefactor     .10000E-03    6.7903       -.79721E-08** at limit **
   9  Prefactor     14.365        13.291        .25344E-05    .31317E-04
  10  norm          9.1062        7.1954       -.36054E-06   -.41595E-04
  11  norm          5.0189        3.4655        .35926E-06   -.16860E-03
  12  Prefactor     .10000E-03    38.171       -.52103E-06** at limit **
  13  Prefactor     .10000E-03    4.0376        .12043E-07** at limit **
  14  Prefactor     16.716        29.425       -.92279E-05   -.29823E-05
  15  Prefactor     82.470        66.767       -.30637E-06    .19666E-04
  16  Prefactor     .10000E-03    31.445       -.12717E-05** at limit **
  17  norm          2.8262        .88313        .13858E-08    .23023E-03
  18  norm          4.7040        5.0738       -.32990E-06   -.26636E-03
  19  Prefactor     .15724        8.3057       -.12973E-05   -.20143E-04
  20  Normalizat    1.4567        .19577        .18247E-05    .14213E-03
  21  Prefactor     .61260        .17748        .63394E-06    .18010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.46004
  norm       = 0.0001
  Prefactor  = 16.4966
  Prefactor  = 15.5263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 127.974
  Prefactor  = 0.0001
  Prefactor  = 14.3649
  norm       = 9.10619
  norm       = 5.01888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7155
  Prefactor  = 82.4695
  Prefactor  = 0.0001
  norm       = 2.82622
  norm       = 4.70404
  Prefactor  = 0.157238
  Normalizat = 1.45673
  Prefactor  = 0.6126
 **********
 **   18 **HESSE 
 **********

 FCN=   6193.684     FROM HESSE     STATUS=OK           325 CALLS     2537 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4600        12.903        .13789E-03   -1.5126    
   2  norm          .10000E-03    12.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.497        47.384        .98581E-04   -1.4895    
   4  Prefactor     15.526        20.693        .10165E-03   -1.4920    
   5  Prefactor     .10000E-03    30.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     127.97        78.018        .35585E-04   -1.3441    
   8  Prefactor     .10000E-03    6.7919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.365        13.265        .10568E-03   -1.4950    
  10  norm          9.1062        7.1902        .13281E-03   -1.5104    
  11  norm          5.0189        3.4543        .11204E-03   -1.5260    
  12  Prefactor     .10000E-03    38.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0395        .15444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.716        29.426        .97933E-04   -1.4890    
  15  Prefactor     82.470        66.752        .44230E-04   -1.3889    
  16  Prefactor     .10000E-03    31.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8262        .90383        .34818E-04   -1.5372    
  18  norm          4.7040        5.1971        .15586E-03   -1.5274    
  19  Prefactor     .15724        12.134        .57380E-01   -1.5629    
  20  Normalizat    1.4567        .23348        .23167E-03   -.79002    
  21  Prefactor     .61260        .20844        .31640E-03   -1.0706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8425e-10
Minuit parameter uncertainties:
  1  12.9074
  2  6.76197e-06
  3  47.4919
  4  20.7023
  5  6.40684e-05
  6  5.98474e-05
  7  78.0807
  8  2.03877e-06
  9  13.2677
  10  7.19089
  11  3.45447
  12  3.17343e-05
  13  9.73341e-07
  14  29.4516
  15  66.8127
  16  7.57268e-06
  17  0.903835
  18  5.19755
  19  2.76222
  20  0.233656
  21  0.208701
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  2.826e+00  9.038e-01  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:  6.126e-01  2.087e-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.457e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 46.64
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 5.17e-08
Energy Flux (Fixed Index): 8.55e-05 +/- 2.73e-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) = 6193.43635341
delta logL = 0.247459407033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6193.40474717
delta logL = 0.27906565401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8753       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8464       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60092       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=   6193.405     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8754        .94371        .59925E-02    .59211E-04
   2  alpha         1.8465        .27808        .17804        .82137E-05
   3  Normalizat    1.4815        .19174        .52089E-01   -.65362E-06
   4  Prefactor     .60093        .17703        .72169E-01    .29027E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.87538
  alpha      = 1.84646
  Normalizat = 1.48151
  Prefactor  = 0.600928
 **********
 **   18 **HESSE 
 **********

 FCN=   6193.405     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8754        .82094        .36711E-04   -1.5369    
   2  alpha         1.8465        .25182        .75539E-02   -.26449    
   3  Normalizat    1.4815        .22575        .23029E-03   -.78299    
   4  Prefactor     .60093        .20753        .31947E-03   -1.0755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19401e-11
Minuit parameter uncertainties:
  1  0.820944
  2  0.252279
  3  0.225906
  4  0.207791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101269': 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) = 6193.40474714
delta logL = 0.27906567493

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  2.875e+00  8.209e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  1.846e+00  2.523e-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:  6.009e-01  2.078e-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.482e+00  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.56
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 1.85 +/- 0.25
Photon Flux (Free Index): 1.36e-07 +/- 5.14e-08
Energy Flux (Free Index): 9.99e-05 +/- 3.69e-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/101269/cmap_HighResolution_521596801_521856001_4FGL_J2345.2-1555_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='9.99e-05', photon_flux_error='5.17e-08', dlogl='2.79e-01', energy_flux='8.55e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-30 04:14:24.244671', photon_index_error2='0.25', photon_index2='1.85', ts='46.64', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='3.69e-05', EG='1.46', time_epoch_completed='1633000464.24', return_code='0', job_id='101269', GAL2='0.60', EG2='1.48', return_code2='0', energy_flux_error='2.73e-05', photon_flux_error2='5.14e-08', ts2='47.56', photon_index='2.03' WHERE bin_id='1089' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:14:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 101269: <4FGL_J2345.2-1555_daily_bin1089> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1089> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 04:00:43 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:00:46 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:00:46 2021
Terminated at Thu Sep 30 04:14:25 2021
Results reported at Thu Sep 30 04:14:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1089 356.303 -15.9182 521596801 521856001 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 :                                   551.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            822 sec.

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

