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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin446
RA = 357.356, Dec = 5.579
tmin = 354931201, tmax = 355190401
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='150611', job_status='RUN', time_executed='2021-09-30 06:43:35.097530', time_epoch_executed='1633009415.1' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150611

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150611/ft1_4FGL_J2349.4+0534_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150611/ft2_4FGL_J2349.4+0534_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150611/ft1_4FGL_J2349.4+0534_daily_bin446.fits outfile=/scratch/kocevski/150611/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin446.fits ra=357.356 dec=5.579 rad=12.0 tmin=354931201.0 tmax=355190401.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.33
user 3.10
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150611/ft1_filtered_4FGL_J2349.4+0534_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/150611/ft2_4FGL_J2349.4+0534_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/150611/ltcube_354931201_355190401_4FGL_J2349.4+0534_daily_bin446.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/150611/ft2_4FGL_J2349.4+0534_daily_bin446.fits
.....................!
real 11.51
user 11.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150611/ft1_filtered_4FGL_J2349.4+0534_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/150611/ft2_4FGL_J2349.4+0534_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/150611/ltcube_354931201_355190401_4FGL_J2349.4+0534_daily_bin446.fits outfile=/scratch/kocevski/150611/expmap_354931201_355190401_4FGL_J2349.4+0534_daily_bin446.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/150611/ltcube_354931201_355190401_4FGL_J2349.4+0534_daily_bin446.fits
.....................!
real 189.73
user 185.41
sys 4.00

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/150611/ft1_filtered_4FGL_J2349.4+0534_daily_bin446.fits scfile=/scratch/kocevski/150611/ft2_4FGL_J2349.4+0534_daily_bin446.fits outfile=/scratch/kocevski/150611/cmap_354931201_355190401_4FGL_J2349.4+0534_daily_bin446.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150611/ft1_filtered_4FGL_J2349.4+0534_daily_bin446.fits scfile=/scratch/kocevski/150611/ft2_4FGL_J2349.4+0534_daily_bin446.fits outfile=/scratch/kocevski/150611/cmap_HighResolution_354931201_355190401_4FGL_J2349.4+0534_daily_bin446.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.551       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0410       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6847       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18685E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5263       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .30377E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .35400       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.606       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0774       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.156       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.813       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1763       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89604       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=   7371.494     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2549 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.550        18.187       -.38364E-07    .45977E-04
   2  norm          3.0424        3.1109       -.24676E-06    .27907E-03
   3  norm          5.6891        4.6312        .13353E-06    .33181E-03
   4  Prefactor     .10000E-03    8.0087        .19444E-05** at limit **
   5  Prefactor     .10000E-03    10.356        .90369E-06** at limit **
   6  Prefactor     9.8673        10.347        .11893E-06    .85139E-04
   7  Prefactor     .10000E-03    4.3344       -.20874E-07** at limit **
   8  norm          1.5258        .84007        .18318E-07   -.26220E-03
   9  Prefactor     .10000E-03    2.8500       -.42605E-07** at limit **
  10  Prefactor     .10000E-03    13.496        .10469E-05** at limit **
  11  norm          .10003E-03    6.2936        .60014E-06** at limit **
  12  Prefactor     .31911        15.077       -.61550E-05    .21730E-03
  13  Prefactor     .10000E-03    55.649        .29500E-05** at limit **
  14  Prefactor     .37680        24.851       -.74700E-05   -.10476E-04
  15  Prefactor     .10000E-03    7.4321       -.76092E-07** at limit **
  16  norm          11.608        16.614       -.14040E-05    .19245E-03
  17  norm          2.0472        13.892       -.99360E-06   -.16780E-03
  18  Prefactor     .10000E-03    1.9017       -.15573E-06** at limit **
  19  Prefactor     10.150        22.721        .16626E-05    .96301E-04
  20  Prefactor     27.811        21.604       -.32586E-06    .21600E-04
  21  Prefactor     .10000E-03    11.789       -.23494E-05** at limit **
  22  Normalizat    1.1765        .19868        .13323E-05    .29942E-03
  23  Prefactor     .89603        .12678        .13652E-06    .25955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.5503
  norm       = 3.04239
  norm       = 5.68914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.86735
  Prefactor  = 0.0001
  norm       = 1.52579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100027
  Prefactor  = 0.319109
  Prefactor  = 0.000100002
  Prefactor  = 0.376799
  Prefactor  = 0.0001
  norm       = 11.6076
  norm       = 2.04723
  Prefactor  = 0.0001
  Prefactor  = 10.1498
  Prefactor  = 27.8106
  Prefactor  = 0.000100001
  Normalizat = 1.17646
  Prefactor  = 0.896034
 **********
 **   18 **HESSE 
 **********

 FCN=   7371.494     FROM HESSE     STATUS=OK           374 CALLS     2923 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.550        18.121        .76325E-04   -1.4658    
   2  norm          3.0424        3.1310        .13219E-03   -1.5359    
   3  norm          5.6891        4.5909        .15842E-03   -1.5231    
   4  Prefactor     .10000E-03    35.295        .41612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8673        10.345        .12757E-03   -1.5080    
   7  Prefactor     .10000E-03    4.3394        .17458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5258        .83306        .56120E-04   -1.5461    
   9  Prefactor     .10000E-03    2.8540        .14153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10003E-03    15.770        .37261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31911        28.577        .29714E-02   -1.5595    
  13  Prefactor     .10000E-03    56.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .37680        46.408        .39869E-02   -1.5585    
  15  Prefactor     .10000E-03    7.4431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.608        17.058        .58797E-03   -1.5026    
  17  norm          2.0472        14.990        .28655E-03   -1.5422    
  18  Prefactor     .10000E-03    1.9321        .11527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.150        22.854        .12573E-03   -1.5071    
  20  Prefactor     27.811        21.621        .75965E-04   -1.4653    
  21  Prefactor     .10000E-03    12.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1765        .22772        .28362E-03   -.87333    
  23  Prefactor     .89603        .14745        .21876E-03   -.96280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67922e-08
