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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin247
RA = 357.356, Dec = 5.579
tmin = 303350401, tmax = 303609601
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='149294', job_status='RUN', time_executed='2021-09-30 06:39:27.486269', time_epoch_executed='1633009167.49' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149294

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149294/ft1_4FGL_J2349.4+0534_daily_bin247.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149294/ft2_4FGL_J2349.4+0534_daily_bin247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149294/ft1_4FGL_J2349.4+0534_daily_bin247.fits outfile=/scratch/kocevski/149294/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin247.fits ra=357.356 dec=5.579 rad=12.0 tmin=303350401.0 tmax=303609601.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.40
user 3.16
sys 0.22

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149294/ft1_filtered_4FGL_J2349.4+0534_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/149294/ft2_4FGL_J2349.4+0534_daily_bin247.fits sctable="SC_DATA" expcube=/scratch/kocevski/149294/ltcube_303350401_303609601_4FGL_J2349.4+0534_daily_bin247.fits outfile=/scratch/kocevski/149294/expmap_303350401_303609601_4FGL_J2349.4+0534_daily_bin247.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/149294/ltcube_303350401_303609601_4FGL_J2349.4+0534_daily_bin247.fits
.....................!
real 190.60
user 185.15
sys 5.14

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/149294/ft1_filtered_4FGL_J2349.4+0534_daily_bin247.fits scfile=/scratch/kocevski/149294/ft2_4FGL_J2349.4+0534_daily_bin247.fits outfile=/scratch/kocevski/149294/cmap_303350401_303609601_4FGL_J2349.4+0534_daily_bin247.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/149294/ft1_filtered_4FGL_J2349.4+0534_daily_bin247.fits scfile=/scratch/kocevski/149294/ft2_4FGL_J2349.4+0534_daily_bin247.fits outfile=/scratch/kocevski/149294/cmap_HighResolution_303350401_303609601_4FGL_J2349.4+0534_daily_bin247.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1047       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2236       1.0000         .10000E-03   10000.    
     3 'norm      '    16.196       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2057       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.035       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9095       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14386E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.867       1.0000         .10000E-03   10000.    
    16 'norm      '    48.072       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.616       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.645       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0216       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88958       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=   5869.970     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2180 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0999        14.038        .56793E-05   -.52919E-03
   2  norm          1.2246        2.5791       -.72263E-06   -.46352E-03
   3  norm          16.195        7.1655        .12863E-06    .14619E-03
   4  Prefactor     9.2060        13.130       -.79802E-07    .10406E-04
   5  Prefactor     .10000E-03    13.843        .77044E-06** at limit **
   6  Prefactor     12.035        11.487        .11177E-06    .37869E-04
   7  Prefactor     .10000E-03    6.6461        .64586E-08** at limit **
   8  norm          1.9094        1.0943        .71391E-07    .52791E-05
   9  Prefactor     .10000E-03    3.7805        .20076E-07** at limit **
  10  Prefactor     .10000E-03    19.845       -.54471E-06** at limit **
  11  norm          .10000E-03    11.607       -.12622E-05** at limit **
  12  Prefactor     .10000E-03    5.7293        .13192E-06** at limit **
  13  Prefactor     .10000E-03    95.334       -.19811E-05** at limit **
  14  Prefactor     .10000E-03    11.686        .61632E-06** at limit **
  15  Prefactor     14.883        25.745        .20165E-05    .15409E-03
  16  norm          48.068        23.381        .33393E-07    .13380E-04
  17  norm          .10000E-03    13.757        .85129E-07** at limit **
  18  Prefactor     12.616        5.4003       -.14176E-05   -.17501E-02
  19  Prefactor     27.647        36.028        .57586E-06    .20231E-04
  20  Prefactor     .10000E-03    57.871        .18150E-05** at limit **
  21  Prefactor     .10000E-03    3.2972       -.33613E-07** at limit **
  22  Normalizat    1.0215        .21643       -.23362E-07   -.32737E-05
  23  Prefactor     .88968        .14212       -.12815E-06    .20489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.09987
  norm       = 1.22456
  norm       = 16.1954
  Prefactor  = 9.20598
  Prefactor  = 0.0001
  Prefactor  = 12.0349
  Prefactor  = 0.0001
  norm       = 1.90938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 14.883
  norm       = 48.0684
  norm       = 0.0001
  Prefactor  = 12.6156
  Prefactor  = 27.6467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02151
  Prefactor  = 0.889676
 **********
 **   18 **HESSE 
 **********

 FCN=   5869.970     FROM HESSE     STATUS=OK           368 CALLS     2548 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0999        17.620        .99490E-03   -1.5303    
   2  norm          1.2246        2.5426        .15792E-03   -1.5487    
   3  norm          16.195        7.1680        .99522E-04   -1.4903    
   4  Prefactor     9.2060        13.124        .13209E-03   -1.5101    
   5  Prefactor     .10000E-03    13.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.035        11.488        .11547E-03   -1.5014    
   7  Prefactor     .10000E-03    6.6518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9094        1.0908        .58680E-04   -1.5432    
   9  Prefactor     .10000E-03    3.7872        .14545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.8537        .17892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    95.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.883        25.851        .10388E-03   -1.4936    
  16  norm          48.068        23.391        .57834E-04   -1.4320    
  17  norm          .10000E-03    13.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.616        5.7666        .11278E-03   -1.4997    
  19  Prefactor     27.647        36.103        .76195E-04   -1.4656    
  20  Prefactor     .10000E-03    58.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2979        .13587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0215        .25510        .29839E-03   -.92313    
  23  Prefactor     .88968        .16659        .21684E-03   -.96503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78629e-09
