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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin552
RA = 357.356, Dec = 5.579
tmin = 382406401, tmax = 382665601
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='151909', job_status='RUN', time_executed='2021-09-30 06:48:19.998308', time_epoch_executed='1633009700.0' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151909

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151909/ft1_4FGL_J2349.4+0534_daily_bin552.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151909/ft2_4FGL_J2349.4+0534_daily_bin552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151909/ft1_4FGL_J2349.4+0534_daily_bin552.fits outfile=/scratch/kocevski/151909/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin552.fits ra=357.356 dec=5.579 rad=12.0 tmin=382406401.0 tmax=382665601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.73
user 4.49
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/151909/ft2_4FGL_J2349.4+0534_daily_bin552.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/151909/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin552.fits evtable="EVENTS" outfile="/scratch/kocevski/151909/ft1_filtered_4FGL_J2349.4+0534_daily_bin552.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151909/ft1_filtered_4FGL_J2349.4+0534_daily_bin552.fits" evtable="EVENTS" scfile=/scratch/kocevski/151909/ft2_4FGL_J2349.4+0534_daily_bin552.fits sctable="SC_DATA" outfile=/scratch/kocevski/151909/ltcube_382406401_382665601_4FGL_J2349.4+0534_daily_bin552.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/151909/ft2_4FGL_J2349.4+0534_daily_bin552.fits
.....................!
real 12.11
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151909/ft1_filtered_4FGL_J2349.4+0534_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/151909/ft2_4FGL_J2349.4+0534_daily_bin552.fits sctable="SC_DATA" expcube=/scratch/kocevski/151909/ltcube_382406401_382665601_4FGL_J2349.4+0534_daily_bin552.fits outfile=/scratch/kocevski/151909/expmap_382406401_382665601_4FGL_J2349.4+0534_daily_bin552.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/151909/ltcube_382406401_382665601_4FGL_J2349.4+0534_daily_bin552.fits
.....................!
real 189.85
user 184.90
sys 4.62

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/151909/ft1_filtered_4FGL_J2349.4+0534_daily_bin552.fits scfile=/scratch/kocevski/151909/ft2_4FGL_J2349.4+0534_daily_bin552.fits outfile=/scratch/kocevski/151909/cmap_382406401_382665601_4FGL_J2349.4+0534_daily_bin552.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/151909/ft1_filtered_4FGL_J2349.4+0534_daily_bin552.fits scfile=/scratch/kocevski/151909/ft2_4FGL_J2349.4+0534_daily_bin552.fits outfile=/scratch/kocevski/151909/cmap_HighResolution_382406401_382665601_4FGL_J2349.4+0534_daily_bin552.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .60664       1.0000         .10000E-03   10000.    
     3 'norm      '    10.418       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.072       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6442       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1881       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7168       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2818       1.0000         .10000E-03   10000.    
    17 'norm      '    .43338E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32338       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.645       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.729       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4029       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72242       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=   6796.792     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     3176 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1035       -.85831E-07** at limit **
   2  norm          .60681        2.5262        .13065E-05   -.30019E-03
   3  norm          10.416        5.2276        .14249E-06    .80657E-04
   4  Prefactor     .10000E-03    3.1998        .77115E-08** at limit **
   5  Prefactor     .10000E-03    17.151        .24378E-05** at limit **
   6  Prefactor     14.767        12.267        .68883E-07   -.20305E-04
   7  Prefactor     10.072        14.808        .73792E-07   -.45504E-04
   8  norm          1.6443        .93496        .12134E-07   -.67140E-03
   9  Prefactor     .10000E-03    2.4164       -.39672E-09** at limit **
  10  Prefactor     .10000E-03    19.899       -.51562E-06** at limit **
  11  norm          4.1888        5.5733        .20521E-06   -.72788E-04
  12  Prefactor     .10000E-03    1.8722       -.26010E-08** at limit **
  13  Prefactor     .10000E-03    310.01       -.17749E-05** at limit **
  14  Prefactor     3.7123        10.339       -.28162E-05   -.78177E-03
  15  Prefactor     .10000E-03    7.1022        .23690E-07** at limit **
  16  norm          5.2806        12.382       -.57767E-07   -.71195E-04
  17  norm          .10087E-03    27.560        .63699E-05** at limit **
  18  Prefactor     .29980        2.2836       -.28341E-06   -.73991E-04
  19  Prefactor     49.632        40.303        .12351E-07   -.66730E-04
  20  Prefactor     20.723        23.306        .65297E-06    .52582E-04
  21  Prefactor     .10000E-03    16.817       -.20357E-05** at limit **
  22  Normalizat    1.4032        .20651       -.10581E-05   -.24548E-03
  23  Prefactor     .72230        .13227        .27158E-07   -.33554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.606809
  norm       = 10.4165
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 14.767
  Prefactor  = 10.0717
  norm       = 1.64429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.18877
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.71229
  Prefactor  = 0.0001
  norm       = 5.28056
  norm       = 0.000100872
  Prefactor  = 0.299803
  Prefactor  = 49.632
  Prefactor  = 20.7229
  Prefactor  = 0.000100001
  Normalizat = 1.4032
  Prefactor  = 0.722301
 **********
 **   18 **HESSE 
 **********

 FCN=   6796.792     FROM HESSE     STATUS=OK           374 CALLS     3550 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .60681        2.4978        .23883E-03   -1.5552    
   3  norm          10.416        5.2250        .12414E-03   -1.5062    
   4  Prefactor     .10000E-03    3.2048        .14401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.767        12.266        .10423E-03   -1.4939    
   7  Prefactor     10.072        14.812        .12626E-03   -1.5073    
   8  norm          1.6443        .93325        .57561E-04   -1.5452    
   9  Prefactor     .10000E-03    2.4183        .12515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1888        5.5632        .19693E-03   -1.5299    
  12  Prefactor     .10000E-03    1.8762        .11014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    310.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7123        10.767        .20946E-03   -1.5323    
  15  Prefactor     .10000E-03    7.1103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2806        12.403        .17489E-03   -1.5248    
  17  norm          .10087E-03    109.44        .62531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29980        8.3868        .21307E-02   -1.5598    
  19  Prefactor     49.632        40.421        .56915E-04   -1.4298    
  20  Prefactor     20.723        23.320        .87973E-04   -1.4797    
  21  Prefactor     .10000E-03    17.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4032        .24007        .26209E-03   -.80536    
  23  Prefactor     .72230        .15518        .23665E-03   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92803e-08
