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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1125
RA = 357.356, Dec = 5.579
tmin = 530928001, tmax = 531187201
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='153713', job_status='RUN', time_executed='2021-09-30 06:54:16.154346', time_epoch_executed='1633010056.15' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153713/ft1_4FGL_J2349.4+0534_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153713/ft2_4FGL_J2349.4+0534_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153713/ft1_4FGL_J2349.4+0534_daily_bin1125.fits outfile=/scratch/kocevski/153713/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1125.fits ra=357.356 dec=5.579 rad=12.0 tmin=530928001.0 tmax=531187201.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.66
user 3.44
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153713/ft1_filtered_4FGL_J2349.4+0534_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/153713/ft2_4FGL_J2349.4+0534_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/153713/ltcube_530928001_531187201_4FGL_J2349.4+0534_daily_bin1125.fits outfile=/scratch/kocevski/153713/expmap_530928001_531187201_4FGL_J2349.4+0534_daily_bin1125.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/153713/ltcube_530928001_531187201_4FGL_J2349.4+0534_daily_bin1125.fits
.....................!
real 191.85
user 187.08
sys 4.44

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/153713/ft1_filtered_4FGL_J2349.4+0534_daily_bin1125.fits scfile=/scratch/kocevski/153713/ft2_4FGL_J2349.4+0534_daily_bin1125.fits outfile=/scratch/kocevski/153713/cmap_530928001_531187201_4FGL_J2349.4+0534_daily_bin1125.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/153713/ft1_filtered_4FGL_J2349.4+0534_daily_bin1125.fits scfile=/scratch/kocevski/153713/ft2_4FGL_J2349.4+0534_daily_bin1125.fits outfile=/scratch/kocevski/153713/cmap_HighResolution_530928001_531187201_4FGL_J2349.4+0534_daily_bin1125.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=357.356 yref=5.579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.618       1.0000         .10000E-03   10000.    
     2 'norm      '    .10574E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.3722       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6101       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0729       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1887       1.0000         .10000E-03   10000.    
     8 'norm      '    .58124       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8700       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.6638       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2791       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.254       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3799       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8231       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3251       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81341       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=   5996.841     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2515 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.622        19.594       -.15337E-06    .45415E-05
   2  norm          .10000E-03    2.2579        .37030E-07** at limit **
   3  norm          6.3726        4.2641       -.54350E-07   -.13442E-04
   4  Prefactor     .10000E-03    7.7661        .35159E-06** at limit **
   5  Prefactor     7.6113        29.206        .25984E-06   -.33778E-05
   6  Prefactor     2.0716        3.5443        .88029E-06   -.13420E-02
   7  Prefactor     4.1940        35.569        .67010E-06   -.43520E-05
   8  norm          .58104        .92052        .22204E-06    .96646E-03
   9  Prefactor     2.8705        8.2534        .72610E-06   -.64803E-04
  10  Prefactor     .10000E-03    48.564        .30796E-05** at limit **
  11  norm          6.6655        10.003        .72808E-06   -.13607E-03
  12  Prefactor     1.2800        13.196        .43706E-05   -.15766E-03
  13  Prefactor     .10000E-03    112.36       -.41604E-05** at limit **
  14  Prefactor     18.249        17.715        .13568E-06    .93177E-04
  15  Prefactor     .10000E-03    14.176       -.21798E-05** at limit **
  16  norm          .10000E-03    7.1326       -.34497E-06** at limit **
  17  norm          .10000E-03    26.716       -.14657E-05** at limit **
  18  Prefactor     2.3870        6.9733       -.58783E-05   -.26789E-03
  19  Prefactor     .10000E-03    15.577        .27864E-05** at limit **
  20  Prefactor     .10000E-03    5.5203       -.14768E-06** at limit **
  21  Prefactor     2.8255        21.063        .39336E-06    .76149E-05
  22  Normalizat    1.3246        .21602        .92801E-06   -.62264E-04
  23  Prefactor     .81370        .13767       -.58727E-06    .34966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6217
  norm       = 0.0001
  norm       = 6.37259
  Prefactor  = 0.0001
  Prefactor  = 7.6113
  Prefactor  = 2.07162
  Prefactor  = 4.19403
  norm       = 0.581035
  Prefactor  = 2.87046
  Prefactor  = 0.0001
  norm       = 6.66547
  Prefactor  = 1.28005
  Prefactor  = 0.0001
  Prefactor  = 18.2487
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 2.387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.82552
  Normalizat = 1.32465
  Prefactor  = 0.813697
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.841     FROM HESSE     STATUS=OK           376 CALLS     2891 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.622        19.703        .84223E-04   -1.4756    
   2  norm          .10000E-03    2.2981        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3726        4.2652        .12672E-03   -1.5203    
   4  Prefactor     .10000E-03    7.8071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6113        29.190        .14537E-03   -1.5156    
   6  Prefactor     2.0716        8.1022        .14345E-02   -1.5420    
   7  Prefactor     4.1940        35.557        .19691E-03   -1.5298    
   8  norm          .58104        .79991        .89966E-03   -1.5556    
   9  Prefactor     2.8705        8.1986        .23994E-03   -1.5369    
  10  Prefactor     .10000E-03    48.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.6655        9.5315        .15545E-03   -1.5192    
  12  Prefactor     1.2800        12.153        .39259E-03   -1.5482    
  13  Prefactor     .10000E-03    112.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.249        17.229        .93742E-04   -1.4853    
  15  Prefactor     .10000E-03    14.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.1509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    26.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3870        6.9452        .26554E-03   -1.5399    
  19  Prefactor     .10000E-03    15.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5239        .17770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8255        21.046        .24206E-03   -1.5372    
  22  Normalizat    1.3246        .25173        .27211E-03   -.82834    
  23  Prefactor     .81370        .16040        .22577E-03   -.99225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15948e-09
