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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1050
RA = 356.303, Dec = -15.9182
tmin = 511488001, tmax = 511747201
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='101210', job_status='RUN', time_executed='2021-09-30 04:04:39.132083', time_epoch_executed='1632999879.13' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101210

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101210/ft1_4FGL_J2345.2-1555_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101210/ft2_4FGL_J2345.2-1555_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101210/ft1_4FGL_J2345.2-1555_daily_bin1050.fits outfile=/scratch/kocevski/101210/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1050.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=511488001.0 tmax=511747201.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.52
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101210/ft1_filtered_4FGL_J2345.2-1555_daily_bin1050.fits" evtable="EVENTS" scfile=/scratch/kocevski/101210/ft2_4FGL_J2345.2-1555_daily_bin1050.fits sctable="SC_DATA" outfile=/scratch/kocevski/101210/ltcube_511488001_511747201_4FGL_J2345.2-1555_daily_bin1050.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/101210/ft2_4FGL_J2345.2-1555_daily_bin1050.fits
.....................!
real 11.81
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101210/ft1_filtered_4FGL_J2345.2-1555_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/101210/ft2_4FGL_J2345.2-1555_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/101210/ltcube_511488001_511747201_4FGL_J2345.2-1555_daily_bin1050.fits outfile=/scratch/kocevski/101210/expmap_511488001_511747201_4FGL_J2345.2-1555_daily_bin1050.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/101210/ltcube_511488001_511747201_4FGL_J2345.2-1555_daily_bin1050.fits
.....................!
real 191.94
user 186.94
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/101210/ft1_filtered_4FGL_J2345.2-1555_daily_bin1050.fits scfile=/scratch/kocevski/101210/ft2_4FGL_J2345.2-1555_daily_bin1050.fits outfile=/scratch/kocevski/101210/cmap_511488001_511747201_4FGL_J2345.2-1555_daily_bin1050.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101210/ft1_filtered_4FGL_J2345.2-1555_daily_bin1050.fits scfile=/scratch/kocevski/101210/ft2_4FGL_J2345.2-1555_daily_bin1050.fits outfile=/scratch/kocevski/101210/cmap_HighResolution_511488001_511747201_4FGL_J2345.2-1555_daily_bin1050.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101210/ft1_filtered_4FGL_J2345.2-1555_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/101210/ft2_4FGL_J2345.2-1555_daily_bin1050.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101210/Model_4FGL_J2345.2-1555_daily_bin1050.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/101210/ft1_filtered_4FGL_J2345.2-1555_daily_bin1050.fits.....................!
real 52.55
user 51.30
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8341       1.0000         .10000E-03   10000.    
     2 'norm      '    .30810E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    71.130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.688       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14692E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.666       1.0000         .10000E-03   10000.    
    10 'norm      '    10.869       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.122       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.781       1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.097       1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.435       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9731       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2426       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .93283       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .50118       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2100       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=   6661.667     FROM MIGRAD    STATUS=FAILED       814 CALLS     2900 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8357        6.4404        .30811E-03    .12472E-04
   2  norm          .10001E-03    115.35        .59487E-02** at limit **
   3  Prefactor     71.087        49.260        .23799E-03   -.24028E-04
   4  Prefactor     .10000E-03    5.1128        .18010E-02** at limit **
   5  Prefactor     .10000E-03    8.9149        .18142E-02** at limit **
   6  Prefactor     13.795        9.9074        .10785E-03   -.15391E-04
   7  Prefactor     25.756        50.992        .79038E-04    .21720E-04
   8  Prefactor     .10000E-03    70.770        .49470E-02** at limit **
   9  Prefactor     12.663        11.051        .11255E-03   -.36565E-04
  10  norm          10.870        6.2145        .12153E-03   -.34052E-04
  11  norm          .10000E-03    .70252        .66517E-03** at limit **
  12  Prefactor     43.203        5871.2        .61049E-04    .19740E-04
  13  Prefactor     .48286        9972.5        .44154E-02    .39124E-04
  14  Prefactor     37.762        24.658        .65205E-04    .18481E-04
  15  Prefactor     42.059        49.107        .61784E-04   -.19689E-04
  16  Prefactor     58.529        72.815        .26241E-03    .34486E-04
  17  norm          1.9732        .69747        .32538E-04   -.38958E-03
  18  norm          3.2425        3.5644        .13853E-03    .34057E-04
  19  Prefactor     .93841        7.7990        .30721E-02    .30445E-02
  20  Normalizat    .50132        .18893        .29826E-03    .35754E-04
  21  Prefactor     1.2098        .19833        .20642E-03    .40576E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6661.667     FROM SIMPLEX   STATUS=UNCHANGED    971 CALLS     3871 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8357        6.4404        .37148E-06   -1.5437    
   2  norm          .10001E-03    115.35        .12800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     71.087        49.260        .28248E-06   -1.4020    
   4  Prefactor     .10000E-03    5.1128        .40037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9149        .37936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.795        9.9074        .29675E-06   -1.4965    
   7  Prefactor     25.756        50.992        .29353E-06   -1.4693    
   8  Prefactor     .10000E-03    70.770        .98038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.663        11.051        .29824E-06   -1.4996    
  10  norm          10.870        6.2145        .29883E-06   -1.5048    
  11  norm          .10000E-03    .70252        .97390E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.203        5871.2        .67105E-06   -1.4392    
  13  Prefactor     .48286        9972.5        .10852E-04   -1.5569    
  14  Prefactor     37.762        24.658        .28974E-06   -1.4478    
  15  Prefactor     42.059        49.107        .29488E-06   -1.4410    
  16  Prefactor     58.529        72.815        .28584E-06   -1.4176    
  17  norm          1.9732        .69747        .30645E-06   -1.5427    
  18  norm          3.2425        3.5644        .30179E-06   -1.5348    
  19  Prefactor     .93841        7.7990        .30276E-06   -1.5514    
  20  Normalizat    .50132        .18893        .22700E-06   -1.1235    
  21  Prefactor     1.2098        .19833        .17081E-06   -.86029    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6661.667     FROM MIGRAD    STATUS=CONVERGED    303 CALLS     4174 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8357        6.4258        .12324E-04    .10331E-04
   2  norm          .10000E-03    117.82        .11897E-02** at limit **
   3  Prefactor     71.087        49.217        .95197E-05   -.21496E-04
   4  Prefactor     .10000E-03    5.1131        .36021E-03** at limit **
   5  Prefactor     .10000E-03    8.9162        .36285E-03** at limit **
   6  Prefactor     13.795        9.8897        .43139E-05   -.11069E-04
   7  Prefactor     25.756        50.777        .31615E-05    .20137E-04
   8  Prefactor     .10000E-03    71.603        .98940E-03** at limit **
   9  Prefactor     12.663        11.049        .45021E-05   -.30807E-04
  10  norm          10.870        6.2137        .48610E-05   -.29468E-04
  11  norm          .10000E-03    .70251        .13303E-03** at limit **
  12  Prefactor     43.203        83.692        .24420E-05    .52142E-04
  13  Prefactor     .48265        433.67        .17662E-03    .11586E-05
  14  Prefactor     37.762        23.460        .26082E-05    .18307E-04
  15  Prefactor     42.059        49.066        .24714E-05   -.16560E-04
  16  Prefactor     58.529        72.705        .10496E-04    .30760E-04
  17  norm          1.9732        .64982        .13015E-05   -.25098E-03
  18  norm          3.2425        3.5099        .55413E-05    .43084E-04
  19  Prefactor     .93842        7.7351        .61441E-03   -.75678E-04
  20  Normalizat    .50132        .18290        .11930E-04    .48599E-04
  21  Prefactor     1.2098        .18418        .41284E-04    .37991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83567
  norm       = 0.000100005
  Prefactor  = 71.0874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7946
  Prefactor  = 25.7555
  Prefactor  = 0.0001
  Prefactor  = 12.6627
  norm       = 10.8698
  norm       = 0.0001
  Prefactor  = 43.2034
  Prefactor  = 0.482648
  Prefactor  = 37.7625
  Prefactor  = 42.0587
  Prefactor  = 58.5291
  norm       = 1.97324
  norm       = 3.24253
  Prefactor  = 0.938417
  Normalizat = 0.501324
  Prefactor  = 1.20985
 **********
 **   18 **HESSE 
 **********

 FCN=   6661.667     FROM HESSE     STATUS=OK           297 CALLS     4471 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8357        6.4219        .24649E-05   -1.5437    
   2  norm          .10000E-03    117.92        .23795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     71.087        49.196        .19039E-05   -1.4020    
   4  Prefactor     .10000E-03    5.1131        .72041E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9163        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.795        9.8919        .86278E-06   -1.4965    
   7  Prefactor     25.756        50.278        .63230E-06   -1.4693    
   8  Prefactor     .10000E-03    71.649        .19788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.663        10.989        .90042E-06   -1.4996    
  10  norm          10.870        6.2104        .97221E-06   -1.5048    
  11  norm          .10000E-03    .70251        .26607E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.203        81.563        .48839E-06   -1.4392    
  13  Prefactor     .48265        413.01        .70647E-05   -1.5569    
  14  Prefactor     37.762        23.358        .52164E-06   -1.4478    
  15  Prefactor     42.059        48.511        .49428E-06   -1.4410    
  16  Prefactor     58.529        72.674        .20993E-05   -1.4176    
  17  norm          1.9732        .64982        .36781E-06   -1.5427    
  18  norm          3.2425        3.5103        .11083E-05   -1.5348    
  19  Prefactor     .93842        7.7158        .24577E-04   -1.5514    
  20  Normalizat    .50132        .18227        .23861E-05   -1.1235    
  21  Prefactor     1.2098        .18389        .82567E-05   -.86029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63252e-10
