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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1589
RA = 357.356, Dec = 5.579
tmin = 651196801, tmax = 651456001
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='155435', job_status='RUN', time_executed='2021-09-30 06:58:14.017112', time_epoch_executed='1633010294.02' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155435/ft1_4FGL_J2349.4+0534_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155435/ft2_4FGL_J2349.4+0534_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155435/ft1_4FGL_J2349.4+0534_daily_bin1589.fits outfile=/scratch/kocevski/155435/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1589.fits ra=357.356 dec=5.579 rad=12.0 tmin=651196801.0 tmax=651456001.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.56
user 3.34
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155435/ft1_filtered_4FGL_J2349.4+0534_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/155435/ft2_4FGL_J2349.4+0534_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/155435/ltcube_651196801_651456001_4FGL_J2349.4+0534_daily_bin1589.fits outfile=/scratch/kocevski/155435/expmap_651196801_651456001_4FGL_J2349.4+0534_daily_bin1589.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/155435/ltcube_651196801_651456001_4FGL_J2349.4+0534_daily_bin1589.fits
.....................!
real 190.89
user 185.92
sys 4.61

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/155435/ft1_filtered_4FGL_J2349.4+0534_daily_bin1589.fits scfile=/scratch/kocevski/155435/ft2_4FGL_J2349.4+0534_daily_bin1589.fits outfile=/scratch/kocevski/155435/cmap_651196801_651456001_4FGL_J2349.4+0534_daily_bin1589.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/155435/ft1_filtered_4FGL_J2349.4+0534_daily_bin1589.fits scfile=/scratch/kocevski/155435/ft2_4FGL_J2349.4+0534_daily_bin1589.fits outfile=/scratch/kocevski/155435/cmap_HighResolution_651196801_651456001_4FGL_J2349.4+0534_daily_bin1589.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.193       1.0000         .10000E-03   10000.    
     2 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9537       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.045       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8573       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34860E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .68600E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .85243E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    110.91       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0700       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1169       1.0000         .10000E-03   10000.    
    13 'Prefactor '    106.72       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.297       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9724       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10377E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .39699       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21842E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6354       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1880       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .55270       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1090       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=   5376.980     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     3298 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.238        20.521        .11070E-06   -.16024E-05
   2  norm          .10000E-03    1.3237       -.75008E-07** at limit **
   3  norm          11.403        5.3611        .12530E-07   -.72848E-05
   4  Prefactor     6.9307        12.046        .16456E-06    .74723E-06
   5  Prefactor     20.148        33.687       -.95248E-07    .49184E-05
   6  Prefactor     2.8495        13.467        .25726E-06    .11954E-04
   7  Prefactor     .10000E-03    7.8502        .35980E-07** at limit **
   8  norm          .71466E-01    1.5831        .25051E-05    .96230E-03
   9  Prefactor     .10000E-03    16.652       -.17829E-06** at limit **
  10  Prefactor     110.90        66.161       -.41037E-07   -.39361E-04
  11  norm          2.0716        6.0298       -.10721E-05   -.87449E-05
  12  Prefactor     5.1175        6.6005        .11759E-06   -.57307E-05
  13  Prefactor     106.06        169.33       -.82250E-05   -.39906E-04
  14  Prefactor     10.333        15.449       -.16024E-05   -.32648E-03
  15  Prefactor     3.9576        40.937        .83489E-06    .17363E-04
  16  norm          .10000E-03    3.2910        .62967E-08** at limit **
  17  norm          .10000E-03    19.275        .40100E-07** at limit **
  18  Prefactor     .39591        12.689        .72518E-05   -.46063E-03
  19  Prefactor     .10000E-03    25.177       -.25358E-06** at limit **
  20  Prefactor     7.6300        12.199        .10320E-06    .23620E-05
  21  Prefactor     2.1918        17.334       -.29566E-06   -.34083E-04
  22  Normalizat    .55256        .21762       -.26337E-06   -.70276E-04
  23  Prefactor     1.1090        .14702       -.28797E-06   -.11333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.238
  norm       = 0.0001
  norm       = 11.4028
  Prefactor  = 6.93075
  Prefactor  = 20.1479
  Prefactor  = 2.84949
  Prefactor  = 0.0001
  norm       = 0.071466
  Prefactor  = 0.0001
  Prefactor  = 110.9
  norm       = 2.07163
  Prefactor  = 5.11748
  Prefactor  = 106.064
  Prefactor  = 10.3334
  Prefactor  = 3.95765
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.39591
  Prefactor  = 0.0001
  Prefactor  = 7.63003
  Prefactor  = 2.19181
  Normalizat = 0.552564
  Prefactor  = 1.10898
 **********
 **   18 **HESSE 
 **********

 FCN=   5376.980     FROM HESSE     STATUS=OK           378 CALLS     3676 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.238        20.484        .64024E-04   -1.4454    
   2  norm          .10000E-03    1.3385        .82143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.403        5.3558        .11076E-03   -1.5032    
   4  Prefactor     6.9307        12.028        .15214E-03   -1.5181    
   5  Prefactor     20.148        33.684        .89461E-04   -1.4810    
   6  Prefactor     2.8495        13.428        .24051E-03   -1.5370    
   7  Prefactor     .10000E-03    7.8605        .20065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .71466E-01    2.4300        .12749E-02   -1.5655    
   9  Prefactor     .10000E-03    17.383        .41728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     110.90        66.143        .38195E-04   -1.3598    
  11  norm          2.0716        6.0354        .13951E-02   -1.5420    
  12  Prefactor     5.1175        6.5930        .17774E-03   -1.5255    
  13  Prefactor     106.06        169.97        .19465E-03   -1.3645    
  14  Prefactor     10.333        15.646        .12486E-03   -1.5065    
  15  Prefactor     3.9576        40.636        .20237E-03   -1.5310    
  16  norm          .10000E-03    3.2917        .12992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .39591        22.127        .22892E-02   -1.5582    
  19  Prefactor     .10000E-03    25.223        .20148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6300        12.189        .14513E-03   -1.5155    
  21  Prefactor     2.1918        17.284        .27825E-03   -1.5412    
  22  Normalizat    .55256        .23798        .35469E-03   -1.1004    
  23  Prefactor     1.1090        .16385        .18541E-03   -.89180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09105e-09
