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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1159
RA = 356.303, Dec = -15.9182
tmin = 539740801, tmax = 540000001
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='102576', job_status='RUN', time_executed='2021-09-30 04:05:39.614869', time_epoch_executed='1632999939.61' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102576/ft1_4FGL_J2345.2-1555_daily_bin1159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102576/ft2_4FGL_J2345.2-1555_daily_bin1159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102576/ft1_4FGL_J2345.2-1555_daily_bin1159.fits outfile=/scratch/kocevski/102576/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1159.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=539740801.0 tmax=540000001.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.13
user 3.89
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102576/ft1_filtered_4FGL_J2345.2-1555_daily_bin1159.fits" evtable="EVENTS" scfile=/scratch/kocevski/102576/ft2_4FGL_J2345.2-1555_daily_bin1159.fits sctable="SC_DATA" outfile=/scratch/kocevski/102576/ltcube_539740801_540000001_4FGL_J2345.2-1555_daily_bin1159.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/102576/ft2_4FGL_J2345.2-1555_daily_bin1159.fits
.....................!
real 12.70
user 12.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102576/ft1_filtered_4FGL_J2345.2-1555_daily_bin1159.fits evtable="EVENTS" scfile=/scratch/kocevski/102576/ft2_4FGL_J2345.2-1555_daily_bin1159.fits sctable="SC_DATA" expcube=/scratch/kocevski/102576/ltcube_539740801_540000001_4FGL_J2345.2-1555_daily_bin1159.fits outfile=/scratch/kocevski/102576/expmap_539740801_540000001_4FGL_J2345.2-1555_daily_bin1159.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/102576/ltcube_539740801_540000001_4FGL_J2345.2-1555_daily_bin1159.fits
.....................!
real 191.35
user 185.99
sys 4.79

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/102576/ft1_filtered_4FGL_J2345.2-1555_daily_bin1159.fits scfile=/scratch/kocevski/102576/ft2_4FGL_J2345.2-1555_daily_bin1159.fits outfile=/scratch/kocevski/102576/cmap_539740801_540000001_4FGL_J2345.2-1555_daily_bin1159.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102576/ft1_filtered_4FGL_J2345.2-1555_daily_bin1159.fits scfile=/scratch/kocevski/102576/ft2_4FGL_J2345.2-1555_daily_bin1159.fits outfile=/scratch/kocevski/102576/cmap_HighResolution_539740801_540000001_4FGL_J2345.2-1555_daily_bin1159.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/102576/ft1_filtered_4FGL_J2345.2-1555_daily_bin1159.fits evtable="EVENTS" scfile=/scratch/kocevski/102576/ft2_4FGL_J2345.2-1555_daily_bin1159.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/102576/Model_4FGL_J2345.2-1555_daily_bin1159.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/102576/ft1_filtered_4FGL_J2345.2-1555_daily_bin1159.fits.....................!
real 45.22
user 43.86
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.410       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 '    .19597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10881E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3819       1.0000         .10000E-03   10000.    
    11 'norm      '    .18616E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.765       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.608       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.620       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0066       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .51139       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3440       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=   5332.338     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2242 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4208       -.11326E-06** at limit **
   2  norm          .10000E-03    8.8364       -.77448E-08** at limit **
   3  Prefactor     32.410        54.501       -.22540E-06    .96194E-05
   4  Prefactor     .10000E-03    17.987       -.15083E-06** at limit **
   5  Prefactor     .10000E-03    8.7857       -.44220E-07** at limit **
   6  Prefactor     .19006        7.5892        .10360E-05   -.77183E-04
   7  Prefactor     .10002E-03    137.26       -.19166E-05** at limit **
   8  Prefactor     .10000E-03    7.6214        .19372E-07** at limit **
   9  Prefactor     .10000E-03    3.7549       -.26640E-06** at limit **
  10  norm          4.3806        4.5879       -.30327E-06   -.63355E-03
  11  norm          .10000E-03    1.9017        .10105E-05** at limit **
  12  Prefactor     .10000E-03    69.632        .44161E-06** at limit **
  13  Prefactor     42.765        22.009       -.19101E-06   -.39944E-03
  14  Prefactor     36.635        31.504       -.40813E-07   -.19629E-03
  15  Prefactor     .10000E-03    15.180       -.46646E-07** at limit **
  16  Prefactor     .10001E-03    104.50       -.34515E-06** at limit **
  17  norm          .10000E-03    .26636       -.14607E-06** at limit **
  18  norm          13.618        5.9108        .18999E-06    .16876E-03
  19  Prefactor     2.0063        6.9812        .64449E-05   -.32770E-03
  20  Normalizat    .51141        .18654       -.33424E-05   -.52205E-03
  21  Prefactor     1.3440        .17959        .47228E-06   -.57039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.4098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.190064
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.38057
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.7652
  Prefactor  = 36.6354
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 13.6184
  Prefactor  = 2.00628
  Normalizat = 0.51141
  Prefactor  = 1.344
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.338     FROM HESSE     STATUS=OK           313 CALLS     2555 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.8383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.410        54.557        .70385E-04   -1.4569    
   4  Prefactor     .10000E-03    18.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.7981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19006        145.78        .38204E-02   -1.5621    
   7  Prefactor     .10002E-03    139.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.6227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7730        .13823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3806        4.6094        .15598E-03   -1.5289    
  11  norm          .10000E-03    5.5873        .19028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    69.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.765        22.041        .61302E-04   -1.4399    
  14  Prefactor     36.635        31.262        .66238E-04   -1.4497    
  15  Prefactor     .10000E-03    15.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    104.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .33861        .69420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.618        5.6648        .10441E-03   -1.4970    
  19  Prefactor     2.0063        7.0836        .14615E-02   -1.5425    
  20  Normalizat    .51141        .21482        .31493E-03   -1.1189    
  21  Prefactor     1.3440        .20908        .20388E-03   -.82008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53592e-09
