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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin433
RA = 357.356, Dec = 5.579
tmin = 351561601, tmax = 351820801
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='150592', job_status='RUN', time_executed='2021-09-30 06:43:20.459062', time_epoch_executed='1633009400.46' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150592

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150592/ft1_4FGL_J2349.4+0534_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150592/ft2_4FGL_J2349.4+0534_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150592/ft1_4FGL_J2349.4+0534_daily_bin433.fits outfile=/scratch/kocevski/150592/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin433.fits ra=357.356 dec=5.579 rad=12.0 tmin=351561601.0 tmax=351820801.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 6.89
user 6.63
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150592/ft2_4FGL_J2349.4+0534_daily_bin433.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/150592/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin433.fits evtable="EVENTS" outfile="/scratch/kocevski/150592/ft1_filtered_4FGL_J2349.4+0534_daily_bin433.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/150592/ft1_filtered_4FGL_J2349.4+0534_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/150592/ft2_4FGL_J2349.4+0534_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/150592/ltcube_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.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/150592/ft2_4FGL_J2349.4+0534_daily_bin433.fits
.....................!
real 11.24
user 10.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150592/ft1_filtered_4FGL_J2349.4+0534_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/150592/ft2_4FGL_J2349.4+0534_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/150592/ltcube_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.fits outfile=/scratch/kocevski/150592/expmap_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.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/150592/ltcube_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.fits
.....................!
real 190.80
user 185.89
sys 4.59

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/150592/ft1_filtered_4FGL_J2349.4+0534_daily_bin433.fits scfile=/scratch/kocevski/150592/ft2_4FGL_J2349.4+0534_daily_bin433.fits outfile=/scratch/kocevski/150592/cmap_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150592/ft1_filtered_4FGL_J2349.4+0534_daily_bin433.fits scfile=/scratch/kocevski/150592/ft2_4FGL_J2349.4+0534_daily_bin433.fits outfile=/scratch/kocevski/150592/cmap_HighResolution_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.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.54
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/150592/ft1_filtered_4FGL_J2349.4+0534_daily_bin433.fits', '/scratch/kocevski/150592/ft2_4FGL_J2349.4+0534_daily_bin433.fits', expMap='/scratch/kocevski/150592/expmap_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.fits', expCube='/scratch/kocevski/150592/ltcube_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/150592/Model_4FGL_J2349.4+0534_daily_bin433.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/150592/ft1_filtered_4FGL_J2349.4+0534_daily_bin433.fits
Spacecraft file(s): /scratch/kocevski/150592/ft2_4FGL_J2349.4+0534_daily_bin433.fits
Exposure map: /scratch/kocevski/150592/expmap_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.fits
Exposure cube: /scratch/kocevski/150592/ltcube_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/150592/Model_4FGL_J2349.4+0534_daily_bin433.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) = 7331.67890864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.968       1.0000         .10000E-03   10000.    
     3 'norm      '    .19243       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.425       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 '    49.754       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5542       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9128       1.0000         .10000E-03   10000.    
    10 'Prefactor '    55.197       1.0000         .10000E-03   10000.    
    11 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1029       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .75353E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.092       1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    54.225       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24401E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    81.207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.691       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1948       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0420       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=   7331.601     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2660 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.677        .63590E-06** at limit **
   2  norm          15.968        4.7498        .76462E-07   -.10240E-03
   3  norm          .18680        3.6847        .62074E-06   -.37478E-03
   4  Prefactor     10.423        12.606       -.19553E-06   -.12649E-03
   5  Prefactor     .10000E-03    10.713        .52319E-07** at limit **
   6  Prefactor     .10000E-03    5.0439       -.88906E-08** at limit **
   7  Prefactor     49.750        29.031        .32430E-06    .76133E-05
   8  norm          1.5534        .99886        .48249E-07    .19891E-04
   9  Prefactor     6.9132        9.7549       -.40629E-06   -.62428E-04
  10  Prefactor     55.182        68.669       -.20470E-05   -.79502E-04
  11  norm          .10000E-03    12.930       -.16297E-05** at limit **
  12  Prefactor     1.0965        13.755        .39295E-05   -.64818E-04
  13  Prefactor     .10002E-03    263.68       -.89197E-05** at limit **
  14  Prefactor     .10000E-03    19.005       -.51654E-06** at limit **
  15  Prefactor     10.095        34.863       -.15871E-05   -.62258E-05
  16  norm          .10000E-03    30.505       -.11303E-06** at limit **
  17  norm          54.304        28.778        .41949E-07   -.83824E-04
  18  Prefactor     .10000E-03    2.2856        .25548E-07** at limit **
  19  Prefactor     81.209        51.693        .35459E-06   -.18181E-04
  20  Prefactor     41.680        35.311       -.18528E-06   -.50249E-04
  21  Prefactor     .10000E-03    7.0091        .49433E-07** at limit **
  22  Normalizat    1.1950        .24899       -.40601E-06   -.13905E-03
  23  Prefactor     1.0420        .15245       -.24148E-06   -.15844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.9677
  norm       = 0.186804
  Prefactor  = 10.4235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.7503
  norm       = 1.55335
  Prefactor  = 6.91323
  Prefactor  = 55.1822
  norm       = 0.0001
  Prefactor  = 1.09653
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 10.0953
  norm       = 0.0001
  norm       = 54.3036
  Prefactor  = 0.000100004
  Prefactor  = 81.2093
  Prefactor  = 41.6797
  Prefactor  = 0.0001
  Normalizat = 1.19501
  Prefactor  = 1.04202
 **********
 **   18 **HESSE 
 **********

 FCN=   7331.601     FROM HESSE     STATUS=OK           372 CALLS     3032 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.968        4.7962        .94387E-04   -1.4909    
   3  norm          .18680        59.172        .29094E-02   -1.5622    
   4  Prefactor     10.423        12.737        .12409E-03   -1.5062    
   5  Prefactor     .10000E-03    10.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.750        29.091        .56853E-04   -1.4296    
   8  norm          1.5534        .98724        .65942E-04   -1.5459    
   9  Prefactor     6.9132        9.7207        .15259E-03   -1.5182    
  10  Prefactor     55.182        69.842        .53991E-04   -1.4221    
  11  norm          .10000E-03    13.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0965        15.163        .45181E-03   -1.5499    
  13  Prefactor     .10002E-03    272.14        .20937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.216        .42696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.095        34.764        .12613E-03   -1.5072    
  16  norm          .10000E-03    30.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          54.304        27.437        .54470E-04   -1.4233    
  18  Prefactor     .10000E-03    34.289        .23601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     81.209        51.851        .44570E-04   -1.3903    
  20  Prefactor     41.680        35.547        .62084E-04   -1.4416    
  21  Prefactor     .10000E-03    7.0398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1950        .29233        .32889E-03   -.86757    
  23  Prefactor     1.0420        .17817        .23542E-03   -.91342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74831e-09
