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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1075
RA = 357.356, Dec = 5.579
tmin = 517968001, tmax = 518227201
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='153641', job_status='RUN', time_executed='2021-09-30 06:53:51.292126', time_epoch_executed='1633010031.29' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153641

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153641/ft1_4FGL_J2349.4+0534_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153641/ft2_4FGL_J2349.4+0534_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153641/ft1_4FGL_J2349.4+0534_daily_bin1075.fits outfile=/scratch/kocevski/153641/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1075.fits ra=357.356 dec=5.579 rad=12.0 tmin=517968001.0 tmax=518227201.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.75
user 3.54
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153641/ft1_filtered_4FGL_J2349.4+0534_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/153641/ft2_4FGL_J2349.4+0534_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/153641/ltcube_517968001_518227201_4FGL_J2349.4+0534_daily_bin1075.fits outfile=/scratch/kocevski/153641/expmap_517968001_518227201_4FGL_J2349.4+0534_daily_bin1075.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/153641/ltcube_517968001_518227201_4FGL_J2349.4+0534_daily_bin1075.fits
.....................!
real 190.66
user 184.93
sys 5.38

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/153641/ft1_filtered_4FGL_J2349.4+0534_daily_bin1075.fits scfile=/scratch/kocevski/153641/ft2_4FGL_J2349.4+0534_daily_bin1075.fits outfile=/scratch/kocevski/153641/cmap_517968001_518227201_4FGL_J2349.4+0534_daily_bin1075.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153641/ft1_filtered_4FGL_J2349.4+0534_daily_bin1075.fits scfile=/scratch/kocevski/153641/ft2_4FGL_J2349.4+0534_daily_bin1075.fits outfile=/scratch/kocevski/153641/cmap_HighResolution_517968001_518227201_4FGL_J2349.4+0534_daily_bin1075.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.763       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.2455       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0825       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3555       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1726       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    114.82       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3153       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15907E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.004       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8659       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13368E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7830       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1174       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83204       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=   6133.872     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2597 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.761        12.550        .89303E-07    .64339E-05
   2  norm          .10000E-03    1.5826        .14092E-06** at limit **
   3  norm          4.2449        3.8880        .14093E-06   -.14239E-04
   4  Prefactor     .10000E-03    7.1123        .85128E-07** at limit **
   5  Prefactor     1.9960        137.53       -.17728E-04   -.97471E-04
   6  Prefactor     9.3548        10.581        .33643E-07   -.11814E-04
   7  Prefactor     .10000E-03    5.9848       -.36552E-07** at limit **
   8  norm          1.1725        1.1016        .84203E-07    .53994E-03
   9  Prefactor     .10000E-03    6.9060        .20251E-06** at limit **
  10  Prefactor     114.82        59.642        .22646E-06    .60739E-04
  11  norm          4.3205        8.4765       -.18932E-06   -.16321E-03
  12  Prefactor     .10000E-03    4.9008        .93661E-06** at limit **
  13  Prefactor     .10004E-03    93.373        .12407E-04** at limit **
  14  Prefactor     .10000E-03    16.243       -.71838E-07** at limit **
  15  Prefactor     19.999        21.838        .67618E-07   -.29121E-04
  16  norm          3.8664        10.401        .80617E-05   -.14927E-03
  17  norm          .10000E-03    18.712        .59129E-06** at limit **
  18  Prefactor     .11194E-03    2.2989       -.90513E-06** at limit **
  19  Prefactor     .10000E-03    56.914       -.34025E-05** at limit **
  20  Prefactor     .10000E-03    60.267        .24837E-05** at limit **
  21  Prefactor     5.7820        11.358        .16223E-06    .21747E-04
  22  Normalizat    1.1177        .18790       -.24526E-06    .35767E-04
  23  Prefactor     .83192        .12703       -.80948E-06    .59419E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7605
  norm       = 0.0001
  norm       = 4.24487
  Prefactor  = 0.0001
  Prefactor  = 1.99599
  Prefactor  = 9.35477
  Prefactor  = 0.0001
  norm       = 1.17251
  Prefactor  = 0.0001
  Prefactor  = 114.823
  norm       = 4.32051
  Prefactor  = 0.000100004
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 19.9985
  norm       = 3.86643
  norm       = 0.0001
  Prefactor  = 0.000111942
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 5.78202
  Normalizat = 1.1177
  Prefactor  = 0.831921
 **********
 **   18 **HESSE 
 **********

 FCN=   6133.872     FROM HESSE     STATUS=OK           382 CALLS     2979 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.761        12.542        .95030E-04   -1.4865    
   2  norm          .10000E-03    1.6515        .19186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2449        3.8838        .14280E-03   -1.5296    
   4  Prefactor     .10000E-03    7.1575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9960        148.80        .28615E-03   -1.5425    
   6  Prefactor     9.3548        10.576        .13103E-03   -1.5096    
   7  Prefactor     .10000E-03    5.9983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1725        1.0787        .75614E-04   -1.5491    
   9  Prefactor     .10000E-03    6.9568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     114.82        59.617        .37546E-04   -1.3561    
  11  norm          4.3205        7.7985        .19392E-03   -1.5292    
  12  Prefactor     .10000E-03    11.192        .30516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    97.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.642        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.999        21.818        .89551E-04   -1.4813    
  16  norm          3.8664        10.667        .10262E-02   -1.5315    
  17  norm          .10000E-03    18.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11194E-03    5.4476        .37381E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    57.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    61.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.7820        11.361        .16702E-03   -1.5227    
  22  Normalizat    1.1177        .21716        .26492E-03   -.89186    
  23  Prefactor     .83192        .14642        .21062E-03   -.98562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23571e-09
