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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1330
RA = 357.356, Dec = 5.579
tmin = 584064001, tmax = 584323201
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='155033', job_status='RUN', time_executed='2021-09-30 06:55:36.894124', time_epoch_executed='1633010136.89' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155033/ft1_4FGL_J2349.4+0534_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155033/ft2_4FGL_J2349.4+0534_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155033/ft1_4FGL_J2349.4+0534_daily_bin1330.fits outfile=/scratch/kocevski/155033/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1330.fits ra=357.356 dec=5.579 rad=12.0 tmin=584064001.0 tmax=584323201.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.52
user 4.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155033/ft1_filtered_4FGL_J2349.4+0534_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/155033/ft2_4FGL_J2349.4+0534_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/155033/ltcube_584064001_584323201_4FGL_J2349.4+0534_daily_bin1330.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/155033/ft2_4FGL_J2349.4+0534_daily_bin1330.fits
.....................!
real 11.91
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155033/ft1_filtered_4FGL_J2349.4+0534_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/155033/ft2_4FGL_J2349.4+0534_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/155033/ltcube_584064001_584323201_4FGL_J2349.4+0534_daily_bin1330.fits outfile=/scratch/kocevski/155033/expmap_584064001_584323201_4FGL_J2349.4+0534_daily_bin1330.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/155033/ltcube_584064001_584323201_4FGL_J2349.4+0534_daily_bin1330.fits
.....................!
real 191.63
user 185.45
sys 5.81

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/155033/ft1_filtered_4FGL_J2349.4+0534_daily_bin1330.fits scfile=/scratch/kocevski/155033/ft2_4FGL_J2349.4+0534_daily_bin1330.fits outfile=/scratch/kocevski/155033/cmap_584064001_584323201_4FGL_J2349.4+0534_daily_bin1330.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155033/ft1_filtered_4FGL_J2349.4+0534_daily_bin1330.fits scfile=/scratch/kocevski/155033/ft2_4FGL_J2349.4+0534_daily_bin1330.fits outfile=/scratch/kocevski/155033/cmap_HighResolution_584064001_584323201_4FGL_J2349.4+0534_daily_bin1330.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.69
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.780       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9149       1.0000         .10000E-03   10000.    
     3 'norm      '    7.8661       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6236       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1853       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.749       1.0000         .10000E-03   10000.    
    11 'norm      '    5.8875       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.732       1.0000         .10000E-03   10000.    
    17 'norm      '    15.463       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.890       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11362E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .68060E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58455       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1749       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8102.979     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     2158 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.781        1.1138        .42340E-06    .46761E-03
   2  norm          1.9148        2.0265       -.10114E-06   -.15225E-03
   3  norm          7.8659        4.2240       -.34575E-06   -.48071E-04
   4  Prefactor     .10000E-03    3.3507       -.95059E-06** at limit **
   5  Prefactor     .10000E-03    16.163        .68578E-06** at limit **
   6  Prefactor     8.6236        1.0460       -.91140E-07    .22405E-03
   7  Prefactor     .10000E-03    5.3327        .28724E-05** at limit **
   8  norm          3.1852        1.0142        .87248E-06   -.30604E-02
   9  Prefactor     .10000E-03    8.4872        .61486E-06** at limit **
  10  Prefactor     14.766        3.1376        .16649E-06    .60478E-03
  11  norm          5.8869        6.2098       -.56985E-05   -.52976E-03
  12  Prefactor     .10000E-03    2.3078        .41648E-05** at limit **
  13  Prefactor     .10000E-03    371.02       -.65388E-04** at limit **
  14  Prefactor     .10000E-03    6.3681       -.11445E-06** at limit **
  15  Prefactor     .10000E-03    16.624        .18669E-05** at limit **
  16  norm          17.730        2.3894       -.21251E-05   -.25610E-02
  17  norm          15.463        1.1288        .71660E-07   -.55008E-04
  18  Prefactor     15.890        4.9855        .89391E-06   -.38891E-03
  19  Prefactor     .10001E-03    102.91       -.10829E-05** at limit **
  20  Prefactor     .10009E-03    11.200       -.72085E-05** at limit **
  21  Prefactor     .10000E-03    108.23       -.87735E-04** at limit **
  22  Normalizat    .58465        .19994       -.22628E-07   -.26963E-03
  23  Prefactor     1.1748        .14144        .34712E-05   -.58274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7809
  norm       = 1.91478
  norm       = 7.86595
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.62356
  Prefactor  = 0.0001
  norm       = 3.18521
  Prefactor  = 0.0001
  Prefactor  = 14.7663
  norm       = 5.8869
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.7304
  norm       = 15.463
  Prefactor  = 15.8898
  Prefactor  = 0.000100011
  Prefactor  = 0.00010009
  Prefactor  = 0.0001
  Normalizat = 0.584653
  Prefactor  = 1.17482
 **********
 **   18 **HESSE 
 **********

 FCN=   8102.979     FROM HESSE     STATUS=OK           428 CALLS     2586 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.781        15.196        .19724E-02   -1.4692    
   2  norm          1.9148        2.1853        .75089E-02   -1.5431    
   3  norm          7.8659        4.2320        .35742E-02   -1.5147    
   4  Prefactor     .10000E-03    3.3376        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.135        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6236        8.5449        .34125E-02   -1.5121    
   7  Prefactor     .10000E-03    5.3222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1852        1.0164        .56763E-03   -1.5351    
   9  Prefactor     .10000E-03    8.2895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.766        35.242        .26073E-02   -1.4939    
  11  norm          5.8869        6.2561        .41376E-02   -1.5223    
  12  Prefactor     .10000E-03    2.2997        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    372.98        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.542        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.730        13.620        .23778E-02   -1.4866    
  17  norm          15.463        22.177        .25464E-02   -1.4921    
  18  Prefactor     15.890        5.5011        .25119E-02   -1.4911    
  19  Prefactor     .10001E-03    108.81        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10009E-03    13.992        .11700       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0270        .10498       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .58465        .18798        .81525E-01   -1.0864    
  23  Prefactor     1.1748        .12794        .35254E-01   -.87110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39121e-08