Minuit parameter uncertainties:
  1  6.04659e-05
  2  4.7963
  3  6.65421
  4  12.74
  5  4.83187e-06
  6  6.79331e-07
  7  29.0994
  8  0.98725
  9  9.72295
  10  69.9454
  11  0.000152437
  12  8.15725
  13  0.00410455
  14  8.34054e-05
  15  34.8336
  16  3.04928e-05
  17  27.4434
  18  0.000693585
  19  51.8803
  20  35.565
  21  2.07963e-06
  22  0.292727
  23  0.178275
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.168e+01  3.557e+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:  1.042e+00  1.783e-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.195e+00  2.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 8.32e-08 +/- 7.09e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 2.14e-05

TS (Fixed Index): 1.78
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 2.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150592/likelihoodResults_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.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) = 7328.81167282
delta logL = 2.78917470537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7328.78323432
delta logL = 2.81761320173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9037       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0899       1.0000          .0000       10.000    
     3 'Normalizat'    1.0152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1214       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7328.783     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      261 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9047        48.618        .82544E-04    .21515E-02
   2  Index         4.0899        2.7298        .32143E-02    .48664E-03
   3  Normalizat    1.0152        .26618        .35233E-03    .46068E-03
   4  Prefactor     1.1215        .18050        .22773E-03    .66363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.90467
  Index      = 4.08988
  Normalizat = 1.01521
  Prefactor  = 1.12146
 **********
 **   18 **HESSE 
 **********

 FCN=   7328.783     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9047        10.225        .33018E-05   -1.5222    
   2  Index         4.0899        .86722        .12857E-03   -.18304    
   3  Normalizat    1.0152        .27288        .70467E-04   -.92523    
   4  Prefactor     1.1215        .17932        .45546E-04   -.88783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84577e-10
Minuit parameter uncertainties:
  1  10.2278
  2  0.871782
  3  0.273259
  4  0.179415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150592': 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) = 7328.78323412
delta logL = 2.81761340539

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  5.905e+00  1.023e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  4.090e+00  8.718e-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:  1.121e+00  1.794e-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.015e+00  2.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.06
Ra Dec: 357.356 5.579
Photon Index (Free Index): 4.09 +/- 0.87
Photon Flux (Free Index): 2.36e-07 +/- 1.04e-07
Energy Flux (Free Index): 3.48e-05 +/- 1.55e-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/150592/cmap_HighResolution_351561601_351820801_4FGL_J2349.4+0534_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', comment='SUCCESS', photon_flux='8.32e-08', energy_flux2='3.48e-05', photon_flux_error='7.09e-08', dlogl='2.82e+00', energy_flux='2.51e-05', photon_flux2='2.36e-07', job_status='DONE', time_completed='2021-09-30 06:55:30.965929', photon_index_error2='0.87', photon_index2='4.09', ts='1.78', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.13e-07', energy_flux_error2='1.55e-05', EG='1.20', time_epoch_completed='1633010130.97', return_code='0', job_id='150592', GAL2='1.12', EG2='1.02', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='1.04e-07', ts2='8.06', photon_index='2.47' WHERE bin_id='433' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:55:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 150592: <4FGL_J2349.4+0534_daily_bin433> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin433> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:19 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40:21 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:40:21 2021
Terminated at Thu Sep 30 06:55:31 2021
Results reported at Thu Sep 30 06:55:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin433 357.356 5.579 351561601 351820801 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.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             292.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

