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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin686
RA = 357.356, Dec = 5.579
tmin = 417139201, tmax = 417398401
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='152113', job_status='RUN', time_executed='2021-09-30 06:45:53.520548', time_epoch_executed='1633009553.52' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152113

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152113/ft1_4FGL_J2349.4+0534_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152113/ft2_4FGL_J2349.4+0534_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152113/ft1_4FGL_J2349.4+0534_daily_bin686.fits outfile=/scratch/kocevski/152113/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin686.fits ra=357.356 dec=5.579 rad=12.0 tmin=417139201.0 tmax=417398401.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 5.49
user 5.15
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152113/ft1_filtered_4FGL_J2349.4+0534_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/152113/ft2_4FGL_J2349.4+0534_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/152113/ltcube_417139201_417398401_4FGL_J2349.4+0534_daily_bin686.fits outfile=/scratch/kocevski/152113/expmap_417139201_417398401_4FGL_J2349.4+0534_daily_bin686.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/152113/ltcube_417139201_417398401_4FGL_J2349.4+0534_daily_bin686.fits
.....................!
real 190.52
user 185.04
sys 5.12

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/152113/ft1_filtered_4FGL_J2349.4+0534_daily_bin686.fits scfile=/scratch/kocevski/152113/ft2_4FGL_J2349.4+0534_daily_bin686.fits outfile=/scratch/kocevski/152113/cmap_417139201_417398401_4FGL_J2349.4+0534_daily_bin686.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/152113/ft1_filtered_4FGL_J2349.4+0534_daily_bin686.fits scfile=/scratch/kocevski/152113/ft2_4FGL_J2349.4+0534_daily_bin686.fits outfile=/scratch/kocevski/152113/cmap_HighResolution_417139201_417398401_4FGL_J2349.4+0534_daily_bin686.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.480       1.0000         .10000E-03   10000.    
     2 'norm      '    .22944       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.725       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.182       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.749       1.0000         .10000E-03   10000.    
     8 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.313       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.075       1.0000         .10000E-03   10000.    
    13 'Prefactor '    602.72       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    33.115       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15309E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    81.194       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34436E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78882       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1155       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=   2988.953     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     2243 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.124        53.645        .28689E-05   -.17954E-02
   2  norm          .31474        39.387       -.18393E-04   -.70798E-03
   3  norm          .10000E-03    7.9693       -.69454E-07** at limit **
   4  Prefactor     10.749        19.400       -.17074E-05   -.39125E-02
   5  Prefactor     .10000E-03    13.278        .25932E-07** at limit **
   6  Prefactor     13.200        8.7913       -.93155E-06    .11161E-01
   7  Prefactor     40.769        22.519       -.89554E-06   -.11611E-01
   8  norm          .10000E-03    1.3566       -.26559E-07** at limit **
   9  Prefactor     31.337        14.111        .11744E-05   -.35552E-02
  10  Prefactor     .10001E-03    26.928        .33690E-06** at limit **
  11  norm          .10000E-03    11.799       -.23935E-06** at limit **
  12  Prefactor     26.117        15.346       -.21420E-06   -.23145E-02
  13  Prefactor     602.63        3.3439       -.13410E-08    .89223E-02
  14  Prefactor     .10014E-03    21.254       -.16678E-05** at limit **
  15  Prefactor     .10003E-03    29.422       -.50608E-05** at limit **
  16  norm          33.129        5.8027       -.39575E-07    .10995E-02
  17  norm          .10000E-03    16.945        .77975E-07** at limit **
  18  Prefactor     .10192E-03    8.0306        .49118E-05** at limit **
  19  Prefactor     .10000E-03    34.836        .18550E-05** at limit **
  20  Prefactor     81.266        2.8133       -.10121E-07   -.16607E-02
  21  Prefactor     .94240        653.33        .13815E-04    .29018E-04
  22  Normalizat    .78561        .40711        .56916E-05    .12059E-04
  23  Prefactor     1.1164        .25687       -.18107E-05    .10911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.1235
  norm       = 0.314737
  norm       = 0.0001
  Prefactor  = 10.7489
  Prefactor  = 0.0001
  Prefactor  = 13.2005
  Prefactor  = 40.7695
  norm       = 0.0001
  Prefactor  = 31.3373
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 26.1171
  Prefactor  = 602.63
  Prefactor  = 0.000100137
  Prefactor  = 0.00010003
  norm       = 33.1291
  norm       = 0.0001
  Prefactor  = 0.000101915
  Prefactor  = 0.000100004
  Prefactor  = 81.2662
  Prefactor  = 0.942395
  Normalizat = 0.78561
  Prefactor  = 1.11639
 **********
 **   18 **HESSE 
 **********

 FCN=   2988.953     FROM HESSE     STATUS=OK           428 CALLS     2671 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.124        52.941        .11192E-02   -1.3915    
   2  norm          .31474        6.2773        .70789E-01   -1.5596    
   3  norm          .10000E-03    7.8066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.749        23.300        .30585E-02   -1.5052    
   5  Prefactor     .10000E-03    13.270        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.200        15.516        .27581E-02   -1.4981    
   7  Prefactor     40.769        32.291        .15699E-02   -1.4430    
   8  norm          .10000E-03    .85415        .26866E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.337        21.131        .17901E-02   -1.4588    
  10  Prefactor     .10001E-03    28.141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.117        16.158        .19613E-02   -1.4685    
  13  Prefactor     602.63        530.09        .42019E-03   -1.0748    
  14  Prefactor     .10014E-03    22.763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    29.754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          33.129        24.560        .17408E-02   -1.4556    
  17  norm          .10000E-03    16.918        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10192E-03    13.636        .56719E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     81.266        59.944        .11143E-02   -1.3903    
  21  Prefactor     .94240        664.52        .91938E-02   -1.5514    
  22  Normalizat    .78561        .38223        .85355E-01   -1.0060    
  23  Prefactor     1.1164        .22958        .37025E-01   -.88945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96122e-06
