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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1030
RA = 356.303, Dec = -15.9182
tmin = 506304001, tmax = 506563201
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='101182', job_status='RUN', time_executed='2021-09-30 04:01:53.762730', time_epoch_executed='1632999713.76' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101182

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101182/ft1_4FGL_J2345.2-1555_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101182/ft2_4FGL_J2345.2-1555_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101182/ft1_4FGL_J2345.2-1555_daily_bin1030.fits outfile=/scratch/kocevski/101182/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1030.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=506304001.0 tmax=506563201.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.47
user 3.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101182/ft1_filtered_4FGL_J2345.2-1555_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/101182/ft2_4FGL_J2345.2-1555_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/101182/ltcube_506304001_506563201_4FGL_J2345.2-1555_daily_bin1030.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/101182/ft2_4FGL_J2345.2-1555_daily_bin1030.fits
.....................!
real 12.05
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101182/ft1_filtered_4FGL_J2345.2-1555_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/101182/ft2_4FGL_J2345.2-1555_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/101182/ltcube_506304001_506563201_4FGL_J2345.2-1555_daily_bin1030.fits outfile=/scratch/kocevski/101182/expmap_506304001_506563201_4FGL_J2345.2-1555_daily_bin1030.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/101182/ltcube_506304001_506563201_4FGL_J2345.2-1555_daily_bin1030.fits
.....................!
real 190.27
user 185.24
sys 4.69

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/101182/ft1_filtered_4FGL_J2345.2-1555_daily_bin1030.fits scfile=/scratch/kocevski/101182/ft2_4FGL_J2345.2-1555_daily_bin1030.fits outfile=/scratch/kocevski/101182/cmap_506304001_506563201_4FGL_J2345.2-1555_daily_bin1030.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/101182/ft1_filtered_4FGL_J2345.2-1555_daily_bin1030.fits scfile=/scratch/kocevski/101182/ft2_4FGL_J2345.2-1555_daily_bin1030.fits outfile=/scratch/kocevski/101182/cmap_HighResolution_506304001_506563201_4FGL_J2345.2-1555_daily_bin1030.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101182/ft1_filtered_4FGL_J2345.2-1555_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/101182/ft2_4FGL_J2345.2-1555_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101182/Model_4FGL_J2345.2-1555_daily_bin1030.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/101182/ft1_filtered_4FGL_J2345.2-1555_daily_bin1030.fits.....................!
real 50.67
user 49.42
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17277E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    33.831       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .87487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.294       1.0000         .10000E-03   10000.    
     7 'Prefactor '    85.138       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.788       1.0000         .10000E-03   10000.    
    10 'norm      '    8.6538       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3648       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .88858       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6883       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2097       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .37635       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=   6195.251     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2203 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    3.6174       -.10577E-05** at limit **
   2  norm          33.858        28.897        .49055E-05   -.54065E-05
   3  Prefactor     .10000E-03    15.178       -.34841E-06** at limit **
   4  Prefactor     .10000E-03    5.0146        .37384E-07** at limit **
   5  Prefactor     .85815        9.1794       -.10192E-05    .81975E-04
   6  Prefactor     35.292        14.571        .11727E-05   -.12840E-04
   7  Prefactor     85.230        52.723        .63690E-04    .12617E-04
   8  Prefactor     .10000E-03    30.394        .90044E-08** at limit **
   9  Prefactor     12.778        11.510       -.16828E-04   -.11549E-03
  10  norm          8.6538        7.5679       -.23866E-05   -.25788E-03
  11  norm          5.9691        3.0872        .26643E-06    .42355E-04
  12  Prefactor     .10000E-03    19.254        .36405E-05** at limit **
  13  Prefactor     1.3569        24.562       -.28826E-05   -.30285E-03
  14  Prefactor     .58642        15.745       -.11696E-05    .79952E-04
  15  Prefactor     .10000E-03    11.048       -.66931E-07** at limit **
  16  Prefactor     .10000E-03    141.62        .23606E-04** at limit **
  17  norm          .88862        .42984        .33799E-07   -.10181E-04
  18  norm          3.6880        3.2929        .51724E-07   -.30184E-03
  19  Prefactor     .10000E-03    2.6085        .83778E-07** at limit **
  20  Normalizat    1.2096        .15322       -.25260E-05    .35302E-03
  21  Prefactor     .37665        .14245       -.88668E-06   -.63613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100203
  norm       = 33.858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.858154
  Prefactor  = 35.292
  Prefactor  = 85.23
  Prefactor  = 0.0001
  Prefactor  = 12.7783
  norm       = 8.65377
  norm       = 5.96907
  Prefactor  = 0.0001
  Prefactor  = 1.35685
  Prefactor  = 0.586419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.88862
  norm       = 3.68796
  Prefactor  = 0.0001
  Normalizat = 1.20958
  Prefactor  = 0.376647
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.251     FROM HESSE     STATUS=OK           327 CALLS     2530 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    25.329        .29043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          33.858        28.889        .68895E-04   -1.4544    
   3  Prefactor     .10000E-03    15.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0233        .17214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .85815        50.080        .46167E-02   -1.5523    
   6  Prefactor     35.292        14.573        .67456E-04   -1.4519    
   7  Prefactor     85.230        52.659        .21769E-03   -1.3859    
   8  Prefactor     .10000E-03    30.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.778        11.493        .11201E-03   -1.4993    
  10  norm          8.6538        7.5573        .13626E-03   -1.5120    
  11  norm          5.9691        3.0803        .91793E-04   -1.5219    
  12  Prefactor     .10000E-03    19.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3569        24.648        .37356E-03   -1.5475    
  14  Prefactor     .58642        127.37        .57671E-02   -1.5555    
  15  Prefactor     .10000E-03    11.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    142.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .88862        .43205        .32619E-04   -1.5519    
  18  norm          3.6880        3.3123        .12208E-03   -1.5324    
  19  Prefactor     .10000E-03    2.6361        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2096        .17015        .19179E-03   -.86307    
  21  Prefactor     .37665        .15610        .30813E-03   -1.1802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76453e-09
