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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin381
RA = 357.356, Dec = 5.579
tmin = 338083201, tmax = 338342401
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='150514', job_status='RUN', time_executed='2021-09-30 06:43:18.809180', time_epoch_executed='1633009398.81' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150514

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150514/ft1_4FGL_J2349.4+0534_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150514/ft2_4FGL_J2349.4+0534_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150514/ft1_4FGL_J2349.4+0534_daily_bin381.fits outfile=/scratch/kocevski/150514/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin381.fits ra=357.356 dec=5.579 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.77
user 6.49
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150514/ft1_filtered_4FGL_J2349.4+0534_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/150514/ft2_4FGL_J2349.4+0534_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/150514/ltcube_338083201_338342401_4FGL_J2349.4+0534_daily_bin381.fits outfile=/scratch/kocevski/150514/expmap_338083201_338342401_4FGL_J2349.4+0534_daily_bin381.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/150514/ltcube_338083201_338342401_4FGL_J2349.4+0534_daily_bin381.fits
.....................!
real 192.80
user 187.43
sys 4.85

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150514/ft1_filtered_4FGL_J2349.4+0534_daily_bin381.fits scfile=/scratch/kocevski/150514/ft2_4FGL_J2349.4+0534_daily_bin381.fits outfile=/scratch/kocevski/150514/cmap_HighResolution_338083201_338342401_4FGL_J2349.4+0534_daily_bin381.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.191       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0942       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5691       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.283       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.641       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.866       1.0000         .10000E-03   10000.    
     8 'norm      '    .73794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3666       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11356E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.974       1.0000         .10000E-03   10000.    
    16 'norm      '    10.488       1.0000         .10000E-03   10000.    
    17 'norm      '    38.932       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8943       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.246       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80261       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96078       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=   5989.906     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2534 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.188        16.958        .13858E-06   -.28178E-04
   2  norm          2.0929        3.3641        .63534E-06    .16223E-04
   3  norm          5.5673        5.0653        .21717E-07   -.10116E-03
   4  Prefactor     9.2768        13.019        .77841E-06   -.99741E-05
   5  Prefactor     17.282        36.180       -.17681E-05   -.44302E-04
   6  Prefactor     18.647        18.122       -.69645E-06   -.87418E-04
   7  Prefactor     14.864        16.867        .35330E-06   -.23259E-04
   8  norm          .73781        .65264        .39651E-07    .13617E-04
   9  Prefactor     1.3254        51.150        .18346E-04   -.23158E-04
  10  Prefactor     .10000E-03    18.179       -.78564E-06** at limit **
  11  norm          .10000E-03    5.0618        .13851E-06** at limit **
  12  Prefactor     .10000E-03    6.5944        .54519E-06** at limit **
  13  Prefactor     .10000E-03    75.477        .25390E-05** at limit **
  14  Prefactor     .10000E-03    20.479       -.12066E-05** at limit **
  15  Prefactor     57.053        36.304        .78118E-06   -.56637E-05
  16  norm          10.486        17.383        .70416E-06   -.19826E-04
  17  norm          38.921        34.719       -.74029E-06   -.52015E-05
  18  Prefactor     7.8917        6.8284        .75542E-06    .18059E-04
  19  Prefactor     29.233        38.767       -.12951E-05   -.65694E-04
  20  Prefactor     .10000E-03    16.631        .14672E-05** at limit **
  21  Prefactor     .10000E-03    7.1406       -.13129E-06** at limit **
  22  Normalizat    .80287        .21168       -.39759E-05   -.19796E-03
  23  Prefactor     .96073        .13780       -.41676E-06   -.39985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1885
  norm       = 2.09293
  norm       = 5.56728
  Prefactor  = 9.27679
  Prefactor  = 17.2822
  Prefactor  = 18.6472
  Prefactor  = 14.8641
  norm       = 0.737809
  Prefactor  = 1.32544
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.0527
  norm       = 10.4857
  norm       = 38.9215
  Prefactor  = 7.89168
  Prefactor  = 29.2327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.802873
  Prefactor  = 0.960729
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.906     FROM HESSE     STATUS=OK           374 CALLS     2908 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.188        16.816        .96597E-04   -1.4879    
   2  norm          2.0929        3.3221        .15360E-03   -1.5419    
   3  norm          5.5673        5.0566        .15691E-03   -1.5236    
   4  Prefactor     9.2768        13.004        .13155E-03   -1.5099    
   5  Prefactor     17.282        36.194        .96340E-04   -1.4876    
   6  Prefactor     18.647        18.123        .92767E-04   -1.4844    
   7  Prefactor     14.864        16.870        .10388E-03   -1.4937    
   8  norm          .73781        .65231        .56996E-04   -1.5536    
   9  Prefactor     1.3254        51.699        .37319E-03   -1.5478    
  10  Prefactor     .10000E-03    18.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.0749        .16977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    75.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     57.053        36.507        .26574E-03   -1.4196    
  16  norm          10.486        17.389        .12372E-03   -1.5060    
  17  norm          38.921        34.569        .64238E-04   -1.4459    
  18  Prefactor     7.8917        6.8355        .14271E-03   -1.5146    
  19  Prefactor     29.233        38.840        .74084E-04   -1.4626    
  20  Prefactor     .10000E-03    16.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .80287        .24040        .32252E-03   -.99962    
  23  Prefactor     .96073        .15887        .20536E-03   -.94050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24474e-10
