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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1015
RA = 357.356, Dec = 5.579
tmin = 502416001, tmax = 502675201
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='153556', job_status='RUN', time_executed='2021-09-30 06:53:45.106990', time_epoch_executed='1633010025.11' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153556

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153556/ft1_4FGL_J2349.4+0534_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153556/ft2_4FGL_J2349.4+0534_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153556/ft1_4FGL_J2349.4+0534_daily_bin1015.fits outfile=/scratch/kocevski/153556/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1015.fits ra=357.356 dec=5.579 rad=12.0 tmin=502416001.0 tmax=502675201.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.54
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153556/ft1_filtered_4FGL_J2349.4+0534_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/153556/ft2_4FGL_J2349.4+0534_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/153556/ltcube_502416001_502675201_4FGL_J2349.4+0534_daily_bin1015.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/153556/ft2_4FGL_J2349.4+0534_daily_bin1015.fits
.....................!
real 11.86
user 11.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153556/ft1_filtered_4FGL_J2349.4+0534_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/153556/ft2_4FGL_J2349.4+0534_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/153556/ltcube_502416001_502675201_4FGL_J2349.4+0534_daily_bin1015.fits outfile=/scratch/kocevski/153556/expmap_502416001_502675201_4FGL_J2349.4+0534_daily_bin1015.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/153556/ltcube_502416001_502675201_4FGL_J2349.4+0534_daily_bin1015.fits
.....................!
real 191.16
user 186.15
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/153556/ft1_filtered_4FGL_J2349.4+0534_daily_bin1015.fits scfile=/scratch/kocevski/153556/ft2_4FGL_J2349.4+0534_daily_bin1015.fits outfile=/scratch/kocevski/153556/cmap_502416001_502675201_4FGL_J2349.4+0534_daily_bin1015.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153556/ft1_filtered_4FGL_J2349.4+0534_daily_bin1015.fits scfile=/scratch/kocevski/153556/ft2_4FGL_J2349.4+0534_daily_bin1015.fits outfile=/scratch/kocevski/153556/cmap_HighResolution_502416001_502675201_4FGL_J2349.4+0534_daily_bin1015.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2433       1.0000         .10000E-03   10000.    
     2 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4241       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.773       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0503       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10735E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.499       1.0000         .10000E-03   10000.    
    11 'norm      '    29.072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3034       1.0000         .10000E-03   10000.    
    17 'norm      '    .10678E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2302       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2384       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .53688E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0527       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88189       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=   7049.786     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2559 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2398        12.704       -.24289E-06   -.56399E-05
   2  norm          .10000E-03    .98906        .30537E-07** at limit **
   3  norm          .10000E-03    1.6836        .28643E-07** at limit **
   4  Prefactor     1.4253        8.3210       -.43031E-05   -.69389E-04
   5  Prefactor     .10000E-03    14.795       -.40027E-05** at limit **
   6  Prefactor     .10000E-03    3.6987        .29327E-07** at limit **
   7  Prefactor     27.775        16.491       -.12148E-06   -.12056E-04
   8  norm          1.0504        .67984        .11214E-07   -.79954E-04
   9  Prefactor     .10000E-03    7.5414        .39163E-06** at limit **
  10  Prefactor     48.508        42.496        .40850E-05    .66018E-05
  11  norm          29.061        12.485       -.21247E-05   -.12193E-03
  12  Prefactor     2.2212        8.5428        .85669E-06    .31971E-04
  13  Prefactor     .10000E-03    199.24       -.18002E-05** at limit **
  14  Prefactor     .10000E-03    8.4561        .10409E-06** at limit **
  15  Prefactor     .10000E-03    14.367        .33017E-05** at limit **
  16  norm          3.3011        19.082        .14580E-05   -.62278E-05
  17  norm          .10000E-03    20.359        .65564E-05** at limit **
  18  Prefactor     2.2321        3.5197       -.40182E-06   -.32888E-03
  19  Prefactor     .10000E-03    21.597       -.58675E-05** at limit **
  20  Prefactor     1.2384        4.4336        .11875E-05   -.38187E-03
  21  Prefactor     .10002E-03    7.7066        .38039E-06** at limit **
  22  Normalizat    1.0525        .18447        .51918E-06   -.40943E-04
  23  Prefactor     .88192        .12541        .85775E-07   -.29938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.23984
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.42532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.7747
  norm       = 1.05037
  Prefactor  = 0.0001
  Prefactor  = 48.508
  norm       = 29.0606
  Prefactor  = 2.22118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.30109
  norm       = 0.0001
  Prefactor  = 2.23205
  Prefactor  = 0.0001
  Prefactor  = 1.23842
  Prefactor  = 0.000100021
  Normalizat = 1.05254
  Prefactor  = 0.881924
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.786     FROM HESSE     STATUS=OK           372 CALLS     2931 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2398        12.441        .14904E-03   -1.5170    
   2  norm          .10000E-03    1.4768        .15791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6994        .10635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4253        8.3382        .36233E-03   -1.5469    
   5  Prefactor     .10000E-03    14.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7025        .15771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.775        16.506        .38010E-03   -1.4653    
   8  norm          1.0504        .66705        .53859E-04   -1.5503    
   9  Prefactor     .10000E-03    7.6574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.508        42.476        .57580E-04   -1.4314    
  11  norm          29.061        12.245        .74305E-04   -1.4629    
  12  Prefactor     2.2212        8.3082        .27681E-03   -1.5410    
  13  Prefactor     .10000E-03    199.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3011        19.160        .22275E-03   -1.5345    
  17  norm          .10000E-03    20.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2321        3.5046        .18621E-03   -1.5409    
  19  Prefactor     .10000E-03    21.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2384        47.951        .20160E-02   -1.5485    
  21  Prefactor     .10002E-03    51.275        .44679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0525        .21552        .27726E-03   -.91290    
  23  Prefactor     .88192        .14880        .20964E-03   -.96776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22384e-09
