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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin745
RA = 357.356, Dec = 5.579
tmin = 432432001, tmax = 432691201
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='152201', job_status='RUN', time_executed='2021-09-30 06:46:11.149834', time_epoch_executed='1633009571.15' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152201/ft1_4FGL_J2349.4+0534_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152201/ft2_4FGL_J2349.4+0534_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152201/ft1_4FGL_J2349.4+0534_daily_bin745.fits outfile=/scratch/kocevski/152201/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin745.fits ra=357.356 dec=5.579 rad=12.0 tmin=432432001.0 tmax=432691201.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 5.12
user 4.86
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152201/ft1_filtered_4FGL_J2349.4+0534_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/152201/ft2_4FGL_J2349.4+0534_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/152201/ltcube_432432001_432691201_4FGL_J2349.4+0534_daily_bin745.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/152201/ft2_4FGL_J2349.4+0534_daily_bin745.fits
.....................!
real 12.07
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152201/ft1_filtered_4FGL_J2349.4+0534_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/152201/ft2_4FGL_J2349.4+0534_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/152201/ltcube_432432001_432691201_4FGL_J2349.4+0534_daily_bin745.fits outfile=/scratch/kocevski/152201/expmap_432432001_432691201_4FGL_J2349.4+0534_daily_bin745.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/152201/ltcube_432432001_432691201_4FGL_J2349.4+0534_daily_bin745.fits
.....................!
real 190.17
user 185.42
sys 4.36

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/152201/ft1_filtered_4FGL_J2349.4+0534_daily_bin745.fits scfile=/scratch/kocevski/152201/ft2_4FGL_J2349.4+0534_daily_bin745.fits outfile=/scratch/kocevski/152201/cmap_432432001_432691201_4FGL_J2349.4+0534_daily_bin745.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152201/ft1_filtered_4FGL_J2349.4+0534_daily_bin745.fits scfile=/scratch/kocevski/152201/ft2_4FGL_J2349.4+0534_daily_bin745.fits outfile=/scratch/kocevski/152201/cmap_HighResolution_432432001_432691201_4FGL_J2349.4+0534_daily_bin745.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.130       1.0000         .10000E-03   10000.    
     2 'norm      '    9.9902       1.0000         .10000E-03   10000.    
     3 'norm      '    5.4301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3972       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.404       1.0000         .10000E-03   10000.    
     8 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.804       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.395       1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.411       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .14711E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19305E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    60.460       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.370       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .60038       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0464       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=   3328.032     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2571 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.129        23.675        .10814E-06    .11475E-04
   2  norm          9.9897        5.0170        .50586E-07    .61135E-07
   3  norm          5.4293        6.3612        .22881E-05   -.64714E-03
   4  Prefactor     .10000E-03    16.289       -.25541E-06** at limit **
   5  Prefactor     .10004E-03    82.949       -.87672E-05** at limit **
   6  Prefactor     4.3943        16.701        .59608E-05   -.20837E-03
   7  Prefactor     40.406        29.643        .27189E-07   -.29992E-05
   8  norm          .10000E-03    .62653        .25335E-07** at limit **
   9  Prefactor     21.803        21.389        .33195E-07    .25598E-04
  10  Prefactor     .10000E-03    55.282        .22474E-05** at limit **
  11  norm          .10000E-03    10.633        .10025E-07** at limit **
  12  Prefactor     7.9047        8.9234        .13823E-06    .41897E-04
  13  Prefactor     .10007E-03    113.23        .11694E-04** at limit **
  14  Prefactor     36.362        25.423        .46234E-06    .60308E-04
  15  Prefactor     43.412        51.585        .28364E-06    .40796E-04
  16  norm          .10000E-03    11.071        .25209E-07** at limit **
  17  norm          .10000E-03    41.769       -.36122E-06** at limit **
  18  Prefactor     .10000E-03    13.734        .21518E-06** at limit **
  19  Prefactor     60.469        61.769        .14523E-05    .11819E-03
  20  Prefactor     .10003E-03    252.22       -.90583E-05** at limit **
  21  Prefactor     20.369        19.658        .87455E-07   -.61706E-05
  22  Normalizat    .60052        .29396       -.24133E-05    .31043E-04
  23  Prefactor     1.0463        .19251       -.31597E-06    .55475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1291
  norm       = 9.98966
  norm       = 5.42929
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 4.39427
  Prefactor  = 40.4062
  norm       = 0.0001
  Prefactor  = 21.8032
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 7.90472
  Prefactor  = 0.000100066
  Prefactor  = 36.3615
  Prefactor  = 43.4123
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.4691
  Prefactor  = 0.00010003
  Prefactor  = 20.3693
  Normalizat = 0.600521
  Prefactor  = 1.0463
 **********
 **   18 **HESSE 
 **********

 FCN=   3328.032     FROM HESSE     STATUS=OK           364 CALLS     2935 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.129        23.685        .91574E-04   -1.4833    
   2  norm          9.9897        5.0282        .83252E-04   -1.5076    
   3  norm          5.4293        6.5117        .76866E-03   -1.5242    
   4  Prefactor     .10000E-03    16.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    87.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3943        17.076        .96029E-03   -1.5289    
   7  Prefactor     40.406        29.659        .63061E-04   -1.4436    
   8  norm          .10000E-03    .63494        .44534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.803        21.384        .85779E-04   -1.4774    
  10  Prefactor     .10000E-03    55.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9047        8.9125        .14260E-03   -1.5146    
  13  Prefactor     .10007E-03    122.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.362        25.094        .66431E-04   -1.4501    
  15  Prefactor     43.412        51.506        .60847E-04   -1.4389    
  16  norm          .10000E-03    11.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    41.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     60.469        62.014        .51601E-04   -1.4151    
  20  Prefactor     .10003E-03    263.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.369        19.661        .88744E-04   -1.4805    
  22  Normalizat    .60052        .32387        .37044E-03   -1.0796    
  23  Prefactor     1.0463        .21505        .19768E-03   -.91202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80733e-09