Minuit parameter uncertainties:
  1  12.544
  2  2.18216e-06
  3  3.88406
  4  9.26663e-07
  5  34.5565
  6  10.5782
  7  7.9211e-06
  8  1.07872
  9  1.85543e-05
  10  59.6486
  11  7.80032
  12  0.000407647
  13  0.00403959
  14  5.00504e-05
  15  21.8269
  16  10.6723
  17  0.000111676
  18  0.0161328
  19  0.000820318
  20  0.000462013
  21  11.3648
  22  0.217335
  23  0.146493
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.319e-01  1.465e-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.118e+00  2.173e-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: 9.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153641/likelihoodResults_517968001_518227201_4FGL_J2349.4+0534_daily_bin1075.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) = 6133.87256308
delta logL = -7.69114831201e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6133.8724862
delta logL = -3.5388438846e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4775       1.0000          .0000       10.000    
     3 'Normalizat'    1.1177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83191       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.

 FCN=   6133.872     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2156.1        .90712E-02** at limit **
   2  Index         2.4912        5.0670        .50000       -.25725E-05
   3  Normalizat    1.1177        .31761E-01    .59899E-01    .42449E-04
   4  Prefactor     .83192        .22222E-01    .44131E-01    .45320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49117
  Normalizat = 1.1177
  Prefactor  = 0.831921
 **********
 **   18 **HESSE 
 **********

 FCN=   6133.872     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    520.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4912        7.0460        .50000       -.52564    
   3  Normalizat    1.1177        .20662        .26492E-03   -.89186    
   4  Prefactor     .83192        .14478        .21062E-03   -.98562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28187e-12
Minuit parameter uncertainties:
  1  0.000818253
  2  12.7075
  3  0.206774
  4  0.144843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153641': 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) = 6133.87248615
delta logL = 1.13977876026e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.319e-01  1.448e-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.118e+00  2.068e-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/153641/cmap_HighResolution_517968001_518227201_4FGL_J2349.4+0534_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', job_status='DONE', photon_flux_upper_limit='9.78e-08', time_completed='2021-09-30 07:05:16.165142', job_id='153641', GAL2='0.83', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1633010716.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1075' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:05:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 153641: <4FGL_J2349.4+0534_daily_bin1075> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1075 357.356 5.579 517968001 518227201 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 :                                   647.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            870 sec.

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

