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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1442
RA = 356.303, Dec = -15.9182
tmin = 613094401, tmax = 613353601
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='104153', job_status='RUN', time_executed='2021-09-30 04:13:14.821629', time_epoch_executed='1633000394.82' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104153

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104153/ft1_4FGL_J2345.2-1555_daily_bin1442.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104153/ft2_4FGL_J2345.2-1555_daily_bin1442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104153/ft1_4FGL_J2345.2-1555_daily_bin1442.fits outfile=/scratch/kocevski/104153/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1442.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=613094401.0 tmax=613353601.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.03
user 2.75
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104153/ft2_4FGL_J2345.2-1555_daily_bin1442.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/104153/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1442.fits evtable="EVENTS" outfile="/scratch/kocevski/104153/ft1_filtered_4FGL_J2345.2-1555_daily_bin1442.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/104153/ft1_filtered_4FGL_J2345.2-1555_daily_bin1442.fits" evtable="EVENTS" scfile=/scratch/kocevski/104153/ft2_4FGL_J2345.2-1555_daily_bin1442.fits sctable="SC_DATA" outfile=/scratch/kocevski/104153/ltcube_613094401_613353601_4FGL_J2345.2-1555_daily_bin1442.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/104153/ft2_4FGL_J2345.2-1555_daily_bin1442.fits
.....................!
real 12.49
user 12.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104153/ft1_filtered_4FGL_J2345.2-1555_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/104153/ft2_4FGL_J2345.2-1555_daily_bin1442.fits sctable="SC_DATA" expcube=/scratch/kocevski/104153/ltcube_613094401_613353601_4FGL_J2345.2-1555_daily_bin1442.fits outfile=/scratch/kocevski/104153/expmap_613094401_613353601_4FGL_J2345.2-1555_daily_bin1442.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/104153/ltcube_613094401_613353601_4FGL_J2345.2-1555_daily_bin1442.fits
.....................!
real 192.73
user 187.01
sys 4.43

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/104153/ft1_filtered_4FGL_J2345.2-1555_daily_bin1442.fits scfile=/scratch/kocevski/104153/ft2_4FGL_J2345.2-1555_daily_bin1442.fits outfile=/scratch/kocevski/104153/cmap_613094401_613353601_4FGL_J2345.2-1555_daily_bin1442.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104153/ft1_filtered_4FGL_J2345.2-1555_daily_bin1442.fits scfile=/scratch/kocevski/104153/ft2_4FGL_J2345.2-1555_daily_bin1442.fits outfile=/scratch/kocevski/104153/cmap_HighResolution_613094401_613353601_4FGL_J2345.2-1555_daily_bin1442.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.60
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104153/ft1_filtered_4FGL_J2345.2-1555_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/104153/ft2_4FGL_J2345.2-1555_daily_bin1442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104153/Model_4FGL_J2345.2-1555_daily_bin1442.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/104153/ft1_filtered_4FGL_J2345.2-1555_daily_bin1442.fits.....................!
real 51.93
user 50.32
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9307       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.630       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.599       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5058       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13115E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7136       1.0000         .10000E-03   10000.    
    11 'norm      '    10.829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38190       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11999E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    88.750       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15703E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1418       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0371       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93919       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93596       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=   6295.670     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     2628 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2575        .13949E-02** at limit **
   2  norm          3.9224        28.323        .20348E-03   -.85484E-05
   3  Prefactor     14.588        37.870        .10472E-03    .25405E-04
   4  Prefactor     19.604        18.860        .90471E-04   -.12516E-03
   5  Prefactor     .10000E-03    8.4108        .18142E-02** at limit **
   6  Prefactor     .10000E-03    2.7999        .12957E-02** at limit **
   7  Prefactor     2.5281        154.35        .25814E-03    .10763E-03
   8  Prefactor     .10000E-03    7.2381        .18142E-02** at limit **
   9  Prefactor     .10000E-03    6.0347        .18142E-02** at limit **
  10  norm          3.7158        3.4564        .13621E-03    .54601E-03
  11  norm          10.828        4.3351        .93897E-04    .47462E-04
  12  Prefactor     .10975        47.033        .13134        .68176E-04
  13  Prefactor     .10000E-03    40.383        .36285E-02** at limit **
  14  Prefactor     88.821        45.701        .21325E-03   -.12816E-03
  15  Prefactor     .10000E-03    181.83        .18142E-02** at limit **
  16  Prefactor     5.0552        604.63        .17730E-03    .96183E-06
  17  norm          .10000E-03    .24733        .65922E-03** at limit **
  18  norm          7.0334        4.3733        .12278E-03    .22500E-03
  19  Prefactor     .10000E-03    4.2834        .31657E-03** at limit **
  20  Normalizat    .93940        .20024        .23800E-03    .10261E-03
  21  Prefactor     .93597        .18485        .23368E-03    .40720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.92238
  Prefactor  = 14.5878
  Prefactor  = 19.6044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.52811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.71581
  norm       = 10.8284
  Prefactor  = 0.109751
  Prefactor  = 0.0001
  Prefactor  = 88.8213
  Prefactor  = 0.000100001
  Prefactor  = 5.0552
  norm       = 0.0001
  norm       = 7.03341
  Prefactor  = 0.0001
  Normalizat = 0.939397
  Prefactor  = 0.935974
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.670     FROM HESSE     STATUS=OK           305 CALLS     2933 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2578        .27898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9224        28.325        .81391E-05   -1.5312    
   3  Prefactor     14.588        37.858        .41886E-05   -1.4944    
   4  Prefactor     19.604        18.859        .36188E-05   -1.4822    
   5  Prefactor     .10000E-03    8.4113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8000        .25915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5281        154.13        .10326E-04   -1.5390    
   8  Prefactor     .10000E-03    7.2382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7158        3.4558        .54486E-05   -1.5322    
  11  norm          10.828        4.3351        .37559E-05   -1.5050    
  12  Prefactor     .10975        45.358        .13409       -1.5642    
  13  Prefactor     .10000E-03    40.583        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     88.821        45.699        .85300E-05   -1.3820    
  15  Prefactor     .10000E-03    181.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0552        606.07        .70919E-05   -1.5258    
  17  norm          .10000E-03    .24743        .13184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.0334        4.3727        .49113E-05   -1.5177    
  19  Prefactor     .10000E-03    4.2836        .63314E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93940        .20042        .95199E-05   -.95089    
  21  Prefactor     .93597        .18504        .93472E-05   -.94895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04042e-09
