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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin895
RA = 357.356, Dec = 5.579
tmin = 471312001, tmax = 471571201
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='153381', job_status='RUN', time_executed='2021-09-30 06:54:25.704143', time_epoch_executed='1633010065.7' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153381

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153381/ft1_4FGL_J2349.4+0534_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153381/ft2_4FGL_J2349.4+0534_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153381/ft1_4FGL_J2349.4+0534_daily_bin895.fits outfile=/scratch/kocevski/153381/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin895.fits ra=357.356 dec=5.579 rad=12.0 tmin=471312001.0 tmax=471571201.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.74
user 3.52
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153381/ft2_4FGL_J2349.4+0534_daily_bin895.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/153381/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin895.fits evtable="EVENTS" outfile="/scratch/kocevski/153381/ft1_filtered_4FGL_J2349.4+0534_daily_bin895.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.40
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153381/ft1_filtered_4FGL_J2349.4+0534_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/153381/ft2_4FGL_J2349.4+0534_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/153381/ltcube_471312001_471571201_4FGL_J2349.4+0534_daily_bin895.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/153381/ft2_4FGL_J2349.4+0534_daily_bin895.fits
.....................!
real 8.50
user 8.20
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153381/ft1_filtered_4FGL_J2349.4+0534_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/153381/ft2_4FGL_J2349.4+0534_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/153381/ltcube_471312001_471571201_4FGL_J2349.4+0534_daily_bin895.fits outfile=/scratch/kocevski/153381/expmap_471312001_471571201_4FGL_J2349.4+0534_daily_bin895.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/153381/ltcube_471312001_471571201_4FGL_J2349.4+0534_daily_bin895.fits
.....................!
real 141.48
user 137.57
sys 3.66

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/153381/ft1_filtered_4FGL_J2349.4+0534_daily_bin895.fits scfile=/scratch/kocevski/153381/ft2_4FGL_J2349.4+0534_daily_bin895.fits outfile=/scratch/kocevski/153381/cmap_471312001_471571201_4FGL_J2349.4+0534_daily_bin895.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.43
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153381/ft1_filtered_4FGL_J2349.4+0534_daily_bin895.fits scfile=/scratch/kocevski/153381/ft2_4FGL_J2349.4+0534_daily_bin895.fits outfile=/scratch/kocevski/153381/cmap_HighResolution_471312001_471571201_4FGL_J2349.4+0534_daily_bin895.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.44
user 0.30
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9530       1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8978       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.466       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.250       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42206E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    22.231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .73266       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17930E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10678E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13771E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4551       1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.199       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1946       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74081       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4948.365     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     2141 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9595        8.4489       -.31447E-05   -.13538E-02
   2  norm          .10000E-03    1.4353        .16712E-05** at limit **
   3  norm          7.8991        4.9553       -.57282E-05   -.57906E-02
   4  Prefactor     .10001E-03    7.1350        .11601E-05** at limit **
   5  Prefactor     15.463        1.0663        .43995E-07    .98494E-04
   6  Prefactor     20.254        6.5737       -.17725E-05   -.11449E-02
   7  Prefactor     .10000E-03    5.0655       -.64698E-06** at limit **
   8  norm          3.4734        1.6180        .47452E-06   -.73729E-03
   9  Prefactor     .10010E-03    34.936        .29262E-05** at limit **
  10  Prefactor     .32289E-01    41.975       -.17873E-04    .21061E-02
  11  norm          22.204        10.423        .58468E-06    .11085E-01
  12  Prefactor     .73890        9.4482       -.26351E-05   -.12837E-02
  13  Prefactor     .14844E-03    154.33        .21472E-04** at limit **
  14  Prefactor     .10004E-03    10.781       -.97997E-05** at limit **
  15  Prefactor     .12556E-03    179.31       -.26735E-05** at limit **
  16  norm          .10000E-03    5.9526        .27280E-05** at limit **
  17  norm          .10002E-03    7.4288       -.52253E-05** at limit **
  18  Prefactor     2.4664        5.4032        .42137E-05    .30347E-02
  19  Prefactor     71.184        2.4884       -.21778E-06    .19924E-02
  20  Prefactor     .10004E-03    11.688        .43797E-05** at limit **
  21  Prefactor     .10000E-03    5.8656       -.11425E-06** at limit **
  22  Normalizat    1.1943        .26317        .23750E-05   -.21588E-04
  23  Prefactor     .74077        .17089       -.94367E-06   -.75167E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.95953
  norm       = 0.0001
  norm       = 7.89906
  Prefactor  = 0.000100008
  Prefactor  = 15.4628
  Prefactor  = 20.254
  Prefactor  = 0.0001
  norm       = 3.47337
  Prefactor  = 0.000100097
  Prefactor  = 0.0322894
  norm       = 22.2041
  Prefactor  = 0.738898
  Prefactor  = 0.000148441
  Prefactor  = 0.000100037
  Prefactor  = 0.000125557
  norm       = 0.0001
  norm       = 0.000100017
  Prefactor  = 2.46639
  Prefactor  = 71.184
  Prefactor  = 0.00010004
  Prefactor  = 0.000100001
  Normalizat = 1.1943
  Prefactor  = 0.740767
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.365     FROM HESSE     STATUS=OK           436 CALLS     2577 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9595        20.092        .31753E-02   -1.5077    
   2  norm          .10000E-03    1.4275        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8991        5.0756        .35669E-02   -1.5146    
   4  Prefactor     .10001E-03    9.8623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.463        36.904        .25461E-02   -1.4921    
   6  Prefactor     20.254        19.311        .22252E-02   -1.4808    
   7  Prefactor     .10000E-03    5.0653        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4734        1.6373        .54254E-02   -1.5335    
   9  Prefactor     .10010E-03    33.902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .32289E-01    94.747        .14738       -1.5672    
  11  norm          22.204        13.685        .21238E-02   -1.4765    
  12  Prefactor     .73890        6.9801        .87593E-01   -1.5536    
  13  Prefactor     .14844E-03    267.39        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    12.134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12556E-03    32.482        .11700       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.9490        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10002E-03    9.6508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4664        6.4798        .65261E-02   -1.5394    
  19  Prefactor     71.184        53.408        .11894E-02   -1.4019    
  20  Prefactor     .10004E-03    12.591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8668        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1943        .23659        .62824E-01   -.86779    
  23  Prefactor     .74077        .14803        .42942E-01   -1.0195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2388e-07