Minuit parameter uncertainties:
  1  19.7086
  2  3.12429e-07
  3  4.2654
  4  5.24861e-07
  5  29.2448
  6  8.10654
  7  24.4428
  8  0.799927
  9  8.20185
  10  0.000117202
  11  9.53367
  12  7.89
  13  2.59403e-05
  14  17.2338
  15  7.12454e-05
  16  1.03017e-05
  17  0.000323335
  18  6.9475
  19  5.00092e-05
  20  2.13195e-06
  21  15.43
  22  0.251961
  23  0.160493
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.132e-06  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.137e-01  1.605e-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.325e+00  2.520e-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: 5.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153713/likelihoodResults_530928001_531187201_4FGL_J2349.4+0534_daily_bin1125.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) = 5996.84188766
delta logL = -0.000856605077388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5996.84103209
delta logL = -1.03160436993e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4358       1.0000          .0000       10.000    
     3 'Normalizat'    1.3249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81356       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=   5996.841     FROM MIGRAD    STATUS=FAILED       111 CALLS      264 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    17.590        .91014E-01** at limit **
   2  Index         1.1810        6.9518        .50000       -.46415E-05
   3  Normalizat    1.3247        .71641E-02    .27211E-03    .31724E-02
   4  Prefactor     .81370        .48137E-02    .22577E-03    .37880E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5996.841     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      393 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    17.590        .93904E-03** at limit **
   2  Index         1.1810        6.9518        .10336E-02   -.46415E-05
   3  Normalizat    1.3247        .71641E-02    .88558E-06    .31724E-02
   4  Prefactor     .81370        .48137E-02    .24615E-06    .37880E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5996.841     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      426 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    533.97        .48127E-02** at limit **
   2  Index         1.1840        7.6279        .50000        .30004E-06
   3  Normalizat    1.3247        .25143E-01    .54422E-04    .31532E-02
   4  Prefactor     .81370        .16894E-01    .45154E-04    .37648E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Index      = 1.18403
  Normalizat = 1.32466
  Prefactor  = 0.813701
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.841     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      455 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    2161.0        .96255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1840        8.8228        .50000       -.86824    
   3  Normalizat    1.3247        .56885E-01    .10884E-04   -.82833    
   4  Prefactor     .81370        .38223E-01    .90308E-05   -.99225    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.17206e-08
Minuit parameter uncertainties:
  1  0.0129707
  2  1207.86
  3  0.0568878
  4  0.0382245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153713': 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) = 5996.84102389
delta logL = 7.16668364475e-06

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.297e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.184e+00  1.208e+03  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.137e-01  3.822e-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:  1.325e+00  5.689e-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/153713/cmap_HighResolution_530928001_531187201_4FGL_J2349.4+0534_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2021-09-30 07:05:56.249701', job_id='153713', GAL2='0.81', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1633010756.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='7.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1125' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:05:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 153713: <4FGL_J2349.4+0534_daily_bin1125> in cluster <slac> Done

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

Your job looked like:

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

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

