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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1620
RA = 356.303, Dec = -15.9182
tmin = 659232001, tmax = 659491201
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='505305', job_status='RUN', time_executed='2021-12-08 09:46:51.037201', time_epoch_executed='1638985611.04' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505305

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505305/ft1_4FGL_J2345.2-1555_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505305/ft2_4FGL_J2345.2-1555_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505305/ft1_4FGL_J2345.2-1555_daily_bin1620.fits outfile=/scratch/kocevski/505305/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1620.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=659232001.0 tmax=659491201.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 2.83
user 2.63
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505305/ft1_filtered_4FGL_J2345.2-1555_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/505305/ft2_4FGL_J2345.2-1555_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/505305/ltcube_659232001_659491201_4FGL_J2345.2-1555_daily_bin1620.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/505305/ft2_4FGL_J2345.2-1555_daily_bin1620.fits
.....................!
real 15.59
user 15.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505305/ft1_filtered_4FGL_J2345.2-1555_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/505305/ft2_4FGL_J2345.2-1555_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/505305/ltcube_659232001_659491201_4FGL_J2345.2-1555_daily_bin1620.fits outfile=/scratch/kocevski/505305/expmap_659232001_659491201_4FGL_J2345.2-1555_daily_bin1620.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/505305/ltcube_659232001_659491201_4FGL_J2345.2-1555_daily_bin1620.fits
.....................!
real 191.90
user 186.33
sys 4.99

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/505305/ft1_filtered_4FGL_J2345.2-1555_daily_bin1620.fits scfile=/scratch/kocevski/505305/ft2_4FGL_J2345.2-1555_daily_bin1620.fits outfile=/scratch/kocevski/505305/cmap_659232001_659491201_4FGL_J2345.2-1555_daily_bin1620.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.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9236       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.461       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2633       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.361       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.109       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2803       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1845       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0509       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0480       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.750       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16799E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0734       1.0000         .10000E-03   10000.    
    18 'norm      '    22.831       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0491       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3009       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .67200       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=   5550.365     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2234 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9245        8.6179       -.17866E-05   -.32239E-04
   2  norm          .10000E-03    14.342       -.13618E-07** at limit **
   3  Prefactor     .10000E-03    84.161        .12956E-05** at limit **
   4  Prefactor     37.460        29.175       -.41284E-06    .16920E-06
   5  Prefactor     1.2631        8.5897        .96446E-06   -.23516E-03
   6  Prefactor     .10000E-03    2.8245        .10263E-07** at limit **
   7  Prefactor     21.345        35.368       -.13045E-05    .23244E-05
   8  Prefactor     8.9773        15.021       -.26339E-05   -.81470E-06
   9  Prefactor     12.110        8.2839        .12292E-05    .28342E-04
  10  norm          2.2810        4.4215       -.47916E-06   -.53061E-04
  11  norm          3.1843        3.5114        .14968E-06    .39240E-04
  12  Prefactor     .10000E-03    47.431       -.45121E-06** at limit **
  13  Prefactor     5.0575        14.044       -.64610E-05   -.17375E-04
  14  Prefactor     4.0288        84.318       -.47990E-05   -.22372E-05
  15  Prefactor     34.751        34.767       -.12525E-06    .63963E-06
  16  Prefactor     .10000E-03    240.57       -.15619E-05** at limit **
  17  norm          1.0733        .65473        .50341E-07    .26684E-03
  18  norm          22.832        7.0208       -.11484E-07    .52052E-04
  19  Prefactor     1.0503        10.372        .36422E-06   -.84845E-04
  20  Normalizat    1.3008        .19231        .69110E-06    .96951E-05
  21  Prefactor     .67199        .17825        .46379E-06    .39744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92451
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4604
  Prefactor  = 1.26309
  Prefactor  = 0.0001
  Prefactor  = 21.3447
  Prefactor  = 8.97727
  Prefactor  = 12.1101
  norm       = 2.28103
  norm       = 3.18434
  Prefactor  = 0.000100001
  Prefactor  = 5.0575
  Prefactor  = 4.02883
  Prefactor  = 34.7505
  Prefactor  = 0.0001
  norm       = 1.07332
  norm       = 22.8321
  Prefactor  = 1.05034
  Normalizat = 1.30084
  Prefactor  = 0.671986
 **********
 **   18 **HESSE 
 **********

 FCN=   5550.365     FROM HESSE     STATUS=OK           327 CALLS     2561 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9245        8.5757        .20367E-03   -1.5312    
   2  norm          .10000E-03    14.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    84.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.460        29.164        .65483E-04   -1.4483    
   5  Prefactor     1.2631        82.373        .19828E-02   -1.5483    
   6  Prefactor     .10000E-03    2.8304        .12228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.345        35.349        .86663E-04   -1.4784    
   8  Prefactor     8.9773        15.001        .13378E-03   -1.5109    
   9  Prefactor     12.110        8.2792        .11512E-03   -1.5012    
  10  norm          2.2810        4.4075        .20680E-03   -1.5406    
  11  norm          3.1843        3.4739        .13292E-03   -1.5351    
  12  Prefactor     .10000E-03    47.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0575        14.049        .17892E-03   -1.5258    
  14  Prefactor     4.0288        83.004        .20041E-03   -1.5307    
  15  Prefactor     34.751        34.767        .33990E-03   -1.4528    
  16  Prefactor     .10000E-03    241.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0733        .64897        .42036E-04   -1.5501    
  18  norm          22.832        7.0592        .83829E-04   -1.4752    
  19  Prefactor     1.0503        10.684        .45562E-03   -1.5503    
  20  Normalizat    1.3008        .23026        .22943E-03   -.83541    
  21  Prefactor     .67199        .21277        .28853E-03   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85835e-09