Minuit parameter uncertainties:
  1  0.00453967
  2  28.9006
  3  2.25665e-05
  4  8.77634e-06
  5  13.122
  6  14.5741
  7  52.6883
  8  9.59225e-05
  9  11.495
  10  7.55816
  11  3.08033
  12  3.52886e-05
  13  11.5711
  14  17.3206
  15  1.03208e-05
  16  0.000258661
  17  0.432053
  18  3.31251
  19  1.36348e-05
  20  0.170231
  21  0.156271
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  8.886e-01  4.321e-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:  3.766e-01  1.563e-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.210e+00  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.23
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.31e-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) = 6195.14191184
delta logL = 0.109106304001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6195.14089577
delta logL = 0.110122369437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90242       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8449       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37281       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=   6195.141     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      196 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90233        .92878        .76161E-02   -.56603E-03
   2  alpha         1.8446        .80337        .28640       -.97877E-04
   3  Normalizat    1.2177        .15259        .34470E-01   -.85054E-03
   4  Prefactor     .37279        .14212        .69936E-01   -.48344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.902331
  alpha      = 1.8446
  Normalizat = 1.21774
  Prefactor  = 0.37279
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.141     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90233        .41891        .33644E-04   -1.5518    
   2  alpha         1.8446        .39970        .11581E-01   -.26526    
   3  Normalizat    1.2177        .16573        .19128E-03   -.86056    
   4  Prefactor     .37279        .15483        .30969E-03   -1.1822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81495e-10
Minuit parameter uncertainties:
  1  0.418907
  2  0.401554
  3  0.165801
  4  0.155004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101182': 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) = 6195.14089549
delta logL = 0.110122651465

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  9.023e-01  4.189e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  1.845e+00  4.016e-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:  3.728e-01  1.550e-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.218e+00  1.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.53
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 1.84 +/- 0.40
Photon Flux (Free Index): 4.27e-08 +/- 2.58e-08
Energy Flux (Free Index): 3.14e-05 +/- 1.88e-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/101182/cmap_HighResolution_506304001_506563201_4FGL_J2345.2-1555_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='3.14e-05', photon_flux_error='2.47e-08', dlogl='1.10e-01', energy_flux='2.69e-05', photon_flux2='4.27e-08', job_status='DONE', time_completed='2021-09-30 04:11:03.180635', photon_index_error2='0.40', photon_index2='1.84', ts='14.23', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.21', time_epoch_completed='1633000263.18', return_code='0', job_id='101182', GAL2='0.37', EG2='1.22', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.58e-08', ts2='14.53', photon_index='2.03' WHERE bin_id='1030' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 101182: <4FGL_J2345.2-1555_daily_bin1030> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1030> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 04:00:35 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:00:37 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:37 2021
Terminated at Thu Sep 30 04:11:03 2021
Results reported at Thu Sep 30 04:11:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1030 356.303 -15.9182 506304001 506563201 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 :                                   545.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            628 sec.

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

