/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 190 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_bin1146
RA = 357.356, Dec = 5.579
tmin = 536371201, tmax = 536630401
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='153742', job_status='RUN', time_executed='2021-09-30 06:54:15.928567', time_epoch_executed='1633010055.93' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153742

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153742/ft1_4FGL_J2349.4+0534_daily_bin1146.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153742/ft2_4FGL_J2349.4+0534_daily_bin1146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153742/ft1_4FGL_J2349.4+0534_daily_bin1146.fits outfile=/scratch/kocevski/153742/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1146.fits ra=357.356 dec=5.579 rad=12.0 tmin=536371201.0 tmax=536630401.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.57
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153742/ft2_4FGL_J2349.4+0534_daily_bin1146.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/153742/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1146.fits evtable="EVENTS" outfile="/scratch/kocevski/153742/ft1_filtered_4FGL_J2349.4+0534_daily_bin1146.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/153742/ft1_filtered_4FGL_J2349.4+0534_daily_bin1146.fits" evtable="EVENTS" scfile=/scratch/kocevski/153742/ft2_4FGL_J2349.4+0534_daily_bin1146.fits sctable="SC_DATA" outfile=/scratch/kocevski/153742/ltcube_536371201_536630401_4FGL_J2349.4+0534_daily_bin1146.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/153742/ft2_4FGL_J2349.4+0534_daily_bin1146.fits
.....................!
real 11.73
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153742/ft1_filtered_4FGL_J2349.4+0534_daily_bin1146.fits evtable="EVENTS" scfile=/scratch/kocevski/153742/ft2_4FGL_J2349.4+0534_daily_bin1146.fits sctable="SC_DATA" expcube=/scratch/kocevski/153742/ltcube_536371201_536630401_4FGL_J2349.4+0534_daily_bin1146.fits outfile=/scratch/kocevski/153742/expmap_536371201_536630401_4FGL_J2349.4+0534_daily_bin1146.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/153742/ltcube_536371201_536630401_4FGL_J2349.4+0534_daily_bin1146.fits
.....................!
real 190.58
user 185.81
sys 4.46

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/153742/ft1_filtered_4FGL_J2349.4+0534_daily_bin1146.fits scfile=/scratch/kocevski/153742/ft2_4FGL_J2349.4+0534_daily_bin1146.fits outfile=/scratch/kocevski/153742/cmap_536371201_536630401_4FGL_J2349.4+0534_daily_bin1146.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153742/ft1_filtered_4FGL_J2349.4+0534_daily_bin1146.fits scfile=/scratch/kocevski/153742/ft2_4FGL_J2349.4+0534_daily_bin1146.fits outfile=/scratch/kocevski/153742/cmap_HighResolution_536371201_536630401_4FGL_J2349.4+0534_daily_bin1146.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8607       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    84.614       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .72585       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1599       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.2706       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0155       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4526       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21832E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.128       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99621       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88816       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=   5183.767     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2531 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4536       -.24895E-05** at limit **
   2  norm          .10000E-03    1.8301        .31517E-07** at limit **
   3  norm          2.8610        2.8379        .59818E-07    .11396E-03
   4  Prefactor     .10000E-03    5.1705       -.33700E-06** at limit **
   5  Prefactor     84.625        49.216        .77550E-05    .46583E-04
   6  Prefactor     .10000E-03    8.7636       -.22826E-05** at limit **
   7  Prefactor     .10000E-03    7.4583        .25189E-05** at limit **
   8  norm          1.3282        1.0501       -.21151E-07   -.61948E-04
   9  Prefactor     .72098        9.0678       -.23564E-05   -.12886E-03
  10  Prefactor     .10000E-03    28.440       -.83278E-06** at limit **
  11  norm          .10000E-03    5.3418        .28714E-05** at limit **
  12  Prefactor     5.1596        5.1428       -.20038E-06   -.15404E-03
  13  Prefactor     .10000E-03    103.61        .49064E-04** at limit **
  14  Prefactor     .10000E-03    12.664       -.67844E-06** at limit **
  15  Prefactor     .10000E-03    10.442        .17702E-05** at limit **
  16  norm          4.2732        16.082       -.18462E-05   -.60615E-04
  17  norm          6.0287        30.721        .96188E-05    .15219E-04
  18  Prefactor     4.4527        6.6550       -.22147E-05   -.33670E-03
  19  Prefactor     .10000E-03    116.38       -.54830E-04** at limit **
  20  Prefactor     .10000E-03    7.1770       -.14445E-05** at limit **
  21  Prefactor     11.127        16.845        .16369E-05    .12658E-04
  22  Normalizat    .99595        .20771       -.66496E-07    .31922E-03
  23  Prefactor     .88824        .14411       -.21297E-06    .38775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.86099
  Prefactor  = 0.0001
  Prefactor  = 84.6246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32821
  Prefactor  = 0.720978
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.15961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.27323
  norm       = 6.02872
  Prefactor  = 4.45271
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.1265
  Normalizat = 0.995947
  Prefactor  = 0.888237
 **********
 **   18 **HESSE 
 **********

 FCN=   5183.767     FROM HESSE     STATUS=OK           364 CALLS     2895 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4603        .16420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.9053        .18994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8610        2.8432        .11742E-03   -1.5370    
   4  Prefactor     .10000E-03    5.1862        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     84.625        49.172        .43671E-04   -1.3866    
   6  Prefactor     .10000E-03    8.8193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3282        1.0511        .63050E-04   -1.5477    
   9  Prefactor     .72098        26.733        .40764E-02   -1.5538    
  10  Prefactor     .10000E-03    28.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.4031        .16219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1596        5.1216        .15602E-03   -1.5254    
  13  Prefactor     .10000E-03    103.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.2732        16.099        .19496E-03   -1.5295    
  17  norm          6.0287        30.205        .16371E-03   -1.5217    
  18  Prefactor     4.4527        6.6198        .17760E-03   -1.5286    
  19  Prefactor     .10000E-03    116.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.127        16.845        .12010E-03   -1.5041    
  22  Normalizat    .99595        .24145        .27138E-03   -.93166    
  23  Prefactor     .88824        .16849        .20157E-03   -.96553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8922e-08