Minuit parameter uncertainties:
  1  12.4458
  2  3.34e-06
  3  5.40582e-06
  4  6.89603
  5  6.42803e-06
  6  2.63961e-06
  7  16.5083
  8  0.667054
  9  5.48473e-05
  10  42.5026
  11  12.2463
  12  8.31248
  13  4.17236e-05
  14  1.75576e-05
  15  4.18476e-05
  16  15.9132
  17  2.48734e-06
  18  3.50492
  19  3.20696e-05
  20  15.4248
  21  0.00209914
  22  0.2157
  23  0.148866
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.238e+00  1.542e+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:  8.819e-01  1.489e-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.053e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153556/likelihoodResults_502416001_502675201_4FGL_J2349.4+0534_daily_bin1015.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): 0
logL (Free Index) = 7049.70105549
delta logL = 0.0848642950696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7049.699385
delta logL = 0.0865347769632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7808       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8914       1.0000          .0000       10.000    
     3 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87516       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=   7049.699     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      266 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8253        1908.0        .35939E-02    .24671E-04
   2  Index         1.8937        6.7062        .26454       -.18702E-05
   3  Normalizat    1.0580        .80684E-01    .62543E-01    .90726E-05
   4  Prefactor     .87514        .61691E-01    .44688E-01    .43455E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.8253
  Index      = 1.89371
  Normalizat = 1.058
  Prefactor  = 0.875139
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.699     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .51E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8253        20.386        .14375E-03   -1.5148    
   2  Index         1.8937        .99308        .16511E-01   -.67035    
   3  Normalizat    1.0580        .20700        .27663E-03   -.91112    
   4  Prefactor     .87514        .14617        .21034E-03   -.97015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11185e-14
Minuit parameter uncertainties:
  1  20.4043
  2  1.00403
  3  0.207155
  4  0.146235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153556': 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) = 7049.69937982
delta logL = 0.0865399576178

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  7.825e+00  2.040e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.894e+00  1.004e+00  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.751e-01  1.462e-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.058e+00  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 357.356 5.579

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/153556/cmap_HighResolution_502416001_502675201_4FGL_J2349.4+0534_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-30 07:05:16.002305', job_id='153556', GAL2='0.88', fit_tolerance='1e-08', EG2='1.06', EG='1.05', time_epoch_completed='1633010716.0', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.65e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1015' 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@bullet0079>
Subject: Job 153556: <4FGL_J2349.4+0534_daily_bin1015> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1015> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:39 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:41 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:41 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_bin1015 357.356 5.579 502416001 502675201 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 :                                   682.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