Minuit parameter uncertainties:
  1  15.1982
  2  2.18544
  3  4.23217
  4  1.47656e-05
  5  0.000189765
  6  8.54608
  7  6.23796e-05
  8  1.01637
  9  3.7259e-05
  10  35.2915
  11  6.25683
  12  5.91427e-05
  13  0.00118852
  14  1.38182e-05
  15  9.84365e-05
  16  13.6221
  17  22.189
  18  5.50126
  19  0.00218816
  20  0.00223897
  21  4.08153e-05
  22  0.188188
  23  0.127975
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.001e-04  2.239e-03  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.175e+00  1.280e-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:  5.847e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 9.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/155033/likelihoodResults_584064001_584323201_4FGL_J2349.4+0534_daily_bin1330.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) = 8102.97947519
delta logL = -3.39520720445e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8102.97947518
delta logL = -3.39423795594e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4667       1.0000          .0000       10.000    
     3 'Normalizat'    .58465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1748       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=   8102.577     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      279 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58464        10.368        .90713E-02   -.10547E-02
   2  Index         4.3893        2.4359        .17614       -.73395E-04
   3  Normalizat    .53253        .32623E-01    .85290E-01    .16464E-03
   4  Prefactor     1.1943        .23872E-01    .35255E-01    .40422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.584639
  Index      = 4.38927
  Normalizat = 0.532535
  Prefactor  = 1.19428
 **********
 **   18 **HESSE 
 **********

 FCN=   8102.577     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      310 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58464        39.377        .78919E-04   -1.5555    
   2  Index         4.3893        7.1693        .62861E-02   -.12245    
   3  Normalizat    .53253        .16351        .37780E-03   -1.1093    
   4  Prefactor     1.1943        .11869        .18967E-03   -.86508    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.58806e-09
Minuit parameter uncertainties:
  1  9.60193
  2  7.89401
  3  0.163653
  4  0.118717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155033': 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): 102
logL (Free Index) = 8102.57741779
delta logL = 0.402023440904

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  5.846e-01  9.602e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  4.389e+00  7.894e+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:  1.194e+00  1.187e-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:  5.325e-01  1.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

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/155033/cmap_HighResolution_584064001_584323201_4FGL_J2349.4+0534_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', job_status='DONE', photon_flux_upper_limit='9.02e-08', time_completed='2021-09-30 07:07:46.404320', job_id='155033', GAL2='1.19', fit_tolerance='1e-08', EG2='0.53', EG='0.58', time_epoch_completed='1633010866.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='4.02e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1330' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:07:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 155033: <4FGL_J2349.4+0534_daily_bin1330> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1330> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:55:25 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:55:27 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:55:27 2021
Terminated at Thu Sep 30 07:07:47 2021
Results reported at Thu Sep 30 07:07:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1330 357.356 5.579 584064001 584323201 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 :                                   717.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            742 sec.

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