Minuit parameter uncertainties:
  1  9.80484e-07
  2  1.03722e-06
  3  2.84337
  4  1.18444e-06
  5  49.1957
  6  6.01288e-06
  7  8.82467e-06
  8  1.0511
  9  8.78408
  10  2.91786e-06
  11  1.47825e-05
  12  5.12204
  13  3.07052e-05
  14  9.22438e-05
  15  1.38781e-05
  16  16.1149
  17  27.0101
  18  6.62087
  19  0.00104144
  20  5.79368e-06
  21  16.8525
  22  0.241719
  23  0.168588
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  5.794e-06  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:  8.882e-01  1.686e-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:  9.959e-01  2.417e-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: 6.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153742/likelihoodResults_536371201_536630401_4FGL_J2349.4+0534_daily_bin1146.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) = 5183.76811451
delta logL = -0.000662764384288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5183.76745211
delta logL = -3.5763514461e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4400       1.0000          .0000       10.000    
     3 'Normalizat'    .99608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88815       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=   5183.767     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      238 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10325E-03    6.8597        .18142E-01** at limit **
   2  Index         2.3488        8.4607        .50000        .26056E-04
   3  Normalizat    .99595        .47327E-02    .27138E-03   -.23459E-05
   4  Prefactor     .88824        .33567E-02    .20157E-03   -.27072E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103249
  Index      = 2.34876
  Normalizat = 0.995946
  Prefactor  = 0.888237
 **********
 **   18 **HESSE 
 **********

 FCN=   5183.767     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10325E-03    71.966        .20000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3488        8.3480        .50000       -.55889    
   3  Normalizat    .99595        .15435E-01    .10855E-04   -.93166    
   4  Prefactor     .88824        .10948E-01    .80628E-05   -.96553    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.34198e-09
Minuit parameter uncertainties:
  1  0.0306187
  2  307.937
  3  0.0154355
  4  0.0109477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153742': 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) = 5183.76745114
delta logL = 6.06734829489e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.032e-04  3.062e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.349e+00  3.079e+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:  8.882e-01  1.095e-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:  9.959e-01  1.544e-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/153742/cmap_HighResolution_536371201_536630401_4FGL_J2349.4+0534_daily_bin1146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2021-09-30 07:06:27.445191', job_id='153742', GAL2='0.89', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1633010787.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1146' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:06:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 153742: <4FGL_J2349.4+0534_daily_bin1146> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1146> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:54 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:55 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:50:55 2021
Terminated at Thu Sep 30 07:06:28 2021
Results reported at Thu Sep 30 07:06:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1146 357.356 5.579 536371201 536630401 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 :                                   586.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

