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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin558
RA = 357.356, Dec = 5.579
tmin = 383961601, tmax = 384220801
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='151918', job_status='RUN', time_executed='2021-09-30 06:48:10.787056', time_epoch_executed='1633009690.79' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151918

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151918/ft1_4FGL_J2349.4+0534_daily_bin558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151918/ft2_4FGL_J2349.4+0534_daily_bin558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151918/ft1_4FGL_J2349.4+0534_daily_bin558.fits outfile=/scratch/kocevski/151918/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin558.fits ra=357.356 dec=5.579 rad=12.0 tmin=383961601.0 tmax=384220801.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 8.62
user 8.30
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151918/ft1_filtered_4FGL_J2349.4+0534_daily_bin558.fits" evtable="EVENTS" scfile=/scratch/kocevski/151918/ft2_4FGL_J2349.4+0534_daily_bin558.fits sctable="SC_DATA" outfile=/scratch/kocevski/151918/ltcube_383961601_384220801_4FGL_J2349.4+0534_daily_bin558.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/151918/ft2_4FGL_J2349.4+0534_daily_bin558.fits
.....................!
real 11.52
user 11.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151918/ft1_filtered_4FGL_J2349.4+0534_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/151918/ft2_4FGL_J2349.4+0534_daily_bin558.fits sctable="SC_DATA" expcube=/scratch/kocevski/151918/ltcube_383961601_384220801_4FGL_J2349.4+0534_daily_bin558.fits outfile=/scratch/kocevski/151918/expmap_383961601_384220801_4FGL_J2349.4+0534_daily_bin558.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/151918/ltcube_383961601_384220801_4FGL_J2349.4+0534_daily_bin558.fits
.....................!
real 190.97
user 185.04
sys 5.61

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/151918/ft1_filtered_4FGL_J2349.4+0534_daily_bin558.fits scfile=/scratch/kocevski/151918/ft2_4FGL_J2349.4+0534_daily_bin558.fits outfile=/scratch/kocevski/151918/cmap_383961601_384220801_4FGL_J2349.4+0534_daily_bin558.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151918/ft1_filtered_4FGL_J2349.4+0534_daily_bin558.fits scfile=/scratch/kocevski/151918/ft2_4FGL_J2349.4+0534_daily_bin558.fits outfile=/scratch/kocevski/151918/cmap_HighResolution_383961601_384220801_4FGL_J2349.4+0534_daily_bin558.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/151918/ft1_filtered_4FGL_J2349.4+0534_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/151918/ft2_4FGL_J2349.4+0534_daily_bin558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/151918/Model_4FGL_J2349.4+0534_daily_bin558.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/151918/ft1_filtered_4FGL_J2349.4+0534_daily_bin558.fits.....................!
real 56.03
user 54.68
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82276       1.0000         .10000E-03   10000.    
     2 'norm      '    8.1814       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.493       1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.194       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.348       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.535       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8686       1.0000         .10000E-03   10000.    
    13 'Prefactor '    200.21       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30357E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.669       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11997E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68612       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2416       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=   4960.100     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2466 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82312        31.085        .41371E-04   -.13240E-04
   2  norm          8.1815        4.7749       -.37106E-06   -.50506E-04
   3  norm          .10000E-03    2.0074        .31586E-07** at limit **
   4  Prefactor     10.493        14.547        .14593E-06   -.11429E-04
   5  Prefactor     49.194        46.696        .11744E-06    .72811E-05
   6  Prefactor     .10000E-03    10.020        .32037E-06** at limit **
   7  Prefactor     11.348        20.084        .23518E-06    .11607E-04
   8  norm          3.2906        1.6913       -.47595E-06    .83139E-03
   9  Prefactor     11.537        10.201        .13296E-06    .99840E-05
  10  Prefactor     .10000E-03    18.226       -.31546E-06** at limit **
  11  norm          .10000E-03    9.8109       -.22760E-06** at limit **
  12  Prefactor     2.8714        9.6220        .10909E-05    .23522E-04
  13  Prefactor     199.36        309.92        .55691E-04   -.10549E-03
  14  Prefactor     .10005E-03    25.084       -.12073E-04** at limit **
  15  Prefactor     .10000E-03    15.627       -.50101E-06** at limit **
  16  norm          .10000E-03    18.840        .39737E-06** at limit **
  17  norm          17.662        20.444        .14166E-06    .15421E-03
  18  Prefactor     .10000E-03    3.8664       -.32462E-05** at limit **
  19  Prefactor     .10000E-03    13.555        .60742E-06** at limit **
  20  Prefactor     .10000E-03    18.781        .27984E-06** at limit **
  21  Prefactor     .10000E-03    15.000       -.37479E-06** at limit **
  22  Normalizat    .68622        .26105       -.15117E-05    .36993E-04
  23  Prefactor     1.2415        .17592       -.73861E-06    .15880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.823124
  norm       = 8.18149
  norm       = 0.0001
  Prefactor  = 10.4926
  Prefactor  = 49.1942
  Prefactor  = 0.0001
  Prefactor  = 11.3483
  norm       = 3.29064
  Prefactor  = 11.5371
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.87141
  Prefactor  = 199.364
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.6622
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.68622
  Prefactor  = 1.24154
 **********
 **   18 **HESSE 
 **********

 FCN=   4960.100     FROM HESSE     STATUS=OK           362 CALLS     2828 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82312        31.025        .25049E-02   -1.5527    
   2  norm          8.1815        4.8003        .10801E-03   -1.5136    
   3  norm          .10000E-03    2.0181        .97422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.493        14.535        .12369E-03   -1.5060    
   5  Prefactor     49.194        46.694        .57174E-04   -1.4304    
   6  Prefactor     .10000E-03    10.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.348        20.098        .11892E-03   -1.5034    
   8  norm          3.2906        1.6868        .61351E-04   -1.5345    
   9  Prefactor     11.537        10.191        .11795E-03   -1.5029    
  10  Prefactor     .10000E-03    18.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.8637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8714        9.5577        .24000E-03   -1.5369    
  13  Prefactor     199.36        310.32        .14278E-03   -1.2875    
  14  Prefactor     .10005E-03    26.125        .42770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.662        20.339        .95282E-04   -1.4867    
  18  Prefactor     .10000E-03    4.0012        .27132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .68622        .29188        .37025E-03   -1.0444    
  23  Prefactor     1.2415        .19848        .19833E-03   -.85063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44007e-09
