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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1166
RA = 357.356, Dec = 5.579
tmin = 541555201, tmax = 541814401
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='153771', job_status='RUN', time_executed='2021-09-30 06:53:23.163871', time_epoch_executed='1633010003.16' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153771/ft1_4FGL_J2349.4+0534_daily_bin1166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153771/ft2_4FGL_J2349.4+0534_daily_bin1166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153771/ft1_4FGL_J2349.4+0534_daily_bin1166.fits outfile=/scratch/kocevski/153771/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1166.fits ra=357.356 dec=5.579 rad=12.0 tmin=541555201.0 tmax=541814401.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.61
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153771/ft1_filtered_4FGL_J2349.4+0534_daily_bin1166.fits" evtable="EVENTS" scfile=/scratch/kocevski/153771/ft2_4FGL_J2349.4+0534_daily_bin1166.fits sctable="SC_DATA" outfile=/scratch/kocevski/153771/ltcube_541555201_541814401_4FGL_J2349.4+0534_daily_bin1166.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/153771/ft2_4FGL_J2349.4+0534_daily_bin1166.fits
.....................!
real 11.72
user 11.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153771/ft1_filtered_4FGL_J2349.4+0534_daily_bin1166.fits evtable="EVENTS" scfile=/scratch/kocevski/153771/ft2_4FGL_J2349.4+0534_daily_bin1166.fits sctable="SC_DATA" expcube=/scratch/kocevski/153771/ltcube_541555201_541814401_4FGL_J2349.4+0534_daily_bin1166.fits outfile=/scratch/kocevski/153771/expmap_541555201_541814401_4FGL_J2349.4+0534_daily_bin1166.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/153771/ltcube_541555201_541814401_4FGL_J2349.4+0534_daily_bin1166.fits
.....................!
real 189.18
user 184.56
sys 4.25

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/153771/ft1_filtered_4FGL_J2349.4+0534_daily_bin1166.fits scfile=/scratch/kocevski/153771/ft2_4FGL_J2349.4+0534_daily_bin1166.fits outfile=/scratch/kocevski/153771/cmap_541555201_541814401_4FGL_J2349.4+0534_daily_bin1166.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153771/ft1_filtered_4FGL_J2349.4+0534_daily_bin1166.fits scfile=/scratch/kocevski/153771/ft2_4FGL_J2349.4+0534_daily_bin1166.fits outfile=/scratch/kocevski/153771/cmap_HighResolution_541555201_541814401_4FGL_J2349.4+0534_daily_bin1166.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.558       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.7415       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.556       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1646       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4419       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16239E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5085       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4447       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.182       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .55859       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3445       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=   6029.735     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2512 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.560        10.881        .39148E-07    .75418E-05
   2  norm          .10000E-03    .67205       -.29937E-08** at limit **
   3  norm          4.7424        5.3187       -.17412E-08   -.16626E-04
   4  Prefactor     22.562        16.042       -.37733E-06   -.15894E-04
   5  Prefactor     .10000E-03    48.243        .13870E-04** at limit **
   6  Prefactor     2.1645        11.209       -.14677E-05   -.28210E-03
   7  Prefactor     .10000E-03    67.712       -.13837E-05** at limit **
   8  norm          3.4419        1.3864       -.24198E-07    .11986E-03
   9  Prefactor     .10034E-03    9.3695       -.22514E-05** at limit **
  10  Prefactor     .10000E-03    21.222       -.13443E-05** at limit **
  11  norm          2.4571        13.068       -.14240E-05    .22045E-03
  12  Prefactor     2.4726        6.3429        .93998E-06   -.29793E-03
  13  Prefactor     .10000E-03    71.354       -.87488E-05** at limit **
  14  Prefactor     .10000E-03    4.4098       -.65793E-07** at limit **
  15  Prefactor     .10000E-03    10.992        .45404E-05** at limit **
  16  norm          .10000E-03    10.299       -.20854E-05** at limit **
  17  norm          .10000E-03    13.926       -.55652E-05** at limit **
  18  Prefactor     .10000E-03    3.3798        .62790E-07** at limit **
  19  Prefactor     47.183        41.991        .15302E-05    .43603E-04
  20  Prefactor     .10000E-03    15.566        .59372E-05** at limit **
  21  Prefactor     .10000E-03    11.776       -.20918E-05** at limit **
  22  Normalizat    .55841        .22513       -.89775E-07    .16156E-03
  23  Prefactor     1.3444        .15802        .33457E-06    .33125E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5604
  norm       = 0.0001
  norm       = 4.74244
  Prefactor  = 22.5618
  Prefactor  = 0.000100001
  Prefactor  = 2.16451
  Prefactor  = 0.0001
  norm       = 3.44187
  Prefactor  = 0.000100339
  Prefactor  = 0.0001
  norm       = 2.45714
  Prefactor  = 2.47257
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.1833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.558413
  Prefactor  = 1.34441
 **********
 **   18 **HESSE 
 **********

 FCN=   6029.735     FROM HESSE     STATUS=OK           364 CALLS     2876 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.560        10.886        .11783E-03   -1.5028    
   2  norm          .10000E-03    .67453        .62136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.7424        5.3036        .17640E-03   -1.5272    
   4  Prefactor     22.562        16.049        .84340E-04   -1.4758    
   5  Prefactor     .10000E-03    48.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1645        14.885        .13997E-02   -1.5414    
   7  Prefactor     .10000E-03    69.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4419        1.3867        .56047E-04   -1.5337    
   9  Prefactor     .10034E-03    42.516        .39856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4571        13.248        .25799E-03   -1.5394    
  12  Prefactor     2.4726        12.943        .13083E-02   -1.5393    
  13  Prefactor     .10000E-03    71.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4190        .15923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4786        .27857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     47.183        42.044        .58375E-04   -1.4333    
  20  Prefactor     .10000E-03    15.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .55841        .24810        .38311E-03   -1.0978    
  23  Prefactor     1.3444        .17230        .18825E-03   -.81996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4692e-09