Minuit parameter uncertainties:
  1  17.007
  2  2.54283
  3  7.16839
  4  13.128
  5  8.43377e-05
  6  11.4904
  7  2.55664e-08
  8  1.09086
  9  5.32249e-06
  10  6.93188e-05
  11  0.000173851
  12  3.83112e-06
  13  0.000476995
  14  0.000196062
  15  25.8708
  16  23.3951
  17  8.1426e-05
  18  5.76687
  19  36.1311
  20  0.00026204
  21  4.44825e-07
  22  0.255408
  23  0.166686
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.620e-04  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.897e-01  1.667e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.022e+00  2.554e-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: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149294/likelihoodResults_303350401_303609601_4FGL_J2349.4+0534_daily_bin247.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) = 5869.97001895
delta logL = -8.10683113741e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5869.9699381
delta logL = -2.2541553335e-07

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 'Index     '    2.4102       1.0000          .0000       10.000    
     3 'Normalizat'    1.0215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88969       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=   5869.970     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    8228.7        .18142E-02** at limit **
   2  Index         2.4886        7.0140        .50000       -.16088E-04
   3  Normalizat    1.0215        .78193E-01    .29839E-03    .15133E-03
   4  Prefactor     .88967        .53728E-01    .21684E-03   -.10245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Index      = 2.48859
  Normalizat = 1.02151
  Prefactor  = 0.889673
 **********
 **   18 **HESSE 
 **********

 FCN=   5869.970     FROM HESSE     STATUS=OK            29 CALLS      310 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    90.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4886        6.2163        .50000       -.52624    
   3  Normalizat    1.0215        .23817        .11936E-04   -.92313    
   4  Prefactor     .88967        .16381        .86735E-05   -.96503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38276e-10
Minuit parameter uncertainties:
  1  0.00252456
  2  5.16417
  3  0.238419
  4  0.163898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149294': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5869.9699378
delta logL = 7.97026586952e-08

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.525e-03  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.489e+00  5.164e+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:  8.897e-01  1.639e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.022e+00  2.384e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/149294/cmap_HighResolution_303350401_303609601_4FGL_J2349.4+0534_daily_bin247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-30 06:49:22.298634', job_id='149294', GAL2='0.89', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1633009762.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='7.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='247' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:49:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 149294: <4FGL_J2349.4+0534_daily_bin247> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin247 357.356 5.579 303350401 303609601 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 :                                   593.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