Minuit parameter uncertainties:
  1  1.99833e-05
  2  4.72119e-06
  3  54.6415
  4  4.10762e-05
  5  4.68706e-06
  6  10.5506
  7  0.00373562
  8  2.49907e-06
  9  3.86027e-05
  10  4.60974
  11  9.73952e-05
  12  4.53175e-05
  13  22.045
  14  31.2763
  15  1.87022e-05
  16  0.00168743
  17  5.83528e-06
  18  5.66498
  19  7.08657
  20  0.215167
  21  0.209215
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  5.835e-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:  1.344e+00  2.092e-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:  5.114e-01  2.152e-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: 6.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102576/likelihoodResults_539740801_540000001_4FGL_J2345.2-1555_daily_bin1159.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) = 5332.33843819
delta logL = -0.000277029826066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5330.01814081
delta logL = 2.3200203536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20732E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .35480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4420       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=   5330.018     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      322 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20734E-01    .27106        .91262E-03    .41516E-02
   2  alpha         5.0000        3.7220        .46268    ** at limit **
   3  Normalizat    .35472        .13987        .84198E-01    .46640E-04
   4  Prefactor     1.4423        .13836        .44600E-01   -.77348E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0207342
  alpha      = 5
  Normalizat = 0.354721
  Prefactor  = 1.44232
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.018     FROM HESSE     STATUS=OK            35 CALLS      357 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20734E-01    .15050E-01    .52442E-05   -1.5679    
   2  alpha         5.0000        .89468        .39594        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .35472        .21554        .37293E-03   -1.1971    
   4  Prefactor     1.4423        .21272        .19713E-03   -.79168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53347e-12
Minuit parameter uncertainties:
  1  0.0150504
  2  2.19249e-05
  3  0.216047
  4  0.212849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102576': 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) = 5330.01813382
delta logL = 2.32002733938

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  2.073e-02  1.505e-02  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  5.000e+00  2.192e-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:  1.442e+00  2.128e-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:  3.547e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.17
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.40e-07 +/- 1.01e-07
Energy Flux (Free Index): 1.92e-05 +/- 1.39e-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/102576/cmap_HighResolution_539740801_540000001_4FGL_J2345.2-1555_daily_bin1159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', comment='SUCCESS', energy_flux2='1.92e-05', dlogl='2.32e+00', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-30 04:15:18.096870', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='6.35e-08', energy_flux_error2='1.39e-05', EG='0.51', time_epoch_completed='1633000518.1', return_code='0', job_id='102576', GAL2='1.44', EG2='0.35', return_code2='0', photon_flux_error2='1.01e-07', ts2='5.17', photon_index='2.03' WHERE bin_id='1159' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 102576: <4FGL_J2345.2-1555_daily_bin1159> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1159> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 04:05:22 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:05:24 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:24 2021
Terminated at Thu Sep 30 04:15:19 2021
Results reported at Thu Sep 30 04:15:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1159 356.303 -15.9182 539740801 540000001 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 :                                   570.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   571 sec.
    Turnaround time :                            597 sec.

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