Minuit parameter uncertainties:
  1  8.57837
  2  3.92602e-06
  3  0.000110344
  4  29.1751
  5  20.4291
  6  5.74346e-07
  7  35.384
  8  15.0073
  9  8.27998
  10  4.40817
  11  3.47415
  12  0.000337538
  13  14.0586
  14  36.6314
  15  34.787
  16  6.64871e-06
  17  0.648977
  18  7.05942
  19  6.701
  20  0.230438
  21  0.213024
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.073e+00  6.490e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.034e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  6.720e-01  2.130e-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.301e+00  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.77
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 6.14e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 1.96e-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) = 5550.12286359
delta logL = 0.242346774235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5550.11327282
delta logL = 0.251937545831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1534       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6893       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66630       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=   5550.113     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      208 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1533        1.0344        .96552E-02    .95043E-03
   2  alpha         1.6894        .63025        .31399        .67873E-04
   3  Normalizat    1.3117        .18801        .51718E-01    .34394E-03
   4  Prefactor     .66632        .17630        .65470E-01    .36492E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15331
  alpha      = 1.68937
  Normalizat = 1.31172
  Prefactor  = 0.666318
 **********
 **   18 **HESSE 
 **********

 FCN=   5550.113     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1533        .63519        .43090E-04   -1.5493    
   2  alpha         1.6894        .45260        .12053E-01   -.33022    
   3  Normalizat    1.3117        .22348        .22865E-03   -.83217    
   4  Prefactor     .66632        .20929        .28968E-03   -1.0486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45776e-10
Minuit parameter uncertainties:
  1  0.635197
  2  0.45541
  3  0.223642
  4  0.209537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505305': 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) = 5550.11327282
delta logL = 0.251937551689

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.153e+00  6.352e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  1.689e+00  4.554e-01  0.000e+00  5.000e+00 ( 1.000e+00)
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  6.663e-01  2.095e-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.312e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.43
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 1.69 +/- 0.46
Photon Flux (Free Index): 4.80e-08 +/- 3.21e-08
Energy Flux (Free Index): 4.85e-05 +/- 3.97e-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/505305/cmap_HighResolution_659232001_659491201_4FGL_J2345.2-1555_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.14e-08', energy_flux2='4.85e-05', photon_flux_error='3.71e-08', dlogl='2.52e-01', energy_flux='3.25e-05', photon_flux2='4.80e-08', job_status='DONE', time_completed='2021-12-08 09:55:31.171878', photon_index_error2='0.46', photon_index2='1.69', ts='6.77', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='3.97e-05', EG='1.30', time_epoch_completed='1638986131.17', return_code='0', job_id='505305', GAL2='0.67', EG2='1.31', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='3.21e-08', ts2='7.43', photon_index='2.03' WHERE bin_id='1620' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:55:31 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 505305: <4FGL_J2345.2-1555_daily_bin1620> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1620> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 09:45:13 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:45:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:45:16 2021
Terminated at Wed Dec  8 09:55:31 2021
Results reported at Wed Dec  8 09:55:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1620 356.303 -15.9182 659232001 659491201 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 :                                   518.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            618 sec.

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

