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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1329
RA = 356.303, Dec = -15.9182
tmin = 583804801, tmax = 584064001
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='102875', job_status='RUN', time_executed='2021-09-30 04:07:03.572452', time_epoch_executed='1633000023.57' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102875

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102875/ft1_4FGL_J2345.2-1555_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102875/ft2_4FGL_J2345.2-1555_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102875/ft1_4FGL_J2345.2-1555_daily_bin1329.fits outfile=/scratch/kocevski/102875/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1329.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=583804801.0 tmax=584064001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.50
user 3.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102875/ft2_4FGL_J2345.2-1555_daily_bin1329.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/102875/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1329.fits evtable="EVENTS" outfile="/scratch/kocevski/102875/ft1_filtered_4FGL_J2345.2-1555_daily_bin1329.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/102875/ft1_filtered_4FGL_J2345.2-1555_daily_bin1329.fits" evtable="EVENTS" scfile=/scratch/kocevski/102875/ft2_4FGL_J2345.2-1555_daily_bin1329.fits sctable="SC_DATA" outfile=/scratch/kocevski/102875/ltcube_583804801_584064001_4FGL_J2345.2-1555_daily_bin1329.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/102875/ft2_4FGL_J2345.2-1555_daily_bin1329.fits
.....................!
real 12.61
user 12.16
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102875/ft1_filtered_4FGL_J2345.2-1555_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/102875/ft2_4FGL_J2345.2-1555_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/102875/ltcube_583804801_584064001_4FGL_J2345.2-1555_daily_bin1329.fits outfile=/scratch/kocevski/102875/expmap_583804801_584064001_4FGL_J2345.2-1555_daily_bin1329.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/102875/ltcube_583804801_584064001_4FGL_J2345.2-1555_daily_bin1329.fits
.....................!
real 190.86
user 184.80
sys 5.66

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/102875/ft1_filtered_4FGL_J2345.2-1555_daily_bin1329.fits scfile=/scratch/kocevski/102875/ft2_4FGL_J2345.2-1555_daily_bin1329.fits outfile=/scratch/kocevski/102875/cmap_583804801_584064001_4FGL_J2345.2-1555_daily_bin1329.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102875/ft1_filtered_4FGL_J2345.2-1555_daily_bin1329.fits scfile=/scratch/kocevski/102875/ft2_4FGL_J2345.2-1555_daily_bin1329.fits outfile=/scratch/kocevski/102875/cmap_HighResolution_583804801_584064001_4FGL_J2345.2-1555_daily_bin1329.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/102875/ft1_filtered_4FGL_J2345.2-1555_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/102875/ft2_4FGL_J2345.2-1555_daily_bin1329.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/102875/Model_4FGL_J2345.2-1555_daily_bin1329.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/102875/ft1_filtered_4FGL_J2345.2-1555_daily_bin1329.fits.....................!
real 56.15
user 54.73
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88590E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.684       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11139E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .33189       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3990       1.0000         .10000E-03   10000.    
    17 'norm      '    .12045E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    13.320       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6635       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2249       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72927       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=   6775.688     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2205 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2554       -.87506E-06** at limit **
   2  norm          .10000E-03    5.7666        .10468E-06** at limit **
   3  Prefactor     .10000E-03    19.815        .17241E-06** at limit **
   4  Prefactor     .10000E-03    4.9578       -.20883E-06** at limit **
   5  Prefactor     .10000E-03    8.3159       -.36419E-06** at limit **
   6  Prefactor     .10000E-03    4.4642        .15409E-06** at limit **
   7  Prefactor     62.677        49.325       -.15206E-05   -.97294E-04
   8  Prefactor     .10000E-03    10.393        .79119E-06** at limit **
   9  Prefactor     .10000E-03    5.3218       -.19367E-06** at limit **
  10  norm          .32995        5.0412        .34476E-05   -.31177E-03
  11  norm          6.4138        2.9230        .49238E-07    .15194E-04
  12  Prefactor     .10000E-03    28.809        .98028E-06** at limit **
  13  Prefactor     .10000E-03    13.061        .18297E-07** at limit **
  14  Prefactor     .10000E-03    30.931       -.44680E-06** at limit **
  15  Prefactor     .10000E-03    16.967       -.70282E-06** at limit **
  16  Prefactor     9.3382        52.782       -.19800E-04   -.21421E-03
  17  norm          .12268E-01    .27362        .79004E-07   -.56151E-03
  18  norm          13.316        4.7531       -.14136E-06   -.18091E-03
  19  Prefactor     4.6668        4.6485        .36268E-05   -.93802E-03
  20  Normalizat    1.2251        .15792        .26623E-06   -.58941E-04
  21  Prefactor     .72922        .14956       -.10786E-05    .24595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.329948
  norm       = 6.41382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.33819
  norm       = 0.0122676
  norm       = 13.3155
  Prefactor  = 4.66684
  Normalizat = 1.22509
  Prefactor  = 0.729223
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.688     FROM HESSE     STATUS=OK           313 CALLS     2518 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.276        .32864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.7675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9651        .17902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4858        .16985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.677        49.212        .50683E-04   -1.4123    
   8  Prefactor     .10000E-03    10.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .32995        5.2509        .35666E-03   -1.5593    
  11  norm          6.4138        2.9261        .91360E-04   -1.5201    
  12  Prefactor     .10000E-03    28.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.3382        59.879        .13072E-03   -1.5097    
  17  norm          .12268E-01    1.3903        .77181E-03   -1.5686    
  18  norm          13.316        4.7585        .94984E-04   -1.4978    
  19  Prefactor     4.6668        4.7839        .87702E-03   -1.5276    
  20  Normalizat    1.2251        .18491        .21719E-03   -.85831    
  21  Prefactor     .72922        .17419        .26274E-03   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73287e-08
