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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin783
RA = 357.356, Dec = 5.579
tmin = 442281601, tmax = 442540801
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='153221', job_status='RUN', time_executed='2021-09-30 06:53:03.771787', time_epoch_executed='1633009983.77' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153221

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153221/ft1_4FGL_J2349.4+0534_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153221/ft2_4FGL_J2349.4+0534_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153221/ft1_4FGL_J2349.4+0534_daily_bin783.fits outfile=/scratch/kocevski/153221/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin783.fits ra=357.356 dec=5.579 rad=12.0 tmin=442281601.0 tmax=442540801.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.49
user 3.28
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153221/ft1_filtered_4FGL_J2349.4+0534_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/153221/ft2_4FGL_J2349.4+0534_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/153221/ltcube_442281601_442540801_4FGL_J2349.4+0534_daily_bin783.fits outfile=/scratch/kocevski/153221/expmap_442281601_442540801_4FGL_J2349.4+0534_daily_bin783.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/153221/ltcube_442281601_442540801_4FGL_J2349.4+0534_daily_bin783.fits
.....................!
real 190.49
user 184.82
sys 5.31

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/153221/ft1_filtered_4FGL_J2349.4+0534_daily_bin783.fits scfile=/scratch/kocevski/153221/ft2_4FGL_J2349.4+0534_daily_bin783.fits outfile=/scratch/kocevski/153221/cmap_442281601_442540801_4FGL_J2349.4+0534_daily_bin783.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153221/ft1_filtered_4FGL_J2349.4+0534_daily_bin783.fits scfile=/scratch/kocevski/153221/ft2_4FGL_J2349.4+0534_daily_bin783.fits outfile=/scratch/kocevski/153221/cmap_HighResolution_442281601_442540801_4FGL_J2349.4+0534_daily_bin783.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.403       1.0000         .10000E-03   10000.    
     2 'norm      '    .11855E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5582       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6391       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.509       1.0000         .10000E-03   10000.    
     8 'norm      '    .88514       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .34973E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.895       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.031       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    31.085       1.0000         .10000E-03   10000.    
    17 'norm      '    .21659E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21485E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.412       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9404       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94326       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92704       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=   7029.433     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2339 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.425        13.976        .36778E-05    .31403E-04
   2  norm          .60070E-02    .92569        .14168E-06   -.15199E-02
   3  norm          2.5583        2.3378       -.68463E-07    .60923E-05
   4  Prefactor     .10000E-03    2.7149       -.37210E-07** at limit **
   5  Prefactor     .10000E-03    19.815       -.88579E-07** at limit **
   6  Prefactor     1.6373        9.7803        .98759E-05   -.45183E-03
   7  Prefactor     20.509        16.414        .13536E-04   -.32904E-04
   8  norm          .88536        .61381       -.53493E-07   -.24400E-03
   9  Prefactor     .68337E-01    7.2800        .20829E-05   -.20602E-03
  10  Prefactor     .10000E-03    18.902       -.62267E-06** at limit **
  11  norm          12.868        10.164       -.44115E-05   -.64689E-03
  12  Prefactor     15.032        8.5876        .11396E-05   -.35642E-03
  13  Prefactor     .10000E-03    124.39       -.29114E-04** at limit **
  14  Prefactor     .10000E-03    3.7342        .34845E-07** at limit **
  15  Prefactor     .10000E-03    8.9227        .89957E-07** at limit **
  16  norm          31.083        17.564       -.76362E-06   -.21221E-04
  17  norm          .10662E-03    11.424        .28330E-05** at limit **
  18  Prefactor     .10000E-03    1.8473        .31663E-06** at limit **
  19  Prefactor     21.317        32.662       -.19413E-04   -.42449E-04
  20  Prefactor     .10000E-03    11.605        .29677E-06** at limit **
  21  Prefactor     1.9479        23.040       -.25407E-04   -.17002E-03
  22  Normalizat    .94297        .18588        .27067E-05   -.33619E-03
  23  Prefactor     .92727        .12445       -.36498E-06   -.26556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4248
  norm       = 0.00600696
  norm       = 2.55827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.63725
  Prefactor  = 20.5093
  norm       = 0.885361
  Prefactor  = 0.0683371
  Prefactor  = 0.0001
  norm       = 12.8682
  Prefactor  = 15.0321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.0834
  norm       = 0.000106619
  Prefactor  = 0.0001
  Prefactor  = 21.3171
  Prefactor  = 0.0001
  Prefactor  = 1.94792
  Normalizat = 0.942969
  Prefactor  = 0.927269
 **********
 **   18 **HESSE 
 **********

 FCN=   7029.433     FROM HESSE     STATUS=OK           400 CALLS     2739 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.425        14.101        .88673E-04   -1.4804    
   2  norm          .60070E-02    2.0688        .27545E-01   -1.5693    
   3  norm          2.5583        2.3377        .11930E-03   -1.5388    
   4  Prefactor     .10000E-03    2.7207        .13491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6373        9.5260        .33008E-03   -1.5452    
   7  Prefactor     20.509        16.371        .88442E-04   -1.4802    
   8  norm          .88536        .62505        .53058E-04   -1.5520    
   9  Prefactor     .68337E-01    14.174        .63816E-01   -1.5656    
  10  Prefactor     .10000E-03    18.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.868        10.313        .11155E-03   -1.4990    
  12  Prefactor     15.032        8.5835        .10331E-03   -1.4932    
  13  Prefactor     .10000E-03    124.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7488        .15811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          31.083        17.570        .71866E-04   -1.4592    
  17  norm          .10662E-03    10.973        .92039E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.4374        .21731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.317        32.778        .86560E-04   -1.4784    
  20  Prefactor     .10000E-03    11.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9479        23.578        .29805E-03   -1.5429    
  22  Normalizat    .94297        .21811        .29007E-03   -.94966    
  23  Prefactor     .92727        .14678        .20473E-03   -.95195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56627e-07
