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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin172
RA = 357.356, Dec = 5.579
tmin = 283910401, tmax = 284169601
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='149169', job_status='RUN', time_executed='2021-09-30 06:39:23.224277', time_epoch_executed='1633009163.22' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149169/ft1_4FGL_J2349.4+0534_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149169/ft2_4FGL_J2349.4+0534_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149169/ft1_4FGL_J2349.4+0534_daily_bin172.fits outfile=/scratch/kocevski/149169/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin172.fits ra=357.356 dec=5.579 rad=12.0 tmin=283910401.0 tmax=284169601.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.87
user 3.33
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149169/ft1_filtered_4FGL_J2349.4+0534_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/149169/ft2_4FGL_J2349.4+0534_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/149169/ltcube_283910401_284169601_4FGL_J2349.4+0534_daily_bin172.fits outfile=/scratch/kocevski/149169/expmap_283910401_284169601_4FGL_J2349.4+0534_daily_bin172.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/149169/ltcube_283910401_284169601_4FGL_J2349.4+0534_daily_bin172.fits
.....................!
real 191.86
user 186.17
sys 4.74

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/149169/ft1_filtered_4FGL_J2349.4+0534_daily_bin172.fits scfile=/scratch/kocevski/149169/ft2_4FGL_J2349.4+0534_daily_bin172.fits outfile=/scratch/kocevski/149169/cmap_283910401_284169601_4FGL_J2349.4+0534_daily_bin172.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149169/ft1_filtered_4FGL_J2349.4+0534_daily_bin172.fits scfile=/scratch/kocevski/149169/ft2_4FGL_J2349.4+0534_daily_bin172.fits outfile=/scratch/kocevski/149169/cmap_HighResolution_283910401_284169601_4FGL_J2349.4+0534_daily_bin172.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.51
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8697       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.662       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.290       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0433       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22297       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .13406E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9790       1.0000         .10000E-03   10000.    
    13 'Prefactor '    424.90       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.370       1.0000         .10000E-03   10000.    
    16 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16498E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26361       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.072       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86466       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0405       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=   5936.827     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     2937 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1302       -.19985E-04** at limit **
   2  norm          1.8686        1.9844        .44296E-08   -.76100E-03
   3  norm          .10000E-03    2.6128        .28550E-06** at limit **
   4  Prefactor     17.654        3.2666        .26971E-05    .80854E-02
   5  Prefactor     17.299        1.6887       -.17279E-05    .37132E-02
   6  Prefactor     9.0236        14.987        .24371E-04    .31590E-02
   7  Prefactor     .10000E-03    5.5752       -.51843E-05** at limit **
   8  norm          .22381        1.0119        .75067E-06   -.56518E-03
   9  Prefactor     4.6146        1.1589       -.26249E-06    .91892E-03
  10  Prefactor     .10000E-03    18.117        .67303E-05** at limit **
  11  norm          .10008E-03    11.579       -.66355E-05** at limit **
  12  Prefactor     2.9707        1.6313       -.53632E-05    .73321E-03
  13  Prefactor     424.92        1.5067        .13720E-06   -.55358E-02
  14  Prefactor     .10005E-03    12.003       -.54535E-05** at limit **
  15  Prefactor     75.431        7.0779       -.34848E-05    .29084E-01
  16  norm          .10000E-03    6.6571       -.18200E-04** at limit **
  17  norm          .10000E-03    8.1453        .17733E-05** at limit **
  18  Prefactor     .10001E-03    6.2137        .28062E-04** at limit **
  19  Prefactor     .16546E-03    1551.7       -.65134E-04** at limit **
  20  Prefactor     .10000E-03    9.7318        .18658E-05** at limit **
  21  Prefactor     18.064        2.8419        .35364E-05   -.42202E-02
  22  Normalizat    .86530        .22647       -.28922E-04   -.38107E-04
  23  Prefactor     1.0405        .16006        .41218E-05   -.18066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 1.86863
  norm       = 0.0001
  Prefactor  = 17.6544
  Prefactor  = 17.2992
  Prefactor  = 9.02356
  Prefactor  = 0.0001
  norm       = 0.223809
  Prefactor  = 4.61464
  Prefactor  = 0.000100003
  norm       = 0.000100084
  Prefactor  = 2.97069
  Prefactor  = 424.916
  Prefactor  = 0.000100055
  Prefactor  = 75.4312
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000165461
  Prefactor  = 0.0001
  Prefactor  = 18.0637
  Normalizat = 0.865304
  Prefactor  = 1.04048
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.827     FROM HESSE     STATUS=OK           432 CALLS     3369 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8686        2.0043        .76153E-02   -1.5435    
   3  norm          .10000E-03    2.5767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.654        11.952        .23826E-02   -1.4867    
   5  Prefactor     17.299        30.978        .24080E-02   -1.4876    
   6  Prefactor     9.0236        15.910        .33320E-02   -1.5107    
   7  Prefactor     .10000E-03    5.5743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .22381        .85164        .24438E-01   -1.5613    
   9  Prefactor     4.6146        9.6574        .46803E-02   -1.5278    
  10  Prefactor     .10000E-03    18.180        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10008E-03    7.0318        .67476E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9707        6.6016        .58807E-02   -1.5363    
  13  Prefactor     424.92        310.50        .49577E-03   -1.1555    
  14  Prefactor     .10005E-03    22.994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     75.431        29.443        .11563E-02   -1.3969    
  16  norm          .10000E-03    6.7853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.1674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    6.1582        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16546E-03    34.346        .13083       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.7392        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.064        18.374        .23554E-02   -1.4858    
  22  Normalizat    .86530        .20934        .69315E-01   -.97690    
  23  Prefactor     1.0405        .14034        .40499E-01   -.91392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89872e-06
