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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1087
RA = 356.303, Dec = -15.9182
tmin = 521078401, tmax = 521337601
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='101266', job_status='RUN', time_executed='2021-09-30 04:02:25.784445', time_epoch_executed='1632999745.78' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101266

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101266/ft1_4FGL_J2345.2-1555_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101266/ft2_4FGL_J2345.2-1555_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101266/ft1_4FGL_J2345.2-1555_daily_bin1087.fits outfile=/scratch/kocevski/101266/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1087.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=521078401.0 tmax=521337601.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.60
user 4.34
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101266/ft2_4FGL_J2345.2-1555_daily_bin1087.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/101266/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1087.fits evtable="EVENTS" outfile="/scratch/kocevski/101266/ft1_filtered_4FGL_J2345.2-1555_daily_bin1087.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.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101266/ft1_filtered_4FGL_J2345.2-1555_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/101266/ft2_4FGL_J2345.2-1555_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/101266/ltcube_521078401_521337601_4FGL_J2345.2-1555_daily_bin1087.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/101266/ft2_4FGL_J2345.2-1555_daily_bin1087.fits
.....................!
real 11.97
user 11.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101266/ft1_filtered_4FGL_J2345.2-1555_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/101266/ft2_4FGL_J2345.2-1555_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/101266/ltcube_521078401_521337601_4FGL_J2345.2-1555_daily_bin1087.fits outfile=/scratch/kocevski/101266/expmap_521078401_521337601_4FGL_J2345.2-1555_daily_bin1087.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/101266/ltcube_521078401_521337601_4FGL_J2345.2-1555_daily_bin1087.fits
.....................!
real 192.97
user 187.48
sys 5.06

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/101266/ft1_filtered_4FGL_J2345.2-1555_daily_bin1087.fits scfile=/scratch/kocevski/101266/ft2_4FGL_J2345.2-1555_daily_bin1087.fits outfile=/scratch/kocevski/101266/cmap_521078401_521337601_4FGL_J2345.2-1555_daily_bin1087.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/101266/ft1_filtered_4FGL_J2345.2-1555_daily_bin1087.fits scfile=/scratch/kocevski/101266/ft2_4FGL_J2345.2-1555_daily_bin1087.fits outfile=/scratch/kocevski/101266/cmap_HighResolution_521078401_521337601_4FGL_J2345.2-1555_daily_bin1087.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/101266/ft1_filtered_4FGL_J2345.2-1555_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/101266/ft2_4FGL_J2345.2-1555_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101266/Model_4FGL_J2345.2-1555_daily_bin1087.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/101266/ft1_filtered_4FGL_J2345.2-1555_daily_bin1087.fits.....................!
real 52.38
user 50.98
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10099E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.989       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    81.271       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.724       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.307       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6543       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5316       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.993       1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.664       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4792       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5545       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9844       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1064       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .43060       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=   6361.502     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2642 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9524        .90712E-02** at limit **
   2  norm          .10000E-03    41.211        .90712E-02** at limit **
   3  Prefactor     .10000E-03    19.098        .90712E-02** at limit **
   4  Prefactor     10.989        11.354        .30214E-02   -.40078E-03
   5  Prefactor     .10000E-03    8.0874        .90712E-02** at limit **
   6  Prefactor     4.5775        9.1800        .47037E-02    .66649E-03
   7  Prefactor     81.270        40.294        .11138E-02    .18000E-03
   8  Prefactor     22.724        16.206        .21007E-02    .12799E-03
   9  Prefactor     .10000E-03    2.3652        .90712E-02** at limit **
  10  norm          17.307        6.2081        .24069E-02   -.16189E-02
  11  norm          1.6541        2.4481        .82042E-02    .79593E-03
  12  Prefactor     6.5349        55.997        .39257E-02   -.39376E-03
  13  Prefactor     .10000E-03    8.9969        .90712E-02** at limit **
  14  Prefactor     11.992        21.996        .28918E-02    .44168E-03
  15  Prefactor     47.665        51.647        .14520E-02   -.52868E-03
  16  Prefactor     .10000E-03    127.28        .90712E-02** at limit **
  17  norm          3.4793        .89842        .54196E-02   -.31917E-03
  18  norm          5.5539        5.8542        .42617E-02   -.50805E-03
  19  Prefactor     6.9836        6.0343        .37950E-02   -.38051E-02
  20  Normalizat    1.1064        .15441        .37747E-01    .80461E-04
  21  Prefactor     .43058        .13756        .65926E-01    .78183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 10.9892
  Prefactor  = 0.0001
  Prefactor  = 4.57751
  Prefactor  = 81.2702
  Prefactor  = 22.7244
  Prefactor  = 0.0001
  norm       = 17.3068
  norm       = 1.65409
  Prefactor  = 6.53487
  Prefactor  = 0.0001
  Prefactor  = 11.9924
  Prefactor  = 47.6651
  Prefactor  = 0.0001
  norm       = 3.47929
  norm       = 5.55395
  Prefactor  = 6.98363
  Normalizat = 1.1064
  Prefactor  = 0.430578
 **********
 **   18 **HESSE 
 **********

 FCN=   6361.502     FROM HESSE     STATUS=OK           309 CALLS     2951 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9821        .15481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    41.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.989        11.354        .12086E-03   -1.5045    
   5  Prefactor     .10000E-03    8.1040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5775        9.1691        .18815E-03   -1.5280    
   7  Prefactor     81.270        40.301        .44553E-04   -1.3903    
   8  Prefactor     22.724        16.202        .84026E-04   -1.4754    
   9  Prefactor     .10000E-03    2.3666        .11972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.307        6.2066        .96274E-04   -1.4876    
  11  norm          1.6541        2.4075        .13892E-03   -1.5451    
  12  Prefactor     6.5349        55.950        .15703E-03   -1.5197    
  13  Prefactor     .10000E-03    9.0173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.992        21.954        .57837E-03   -1.5015    
  15  Prefactor     47.665        51.629        .58080E-04   -1.4326    
  16  Prefactor     .10000E-03    127.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4793        .91760        .30603E-04   -1.5335    
  18  norm          5.5539        5.9827        .15721E-03   -1.5237    
  19  Prefactor     6.9836        6.0523        .15180E-03   -1.5179    
  20  Normalizat    1.1064        .17712        .20294E-03   -.89547    
  21  Prefactor     .43058        .15549        .29184E-03   -1.1528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62674e-08
