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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1606
RA = 356.303, Dec = -15.9182
tmin = 655603201, tmax = 655862401
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='504125', job_status='RUN', time_executed='2021-12-08 09:42:42.355591', time_epoch_executed='1638985362.36' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504125/ft1_4FGL_J2345.2-1555_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504125/ft2_4FGL_J2345.2-1555_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504125/ft1_4FGL_J2345.2-1555_daily_bin1606.fits outfile=/scratch/kocevski/504125/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1606.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=655603201.0 tmax=655862401.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.25
user 4.03
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504125/ft2_4FGL_J2345.2-1555_daily_bin1606.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/504125/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/504125/ft1_filtered_4FGL_J2345.2-1555_daily_bin1606.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/504125/ft1_filtered_4FGL_J2345.2-1555_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/504125/ft2_4FGL_J2345.2-1555_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/504125/ltcube_655603201_655862401_4FGL_J2345.2-1555_daily_bin1606.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/504125/ft2_4FGL_J2345.2-1555_daily_bin1606.fits
.....................!
real 12.78
user 12.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504125/ft1_filtered_4FGL_J2345.2-1555_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/504125/ft2_4FGL_J2345.2-1555_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/504125/ltcube_655603201_655862401_4FGL_J2345.2-1555_daily_bin1606.fits outfile=/scratch/kocevski/504125/expmap_655603201_655862401_4FGL_J2345.2-1555_daily_bin1606.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/504125/ltcube_655603201_655862401_4FGL_J2345.2-1555_daily_bin1606.fits
.....................!
real 192.11
user 187.06
sys 4.61

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/504125/ft1_filtered_4FGL_J2345.2-1555_daily_bin1606.fits scfile=/scratch/kocevski/504125/ft2_4FGL_J2345.2-1555_daily_bin1606.fits outfile=/scratch/kocevski/504125/cmap_655603201_655862401_4FGL_J2345.2-1555_daily_bin1606.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504125/ft1_filtered_4FGL_J2345.2-1555_daily_bin1606.fits scfile=/scratch/kocevski/504125/ft2_4FGL_J2345.2-1555_daily_bin1606.fits outfile=/scratch/kocevski/504125/cmap_HighResolution_655603201_655862401_4FGL_J2345.2-1555_daily_bin1606.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/504125/ft1_filtered_4FGL_J2345.2-1555_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/504125/ft2_4FGL_J2345.2-1555_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504125/Model_4FGL_J2345.2-1555_daily_bin1606.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/504125/ft1_filtered_4FGL_J2345.2-1555_daily_bin1606.fits.....................!
real 30.38
user 29.16
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0828       1.0000         .10000E-03   10000.    
     2 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11424E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.165       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5033       1.0000         .10000E-03   10000.    
    11 'norm      '    5.5926       1.0000         .10000E-03   10000.    
    12 'Prefactor '    95.181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14241E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    85.423       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.0234       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88858       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .73783       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=   2753.071     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2247 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0811        10.136        .41859E-06    .10825E-04
   2  norm          .10000E-03    38.506        .10181E-06** at limit **
   3  Prefactor     .10000E-03    34.190       -.13997E-05** at limit **
   4  Prefactor     .10000E-03    17.907       -.19996E-06** at limit **
   5  Prefactor     19.004        32.358        .14112E-06   -.41794E-06
   6  Prefactor     .10000E-03    5.4207        .18854E-07** at limit **
   7  Prefactor     .10000E-03    42.564        .77517E-06** at limit **
   8  Prefactor     .10000E-03    41.202        .21196E-05** at limit **
   9  Prefactor     10.168        11.975       -.21025E-06   -.27096E-04
  10  norm          1.4994        5.6156        .10827E-05    .44557E-04
  11  norm          5.5941        4.9474        .97863E-07   -.42291E-04
  12  Prefactor     95.232        99.494        .13769E-05   -.49683E-04
  13  Prefactor     .10000E-03    113.92        .86052E-05** at limit **
  14  Prefactor     .10000E-03    20.409        .22097E-06** at limit **
  15  Prefactor     85.427        75.966       -.31425E-06   -.66069E-05
  16  Prefactor     .10000E-03    165.96        .63511E-05** at limit **
  17  norm          .10000E-03    .48970        .35284E-06** at limit **
  18  norm          8.0275        6.7581       -.12840E-06   -.41084E-03
  19  Prefactor     .10000E-03    4.7866       -.58651E-07** at limit **
  20  Normalizat    .88771        .24832       -.19261E-05   -.78139E-04
  21  Prefactor     .73867        .22633        .17155E-05   -.12923E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0811
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1678
  norm       = 1.4994
  norm       = 5.5941
  Prefactor  = 95.2324
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 85.4273
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.02745
  Prefactor  = 0.0001
  Normalizat = 0.887714
  Prefactor  = 0.738668
 **********
 **   18 **HESSE 
 **********

 FCN=   2753.071     FROM HESSE     STATUS=OK           313 CALLS     2560 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0811        10.129        .19953E-03   -1.5304    
   2  norm          .10000E-03    38.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.004        32.364        .91874E-04   -1.4836    
   6  Prefactor     .10000E-03    5.4232        .11932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.168        11.922        .12568E-03   -1.5070    
  10  norm          1.4994        5.6040        .22642E-03   -1.5463    
  11  norm          5.5941        4.9464        .10385E-03   -1.5235    
  12  Prefactor     95.232        96.228        .20599E-03   -1.3753    
  13  Prefactor     .10000E-03    112.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     85.427        75.945        .43465E-04   -1.3857    
  16  Prefactor     .10000E-03    164.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .55726        .67281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.0275        6.5544        .11407E-03   -1.5141    
  19  Prefactor     .10000E-03    4.7965        .11207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88771        .28692        .23176E-03   -.96893    
  21  Prefactor     .73867        .26006        .23470E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83291e-10
