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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1636
RA = 356.303, Dec = -15.9182
tmin = 663379201, tmax = 663638401
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='954260', job_status='RUN', time_executed='2022-01-12 01:26:54.957108', time_epoch_executed='1641979614.96' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1636'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954260

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954260/ft1_4FGL_J2345.2-1555_daily_bin1636.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954260/ft2_4FGL_J2345.2-1555_daily_bin1636.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954260/ft1_4FGL_J2345.2-1555_daily_bin1636.fits outfile=/scratch/kocevski/954260/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1636.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=663379201.0 tmax=663638401.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.65
user 2.41
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954260/ft1_filtered_4FGL_J2345.2-1555_daily_bin1636.fits" evtable="EVENTS" scfile=/scratch/kocevski/954260/ft2_4FGL_J2345.2-1555_daily_bin1636.fits sctable="SC_DATA" outfile=/scratch/kocevski/954260/ltcube_663379201_663638401_4FGL_J2345.2-1555_daily_bin1636.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/954260/ft2_4FGL_J2345.2-1555_daily_bin1636.fits
.....................!
real 18.24
user 17.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954260/ft1_filtered_4FGL_J2345.2-1555_daily_bin1636.fits evtable="EVENTS" scfile=/scratch/kocevski/954260/ft2_4FGL_J2345.2-1555_daily_bin1636.fits sctable="SC_DATA" expcube=/scratch/kocevski/954260/ltcube_663379201_663638401_4FGL_J2345.2-1555_daily_bin1636.fits outfile=/scratch/kocevski/954260/expmap_663379201_663638401_4FGL_J2345.2-1555_daily_bin1636.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/954260/ltcube_663379201_663638401_4FGL_J2345.2-1555_daily_bin1636.fits
.....................!
real 192.31
user 186.79
sys 5.10

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/954260/ft1_filtered_4FGL_J2345.2-1555_daily_bin1636.fits scfile=/scratch/kocevski/954260/ft2_4FGL_J2345.2-1555_daily_bin1636.fits outfile=/scratch/kocevski/954260/cmap_663379201_663638401_4FGL_J2345.2-1555_daily_bin1636.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954260/ft1_filtered_4FGL_J2345.2-1555_daily_bin1636.fits scfile=/scratch/kocevski/954260/ft2_4FGL_J2345.2-1555_daily_bin1636.fits outfile=/scratch/kocevski/954260/cmap_HighResolution_663379201_663638401_4FGL_J2345.2-1555_daily_bin1636.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/954260/ft1_filtered_4FGL_J2345.2-1555_daily_bin1636.fits evtable="EVENTS" scfile=/scratch/kocevski/954260/ft2_4FGL_J2345.2-1555_daily_bin1636.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/954260/Model_4FGL_J2345.2-1555_daily_bin1636.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/954260/ft1_filtered_4FGL_J2345.2-1555_daily_bin1636.fits.....................!
real 54.00
user 52.64
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1237       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.076       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6413       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .69678       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.864       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.0514       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.716       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.282       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    94.319       1.0000         .10000E-03   10000.    
    17 'norm      '    .71367       1.0000         .10000E-03   10000.    
    18 'norm      '    42.756       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94637       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96042       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=   6470.331     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2171 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1250        6.3479        .34265E-05   -.47822E-03
   2  norm          .10000E-03    18.760       -.14367E-05** at limit **
   3  Prefactor     .10000E-03    34.474       -.38071E-05** at limit **
   4  Prefactor     24.077        15.128       -.10853E-06    .55341E-04
   5  Prefactor     2.6412        19.580        .16896E-04   -.24729E-03
   6  Prefactor     .75651        9.5537       -.16250E-05    .42782E-03
   7  Prefactor     11.880        35.661        .49625E-05    .12771E-03
   8  Prefactor     .10000E-03    6.8624       -.68150E-07** at limit **
   9  Prefactor     .10000E-03    4.2956        .85906E-06** at limit **
  10  norm          .10000E-03    1.5885        .25255E-06** at limit **
  11  norm          9.0514        4.0124        .13210E-06   -.24283E-04
  12  Prefactor     40.697        53.536       -.28734E-05   -.12125E-03
  13  Prefactor     .10000E-03    9.5875       -.34703E-06** at limit **
  14  Prefactor     22.278        26.576       -.74716E-07   -.98771E-04
  15  Prefactor     .10000E-03    26.551        .44767E-05** at limit **
  16  Prefactor     94.183        118.46       -.16435E-04   -.31918E-03
  17  norm          .71388        .81143        .81734E-07    .24201E-03
  18  norm          42.756        8.9515       -.70656E-08   -.25572E-04
  19  Prefactor     .10001E-03    2.5862       -.14398E-06** at limit **
  20  Normalizat    .94630        .18423        .15486E-05   -.47918E-04
  21  Prefactor     .96046        .17323       -.24528E-05    .19449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.12502
  norm       = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 24.0774
  Prefactor  = 2.64115
  Prefactor  = 0.756508
  Prefactor  = 11.88
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.05139
  Prefactor  = 40.697
  Prefactor  = 0.0001
  Prefactor  = 22.2782
  Prefactor  = 0.000100004
  Prefactor  = 94.1827
  norm       = 0.713883
  norm       = 42.7557
  Prefactor  = 0.000100008
  Normalizat = 0.946297
  Prefactor  = 0.960459
 **********
 **   18 **HESSE 
 **********

 FCN=   6470.331     FROM HESSE     STATUS=OK           317 CALLS     2488 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1250        6.4065        .88808E-03   -1.5255    
   2  norm          .10000E-03    18.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.077        15.131        .81637E-04   -1.4726    
   5  Prefactor     2.6412        20.479        .12544E-02   -1.5383    
   6  Prefactor     .75651        46.215        .47071E-02   -1.5534    
   7  Prefactor     11.880        35.683        .11630E-03   -1.5018    
   8  Prefactor     .10000E-03    6.8632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3178        .16233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5954        .98952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0514        4.0107        .10103E-03   -1.5106    
  12  Prefactor     40.697        53.756        .62820E-04   -1.4431    
  13  Prefactor     .10000E-03    9.5969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.278        26.573        .84854E-04   -1.4764    
  15  Prefactor     .10000E-03    26.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     94.183        124.40        .20692E-03   -1.3764    
  17  norm          .71388        .75273        .61557E-03   -1.5539    
  18  norm          42.756        8.6170        .61309E-04   -1.4399    
  19  Prefactor     .10001E-03    31.516        .24828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .94630        .21504        .26259E-03   -.94852    
  21  Prefactor     .96046        .20282        .25068E-03   -.94059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31456e-09