Minuit parameter uncertainties:
  1  10.1119
  2  4.80049
  3  1.21117e-06
  4  14.5399
  5  46.7283
  6  2.22335e-06
  7  20.1096
  8  1.68684
  9  10.1929
  10  1.22436e-06
  11  1.56443e-05
  12  9.56276
  13  312.925
  14  0.00217518
  15  3.94428e-05
  16  1.14951e-05
  17  20.3467
  18  0.000225992
  19  3.45949e-05
  20  1.01816e-05
  21  2.94083e-06
  22  0.29254
  23  0.198597
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.018e-05  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.242e+00  1.986e-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.862e-01  2.925e-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.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/151918/likelihoodResults_383961601_384220801_4FGL_J2349.4+0534_daily_bin558.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) = 4960.09983215
delta logL = -0.000253045235695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4960.09957987
delta logL = -7.61180672271e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8889       1.0000          .0000       10.000    
     3 'Normalizat'    .68622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2415       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=   4960.100     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      276 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10126E-03    110.67        .18142E-02** at limit **
   2  Index         2.8341        6.3942        .50000        .11398E-04
   3  Normalizat    .68622        .16212E-01    .37025E-03   -.74368E-04
   4  Prefactor     1.2415        .11441E-01    .19833E-03   -.34738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101264
  Index      = 2.83407
  Normalizat = 0.686219
  Prefactor  = 1.24154
 **********
 **   18 **HESSE 
 **********

 FCN=   4960.100     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10126E-03    482.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8341        6.4209        .50000       -.44802    
   3  Normalizat    .68622        .35008E-01    .14810E-04   -1.0444    
   4  Prefactor     1.2415        .24705E-01    .79331E-05   -.85063    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1708e-08
Minuit parameter uncertainties:
  1  0.0498127
  2  664.002
  3  0.0350094
  4  0.0247051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151918': 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) = 4960.09957971
delta logL = -6.03145963396e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.013e-04  4.981e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.834e+00  6.640e+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:  1.242e+00  2.471e-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:  6.862e-01  3.501e-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/151918/cmap_HighResolution_383961601_384220801_4FGL_J2349.4+0534_daily_bin558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-30 06:58:01.738140', job_id='151918', GAL2='1.24', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1633010281.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-6.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='558' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:58:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 151918: <4FGL_J2349.4+0534_daily_bin558> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin558> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:45:18 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:45:20 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:20 2021
Terminated at Thu Sep 30 06:58:02 2021
Results reported at Thu Sep 30 06:58:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin558 357.356 5.579 383961601 384220801 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 :                                   589.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