Minuit parameter uncertainties:
  1  10.8883
  2  3.27558e-08
  3  5.30416
  4  16.0518
  5  0.000474773
  6  11.3559
  7  7.24928e-05
  8  1.38668
  9  0.00759908
  10  3.51528e-05
  11  11.4145
  12  11.3178
  13  0.000381157
  14  1.2712e-06
  15  8.6305e-05
  16  3.42947e-05
  17  0.000107084
  18  3.19209e-07
  19  42.0703
  20  0.000100777
  21  3.97831e-05
  22  0.248595
  23  0.172378
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.008e-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:  1.344e+00  1.724e-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.584e-01  2.486e-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: 8.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153771/likelihoodResults_541555201_541814401_4FGL_J2349.4+0534_daily_bin1166.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) = 6029.73501181
delta logL = -0.00030551366217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6029.73470661
delta logL = -3.07984009851e-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.3601       1.0000          .0000       10.000    
     3 'Normalizat'    .55843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3444       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=   6029.735     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1258.1        .90712E-02** at limit **
   2  Index         2.3768        7.8783        .50000       -.10444E-04
   3  Normalizat    .55841        .55259E-01    .86482E-01    .32791E-04
   4  Prefactor     1.3444        .40707E-01    .31877E-01    .71236E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37684
  Normalizat = 0.558412
  Prefactor  = 1.34441
 **********
 **   18 **HESSE 
 **********

 FCN=   6029.735     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6337.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3768        5.5877        .50000       -.55228    
   3  Normalizat    .55841        .11834        .38311E-03   -1.0978    
   4  Prefactor     1.3444        .87514E-01    .18825E-03   -.81996    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.92339e-08
Minuit parameter uncertainties:
  1  0.00142159
  2  60.8394
  3  0.118391
  4  0.0875238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153771': 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) = 6029.73470653
delta logL = -2.33467289945e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.422e-03  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.377e+00  6.084e+01  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.344e+00  8.752e-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:  5.584e-01  1.184e-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/153771/cmap_HighResolution_541555201_541814401_4FGL_J2349.4+0534_daily_bin1166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='8.91e-08', time_completed='2021-09-30 07:04:05.970222', job_id='153771', GAL2='1.34', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1633010645.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='-2.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1166' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:04:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 153771: <4FGL_J2349.4+0534_daily_bin1166> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1166 357.356 5.579 541555201 541814401 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 :                                   621.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