Minuit parameter uncertainties:
  1  16.8208
  2  3.32244
  3  5.05696
  4  13.0078
  5  36.2395
  6  18.1286
  7  16.875
  8  0.652316
  9  16.5707
  10  2.06217e-05
  11  7.15424e-05
  12  3.44218e-05
  13  0.000240449
  14  9.24739e-05
  15  36.5212
  16  17.3977
  17  34.5864
  18  6.83621
  19  38.8737
  20  6.82589e-05
  21  1.06912e-05
  22  0.240718
  23  0.158948
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  6.826e-05  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:  9.607e-01  1.589e-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:  8.029e-01  2.407e-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: 9.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150514/likelihoodResults_338083201_338342401_4FGL_J2349.4+0534_daily_bin381.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) = 5989.90619157
delta logL = -0.000284791856757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5989.90590651
delta logL = 2.63474248641e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4185       1.0000          .0000       10.000    
     3 'Normalizat'    .80288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96072       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5989.906     FROM MIGRAD    STATUS=FAILED        93 CALLS      251 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12693E-03    34.731        .18142E-01** at limit **
   2  Index         2.1139        7.1128        .50000        .13002E-04
   3  Normalizat    .80287        .53773E-02    .32253E-03   -.30067E-03
   4  Prefactor     .96073        .37422E-02    .20536E-03   -.21450E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5989.906     FROM SIMPLEX   STATUS=PROGRESS     103 CALLS      354 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10250E-03    34.731        .82674E-03** at limit **
   2  Index         2.1081        7.1128        .19876E-02    .13002E-04
   3  Normalizat    .80285        .53773E-02    .77719E-05   -.30067E-03
   4  Prefactor     .96072        .37422E-02    .54649E-05   -.21450E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5989.906     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      389 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10312E-03    166.41        .72569E-02** at limit **
   2  Index         2.0007        5.9929        .50000        .61385E-05
   3  Normalizat    .80285        .10802E-01    .12901E-04   -.63095E-02
   4  Prefactor     .96072        .75172E-02    .41071E-04   -.97030E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103124
  Index      = 2.0007
  Normalizat = 0.802854
  Prefactor  = 0.96072
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.906     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      418 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10312E-03    828.06        .14514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0007        6.1686        .50000       -.64333    
   3  Normalizat    .80285        .24781E-01    .25802E-05   -.99963    
   4  Prefactor     .96072        .17247E-01    .82142E-05   -.94051    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37424e-08
Minuit parameter uncertainties:
  1  0.103183
  2  914.36
  3  0.0247814
  4  0.0172466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150514': 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) = 5989.90590517
delta logL = 1.60469971888e-06

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.031e-04  1.032e-01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.001e+00  9.144e+02  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:  9.607e-01  1.725e-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:  8.029e-01  2.478e-02  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/150514/cmap_HighResolution_338083201_338342401_4FGL_J2349.4+0534_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='9.03e-08', time_completed='2021-09-30 06:54:16.961412', job_id='150514', GAL2='0.96', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1633010056.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='381' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:54:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 150514: <4FGL_J2349.4+0534_daily_bin381> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin381> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:13 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40:15 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:15 2021
Terminated at Thu Sep 30 06:54:17 2021
Results reported at Thu Sep 30 06:54:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin381 357.356 5.579 338083201 338342401 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 :                                   656.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

