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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1123
RA = 357.356, Dec = 5.579
tmin = 530409601, tmax = 530668801
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='153710', job_status='RUN', time_executed='2021-09-30 06:52:56.449264', time_epoch_executed='1633009976.45' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153710

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153710/ft1_4FGL_J2349.4+0534_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153710/ft2_4FGL_J2349.4+0534_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153710/ft1_4FGL_J2349.4+0534_daily_bin1123.fits outfile=/scratch/kocevski/153710/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1123.fits ra=357.356 dec=5.579 rad=12.0 tmin=530409601.0 tmax=530668801.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.87
user 3.37
sys 0.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153710/ft1_filtered_4FGL_J2349.4+0534_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/153710/ft2_4FGL_J2349.4+0534_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/153710/ltcube_530409601_530668801_4FGL_J2349.4+0534_daily_bin1123.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/153710/ft2_4FGL_J2349.4+0534_daily_bin1123.fits
.....................!
real 12.18
user 11.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153710/ft1_filtered_4FGL_J2349.4+0534_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/153710/ft2_4FGL_J2349.4+0534_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/153710/ltcube_530409601_530668801_4FGL_J2349.4+0534_daily_bin1123.fits outfile=/scratch/kocevski/153710/expmap_530409601_530668801_4FGL_J2349.4+0534_daily_bin1123.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/153710/ltcube_530409601_530668801_4FGL_J2349.4+0534_daily_bin1123.fits
.....................!
real 189.89
user 184.92
sys 4.65

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/153710/ft1_filtered_4FGL_J2349.4+0534_daily_bin1123.fits scfile=/scratch/kocevski/153710/ft2_4FGL_J2349.4+0534_daily_bin1123.fits outfile=/scratch/kocevski/153710/cmap_530409601_530668801_4FGL_J2349.4+0534_daily_bin1123.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=357.356 yref=5.579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153710/ft1_filtered_4FGL_J2349.4+0534_daily_bin1123.fits scfile=/scratch/kocevski/153710/ft2_4FGL_J2349.4+0534_daily_bin1123.fits outfile=/scratch/kocevski/153710/cmap_HighResolution_530409601_530668801_4FGL_J2349.4+0534_daily_bin1123.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6797       1.0000         .10000E-03   10000.    
     2 'norm      '    4.6351       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10740E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.099       1.0000         .10000E-03   10000.    
     8 'norm      '    .65507       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0176       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10857E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .92377       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0914       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22345E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.434       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10606E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1787       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10836E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.924       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9752       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .53190       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96656       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=   5709.017     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2222 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6780        6.3431        .18017E-05   -.87275E-03
   2  norm          4.6343        3.2545       -.90788E-07   -.12251E-02
   3  norm          2.6902        3.1876       -.15430E-07   -.31850E-04
   4  Prefactor     .10000E-03    5.3833        .29044E-07** at limit **
   5  Prefactor     .10000E-03    19.961       -.94140E-05** at limit **
   6  Prefactor     .10000E-03    2.8749       -.55384E-07** at limit **
   7  Prefactor     15.093        14.677        .42201E-06    .10177E-04
   8  norm          .65498        .81180       -.74807E-09   -.20799E-03
   9  Prefactor     6.0349        8.5692       -.46028E-07   -.71020E-03
  10  Prefactor     .10000E-03    19.112       -.52280E-05** at limit **
  11  norm          .89498        5.6127        .14306E-05   -.54601E-03
  12  Prefactor     1.1088        5.8092       -.66757E-06   -.35949E-03
  13  Prefactor     .10000E-03    68.799       -.15136E-05** at limit **
  14  Prefactor     11.438        8.8426       -.61279E-07   -.44232E-03
  15  Prefactor     .10000E-03    10.038       -.68509E-06** at limit **
  16  norm          .10000E-03    4.6107        .60145E-07** at limit **
  17  norm          .10000E-03    17.112        .95935E-05** at limit **
  18  Prefactor     2.1780        4.1513       -.27036E-06   -.27765E-03
  19  Prefactor     .10000E-03    27.036        .75804E-05** at limit **
  20  Prefactor     40.907        23.126       -.37129E-05   -.14228E-03
  21  Prefactor     6.9829        11.684       -.27061E-06   -.22593E-04
  22  Normalizat    .53202        .19079        .88114E-06   -.13223E-03
  23  Prefactor     .96646        .12438       -.24214E-07   -.18673E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67803
  norm       = 4.63428
  norm       = 2.69018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0929
  norm       = 0.654976
  Prefactor  = 6.03488
  Prefactor  = 0.0001
  norm       = 0.89498
  Prefactor  = 1.10876
  Prefactor  = 0.0001
  Prefactor  = 11.438
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.17803
  Prefactor  = 0.0001
  Prefactor  = 40.9075
  Prefactor  = 6.98293
  Normalizat = 0.532022
  Prefactor  = 0.966463
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.017     FROM HESSE     STATUS=OK           374 CALLS     2596 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6780        23.104        .16253E-02   -1.5449    
   2  norm          4.6343        3.2483        .50260E-03   -1.5277    
   3  norm          2.6902        3.1783        .14157E-03   -1.5380    
   4  Prefactor     .10000E-03    5.3989        .17116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8758        .12512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.093        14.681        .10308E-03   -1.4931    
   8  norm          .65498        .77058        .71893E-03   -1.5546    
   9  Prefactor     6.0349        8.7486        .81841E-03   -1.5217    
  10  Prefactor     .10000E-03    19.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .89498        16.022        .29154E-02   -1.5519    
  12  Prefactor     1.1088        5.5077        .32346E-03   -1.5497    
  13  Prefactor     .10000E-03    68.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.438        8.7689        .11847E-03   -1.5031    
  15  Prefactor     .10000E-03    10.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6147        .15845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1780        4.1082        .18616E-03   -1.5413    
  19  Prefactor     .10000E-03    27.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.907        23.205        .62660E-04   -1.4428    
  21  Prefactor     6.9829        11.670        .15190E-03   -1.5179    
  22  Normalizat    .53202        .21745        .33252E-03   -1.1095    
  23  Prefactor     .96646        .14344        .17625E-03   -.93856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92162e-09
