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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1026
RA = 357.356, Dec = 5.579
tmin = 505267201, tmax = 505526401
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='153571', job_status='RUN', time_executed='2021-09-30 06:54:24.277901', time_epoch_executed='1633010064.28' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153571/ft1_4FGL_J2349.4+0534_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153571/ft2_4FGL_J2349.4+0534_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153571/ft1_4FGL_J2349.4+0534_daily_bin1026.fits outfile=/scratch/kocevski/153571/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1026.fits ra=357.356 dec=5.579 rad=12.0 tmin=505267201.0 tmax=505526401.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.57
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153571/ft1_filtered_4FGL_J2349.4+0534_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/153571/ft2_4FGL_J2349.4+0534_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/153571/ltcube_505267201_505526401_4FGL_J2349.4+0534_daily_bin1026.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/153571/ft2_4FGL_J2349.4+0534_daily_bin1026.fits
.....................!
real 12.32
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153571/ft1_filtered_4FGL_J2349.4+0534_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/153571/ft2_4FGL_J2349.4+0534_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/153571/ltcube_505267201_505526401_4FGL_J2349.4+0534_daily_bin1026.fits outfile=/scratch/kocevski/153571/expmap_505267201_505526401_4FGL_J2349.4+0534_daily_bin1026.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/153571/ltcube_505267201_505526401_4FGL_J2349.4+0534_daily_bin1026.fits
.....................!
real 190.88
user 185.43
sys 5.12

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/153571/ft1_filtered_4FGL_J2349.4+0534_daily_bin1026.fits scfile=/scratch/kocevski/153571/ft2_4FGL_J2349.4+0534_daily_bin1026.fits outfile=/scratch/kocevski/153571/cmap_505267201_505526401_4FGL_J2349.4+0534_daily_bin1026.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/153571/ft1_filtered_4FGL_J2349.4+0534_daily_bin1026.fits scfile=/scratch/kocevski/153571/ft2_4FGL_J2349.4+0534_daily_bin1026.fits outfile=/scratch/kocevski/153571/cmap_HighResolution_505267201_505526401_4FGL_J2349.4+0534_daily_bin1026.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.7826       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1279       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.383       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.934       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.953       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2320       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.695       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.519       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9952       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1972       1.0000         .10000E-03   10000.    
    16 'norm      '    20.493       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3607       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4494       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.430       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33971       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97929       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82101       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=   6431.933     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2178 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5353       -.26337E-07** at limit **
   2  norm          4.7818        2.8918        .10339E-06    .46096E-04
   3  norm          1.1217        4.9744        .15506E-05    .96347E-04
   4  Prefactor     11.397        14.968       -.12845E-05   -.13659E-03
   5  Prefactor     .10000E-03    10.777        .53742E-07** at limit **
   6  Prefactor     21.931        14.546       -.10971E-06   -.12024E-04
   7  Prefactor     23.946        17.646       -.33686E-06   -.41674E-04
   8  norm          1.2318        1.0398        .27243E-07    .21280E-05
   9  Prefactor     15.691        11.574       -.58193E-06   -.10602E-04
  10  Prefactor     .10000E-03    12.901        .11155E-06** at limit **
  11  norm          11.521        9.3428        .76267E-06    .24272E-03
  12  Prefactor     .10000E-03    3.1522       -.68129E-06** at limit **
  13  Prefactor     .10000E-03    74.820        .25239E-06** at limit **
  14  Prefactor     7.9947        8.9489        .19686E-06    .41404E-04
  15  Prefactor     2.1945        23.425        .75384E-05   -.11735E-03
  16  norm          20.486        15.105       -.18596E-06   -.21399E-04
  17  norm          6.3586        13.686        .19117E-06    .21090E-04
  18  Prefactor     2.4494        2.9351        .52876E-07    .13766E-04
  19  Prefactor     46.443        32.104       -.15688E-05   -.10244E-03
  20  Prefactor     .72359E-01    11.667       -.47360E-06    .43581E-04
  21  Prefactor     .10000E-03    4.1332        .15064E-08** at limit **
  22  Normalizat    .97894        .19550       -.22645E-06   -.41267E-04
  23  Prefactor     .82149        .12945       -.14641E-06   -.26460E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.78176
  norm       = 1.12168
  Prefactor  = 11.397
  Prefactor  = 0.0001
  Prefactor  = 21.9305
  Prefactor  = 23.9456
  norm       = 1.23177
  Prefactor  = 15.6912
  Prefactor  = 0.0001
  norm       = 11.5212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.99468
  Prefactor  = 2.19448
  norm       = 20.4864
  norm       = 6.35862
  Prefactor  = 2.44938
  Prefactor  = 46.4435
  Prefactor  = 0.0723588
  Prefactor  = 0.0001
  Normalizat = 0.978939
  Prefactor  = 0.82149
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.933     FROM HESSE     STATUS=OK           386 CALLS     2564 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5394        .16677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7818        2.8992        .99895E-04   -1.5271    
   3  norm          1.1217        4.8833        .31764E-03   -1.5496    
   4  Prefactor     11.397        14.826        .11874E-03   -1.5033    
   5  Prefactor     .10000E-03    10.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.931        14.542        .85524E-04   -1.4771    
   7  Prefactor     23.946        17.637        .81846E-04   -1.4729    
   8  norm          1.2318        1.0201        .71761E-04   -1.5486    
   9  Prefactor     15.691        11.556        .10110E-03   -1.4916    
  10  Prefactor     .10000E-03    12.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.521        9.4055        .11804E-03   -1.5029    
  12  Prefactor     .10000E-03    3.2184        .13996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    74.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9947        8.9752        .14180E-03   -1.5142    
  15  Prefactor     2.1945        23.963        .13880E-02   -1.5412    
  16  norm          20.486        15.106        .88478E-04   -1.4802    
  17  norm          6.3586        13.734        .15915E-03   -1.5204    
  18  Prefactor     2.4494        2.9231        .14369E-03   -1.5395    
  19  Prefactor     46.443        32.037        .58843E-04   -1.4344    
  20  Prefactor     .72359E-01    16.845        .81815E-01   -1.5654    
  21  Prefactor     .10000E-03    4.1369        .15923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .97894        .22315        .28106E-03   -.93739    
  23  Prefactor     .82149        .14852        .21085E-03   -.98941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00526e-10