Minuit parameter uncertainties:
  1  10.1336
  2  1.17889e-05
  3  2.03858e-05
  4  1.02191e-06
  5  32.3939
  6  3.54766e-07
  7  2.50569e-05
  8  2.2442e-05
  9  11.9247
  10  5.60591
  11  4.94681
  12  96.3863
  13  0.000914878
  14  4.0674e-06
  15  76.0311
  16  0.000310412
  17  5.14356e-06
  18  6.555
  19  1.60751e-06
  20  0.28741
  21  0.260492
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  5.144e-06  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.387e-01  2.605e-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:  8.877e-01  2.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 356.303 -15.918
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504125/likelihoodResults_655603201_655862401_4FGL_J2345.2-1555_daily_bin1606.txt

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): 102
logL (Free Index) = 2753.07972999
delta logL = -0.00844332423367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2753.07125974
delta logL = 2.69256515821e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5927       1.0000          .0000       5.0000    
     3 'Normalizat'    .88771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73867       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=   2752.762     FROM MIGRAD    STATUS=CONVERGED    264 CALLS      468 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12638E-01    .17657E-01    .74497E-05    .87519E-03
   2  alpha         5.0000        3.7674        .60893E-01** at limit **
   3  Normalizat    .79516        .29632        .24296E-03    .38136E-04
   4  Prefactor     .79583        .26721        .22675E-03    .47105E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0126382
  alpha      = 5
  Normalizat = 0.795162
  Prefactor  = 0.795826
 **********
 **   18 **HESSE 
 **********

 FCN=   2752.762     FROM HESSE     STATUS=OK            23 CALLS      491 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12638E-01    .17488E-01    .29799E-06   -1.5686    
   2  alpha         5.0000        3.7676        .12179E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .79516        .29670        .97183E-05   -1.0025    
   4  Prefactor     .79583        .26757        .90699E-05   -.99882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43644e-11
Minuit parameter uncertainties:
  1  0.0174877
  2  3.40902e-05
  3  0.297308
  4  0.268006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504125': 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) = 2752.7616336
delta logL = 0.309653066975

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.264e-02  1.749e-02  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  5.000e+00  3.409e-05  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.958e-01  2.680e-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:  7.952e-01  2.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 356.303 -15.918

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/504125/cmap_HighResolution_655603201_655862401_4FGL_J2345.2-1555_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-12-08 09:50:04.195714', job_id='504125', GAL2='0.80', fit_tolerance='1e-08', EG2='0.80', EG='0.89', time_epoch_completed='1638985804.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.10e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1606' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:50:04 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 504125: <4FGL_J2345.2-1555_daily_bin1606> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1606> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 09:40:29 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:41:33 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:41:33 2021
Terminated at Wed Dec  8 09:50:05 2021
Results reported at Wed Dec  8 09:50:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1606 356.303 -15.9182 655603201 655862401 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 :                                   441.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   513 sec.
    Turnaround time :                            576 sec.

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