Minuit parameter uncertainties:
  1  12.4584
  2  3.24842
  3  3.17853
  4  1.24745e-06
  5  0.000124717
  6  1.15283e-06
  7  14.6844
  8  0.77059
  9  8.75045
  10  6.97261e-05
  11  7.57542
  12  4.94286
  13  3.72703e-05
  14  8.76984
  15  5.28717e-06
  16  9.62995e-07
  17  0.000100982
  18  4.1087
  19  0.000129589
  20  23.2097
  21  11.6742
  22  0.217795
  23  0.143494
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
531   Normalization:  5.320e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.57
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 8.17e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.40e-05

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): 0
logL (Free Index) = 5708.69351895
delta logL = 0.323410857734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5708.66000706
delta logL = 0.356922740307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.657       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9935       1.0000          .0000       10.000    
     3 'Normalizat'    .56935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95152       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=   5708.660     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      285 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.662        30.847        .55801E-04    .37488E-05
   2  Index         1.9941        .51613        .78848E-02   -.21974E-05
   3  Normalizat    .56944        .20114        .32190E-03   -.59334E-05
   4  Prefactor     .95141        .14016        .17743E-03    .20516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.662
  Index      = 1.99409
  Normalizat = 0.569439
  Prefactor  = 0.951409
 **********
 **   18 **HESSE 
 **********

 FCN=   5708.660     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.662        30.810        .11160E-04   -1.4269    
   2  Index         1.9941        .51496        .31539E-03   -.64498    
   3  Normalizat    .56944        .20112        .12876E-04   -1.0930    
   4  Prefactor     .95141        .14021        .35486E-04   -.94367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1199e-12
Minuit parameter uncertainties:
  1  30.82
  2  0.516392
  3  0.201378
  4  0.140259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153710': 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) = 5708.66000604
delta logL = 0.356923766016

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  5.166e+01  3.082e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.994e+00  5.164e-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:  9.514e-01  1.403e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  5.694e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.29
Ra Dec: 357.356 5.579
Photon Index (Free Index): 1.99 +/- 0.52
Photon Flux (Free Index): 5.12e-08 +/- 4.55e-08
Energy Flux (Free Index): 3.59e-05 +/- 3.09e-05

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/153710/cmap_HighResolution_530409601_530668801_4FGL_J2349.4+0534_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.17e-08', energy_flux2='3.59e-05', photon_flux_error='4.63e-08', dlogl='3.57e-01', energy_flux='2.46e-05', photon_flux2='5.12e-08', job_status='DONE', time_completed='2021-09-30 07:06:03.093206', photon_index_error2='0.52', photon_index2='1.99', ts='7.57', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.09e-05', EG='0.53', time_epoch_completed='1633010763.09', return_code='0', job_id='153710', GAL2='0.95', EG2='0.57', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='4.55e-08', ts2='8.29', photon_index='2.47' WHERE bin_id='1123' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:06:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 153710: <4FGL_J2349.4+0534_daily_bin1123> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1123 357.356 5.579 530409601 530668801 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 :                                   536.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