Minuit parameter uncertainties:
  1  0.000343959
  2  2.00441
  3  5.83326e-06
  4  11.9539
  5  31.0064
  6  15.9176
  7  1.2705e-06
  8  0.85169
  9  9.66062
  10  0.000486408
  11  0.00153848
  12  6.60322
  13  311.735
  14  0.00224031
  15  29.4486
  16  0.000272143
  17  0.000127377
  18  0.00052183
  19  0.0948867
  20  3.42934e-05
  21  18.3796
  22  0.209541
  23  0.140388
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  3.429e-05  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.040e+00  1.404e-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:  8.653e-01  2.095e-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: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149169/likelihoodResults_283910401_284169601_4FGL_J2349.4+0534_daily_bin172.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) = 5936.82751304
delta logL = -0.000487775875627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5936.82702611
delta logL = -8.4462135419e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11431E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4448       1.0000          .0000       10.000    
     3 'Normalizat'    .86516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0406       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=   5936.827     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10276E-03    8.0997        .18142E-01** at limit **
   2  Index         2.3494        5.7260        .50000        .14140E-04
   3  Normalizat    .86530        .44456E-02    .30668E-03    .10009E-04
   4  Prefactor     1.0405        .31868E-02    .20095E-03    .14936E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102757
  Index      = 2.34938
  Normalizat = 0.865303
  Prefactor  = 1.04048
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.827     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10276E-03    104.20        .24498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3494        8.7719        .50000       -.55875    
   3  Normalizat    .86530        .16040E-01    .12267E-04   -.97690    
   4  Prefactor     1.0405        .11498E-01    .80381E-05   -.91392    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.27008e-09
Minuit parameter uncertainties:
  1  0.0339547
  2  471.337
  3  0.0160398
  4  0.0114978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149169': 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) = 5936.82702494
delta logL = 3.18543243338e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.028e-04  3.395e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.349e+00  4.713e+02  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.040e+00  1.150e-02  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:  8.653e-01  1.604e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/149169/cmap_HighResolution_283910401_284169601_4FGL_J2349.4+0534_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-30 06:50:31.194969', job_id='149169', GAL2='1.04', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1633009831.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='172' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:50:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 149169: <4FGL_J2349.4+0534_daily_bin172> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin172> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:29 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:30 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:35:30 2021
Terminated at Thu Sep 30 06:50:32 2021
Results reported at Thu Sep 30 06:50:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin172 357.356 5.579 283910401 284169601 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 :                                   666.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

