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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin995
RA = 357.356, Dec = 5.579
tmin = 497232001, tmax = 497491201
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='153527', job_status='RUN', time_executed='2021-09-30 06:53:48.517601', time_epoch_executed='1633010028.52' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153527/ft1_4FGL_J2349.4+0534_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153527/ft2_4FGL_J2349.4+0534_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153527/ft1_4FGL_J2349.4+0534_daily_bin995.fits outfile=/scratch/kocevski/153527/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin995.fits ra=357.356 dec=5.579 rad=12.0 tmin=497232001.0 tmax=497491201.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.72
user 6.49
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153527/ft1_filtered_4FGL_J2349.4+0534_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/153527/ft2_4FGL_J2349.4+0534_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/153527/ltcube_497232001_497491201_4FGL_J2349.4+0534_daily_bin995.fits outfile=/scratch/kocevski/153527/expmap_497232001_497491201_4FGL_J2349.4+0534_daily_bin995.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/153527/ltcube_497232001_497491201_4FGL_J2349.4+0534_daily_bin995.fits
.....................!
real 189.20
user 184.71
sys 4.14

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/153527/ft1_filtered_4FGL_J2349.4+0534_daily_bin995.fits scfile=/scratch/kocevski/153527/ft2_4FGL_J2349.4+0534_daily_bin995.fits outfile=/scratch/kocevski/153527/cmap_497232001_497491201_4FGL_J2349.4+0534_daily_bin995.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153527/ft1_filtered_4FGL_J2349.4+0534_daily_bin995.fits scfile=/scratch/kocevski/153527/ft2_4FGL_J2349.4+0534_daily_bin995.fits outfile=/scratch/kocevski/153527/cmap_HighResolution_497232001_497491201_4FGL_J2349.4+0534_daily_bin995.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/153527/ft1_filtered_4FGL_J2349.4+0534_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/153527/ft2_4FGL_J2349.4+0534_daily_bin995.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153527/Model_4FGL_J2349.4+0534_daily_bin995.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/153527/ft1_filtered_4FGL_J2349.4+0534_daily_bin995.fits.....................!
real 51.57
user 50.15
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .27548       1.0000         .10000E-03   10000.    
     3 'norm      '    12.829       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.122       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.783       1.0000         .10000E-03   10000.    
     8 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6992       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.903       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5375       1.0000         .10000E-03   10000.    
    13 'Prefactor '    175.81       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.338       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.247       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11246E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96929       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72125       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=   4242.155     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2527 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.428       -.34443E-05** at limit **
   2  norm          .25662        1.9526       -.63934E-07   -.37597E-04
   3  norm          12.828        6.2484       -.13456E-06   -.10303E-03
   4  Prefactor     .10000E-03    6.3949       -.86062E-07** at limit **
   5  Prefactor     41.120        47.002       -.29862E-05    .40400E-05
   6  Prefactor     .10000E-03    8.1738       -.67490E-07** at limit **
   7  Prefactor     22.783        22.911       -.67551E-06    .17750E-04
   8  norm          .10000E-03    .50457       -.26855E-06** at limit **
   9  Prefactor     2.6972        14.118       -.59100E-07   -.38269E-03
  10  Prefactor     .10000E-03    13.240        .19084E-06** at limit **
  11  norm          13.891        12.373       -.76571E-06    .66488E-04
  12  Prefactor     1.5392        4.5805        .11546E-05   -.11345E-02
  13  Prefactor     175.87        172.92        .39978E-04    .38696E-04
  14  Prefactor     .10000E-03    33.162       -.37772E-05** at limit **
  15  Prefactor     .10000E-03    51.173       -.58778E-05** at limit **
  16  norm          .10000E-03    7.1315        .50044E-07** at limit **
  17  norm          .10000E-03    35.246        .60369E-05** at limit **
  18  Prefactor     2.9288        5.4851       -.16093E-05    .25570E-04
  19  Prefactor     28.330        43.124       -.93211E-05    .99246E-05
  20  Prefactor     13.232        24.476       -.11231E-04   -.33169E-05
  21  Prefactor     .10000E-03    46.561        .72265E-05** at limit **
  22  Normalizat    .96956        .22969        .19596E-05    .80401E-04
  23  Prefactor     .72111        .14719        .64760E-06    .89496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.256615
  norm       = 12.8279
  Prefactor  = 0.0001
  Prefactor  = 41.1201
  Prefactor  = 0.0001
  Prefactor  = 22.7826
  norm       = 0.0001
  Prefactor  = 2.69715
  Prefactor  = 0.0001
  norm       = 13.8907
  Prefactor  = 1.53915
  Prefactor  = 175.869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.92879
  Prefactor  = 28.3296
  Prefactor  = 13.2319
  Prefactor  = 0.0001
  Normalizat = 0.969565
  Prefactor  = 0.721107
 **********
 **   18 **HESSE 
 **********

 FCN=   4242.155     FROM HESSE     STATUS=OK           374 CALLS     2901 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .25662        9.1561        .16822E-02   -1.5607    
   3  norm          12.828        6.2600        .54501E-03   -1.4991    
   4  Prefactor     .10000E-03    6.4103        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.120        47.009        .62510E-04   -1.4425    
   6  Prefactor     .10000E-03    8.2030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.783        22.928        .83919E-04   -1.4753    
   8  norm          .10000E-03    .75458        .89669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6972        15.732        .12398E-02   -1.5379    
  10  Prefactor     .10000E-03    13.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.891        15.839        .10742E-03   -1.4962    
  12  Prefactor     1.5392        22.954        .17198E-02   -1.5460    
  13  Prefactor     175.87        173.28        .15218E-03   -1.3048    
  14  Prefactor     .10000E-03    33.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.1366        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    35.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9288        5.4584        .18955E-03   -1.5366    
  19  Prefactor     28.330        43.151        .75259E-04   -1.4643    
  20  Prefactor     13.232        24.484        .11005E-03   -1.4980    
  21  Prefactor     .10000E-03    48.298        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96956        .27142        .26607E-03   -.94057    
  23  Prefactor     .72111        .17031        .10380E-02   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17826e-08