Minuit parameter uncertainties:
  1  23.6969
  2  5.02841
  3  6.51256
  4  3.44813e-05
  5  0.00352893
  6  17.0945
  7  29.6694
  8  9.61462e-08
  9  21.3915
  10  0.000708611
  11  5.44877e-07
  12  8.91399
  13  0.00570607
  14  25.1011
  15  51.5589
  16  5.57799e-06
  17  0.00017231
  18  2.92903e-05
  19  62.0804
  20  0.00562659
  21  19.6672
  22  0.324898
  23  0.215224
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  5.627e-03  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:  1.046e+00  2.152e-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:  6.005e-01  3.249e-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: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152201/likelihoodResults_432432001_432691201_4FGL_J2349.4+0534_daily_bin745.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) = 3328.03202825
delta logL = -1.79423500413e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3328.03202825
delta logL = -1.79388785e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96355E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4666       1.0000          .0000       10.000    
     3 'Normalizat'    .60051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0463       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3327.948     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      310 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9230        568.05        .95441E-03   -.35548E-03
   2  Index         3.7578        6.8226        .47309E-02   -.48947E-04
   3  Normalizat    .56623        .26304        .38080E-03    .92207E-04
   4  Prefactor     1.0557        .18541        .19685E-03    .39003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.92304
  Index      = 3.75779
  Normalizat = 0.566234
  Prefactor  = 1.05574
 **********
 **   18 **HESSE 
 **********

 FCN=   3327.948     FROM HESSE     STATUS=OK            23 CALLS      333 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9230        22.350        .38176E-04   -1.5431    
   2  Index         3.7578        2.9929        .18924E-03   -.25107    
   3  Normalizat    .56623        .31254        .15232E-04   -1.0944    
   4  Prefactor     1.0557        .21195        .39371E-04   -.90894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95983e-10
Minuit parameter uncertainties:
  1  13.1175
  2  3.22633
  3  0.313521
  4  0.21212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152201': 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) = 3327.9480675
delta logL = 0.0839428083355

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.923e+00  1.312e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.758e+00  3.226e+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:  1.056e+00  2.121e-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:  5.662e-01  3.135e-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/152201/cmap_HighResolution_432432001_432691201_4FGL_J2349.4+0534_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', job_status='DONE', photon_flux_upper_limit='1.86e-07', time_completed='2021-09-30 06:54:33.823752', job_id='152201', GAL2='1.06', fit_tolerance='1e-08', EG2='0.57', EG='0.60', time_epoch_completed='1633010073.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.39e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='745' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:54:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 152201: <4FGL_J2349.4+0534_daily_bin745> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:45:42 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:45:44 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:45:44 2021
Terminated at Thu Sep 30 06:54:34 2021
Results reported at Thu Sep 30 06:54:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin745 357.356 5.579 432432001 432691201 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 :                                   499.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             381.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            532 sec.

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