Minuit parameter uncertainties:
  1  2.40976e-05
  2  0.000574845
  3  0.000110993
  4  11.3567
  5  6.25752e-06
  6  9.17187
  7  40.3145
  8  16.2051
  9  6.75341e-07
  10  6.20684
  11  2.40762
  12  38.2906
  13  2.36278e-05
  14  21.9688
  15  51.6776
  16  0.000289451
  17  0.917607
  18  5.98332
  19  6.05286
  20  0.177218
  21  0.155647
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  3.479e+00  9.176e-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:  4.306e-01  1.556e-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.106e+00  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 65.45
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.99e-07 +/- 5.25e-08
Energy Flux (Fixed Index): 1.05e-04 +/- 2.78e-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) = 6359.10871638
delta logL = 2.39345865256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6359.10460976
delta logL = 2.39756527179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7034       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5350       1.0000          .0000       5.0000    
     3 'Normalizat'    .99962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49364       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=   6359.105     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7036        6.8049        .53314E-02    .10790E-03
   2  alpha         2.5351        1.8344        .10647        .72420E-04
   3  Normalizat    .99953        .13687        .46162E-01    .56655E-05
   4  Prefactor     .49370        .92493E-01    .61754E-01    .30865E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.70361
  alpha      = 2.53507
  Normalizat = 0.999533
  Prefactor  = 0.493696
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.105     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .75E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7036        .74122        .23589E-04   -1.5379    
   2  alpha         2.5351        .23358        .46263E-03    .14029E-01
   3  Normalizat    .99953        .17280        .21086E-03   -.93046    
   4  Prefactor     .49370        .15685        .27326E-03   -1.1227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51415e-14
Minuit parameter uncertainties:
  1  0.741218
  2  0.233917
  3  0.172898
  4  0.156985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101266': 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) = 6359.10460952
delta logL = 2.39756551176

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  2.704e+00  7.412e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.535e+00  2.339e-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.937e-01  1.570e-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:  9.995e-01  1.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 71.52
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 2.54 +/- 0.23
Photon Flux (Free Index): 2.89e-07 +/- 6.64e-08
Energy Flux (Free Index): 8.43e-05 +/- 1.73e-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/101266/cmap_HighResolution_521078401_521337601_4FGL_J2345.2-1555_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.99e-07', energy_flux2='8.43e-05', photon_flux_error='5.25e-08', dlogl='2.40e+00', energy_flux='1.05e-04', photon_flux2='2.89e-07', job_status='DONE', time_completed='2021-09-30 04:12:18.513144', photon_index_error2='0.23', photon_index2='2.54', ts='65.45', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.11', time_epoch_completed='1633000338.51', return_code='0', job_id='101266', GAL2='0.49', EG2='1.00', return_code2='0', energy_flux_error='2.78e-05', photon_flux_error2='6.64e-08', ts2='71.52', photon_index='2.03' WHERE bin_id='1087' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:12:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 101266: <4FGL_J2345.2-1555_daily_bin1087> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1087> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 04:00:42 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:00:44 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:44 2021
Terminated at Thu Sep 30 04:12:18 2021
Results reported at Thu Sep 30 04:12:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1087 356.303 -15.9182 521078401 521337601 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 :                                   589.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            696 sec.

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