Minuit parameter uncertainties:
  1  6.42432
  2  0.00146259
  3  49.2237
  4  3.65113e-06
  5  7.39873e-06
  6  9.89311
  7  50.3613
  8  2.84039e-05
  9  10.9911
  10  6.21075
  11  2.43494e-06
  12  81.7749
  13  28.4332
  14  23.3638
  15  48.5565
  16  72.7845
  17  0.649825
  18  3.51052
  19  5.38235
  20  0.182487
  21  0.183988
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.973e+00  6.498e-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:  1.210e+00  1.840e-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:  5.013e-01  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.75
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 3.72e-08
Energy Flux (Fixed Index): 5.97e-05 +/- 1.97e-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) = 6661.57377092
delta logL = 0.0934713617971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6661.56722312
delta logL = 0.100019161949

Fit tolerance = 1e-08

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

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

 FCN=   6661.567     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      261 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8818        .60332        .30999E-04   -.26845E-03
   2  alpha         2.1534        .27130        .73148E-02   -.36855E-04
   3  Normalizat    .48990        .17488        .30140E-03    .11957E-04
   4  Prefactor     1.2163        .18124        .20586E-03    .14513E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88179
  alpha      = 2.15338
  Normalizat = 0.489901
  Prefactor  = 1.21634
 **********
 **   18 **HESSE 
 **********

 FCN=   6661.567     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8818        .59724        .12400E-05   -1.5434    
   2  alpha         2.1534        .26845        .29259E-03   -.13909    
   3  Normalizat    .48990        .17494        .12056E-04   -1.1289    
   4  Prefactor     1.2163        .18133        .41173E-04   -.85830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07575e-11
Minuit parameter uncertainties:
  1  0.597242
  2  0.268978
  3  0.175141
  4  0.181419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101210': 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) = 6661.56722311
delta logL = 0.100019172855

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.882e+00  5.972e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.153e+00  2.690e-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:  1.216e+00  1.814e-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:  4.899e-01  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.26
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 2.15 +/- 0.27
Photon Flux (Free Index): 1.23e-07 +/- 4.19e-08
Energy Flux (Free Index): 5.46e-05 +/- 1.88e-05

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/101210/cmap_HighResolution_511488001_511747201_4FGL_J2345.2-1555_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='5.46e-05', photon_flux_error='3.72e-08', dlogl='1.00e-01', energy_flux='5.97e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-30 04:16:52.022211', photon_index_error2='0.27', photon_index2='2.15', ts='33.75', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='0.50', time_epoch_completed='1633000612.02', return_code='0', job_id='101210', GAL2='1.22', EG2='0.49', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='4.19e-08', ts2='34.26', photon_index='2.03' WHERE bin_id='1050' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:16:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 101210: <4FGL_J2345.2-1555_daily_bin1050> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1050 356.303 -15.9182 511488001 511747201 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 :                                   697.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