Minuit parameter uncertainties:
  1  20.4873
  2  4.33722e-06
  3  5.356
  4  12.0321
  5  33.7161
  6  12.3755
  7  5.5081e-06
  8  0.832906
  9  0.000128835
  10  66.1872
  11  6.03721
  12  6.59391
  13  170.755
  14  15.652
  15  25.3851
  16  8.93319e-07
  17  1.68964e-05
  18  5.92112
  19  2.8251e-05
  20  12.1932
  21  12.3143
  22  0.238421
  23  0.163922
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.109e+00  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:  5.526e-01  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/155435/likelihoodResults_651196801_651456001_4FGL_J2349.4+0534_daily_bin1589.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) = 5376.84425283
delta logL = 0.135343799863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5376.84405829
delta logL = 0.135538341999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.201       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9224       1.0000          .0000       10.000    
     3 'Normalizat'    .55936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1052       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=   5376.844     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      269 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.228        1087.1        .28671E-02    .15433E-03
   2  Index         1.9241        6.3626        .26255        .49403E-05
   3  Normalizat    .55936        .12912        .79623E-01    .30367E-04
   4  Prefactor     1.1052        .72140E-01    .37391E-01   -.91316E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2275
  Index      = 1.92413
  Normalizat = 0.559364
  Prefactor  = 1.1052
 **********
 **   18 **HESSE 
 **********

 FCN=   5376.844     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.228        17.925        .57342E-03   -1.5008    
   2  Index         1.9241        .90593        .12791E-01   -.66261    
   3  Normalizat    .55936        .22159        .35262E-03   -1.0974    
   4  Prefactor     1.1052        .16129        .18565E-03   -.89301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21072e-11
Minuit parameter uncertainties:
  1  17.9333
  2  0.914103
  3  0.22194
  4  0.161363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155435': 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) = 5376.84405481
delta logL = 0.135541823104

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.223e+01  1.793e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.924e+00  9.141e-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.105e+00  1.614e-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.594e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
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/155435/cmap_HighResolution_651196801_651456001_4FGL_J2349.4+0534_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-09-30 07:09:00.675022', job_id='155435', GAL2='1.11', fit_tolerance='1e-08', EG2='0.56', EG='0.55', time_epoch_completed='1633010940.68', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.36e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1589' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:09:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 155435: <4FGL_J2349.4+0534_daily_bin1589> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1589 357.356 5.579 651196801 651456001 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 :                                   636.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            783 sec.

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