Minuit parameter uncertainties:
  1  6.50827e-06
  2  2.46221
  3  5.2252
  4  4.59645e-07
  5  0.000422106
  6  12.2677
  7  14.8176
  8  0.933257
  9  7.57098e-07
  10  9.57137e-05
  11  5.56392
  12  1.27476e-06
  13  0.00146182
  14  10.7727
  15  2.78953e-06
  16  12.4087
  17  0.0195717
  18  3.17133
  19  40.4437
  20  23.3306
  21  0.000280913
  22  0.240265
  23  0.155272
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.072e+01  2.333e+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.223e-01  1.553e-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.403e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/151909/likelihoodResults_382406401_382665601_4FGL_J2349.4+0534_daily_bin552.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) = 6796.7460156
delta logL = 0.045874456041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6796.7194888
delta logL = 0.0724012545243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.764       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8764       1.0000          .0000       10.000    
     3 'Normalizat'    1.3806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73230       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6796.719     FROM MIGRAD    STATUS=FAILED       102 CALLS      272 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.701        38.836        .52120E-03   -.34071E-04
   2  Index         2.8804        1.7313        .85751E-02    .51948E-03
   3  Normalizat    1.3807        .24556        .26383E-03   -.86698E-04
   4  Prefactor     .73215        .16092        .23521E-03   -.38039E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6796.719     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      347 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.701        38.836        .31760E-03   -1.4941    
   2  Index         2.8804        1.7313        .14751E-02   -.43777    
   3  Normalizat    1.3807        .24556        .29537E-03   -.81189    
   4  Prefactor     .73215        .16092        .28839E-03   -1.0228    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6796.719     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      385 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.701        27.328        .20848E-04   -.59985E-05
   2  Index         2.8804        1.2306        .17150E-02    .16705E-05
   3  Normalizat    1.3807        .23945        .10553E-04   -.86181E-06
   4  Prefactor     .73215        .15753        .94084E-05   -.48334E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7005
  Index      = 2.88039
  Normalizat = 1.3807
  Prefactor  = 0.732146
 **********
 **   18 **HESSE 
 **********

 FCN=   6796.719     FROM HESSE     STATUS=OK            23 CALLS      408 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.701        26.116        .41696E-05   -1.4941    
   2  Index         2.8804        1.1765        .68601E-04   -.43777    
   3  Normalizat    1.3807        .23917        .21107E-05   -.81189    
   4  Prefactor     .73215        .15743        .18817E-05   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78278e-13
Minuit parameter uncertainties:
  1  26.1362
  2  1.19011
  3  0.239361
  4  0.157525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151909': 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) = 6796.71948168
delta logL = 0.0724083751702

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.470e+01  2.614e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.880e+00  1.190e+00  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.321e-01  1.575e-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.381e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.88 +/- 1.19
Photon Flux (Free Index): 5.94e-08 +/- 7.12e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.28e-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/151909/cmap_HighResolution_382406401_382665601_4FGL_J2349.4+0534_daily_bin552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='1.26e-05', photon_flux_error='4.65e-08', dlogl='7.24e-02', energy_flux='1.25e-05', photon_flux2='5.94e-08', job_status='DONE', time_completed='2021-09-30 07:00:32.727577', photon_index_error2='1.19', photon_index2='2.88', ts='1.13', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.28e-05', EG='1.40', time_epoch_completed='1633010432.73', return_code='0', job_id='151909', GAL2='0.73', EG2='1.38', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='7.12e-08', ts2='1.33', photon_index='2.47' WHERE bin_id='552' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:00:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 151909: <4FGL_J2349.4+0534_daily_bin552> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin552> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:45:17 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:45:19 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:45:19 2021
Terminated at Thu Sep 30 07:00:33 2021
Results reported at Thu Sep 30 07:00:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin552 357.356 5.579 382406401 382665601 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 :                                   729.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

