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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin373
RA = 357.356, Dec = 5.579
tmin = 336009601, tmax = 336268801
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='150502', job_status='RUN', time_executed='2021-09-30 06:41:21.275774', time_epoch_executed='1633009281.28' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150502

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150502/ft1_4FGL_J2349.4+0534_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150502/ft2_4FGL_J2349.4+0534_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150502/ft1_4FGL_J2349.4+0534_daily_bin373.fits outfile=/scratch/kocevski/150502/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin373.fits ra=357.356 dec=5.579 rad=12.0 tmin=336009601.0 tmax=336268801.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.28
user 3.06
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150502/ft2_4FGL_J2349.4+0534_daily_bin373.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/150502/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin373.fits evtable="EVENTS" outfile="/scratch/kocevski/150502/ft1_filtered_4FGL_J2349.4+0534_daily_bin373.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/150502/ft1_filtered_4FGL_J2349.4+0534_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/150502/ft2_4FGL_J2349.4+0534_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/150502/ltcube_336009601_336268801_4FGL_J2349.4+0534_daily_bin373.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/150502/ft2_4FGL_J2349.4+0534_daily_bin373.fits
.....................!
real 12.29
user 11.94
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150502/ft1_filtered_4FGL_J2349.4+0534_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/150502/ft2_4FGL_J2349.4+0534_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/150502/ltcube_336009601_336268801_4FGL_J2349.4+0534_daily_bin373.fits outfile=/scratch/kocevski/150502/expmap_336009601_336268801_4FGL_J2349.4+0534_daily_bin373.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/150502/ltcube_336009601_336268801_4FGL_J2349.4+0534_daily_bin373.fits
.....................!
real 190.79
user 186.08
sys 4.26

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/150502/ft1_filtered_4FGL_J2349.4+0534_daily_bin373.fits scfile=/scratch/kocevski/150502/ft2_4FGL_J2349.4+0534_daily_bin373.fits outfile=/scratch/kocevski/150502/cmap_336009601_336268801_4FGL_J2349.4+0534_daily_bin373.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150502/ft1_filtered_4FGL_J2349.4+0534_daily_bin373.fits scfile=/scratch/kocevski/150502/ft2_4FGL_J2349.4+0534_daily_bin373.fits outfile=/scratch/kocevski/150502/cmap_HighResolution_336009601_336268801_4FGL_J2349.4+0534_daily_bin373.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7687       1.0000         .10000E-03   10000.    
     2 'norm      '    .15437       1.0000         .10000E-03   10000.    
     3 'norm      '    8.3548       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.278       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0172       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3389       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.8290       1.0000         .10000E-03   10000.    
    17 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9307       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.515       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6708       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1985       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74430       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=   6369.740     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2517 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8038        19.514        .26946E-05    .53295E-03
   2  norm          .13379        2.0155       -.12252E-05    .17651E-02
   3  norm          8.3546        5.3813        .12966E-06    .17159E-03
   4  Prefactor     13.279        10.352       -.10909E-06    .12488E-03
   5  Prefactor     .10000E-03    17.669        .29514E-05** at limit **
   6  Prefactor     .10000E-03    9.4508        .18327E-06** at limit **
   7  Prefactor     8.0159        17.752        .44828E-06    .86250E-05
   8  norm          1.3387        1.0381        .38094E-07   -.22339E-05
   9  Prefactor     .10000E-03    2.8771        .17664E-07** at limit **
  10  Prefactor     .10001E-03    21.428       -.40214E-05** at limit **
  11  norm          .10000E-03    6.1986        .27676E-07** at limit **
  12  Prefactor     12.058        9.2143        .25935E-06    .84425E-04
  13  Prefactor     .10000E-03    61.606        .97823E-06** at limit **
  14  Prefactor     .10000E-03    5.5777       -.50290E-07** at limit **
  15  Prefactor     .10000E-03    33.603        .23056E-05** at limit **
  16  norm          4.8286        9.6121        .41778E-05   -.24923E-03
  17  norm          .10000E-03    12.819       -.56064E-06** at limit **
  18  Prefactor     4.9313        5.2046        .15772E-06   -.79488E-04
  19  Prefactor     15.699        43.018       -.31909E-05   -.13514E-03
  20  Prefactor     27.512        23.152        .35796E-07   -.47431E-04
  21  Prefactor     9.6716        11.727       -.14317E-06    .65742E-04
  22  Normalizat    1.1985        .20781       -.73096E-06    .26525E-03
  23  Prefactor     .74436        .12804       -.84502E-07    .16257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.80381
  norm       = 0.133794
  norm       = 8.35457
  Prefactor  = 13.2792
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 8.01593
  norm       = 1.33871
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 12.0582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.82857
  norm       = 0.0001
  Prefactor  = 4.93132
  Prefactor  = 15.6992
  Prefactor  = 27.5118
  Prefactor  = 9.67158
  Normalizat = 1.19847
  Prefactor  = 0.744361
 **********
 **   18 **HESSE 
 **********

 FCN=   6369.740     FROM HESSE     STATUS=OK           372 CALLS     2889 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8038        21.924        .16722E-03   -1.5226    
   2  norm          .13379        23.976        .17167E-02   -1.5635    
   3  norm          8.3546        5.3861        .13869E-03   -1.5130    
   4  Prefactor     13.279        10.359        .10993E-03   -1.4979    
   5  Prefactor     .10000E-03    18.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0159        17.763        .14160E-03   -1.5142    
   8  norm          1.3387        1.0306        .68372E-04   -1.5477    
   9  Prefactor     .10000E-03    2.8802        .13220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    22.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.2380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.058        9.2298        .11534E-03   -1.5013    
  13  Prefactor     .10000E-03    61.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.8286        10.179        .91532E-03   -1.5268    
  17  norm          .10000E-03    12.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9313        5.2078        .17437E-03   -1.5264    
  19  Prefactor     15.699        43.710        .10106E-03   -1.4915    
  20  Prefactor     27.512        23.180        .76375E-04   -1.4658    
  21  Prefactor     9.6716        11.740        .12886E-03   -1.5086    
  22  Normalizat    1.1985        .24634        .27304E-03   -.86650    
  23  Prefactor     .74436        .14911        .22422E-03   -1.0181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38137e-08
