/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 5 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin5
RA = 357.356, Dec = 5.579
tmin = 240624001, tmax = 240883201
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='147883', job_status='RUN', time_executed='2021-09-30 06:31:11.662732', time_epoch_executed='1633008671.66' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147883

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147883/ft1_4FGL_J2349.4+0534_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147883/ft2_4FGL_J2349.4+0534_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147883/ft1_4FGL_J2349.4+0534_daily_bin5.fits outfile=/scratch/kocevski/147883/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin5.fits ra=357.356 dec=5.579 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.38
user 1.21
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/147883/ft2_4FGL_J2349.4+0534_daily_bin5.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147883/ft2_4FGL_J2349.4+0534_daily_bin5.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/147883/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/147883/ft1_filtered_4FGL_J2349.4+0534_daily_bin5.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147883/ft1_filtered_4FGL_J2349.4+0534_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/147883/ft2_4FGL_J2349.4+0534_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/147883/ltcube_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.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/147883/ft2_4FGL_J2349.4+0534_daily_bin5.fits
.....................!
real 12.52
user 12.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147883/ft1_filtered_4FGL_J2349.4+0534_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/147883/ft2_4FGL_J2349.4+0534_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/147883/ltcube_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.fits outfile=/scratch/kocevski/147883/expmap_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.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/147883/ltcube_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.fits
.....................!
real 189.50
user 184.95
sys 4.23

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2349.4+0534 @ 357.356 5.579

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/147883/ft1_filtered_4FGL_J2349.4+0534_daily_bin5.fits scfile=/scratch/kocevski/147883/ft2_4FGL_J2349.4+0534_daily_bin5.fits outfile=/scratch/kocevski/147883/cmap_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.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=357.356 yref=5.579 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147883/ft1_filtered_4FGL_J2349.4+0534_daily_bin5.fits scfile=/scratch/kocevski/147883/ft2_4FGL_J2349.4+0534_daily_bin5.fits outfile=/scratch/kocevski/147883/cmap_HighResolution_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.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=357.356 yref=5.579 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147883/ft1_filtered_4FGL_J2349.4+0534_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/147883/ft2_4FGL_J2349.4+0534_daily_bin5.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147883/Model_4FGL_J2349.4+0534_daily_bin5.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/147883/ft1_filtered_4FGL_J2349.4+0534_daily_bin5.fits.....................!
real 96.63
user 95.36
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147883/ft1_filtered_4FGL_J2349.4+0534_daily_bin5.fits', '/scratch/kocevski/147883/ft2_4FGL_J2349.4+0534_daily_bin5.fits', expMap='/scratch/kocevski/147883/expmap_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.fits', expCube='/scratch/kocevski/147883/ltcube_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147883/Model_4FGL_J2349.4+0534_daily_bin5.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.4+0534'

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.639e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/147883/ft1_filtered_4FGL_J2349.4+0534_daily_bin5.fits
Spacecraft file(s): /scratch/kocevski/147883/ft2_4FGL_J2349.4+0534_daily_bin5.fits
Exposure map: /scratch/kocevski/147883/expmap_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.fits
Exposure cube: /scratch/kocevski/147883/ltcube_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147883/Model_4FGL_J2349.4+0534_daily_bin5.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) = 9662.70348187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2112       1.0000         .10000E-03   10000.    
     3 'norm      '    .89540       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9879       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.686       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20347E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.465       1.0000         .10000E-03   10000.    
    11 'norm      '    18.616       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6183       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.250       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.092       1.0000         .10000E-03   10000.    
    17 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12229E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.066       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2314       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78181       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9662.697     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2571 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8408        .43022E-06** at limit **
   2  norm          1.2115        1.6679       -.32932E-06   -.10759E-02
   3  norm          .89547        2.1518       -.99760E-06   -.15330E-02
   4  Prefactor     5.9878        5.7427       -.65904E-06    .16635E-03
   5  Prefactor     26.685        28.933       -.71409E-06    .32712E-04
   6  Prefactor     .10000E-03    2.9458       -.46968E-07** at limit **
   7  Prefactor     .10000E-03    31.375       -.31374E-05** at limit **
   8  norm          .10000E-03    .23929       -.88067E-08** at limit **
   9  Prefactor     .10011E-03    3.8292       -.47763E-06** at limit **
  10  Prefactor     15.459        32.859       -.40599E-05    .87481E-04
  11  norm          18.610        8.7957        .26575E-05   -.10764E-03
  12  Prefactor     4.6197        6.7549       -.55567E-05    .17134E-03
  13  Prefactor     .10000E-03    91.744       -.37189E-05** at limit **
  14  Prefactor     16.246        10.002       -.28475E-06    .79842E-04
  15  Prefactor     .10000E-03    8.0880       -.65044E-07** at limit **
  16  norm          18.092        12.659       -.31828E-06    .96633E-04
  17  norm          .10000E-03    9.5497       -.48973E-06** at limit **
  18  Prefactor     .10000E-03    1.4734        .70518E-07** at limit **
  19  Prefactor     10.282        31.785       -.56459E-05    .76749E-04
  20  Prefactor     41.065        22.029        .23402E-06    .29524E-04
  21  Prefactor     .10000E-03    2.7861       -.94707E-07** at limit **
  22  Normalizat    1.2315        .16556        .13045E-05    .15018E-03
  23  Prefactor     .78173        .10846        .21401E-06    .27514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.2115
  norm       = 0.895472
  Prefactor  = 5.98777
  Prefactor  = 26.6849
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100108
  Prefactor  = 15.4594
  norm       = 18.6102
  Prefactor  = 4.61969
  Prefactor  = 0.000100001
  Prefactor  = 16.2457
  Prefactor  = 0.0001
  norm       = 18.0924
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2824
  Prefactor  = 41.0651
  Prefactor  = 0.0001
  Normalizat = 1.23153
  Prefactor  = 0.781729
 **********
 **   18 **HESSE 
 **********

 FCN=   9662.697     FROM HESSE     STATUS=OK           380 CALLS     2951 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2115        1.6588        .14345E-03   -1.5488    
   3  norm          .89547        2.1957        .22568E-03   -1.5519    
   4  Prefactor     5.9878        5.7268        .16409E-03   -1.5219    
   5  Prefactor     26.685        28.937        .77549E-04   -1.4674    
   6  Prefactor     .10000E-03    2.9510        .16477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .43592        .92955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10011E-03    42.567        .35873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.459        32.767        .10185E-03   -1.4921    
  11  norm          18.610        8.5417        .92828E-04   -1.4845    
  12  Prefactor     4.6197        6.7966        .18729E-03   -1.5278    
  13  Prefactor     .10000E-03    91.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.246        9.5466        .99355E-04   -1.4902    
  15  Prefactor     .10000E-03    8.1079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.092        12.656        .94162E-04   -1.4857    
  17  norm          .10000E-03    9.5597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5873        .21895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.282        31.735        .12491E-03   -1.5067    
  20  Prefactor     41.065        22.060        .62552E-04   -1.4425    
  21  Prefactor     .10000E-03    2.7902        .16024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2315        .19376        .26723E-03   -.85634    
  23  Prefactor     .78173        .12669        .22450E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19177e-09