Minuit parameter uncertainties:
  1  1.21983e-05
  2  21.0947
  3  37.9208
  4  18.8646
  5  4.91026e-06
  6  2.18085e-06
  7  39.5859
  8  2.77884e-06
  9  8.13122e-05
  10  3.45597
  11  4.33523
  12  4.46369
  13  4.17787e-05
  14  45.7174
  15  0.00065512
  16  111.882
  17  5.68864e-06
  18  4.37289
  19  2.81737e-06
  20  0.20058
  21  0.185162
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  5.689e-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:  9.360e-01  1.852e-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.394e-01  2.006e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104153/likelihoodResults_613094401_613353601_4FGL_J2345.2-1555_daily_bin1442.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) = 6295.67014992
delta logL = -0.000292825063298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6295.6698567
delta logL = 3.91430148738e-07

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.0435       1.0000          .0000       5.0000    
     3 'Normalizat'    .93940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93597       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6295.670     FROM MIGRAD    STATUS=FAILED       102 CALLS      261 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    55.038        .65851E-03** at limit **
   2  alpha         2.4244        2.9625        .50000       -.86934E-06
   3  Normalizat    .93939        .10377        .23799E-03   -.47579E-04
   4  Prefactor     .93597        .10165        .23368E-03   -.28891E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6295.670     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      453 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    55.038        .96461E-04** at limit **
   2  alpha         2.4244        2.9625        .43867E-06   -.86934E-06
   3  Normalizat    .93939        .10377        .21537E-07   -.47579E-04
   4  Prefactor     .93597        .10165        .13256E-07   -.28891E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6295.670     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      485 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .27390        .13170E-03** at limit **
   2  alpha         2.4242        3.3004        .50000       -.48817E-07
   3  Normalizat    .93939        .18507        .95196E-05   -.47292E-04
   4  Prefactor     .93597        .18240        .46737E-04   -.28864E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.42421
  Normalizat = 0.939394
  Prefactor  = 0.935974
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.670     FROM HESSE     STATUS=OK            29 CALLS      514 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .25724        .26340E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4242        3.7871        .50000       -.30321E-01
   3  Normalizat    .93939        .18511        .19039E-05   -.95089    
   4  Prefactor     .93597        .18243        .93474E-05   -.94895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42565e-10
Minuit parameter uncertainties:
  1  1.57836e-07
  2  74.4145
  3  0.185237
  4  0.182553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104153': 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) = 6295.66984987
delta logL = 7.21871310816e-06

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.000e-04  1.578e-07  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.424e+00  7.441e+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.360e-01  1.826e-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.394e-01  1.852e-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/104153/cmap_HighResolution_613094401_613353601_4FGL_J2345.2-1555_daily_bin1442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-30 04:24:03.198687', job_id='104153', GAL2='0.94', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1633001043.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='7.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1442' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:24:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 104153: <4FGL_J2345.2-1555_daily_bin1442> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1442> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 04:10:14 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:10:16 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:10:16 2021
Terminated at Thu Sep 30 04:24:04 2021
Results reported at Thu Sep 30 04:24:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1442 356.303 -15.9182 613094401 613353601 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 :                                   640.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