Minuit parameter uncertainties:
  1  52.9725
  2  2.81108
  3  1.93812e-06
  4  23.3198
  5  2.03989e-05
  6  15.5203
  7  32.305
  8  1.98316e-07
  9  21.136
  10  0.000802831
  11  6.59336e-07
  12  16.1608
  13  534.572
  14  0.00353359
  15  0.00190097
  16  24.5671
  17  4.5565e-05
  18  0.0102232
  19  0.00072995
  20  59.9883
  21  50.621
  22  0.383541
  23  0.229786
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  8.127e+01  5.999e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.116e+00  2.298e-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:  7.856e-01  3.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 1.20e-07
Energy Flux (Fixed Index): 4.89e-05 +/- 3.61e-05

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

Saving results to:
/scratch/kocevski/152113/likelihoodResults_417139201_417398401_4FGL_J2349.4+0534_daily_bin686.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) = 2988.12747005
delta logL = 0.825448136884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2987.99882736
delta logL = 0.954090821177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90615       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1247       1.0000          .0000       10.000    
     3 'Normalizat'    .58970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2337       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=   2987.999     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      341 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90042        9.8564        .64578E-02   -.22607E-02
   2  Index         5.1272        2.8501        .65739E-01   -.15625E-03
   3  Normalizat    .59074        .12757        .97120E-01   -.33395E-04
   4  Prefactor     1.2332        .85128E-01    .33878E-01   -.10560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.900424
  Index      = 5.12716
  Normalizat = 0.590737
  Prefactor  = 1.23321
 **********
 **   18 **HESSE 
 **********

 FCN=   2987.999     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      372 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90042        14.667        .28806E-04   -1.5518    
   2  Index         5.1272        3.5286        .27798E-02    .25435E-01
   3  Normalizat    .59074        .35641        .43042E-03   -1.0838    
   4  Prefactor     1.2332        .23878        .20824E-03   -.85315    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.00157e-10
Minuit parameter uncertainties:
  1  7.26981
  2  3.91751
  3  0.357806
  4  0.238993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152113': 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) = 2987.99882199
delta logL = 0.95409619756

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  9.004e-01  7.270e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  5.127e+00  3.918e+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.233e+00  2.390e-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.907e-01  3.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.00
Ra Dec: 357.356 5.579
Photon Index (Free Index): 5.13 +/- 3.92
Photon Flux (Free Index): 2.94e-07 +/- 1.72e-07
Energy Flux (Free Index): 3.87e-05 +/- 2.53e-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/152113/cmap_HighResolution_417139201_417398401_4FGL_J2349.4+0534_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-02', comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='3.87e-05', photon_flux_error='1.20e-07', dlogl='9.54e-01', energy_flux='4.89e-05', photon_flux2='2.94e-07', job_status='DONE', time_completed='2021-09-30 06:53:54.548548', photon_index_error2='3.92', photon_index2='5.13', ts='2.63', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='4.04e-07', energy_flux_error2='2.53e-05', EG='0.79', time_epoch_completed='1633010034.55', return_code='0', job_id='152113', GAL2='1.23', EG2='0.59', return_code2='102', energy_flux_error='3.61e-05', photon_flux_error2='1.72e-07', ts2='5.00', photon_index='2.47' WHERE bin_id='686' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:53:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 152113: <4FGL_J2349.4+0534_daily_bin686> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin686> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:45:34 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:45:36 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:36 2021
Terminated at Thu Sep 30 06:53:56 2021
Results reported at Thu Sep 30 06:53:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin686 357.356 5.579 417139201 417398401 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 :                                   478.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   498 sec.
    Turnaround time :                            502 sec.

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