Minuit parameter uncertainties:
  1  14.1035
  2  0.221099
  3  2.33779
  4  5.16236e-06
  5  6.45612e-05
  6  7.90013
  7  16.375
  8  0.625054
  9  1.96741
  10  1.60288e-05
  11  10.3147
  12  8.58425
  13  4.57429e-06
  14  5.46944e-06
  15  3.05487e-05
  16  17.573
  17  0.0170476
  18  7.44755e-05
  19  32.8056
  20  5.86417e-05
  21  13.5603
  22  0.218313
  23  0.146844
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  5.864e-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:  9.273e-01  1.468e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.430e-01  2.183e-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: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153221/likelihoodResults_442281601_442540801_4FGL_J2349.4+0534_daily_bin783.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) = 7029.43313021
delta logL = -0.000408704079746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7029.4327219
delta logL = -3.91591129301e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4565       1.0000          .0000       10.000    
     3 'Normalizat'    .94284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92736       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=   7029.433     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      246 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10203E-03    8.6219        .18142E-01** at limit **
   2  Index         2.3087        8.5762        .50000        .51328E-05
   3  Normalizat    .94297        .38757E-02    .29006E-03   -.27436E-06
   4  Prefactor     .92727        .27321E-02    .20473E-03    .18325E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102031
  Index      = 2.30866
  Normalizat = 0.942972
  Prefactor  = 0.927268
 **********
 **   18 **HESSE 
 **********

 FCN=   7029.433     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10203E-03    519.78        .28525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3087        8.7766        .50000       -.56838    
   3  Normalizat    .94297        .31569E-01    .11603E-04   -.94966    
   4  Prefactor     .92727        .22254E-01    .81890E-05   -.95195    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.14497e-08
Minuit parameter uncertainties:
  1  0.0655579
  2  2002.21
  3  0.03157
  4  0.0222539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153221': 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) = 7029.43272135
delta logL = 1.51525455294e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.020e-04  6.556e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.309e+00  2.002e+03  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:  9.273e-01  2.225e-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:  9.430e-01  3.157e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/153221/cmap_HighResolution_442281601_442540801_4FGL_J2349.4+0534_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-30 07:04:25.827334', job_id='153221', GAL2='0.93', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1633010665.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='783' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:04:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 153221: <4FGL_J2349.4+0534_daily_bin783> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin783 357.356 5.579 442281601 442540801 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 :                                   674.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            852 sec.

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