Minuit parameter uncertainties:
  1  0.000101474
  2  6.07393e-06
  3  1.15005e-05
  4  1.50916e-05
  5  3.12685e-05
  6  5.28212e-06
  7  49.2444
  8  6.22245e-05
  9  1.15631e-05
  10  2.63239
  11  2.92619
  12  0.000122681
  13  1.36264e-05
  14  5.69055e-05
  15  7.78164e-05
  16  47.3625
  17  0.260134
  18  4.75867
  19  4.7843
  20  0.185009
  21  0.174321
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.227e-02  2.601e-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.292e-01  1.743e-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.225e+00  1.850e-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: 5.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102875/likelihoodResults_583804801_584064001_4FGL_J2345.2-1555_daily_bin1329.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) = 6775.68413737
delta logL = 0.00401677643185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6775.68275819
delta logL = 0.00539595307691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22933E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5206       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73007       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=   6775.683     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      290 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22856E-01    4.7892        .66482E-03    .25786E-02
   2  alpha         2.5201        3.0864        .13272        .94971E-05
   3  Normalizat    1.2239        .18175        .21726E-03    .14181E-04
   4  Prefactor     .72954        .17578        .26267E-03    .43844E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0228556
  alpha      = 2.52005
  Normalizat = 1.22389
  Prefactor  = 0.729536
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.683     FROM HESSE     STATUS=OK            27 CALLS      317 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22856E-01    .49707        .26593E-04   -1.5678    
   2  alpha         2.5201        3.7076        .53089E-02    .80213E-02
   3  Normalizat    1.2239        .18088        .86905E-05   -.85868    
   4  Prefactor     .72954        .17357        .10507E-04   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52259e-10
Minuit parameter uncertainties:
  1  0.212711
  2  4.67371
  3  0.180976
  4  0.1737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102875': 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) = 6775.68275343
delta logL = 0.00540071553314

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  2.286e-02  2.127e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.520e+00  4.674e+00  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.295e-01  1.737e-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.224e+00  1.810e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/102875/cmap_HighResolution_583804801_584064001_4FGL_J2345.2-1555_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2021-09-30 04:17:58.293013', job_id='102875', GAL2='0.73', fit_tolerance='1e-08', EG2='1.22', EG='1.23', time_epoch_completed='1633000678.29', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='5.40e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1329' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:17:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 102875: <4FGL_J2345.2-1555_daily_bin1329> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1329> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 04:05:45 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:05:47 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:05:47 2021
Terminated at Thu Sep 30 04:18:01 2021
Results reported at Thu Sep 30 04:18:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1329 356.303 -15.9182 583804801 584064001 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 :                                   621.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            736 sec.

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