Minuit parameter uncertainties:
  1  18.1245
  2  3.13115
  3  4.5912
  4  6.90256e-06
  5  7.65962e-05
  6  10.3468
  7  2.93268e-06
  8  0.833064
  9  2.34581e-08
  10  9.77925e-05
  11  0.00130354
  12  6.04168
  13  0.000613092
  14  8.36892
  15  5.11118e-06
  16  17.0649
  17  11.083
  18  6.75077e-06
  19  22.8737
  20  21.6269
  21  0.000204328
  22  0.227907
  23  0.147513
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.781e+01  2.163e+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.960e-01  1.475e-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.176e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.30e-05

TS (Fixed Index): 2.64
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150611/likelihoodResults_354931201_355190401_4FGL_J2349.4+0534_daily_bin446.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) = 7371.34998619
delta logL = 0.143927747631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7371.34280363
delta logL = 0.151110300018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.492       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1283       1.0000          .0000       10.000    
     3 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88888       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=   7371.343     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      308 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.501        28.726        .67268E-04    .19605E-04
   2  Index         2.1282        .58933        .93595E-02    .18212E-03
   3  Normalizat    1.1928        .21220        .28192E-03    .26615E-05
   4  Prefactor     .88891        .14496        .21950E-03   -.12431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.5007
  Index      = 2.12819
  Normalizat = 1.1928
  Prefactor  = 0.888914
 **********
 **   18 **HESSE 
 **********

 FCN=   7371.343     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.501        28.436        .26907E-05   -1.4516    
   2  Index         2.1282        .58311        .18719E-02   -.61182    
   3  Normalizat    1.1928        .21229        .11277E-04   -.86826    
   4  Prefactor     .88891        .14505        .87799E-05   -.96530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64649e-12
Minuit parameter uncertainties:
  1  28.4471
  2  0.585102
  3  0.212445
  4  0.145114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150611': 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) = 7371.34280336
delta logL = 0.151110576995

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.550e+01  2.845e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.128e+00  5.851e-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:  8.889e-01  1.451e-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.193e+00  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.13 +/- 0.59
Photon Flux (Free Index): 4.22e-08 +/- 4.25e-08
Energy Flux (Free Index): 2.18e-05 +/- 2.11e-05

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/150611/cmap_HighResolution_354931201_355190401_4FGL_J2349.4+0534_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='2.18e-05', photon_flux_error='4.31e-08', dlogl='1.51e-01', energy_flux='1.67e-05', photon_flux2='4.22e-08', job_status='DONE', time_completed='2021-09-30 06:55:26.348907', photon_index_error2='0.59', photon_index2='2.13', ts='2.64', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='2.11e-05', EG='1.18', time_epoch_completed='1633010126.35', return_code='0', job_id='150611', GAL2='0.89', EG2='1.19', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.25e-08', ts2='2.94', photon_index='2.47' WHERE bin_id='446' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:55:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 150611: <4FGL_J2349.4+0534_daily_bin446> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin446> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:21 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40:23 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:40:23 2021
Terminated at Thu Sep 30 06:55:27 2021
Results reported at Thu Sep 30 06:55:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin446 357.356 5.579 354931201 355190401 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 :                                   710.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            906 sec.

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

