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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin891
RA = 357.356, Dec = 5.579
tmin = 470275201, tmax = 470534401
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='153375', job_status='RUN', time_executed='2021-09-30 06:51:42.725278', time_epoch_executed='1633009902.73' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='891'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153375/ft1_4FGL_J2349.4+0534_daily_bin891.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153375/ft2_4FGL_J2349.4+0534_daily_bin891.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153375/ft1_4FGL_J2349.4+0534_daily_bin891.fits outfile=/scratch/kocevski/153375/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin891.fits ra=357.356 dec=5.579 rad=12.0 tmin=470275201.0 tmax=470534401.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.48
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153375/ft1_filtered_4FGL_J2349.4+0534_daily_bin891.fits" evtable="EVENTS" scfile=/scratch/kocevski/153375/ft2_4FGL_J2349.4+0534_daily_bin891.fits sctable="SC_DATA" outfile=/scratch/kocevski/153375/ltcube_470275201_470534401_4FGL_J2349.4+0534_daily_bin891.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/153375/ft2_4FGL_J2349.4+0534_daily_bin891.fits
.....................!
real 11.56
user 11.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153375/ft1_filtered_4FGL_J2349.4+0534_daily_bin891.fits evtable="EVENTS" scfile=/scratch/kocevski/153375/ft2_4FGL_J2349.4+0534_daily_bin891.fits sctable="SC_DATA" expcube=/scratch/kocevski/153375/ltcube_470275201_470534401_4FGL_J2349.4+0534_daily_bin891.fits outfile=/scratch/kocevski/153375/expmap_470275201_470534401_4FGL_J2349.4+0534_daily_bin891.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/153375/ltcube_470275201_470534401_4FGL_J2349.4+0534_daily_bin891.fits
.....................!
real 191.05
user 185.74
sys 4.92

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/153375/ft1_filtered_4FGL_J2349.4+0534_daily_bin891.fits scfile=/scratch/kocevski/153375/ft2_4FGL_J2349.4+0534_daily_bin891.fits outfile=/scratch/kocevski/153375/cmap_470275201_470534401_4FGL_J2349.4+0534_daily_bin891.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153375/ft1_filtered_4FGL_J2349.4+0534_daily_bin891.fits scfile=/scratch/kocevski/153375/ft2_4FGL_J2349.4+0534_daily_bin891.fits outfile=/scratch/kocevski/153375/cmap_HighResolution_470275201_470534401_4FGL_J2349.4+0534_daily_bin891.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.614       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3478       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.267       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8534       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    17.113       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.7463       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.233       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0346       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80534       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=   7416.811     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2516 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.616        12.301       -.20642E-07   -.17492E-07
   2  norm          .10000E-03    .59661       -.50961E-07** at limit **
   3  norm          .10000E-03    2.7684       -.52249E-07** at limit **
   4  Prefactor     .10000E-03    2.3738       -.36759E-07** at limit **
   5  Prefactor     .10001E-03    19.580       -.59391E-05** at limit **
   6  Prefactor     3.3469        8.5699        .52695E-05   -.10893E-02
   7  Prefactor     .10000E-03    9.4286       -.11296E-05** at limit **
   8  norm          12.267        1.6582        .39686E-08   -.63259E-06
   9  Prefactor     4.8534        7.7973        .52407E-07   -.75917E-04
  10  Prefactor     .10002E-03    22.576        .10520E-04** at limit **
  11  norm          17.112        8.4838       -.63713E-07   -.10093E-03
  12  Prefactor     .10000E-03    5.4664        .53722E-06** at limit **
  13  Prefactor     .10000E-03    59.061       -.30271E-05** at limit **
  14  Prefactor     .10000E-03    4.5854       -.20620E-07** at limit **
  15  Prefactor     .10000E-03    12.386        .24679E-05** at limit **
  16  norm          9.7455        12.730        .10483E-06   -.42414E-05
  17  norm          .10000E-03    5.2614       -.71998E-06** at limit **
  18  Prefactor     .10000E-03    1.4038        .70004E-07** at limit **
  19  Prefactor     .10000E-03    9.7232        .37951E-06** at limit **
  20  Prefactor     10.230        23.258       -.82232E-06   -.76248E-04
  21  Prefactor     .10000E-03    20.659       -.31442E-05** at limit **
  22  Normalizat    1.0344        .17541        .72583E-07    .51953E-05
  23  Prefactor     .80542        .11969       -.29427E-06    .16346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6155
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 3.34692
  Prefactor  = 0.0001
  norm       = 12.2667
  Prefactor  = 4.85338
  Prefactor  = 0.000100025
  norm       = 17.1115
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.74555
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2301
  Prefactor  = 0.000100002
  Normalizat = 1.03445
  Prefactor  = 0.805422
 **********
 **   18 **HESSE 
 **********

 FCN=   7416.811     FROM HESSE     STATUS=OK           364 CALLS     2880 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.616        12.347        .10856E-03   -1.4970    
   2  norm          .10000E-03    .59939        .64888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8285        .13986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3764        .12958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    20.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3469        10.413        .11060E-02   -1.5342    
   7  Prefactor     .10000E-03    9.4968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.267        1.6599        .39415E-04   -1.5007    
   9  Prefactor     4.8534        7.7833        .18260E-03   -1.5267    
  10  Prefactor     .10002E-03    24.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          17.112        8.4612        .96819E-04   -1.4880    
  12  Prefactor     .10000E-03    5.5529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    59.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6629        .18005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.7455        12.738        .12836E-03   -1.5084    
  17  norm          .10000E-03    5.2784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4309        .99600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.7343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.230        23.363        .12525E-03   -1.5068    
  21  Prefactor     .10000E-03    21.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0344        .20617        .27783E-03   -.91885    
  23  Prefactor     .80542        .14061        .21533E-03   -.99529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54997e-09