Minuit parameter uncertainties:
  1  3.79128e-07
  2  2.89932
  3  4.68127
  4  14.831
  5  1.65638e-06
  6  14.5444
  7  17.6409
  8  1.02013
  9  11.5573
  10  1.24417e-05
  11  9.40669
  12  6.38032e-05
  13  2.28984e-05
  14  8.97674
  15  14.5103
  16  15.1089
  17  13.7407
  18  2.92328
  19  32.0488
  20  2.20715
  21  1.22432e-07
  22  0.223358
  23  0.148589
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  7.236e-02  2.207e+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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.215e-01  1.486e-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:  9.789e-01  2.234e-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: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153571/likelihoodResults_505267201_505526401_4FGL_J2349.4+0534_daily_bin1026.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) = 6431.77557918
delta logL = 0.157716276426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6431.77556356
delta logL = 0.157731896188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.408       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7681       1.0000          .0000       10.000    
     3 'Normalizat'    .98881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80938       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=   6431.776     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      292 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.391        1692.6        .31049E-02    .67878E-04
   2  Index         1.7672        6.0574        .27322       -.13091E-04
   3  Normalizat    .98886        .94645E-01    .46027E-01   -.56091E-03
   4  Prefactor     .80936        .76380E-01    .43839E-01   -.12201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3907
  Index      = 1.76716
  Normalizat = 0.988863
  Prefactor  = 0.809361
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.776     FROM HESSE     STATUS=OK            31 CALLS      323 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.391        20.818        .12420E-03   -1.5063    
   2  Index         1.7672        .81089        .13075E-01   -.70308    
   3  Normalizat    .98886        .20870        .27981E-03   -.93404    
   4  Prefactor     .80936        .14619        .21224E-03   -.99384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19242e-09
Minuit parameter uncertainties:
  1  20.8322
  2  0.817129
  3  0.208868
  4  0.146262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153571': 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) = 6431.77556261
delta logL = 0.157732843689

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.039e+01  2.083e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.767e+00  8.171e-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.094e-01  1.463e-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:  9.889e-01  2.089e-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/153571/cmap_HighResolution_505267201_505526401_4FGL_J2349.4+0534_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-30 07:06:07.060757', job_id='153571', GAL2='0.81', fit_tolerance='1e-08', EG2='0.99', EG='0.98', time_epoch_completed='1633010767.06', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.58e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1026' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:06:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 153571: <4FGL_J2349.4+0534_daily_bin1026> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1026 357.356 5.579 505267201 505526401 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 :                                   632.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