Minuit parameter uncertainties:
  1  20.1059
  2  1.13044e-05
  3  5.07587
  4  0.000548473
  5  36.958
  6  19.3165
  7  3.12246e-06
  8  1.63732
  9  0.00363367
  10  3.49832
  11  13.6866
  12  4.54245
  13  0.228648
  14  0.00133264
  15  0.0576557
  16  8.9388e-05
  17  0.000810215
  18  6.48164
  19  53.444
  20  0.00141241
  21  0.000141061
  22  0.236805
  23  0.148105
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.412e-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:  7.408e-01  1.481e-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.194e+00  2.368e-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.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153381/likelihoodResults_471312001_471571201_4FGL_J2349.4+0534_daily_bin895.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) = 4948.36490491
delta logL = -0.000377771113563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4948.36452711
delta logL = 2.94839992421e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4507       1.0000          .0000       10.000    
     3 'Normalizat'    1.1943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74077       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=   4948.365     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      245 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10223E-03    12.730        .18142E-01** at limit **
   2  Index         2.3525        5.4912        .50000        .84428E-05
   3  Normalizat    1.1943        .56833E-02    .27788E-03   -.11255E-03
   4  Prefactor     .74077        .37576E-02    .22644E-03    .10041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102226
  Index      = 2.35248
  Normalizat = 1.1943
  Prefactor  = 0.740768
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.365     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10223E-03    164.75        .25173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3525        6.1122        .50000       -.55802    
   3  Normalizat    1.1943        .20687E-01    .11115E-04   -.86779    
   4  Prefactor     .74077        .13677E-01    .90576E-05   -1.0195    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.16144e-09
Minuit parameter uncertainties:
  1  0.0384091
  2  698.167
  3  0.0206869
  4  0.0136774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153381': 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) = 4948.36452696
delta logL = 1.78401933226e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.022e-04  3.841e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.352e+00  6.982e+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:  7.408e-01  1.368e-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.194e+00  2.069e-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/153381/cmap_HighResolution_471312001_471571201_4FGL_J2349.4+0534_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-30 07:01:25.250500', job_id='153381', GAL2='0.74', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1633010485.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='895' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:01:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 153381: <4FGL_J2349.4+0534_daily_bin895> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin895 357.356 5.579 471312001 471571201 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 :                                   414.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             241.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            659 sec.

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