Minuit parameter uncertainties:
  1  12.3495
  2  1.03137e-06
  3  3.28592e-06
  4  1.80361e-06
  5  0.000793913
  6  10.4188
  7  0.000104019
  8  1.65986
  9  7.78496
  10  0.00155436
  11  8.46178
  12  3.35957e-05
  13  0.000698341
  14  1.43964e-06
  15  0.000260476
  16  12.7415
  17  4.95917e-05
  18  2.19456e-06
  19  3.69522e-05
  20  23.3839
  21  0.000405058
  22  0.20633
  23  0.140675
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.023e+01  2.338e+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:  8.054e-01  1.407e-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.034e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153375/likelihoodResults_470275201_470534401_4FGL_J2349.4+0534_daily_bin891.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) = 7416.46703973
delta logL = 0.34393585726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7416.46691836
delta logL = 0.3440572298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1082       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2965       1.0000          .0000       10.000    
     3 'Normalizat'    1.0012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81635       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=   7416.467     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      279 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1142        191.35        .40612E-02    .30114E-03
   2  Index         3.2957        3.8668        .12482        .17224E-03
   3  Normalizat    1.0015        .57902E-01    .46181E-01    .26171E-04
   4  Prefactor     .81607        .39290E-01    .43930E-01    .20788E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11422
  Index      = 3.2957
  Normalizat = 1.0015
  Prefactor  = 0.816067
 **********
 **   18 **HESSE 
 **********

 FCN=   7416.467     FROM HESSE     STATUS=OK            33 CALLS      312 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1142        22.221        .16245E-03   -1.5213    
   2  Index         3.2957        1.7830        .77033E-02   -.34783    
   3  Normalizat    1.0015        .20577        .28165E-03   -.92980    
   4  Prefactor     .81607        .14039        .21400E-03   -.99139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15595e-10
Minuit parameter uncertainties:
  1  22.2513
  2  1.82876
  3  0.20593
  4  0.140455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153375': 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) = 7416.46691601
delta logL = 0.344059583073

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  6.114e+00  2.225e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.296e+00  1.829e+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.161e-01  1.405e-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.001e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
Ra Dec: 357.356 5.579

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/153375/cmap_HighResolution_470275201_470534401_4FGL_J2349.4+0534_daily_bin891.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-30 07:05:04.705837', job_id='153375', GAL2='0.82', fit_tolerance='1e-08', EG2='1.00', EG='1.03', time_epoch_completed='1633010704.71', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.44e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='891' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:05:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 153375: <4FGL_J2349.4+0534_daily_bin891> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin891> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:25 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 06:50:27 2021
Terminated at Thu Sep 30 07:05:05 2021
Results reported at Thu Sep 30 07:05:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin891 357.356 5.579 470275201 470534401 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 :                                   708.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