Minuit parameter uncertainties:
  1  6.40736
  2  0.000199458
  3  0.000724118
  4  15.133
  5  14.7156
  6  11.8345
  7  35.747
  8  2.09131e-06
  9  4.21156e-05
  10  6.60962e-06
  11  4.01081
  12  53.8197
  13  5.94809e-05
  14  26.5874
  15  0.000645009
  16  124.751
  17  0.752743
  18  8.61725
  19  0.00100849
  20  0.21524
  21  0.202984
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  7.139e-01  7.527e-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:  9.605e-01  2.030e-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.463e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 2.28e-05

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

Saving results to:
/scratch/kocevski/954260/likelihoodResults_663379201_663638401_4FGL_J2345.2-1555_daily_bin1636.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): 0
logL (Free Index) = 6470.33042699
delta logL = 0.000785835156421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6470.330392
delta logL = 0.000820830358862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71769       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0067       1.0000          .0000       5.0000    
     3 'Normalizat'    .94733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95977       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=   6470.330     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71767        16.291        .12129E-01    .89529E-03
   2  alpha         2.0063        3.1398        .42213       -.29581E-05
   3  Normalizat    .94735        .54550E-01    .45504E-01    .13258E-04
   4  Prefactor     .95976        .51074E-01    .45762E-01    .92178E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.717666
  alpha      = 2.00629
  Normalizat = 0.947352
  Prefactor  = 0.959762
 **********
 **   18 **HESSE 
 **********

 FCN=   6470.330     FROM HESSE     STATUS=OK            35 CALLS      237 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71767        .66622        .61851E-03   -1.5539    
   2  alpha         2.0063        .67486        .16492E-01   -.19879    
   3  Normalizat    .94735        .20744        .26247E-03   -.94816    
   4  Prefactor     .95976        .19952        .25076E-03   -.94083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97864e-10
Minuit parameter uncertainties:
  1  0.666232
  2  0.68369
  3  0.207613
  4  0.199673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954260': 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) = 6470.33039182
delta logL = 0.000821008925413

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  7.177e-01  6.662e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.006e+00  6.837e-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:  9.598e-01  1.997e-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.474e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 2.01 +/- 0.68
Photon Flux (Free Index): 3.98e-08 +/- 4.29e-08
Energy Flux (Free Index): 2.20e-05 +/- 2.34e-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/954260/cmap_HighResolution_663379201_663638401_4FGL_J2345.2-1555_daily_bin1636.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-05', comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='2.20e-05', photon_flux_error='4.30e-08', dlogl='8.21e-04', energy_flux='2.16e-05', photon_flux2='3.98e-08', job_status='DONE', time_completed='2022-01-12 01:37:04.166096', photon_index_error2='0.68', photon_index2='2.01', ts='1.76', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='2.34e-05', EG='0.95', time_epoch_completed='1641980224.17', return_code='0', job_id='954260', GAL2='0.96', EG2='0.95', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='4.29e-08', ts2='1.88', photon_index='2.03' WHERE bin_id='1636' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 12 01:37:04 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 954260: <4FGL_J2345.2-1555_daily_bin1636> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1636> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jan 12 01:25:17 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 12 01:25:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 12 01:25:47 2022
Terminated at Wed Jan 12 01:37:04 2022
Results reported at Wed Jan 12 01:37:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1636 356.303 -15.9182 663379201 663638401 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 :                                   611.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            707 sec.

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