Minuit parameter uncertainties:
  1  2.08209e-05
  2  1.65888
  3  2.19592
  4  5.72737
  5  28.9518
  6  7.58453e-08
  7  0.000256437
  8  1.45751e-07
  9  0.00428689
  10  32.8048
  11  8.5423
  12  6.79769
  13  0.000485791
  14  9.54747
  15  5.30545e-06
  16  12.658
  17  3.37264e-05
  18  8.17714e-06
  19  31.7874
  20  22.0647
  21  1.04106e-06
  22  0.193877
  23  0.126739
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.107e+01  2.206e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  7.817e-01  1.267e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.232e+00  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.22
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.33e-05

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) = 9662.6377384
delta logL = 0.0589938715075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9662.63312378
delta logL = 0.0636084908783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.177       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6353       1.0000          .0000       10.000    
     3 'Normalizat'    1.2161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78758       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9662.633     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      246 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.149        305.97        .16658E-02    .21349E-03
   2  Index         2.6356        3.0694        .11894        .20668E-03
   3  Normalizat    1.2161        .93071E-01    .60734E-01    .60403E-05
   4  Prefactor     .78759        .46921E-01    .43555E-01    .15776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.1492
  Index      = 2.63562
  Normalizat = 1.21613
  Prefactor  = 0.78759
 **********
 **   18 **HESSE 
 **********

 FCN=   9662.633     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.149        26.220        .33315E-03   -1.4505    
   2  Index         2.6356        .51348        .60208E-02   -.49255    
   3  Normalizat    1.2161        .18953        .26862E-03   -.86106    
   4  Prefactor     .78759        .12680        .22373E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88891e-09
Minuit parameter uncertainties:
  1  26.2285
  2  0.514646
  3  0.189641
  4  0.126846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147883': 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) = 9662.63312313
delta logL = 0.0636091448687

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.615e+01  2.623e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.636e+00  5.146e-01  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  7.876e-01  1.268e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.216e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.33
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.64 +/- 0.51
Photon Flux (Free Index): 9.55e-08 +/- 5.83e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/147883/cmap_HighResolution_240624001_240883201_4FGL_J2349.4+0534_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='2.42e-05', photon_flux_error='4.40e-08', dlogl='6.36e-02', energy_flux='2.47e-05', photon_flux2='9.55e-08', job_status='DONE', time_completed='2021-09-30 06:43:23.027279', photon_index_error2='0.51', photon_index2='2.64', ts='7.22', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.23', time_epoch_completed='1633009403.03', return_code='0', job_id='147883', GAL2='0.79', EG2='1.22', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.83e-08', ts2='7.33', photon_index='2.47' WHERE bin_id='5' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:43:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 147883: <4FGL_J2349.4+0534_daily_bin5> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin5> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:30:58 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:30:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 06:30:59 2021
Terminated at Thu Sep 30 06:43:23 2021
Results reported at Thu Sep 30 06:43:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin5 357.356 5.579 240624001 240883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.4+0534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             393.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            745 sec.

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