Minuit parameter uncertainties:
  1  3.0936e-05
  2  3.06558
  3  6.26036
  4  6.25467e-06
  5  47.0518
  6  2.41108e-06
  7  22.9364
  8  2.63624e-05
  9  13.033
  10  3.7963e-06
  11  15.8438
  12  11.8928
  13  173.788
  14  0.00012806
  15  0.0002686
  16  4.95977e-06
  17  1.72106e-05
  18  5.45931
  19  43.1987
  20  24.5026
  21  0.000218995
  22  0.271802
  23  0.170437
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.323e+01  2.450e+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:  7.211e-01  1.704e-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.696e-01  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/153527/likelihoodResults_497232001_497491201_4FGL_J2349.4+0534_daily_bin995.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) = 4242.0504126
delta logL = 0.104933321106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4242.03420398
delta logL = 0.121141943015

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1836       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4585       1.0000          .0000       10.000    
     3 'Normalizat'    .94257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73359       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=   4242.034     FROM MIGRAD    STATUS=FAILED        80 CALLS      278 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1800        391.38        .17839E-03   -.30954E-02
   2  Index         3.4590        5.4717        .79052E-02   -.71525E-03
   3  Normalizat    .94257        .25376        .26942E-03   -.11380E-02
   4  Prefactor     .73364        .16982        .20595E-03   -.14847E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4242.034     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      366 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1800        391.38        .22170E-03   -.30954E-02
   2  Index         3.4590        5.4717        .11036E-02   -.71525E-03
   3  Normalizat    .94257        .25376        .16746E-03   -.11380E-02
   4  Prefactor     .73364        .16982        .60905E-04   -.14847E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4242.034     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      398 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1784        22.672        .71357E-05   -.54169E-05
   2  Index         3.4593        2.4979        .31621E-03    .25167E-06
   3  Normalizat    .94257        .25037        .53884E-04    .83340E-04
   4  Prefactor     .73364        .16824        .41191E-04    .34721E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17839
  Index      = 3.45932
  Normalizat = 0.942567
  Prefactor  = 0.733644
 **********
 **   18 **HESSE 
 **********

 FCN=   4242.034     FROM HESSE     STATUS=OK            23 CALLS      421 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1784        21.102        .14271E-05   -1.5299    
   2  Index         3.4593        2.4178        .12648E-04   -.31323    
   3  Normalizat    .94257        .25015        .10777E-04   -.94980    
   4  Prefactor     .73364        .16809        .82381E-05   -1.0222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86766e-11
Minuit parameter uncertainties:
  1  18.7901
  2  2.53631
  3  0.25046
  4  0.168211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153527': 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) = 4242.03420372
delta logL = 0.121142193788

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.178e+00  1.879e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.459e+00  2.536e+00  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:  7.336e-01  1.682e-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.426e-01  2.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
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/153527/cmap_HighResolution_497232001_497491201_4FGL_J2349.4+0534_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-30 07:03:10.880826', job_id='153527', GAL2='0.73', fit_tolerance='1e-08', EG2='0.94', EG='0.97', time_epoch_completed='1633010590.88', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.21e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='995' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:03:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 153527: <4FGL_J2349.4+0534_daily_bin995> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin995 357.356 5.579 497232001 497491201 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 :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            755 sec.

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