Minuit parameter uncertainties:
  1  21.9547
  2  3.5822
  3  5.38645
  4  10.3603
  5  0.000560027
  6  2.35784e-05
  7  17.7747
  8  1.03057
  9  1.02862e-06
  10  0.000827141
  11  7.49122e-06
  12  9.23085
  13  0.000349821
  14  6.2601e-06
  15  0.000592656
  16  10.1825
  17  7.2581e-05
  18  5.2083
  19  43.7996
  20  23.188
  21  11.7427
  22  0.246581
  23  0.149193
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.751e+01  2.319e+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.444e-01  1.492e-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.198e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.49e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/150502/likelihoodResults_336009601_336268801_4FGL_J2349.4+0534_daily_bin373.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) = 6369.70723544
delta logL = 0.0329955503821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6369.70654187
delta logL = 0.033689120366

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.523       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6459       1.0000          .0000       10.000    
     3 'Normalizat'    1.1916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74778       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=   6369.707     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.508        30.851        .84400E-04    .18252E-03
   2  Index         2.6462        .79224        .68856E-02    .35006E-04
   3  Normalizat    1.1917        .22179        .27370E-03    .15327E-03
   4  Prefactor     .74774        .14705        .22377E-03    .54668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5082
  Index      = 2.64616
  Normalizat = 1.19167
  Prefactor  = 0.747739
 **********
 **   18 **HESSE 
 **********

 FCN=   6369.707     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.508        27.802        .33760E-05   -1.4759    
   2  Index         2.6462        .71418        .27542E-03   -.49016    
   3  Normalizat    1.1917        .22176        .10948E-04   -.86861    
   4  Prefactor     .74774        .14696        .89506E-05   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37978e-10
Minuit parameter uncertainties:
  1  27.8181
  2  0.717341
  3  0.221937
  4  0.147033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150502': 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) = 6369.70654166
delta logL = 0.033689327277

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.251e+01  2.782e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.646e+00  7.173e-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.477e-01  1.470e-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.192e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.65 +/- 0.72
Photon Flux (Free Index): 6.05e-08 +/- 5.27e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.34e-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/150502/cmap_HighResolution_336009601_336268801_4FGL_J2349.4+0534_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.49e-08', energy_flux2='1.52e-05', photon_flux_error='4.63e-08', dlogl='3.37e-02', energy_flux='1.66e-05', photon_flux2='6.05e-08', job_status='DONE', time_completed='2021-09-30 06:52:05.157246', photon_index_error2='0.72', photon_index2='2.65', ts='2.03', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.34e-05', EG='1.20', time_epoch_completed='1633009925.16', return_code='0', job_id='150502', GAL2='0.75', EG2='1.19', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='5.27e-08', ts2='2.09', photon_index='2.47' WHERE bin_id='373' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:52:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 150502: <4FGL_J2349.4+0534_daily_bin373> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin373> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:12 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40:14 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:14 2021
Terminated at Thu Sep 30 06:52:05 2021
Results reported at Thu Sep 30 06:52:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin373 357.356 5.579 336009601 336268801 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 :                                   641.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

