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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1470
RA = 356.303, Dec = -15.9182
tmin = 620352001, tmax = 620611201
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='104194', job_status='RUN', time_executed='2021-09-30 04:11:27.549691', time_epoch_executed='1633000287.55' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104194

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104194/ft1_4FGL_J2345.2-1555_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104194/ft2_4FGL_J2345.2-1555_daily_bin1470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104194/ft1_4FGL_J2345.2-1555_daily_bin1470.fits outfile=/scratch/kocevski/104194/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1470.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=620352001.0 tmax=620611201.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.90
user 4.59
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104194/ft1_filtered_4FGL_J2345.2-1555_daily_bin1470.fits" evtable="EVENTS" scfile=/scratch/kocevski/104194/ft2_4FGL_J2345.2-1555_daily_bin1470.fits sctable="SC_DATA" outfile=/scratch/kocevski/104194/ltcube_620352001_620611201_4FGL_J2345.2-1555_daily_bin1470.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/104194/ft2_4FGL_J2345.2-1555_daily_bin1470.fits
.....................!
real 11.85
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104194/ft1_filtered_4FGL_J2345.2-1555_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/104194/ft2_4FGL_J2345.2-1555_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/104194/ltcube_620352001_620611201_4FGL_J2345.2-1555_daily_bin1470.fits outfile=/scratch/kocevski/104194/expmap_620352001_620611201_4FGL_J2345.2-1555_daily_bin1470.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/104194/ltcube_620352001_620611201_4FGL_J2345.2-1555_daily_bin1470.fits
.....................!
real 193.31
user 187.73
sys 5.09

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/104194/ft1_filtered_4FGL_J2345.2-1555_daily_bin1470.fits scfile=/scratch/kocevski/104194/ft2_4FGL_J2345.2-1555_daily_bin1470.fits outfile=/scratch/kocevski/104194/cmap_620352001_620611201_4FGL_J2345.2-1555_daily_bin1470.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104194/ft1_filtered_4FGL_J2345.2-1555_daily_bin1470.fits scfile=/scratch/kocevski/104194/ft2_4FGL_J2345.2-1555_daily_bin1470.fits outfile=/scratch/kocevski/104194/cmap_HighResolution_620352001_620611201_4FGL_J2345.2-1555_daily_bin1470.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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104194/ft1_filtered_4FGL_J2345.2-1555_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/104194/ft2_4FGL_J2345.2-1555_daily_bin1470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104194/Model_4FGL_J2345.2-1555_daily_bin1470.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/104194/ft1_filtered_4FGL_J2345.2-1555_daily_bin1470.fits.....................!
real 47.73
user 46.32
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17640E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.728       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5460       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.617       1.0000         .10000E-03   10000.    
    11 'norm      '    13.943       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.752       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11091E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8231       1.0000         .10000E-03   10000.    
    16 'Prefactor '    100.97       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3979       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4215       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0527       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70687       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5736.381     FROM MIGRAD    STATUS=CONVERGED     77 CALLS     2165 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9466        .63709E-07** at limit **
   2  norm          .10000E-03    5.2287       -.92557E-05** at limit **
   3  Prefactor     .10001E-03    15.547        .44834E-05** at limit **
   4  Prefactor     .10000E-03    4.2120        .94053E-05** at limit **
   5  Prefactor     .10919E-03    147.21        .27762E-05** at limit **
   6  Prefactor     11.725        1.5255        .14442E-05   -.22328E-02
   7  Prefactor     1.6183        14.359        .97954E-05   -.25530E-02
   8  Prefactor     .10000E-03    4.2874       -.53653E-05** at limit **
   9  Prefactor     .10000E-03    4.9666        .30122E-06** at limit **
  10  norm          10.614        1.1430       -.47483E-06    .31394E-03
  11  norm          13.944        3.8400       -.72409E-06   -.97503E-03
  12  Prefactor     29.785        4.4402        .10244E-05   -.59074E-02
  13  Prefactor     .10001E-03    3.4153        .36717E-05** at limit **
  14  Prefactor     .10001E-03    8.0674       -.29482E-05** at limit **
  15  Prefactor     9.8165        1.3478       -.47664E-06    .91758E-03
  16  Prefactor     100.96        1.6002       -.29957E-06    .60795E-02
  17  norm          1.3986        .77485        .18156E-05   -.83297E-03
  18  norm          3.4176        5.0409       -.11655E-04   -.37409E-02
  19  Prefactor     .10000E-03    2.0530       -.18356E-06** at limit **
  20  Normalizat    1.0523        .19224        .24164E-05   -.48345E-03
  21  Prefactor     .70727        .18558       -.21886E-05   -.53277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 0.000109185
  Prefactor  = 11.7254
  Prefactor  = 1.6183
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.6137
  norm       = 13.9443
  Prefactor  = 29.7847
  Prefactor  = 0.00010001
  Prefactor  = 0.000100007
  Prefactor  = 9.8165
  Prefactor  = 100.959
  norm       = 1.39857
  norm       = 3.41756
  Prefactor  = 0.0001
  Normalizat = 1.05226
  Prefactor  = 0.70727
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.381     FROM HESSE     STATUS=OK           357 CALLS     2522 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9387        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    15.638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10919E-03    10.542        .90712E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.725        12.266        .29244E-02   -1.5023    
   7  Prefactor     1.6183        226.22        .85682E-02   -1.5454    
   8  Prefactor     .10000E-03    11.843        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.614        6.8177        .30740E-02   -1.5056    
  11  norm          13.944        3.8466        .26817E-02   -1.4961    
  12  Prefactor     29.785        35.324        .18363E-02   -1.4616    
  13  Prefactor     .10001E-03    11.325        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    10.054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.8165        35.971        .31964E-02   -1.5081    
  16  Prefactor     100.96        84.251        .10003E-02   -1.3695    
  17  norm          1.3986        .78280        .85297E-02   -1.5471    
  18  norm          3.4176        5.5075        .54672E-02   -1.5338    
  19  Prefactor     .10000E-03    2.0412        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0523        .16887        .40381E-01   -.91300    
  21  Prefactor     .70727        .16052        .42493E-01   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00857e-06
Minuit parameter uncertainties:
  1  6.00391e-06
  2  9.43562e-05
  3  0.000587689
  4  0.000278452
  5  0.0196845
  6  12.2682
  7  38.4147
  8  0.00023657
  9  7.50073e-06
  10  6.81816
  11  3.84664
  12  35.3491
  13  0.000658172
  14  0.000513106
  15  36.0504
  16  84.3511
  17  0.782808
  18  5.50828
  19  6.70479e-06
  20  0.168957
  21  0.160623
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.399e+00  7.828e-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:  7.073e-01  1.606e-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.052e+00  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.46
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 8.00e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 4.23e-05 +/- 2.37e-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) = 5735.48180736
delta logL = 0.89895194445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5735.47873497
delta logL = 0.902024330121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1186       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5853       1.0000          .0000       5.0000    
     3 'Normalizat'    .99230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74195       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=   5735.479     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1185        5.7239        .65109E-02    .20535E-02
   2  alpha         2.5853        3.7417        .19263        .17234E-04
   3  Normalizat    .99230        .80089E-01    .46070E-01    .79656E-05
   4  Prefactor     .74195        .65436E-01    .42957E-01    .85062E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11852
  alpha      = 2.58525
  Normalizat = 0.992304
  Prefactor  = 0.741955
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.479     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1185        .60991        .28944E-04   -1.5496    
   2  alpha         2.5853        .43556        .79353E-02    .34107E-01
   3  Normalizat    .99230        .19701        .22339E-03   -.93289    
   4  Prefactor     .74195        .18822        .24854E-03   -1.0190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06751e-10
Minuit parameter uncertainties:
  1  0.609917
  2  0.437793
  3  0.197158
  4  0.188384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104194': 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) = 5735.4787349
delta logL = 0.902024396742

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.119e+00  6.099e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.585e+00  4.378e-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:  7.420e-01  1.884e-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.923e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.44
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 2.59 +/- 0.44
Photon Flux (Free Index): 1.28e-07 +/- 5.69e-08
Energy Flux (Free Index): 3.59e-05 +/- 1.44e-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/104194/cmap_HighResolution_620352001_620611201_4FGL_J2345.2-1555_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.00e-08', energy_flux2='3.59e-05', photon_flux_error='4.48e-08', dlogl='9.02e-01', energy_flux='4.23e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-30 04:20:29.457920', photon_index_error2='0.44', photon_index2='2.59', ts='11.46', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='1.05', time_epoch_completed='1633000829.46', return_code='0', job_id='104194', GAL2='0.74', EG2='0.99', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='5.69e-08', ts2='13.44', photon_index='2.03' WHERE bin_id='1470' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:20:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 104194: <4FGL_J2345.2-1555_daily_bin1470> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1470> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 04:10:16 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:10:18 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:10:18 2021
Terminated at Thu Sep 30 04:20:30 2021
Results reported at Thu Sep 30 04:20:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1470 356.303 -15.9182 620352001 620611201 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 :                                   535.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            614 sec.

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

