/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 226 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 = 7478
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin223
RA = 357.356, Dec = 5.579
tmin = 297129601, tmax = 297388801
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='149256', job_status='RUN', time_executed='2021-09-30 06:39:33.793822', time_epoch_executed='1633009173.79' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149256

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149256/ft1_4FGL_J2349.4+0534_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149256/ft2_4FGL_J2349.4+0534_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149256/ft1_4FGL_J2349.4+0534_daily_bin223.fits outfile=/scratch/kocevski/149256/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin223.fits ra=357.356 dec=5.579 rad=12.0 tmin=297129601.0 tmax=297388801.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.58
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149256/ft1_filtered_4FGL_J2349.4+0534_daily_bin223.fits" evtable="EVENTS" scfile=/scratch/kocevski/149256/ft2_4FGL_J2349.4+0534_daily_bin223.fits sctable="SC_DATA" outfile=/scratch/kocevski/149256/ltcube_297129601_297388801_4FGL_J2349.4+0534_daily_bin223.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/149256/ft2_4FGL_J2349.4+0534_daily_bin223.fits
.....................!
real 11.82
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149256/ft1_filtered_4FGL_J2349.4+0534_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/149256/ft2_4FGL_J2349.4+0534_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/149256/ltcube_297129601_297388801_4FGL_J2349.4+0534_daily_bin223.fits outfile=/scratch/kocevski/149256/expmap_297129601_297388801_4FGL_J2349.4+0534_daily_bin223.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/149256/ltcube_297129601_297388801_4FGL_J2349.4+0534_daily_bin223.fits
.....................!
real 190.27
user 185.18
sys 4.73

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/149256/ft1_filtered_4FGL_J2349.4+0534_daily_bin223.fits scfile=/scratch/kocevski/149256/ft2_4FGL_J2349.4+0534_daily_bin223.fits outfile=/scratch/kocevski/149256/cmap_297129601_297388801_4FGL_J2349.4+0534_daily_bin223.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/149256/ft1_filtered_4FGL_J2349.4+0534_daily_bin223.fits scfile=/scratch/kocevski/149256/ft2_4FGL_J2349.4+0534_daily_bin223.fits outfile=/scratch/kocevski/149256/cmap_HighResolution_297129601_297388801_4FGL_J2349.4+0534_daily_bin223.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/149256/ft1_filtered_4FGL_J2349.4+0534_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/149256/ft2_4FGL_J2349.4+0534_daily_bin223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149256/Model_4FGL_J2349.4+0534_daily_bin223.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/149256/ft1_filtered_4FGL_J2349.4+0534_daily_bin223.fits.....................!
real 66.14
user 64.79
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.5475       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.250       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0897       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .88723E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1417       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16889E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.464       1.0000         .10000E-03   10000.    
    17 'norm      '    .10363E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.761       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97321       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1680       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=   5981.765     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2539 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0724        .24248E-06** at limit **
   2  norm          .10000E-03    .97354        .60021E-08** at limit **
   3  norm          8.5480        5.0956        .23118E-05    .10861E-05
   4  Prefactor     .10000E-03    6.8014       -.19306E-06** at limit **
   5  Prefactor     11.239        30.498       -.23066E-05    .24888E-04
   6  Prefactor     .10000E-03    5.5798        .11656E-07** at limit **
   7  Prefactor     .10000E-03    17.080        .16976E-05** at limit **
   8  norm          3.0900        1.4541       -.23263E-07    .49353E-04
   9  Prefactor     .10027E-03    7.1060       -.26121E-05** at limit **
  10  Prefactor     .10000E-03    74.073        .38518E-04** at limit **
  11  norm          4.1186        7.8574        .46779E-05    .11484E-02
  12  Prefactor     .10014E-03    5.9917       -.42292E-05** at limit **
  13  Prefactor     .10000E-03    161.44       -.27176E-04** at limit **
  14  Prefactor     .10000E-03    9.8090       -.87514E-06** at limit **
  15  Prefactor     .10000E-03    35.075       -.31365E-05** at limit **
  16  norm          16.461        13.428        .60661E-08    .13903E-03
  17  norm          .10000E-03    58.370       -.21395E-04** at limit **
  18  Prefactor     10.132        6.6848        .89839E-06    .29895E-03
  19  Prefactor     .10000E-03    24.269        .13889E-04** at limit **
  20  Prefactor     12.763        21.960       -.56285E-06    .24651E-04
  21  Prefactor     .10000E-03    5.8900        .90583E-07** at limit **
  22  Normalizat    .97311        .22120       -.12520E-05    .62669E-03
  23  Prefactor     1.1679        .15433        .19180E-06    .87441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.54795
  Prefactor  = 0.0001
  Prefactor  = 11.2387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.09002
  Prefactor  = 0.000100272
  Prefactor  = 0.0001
  norm       = 4.11865
  Prefactor  = 0.000100143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4613
  norm       = 0.0001
  Prefactor  = 10.1318
  Prefactor  = 0.0001
  Prefactor  = 12.7629
  Prefactor  = 0.0001
  Normalizat = 0.973109
  Prefactor  = 1.16794
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.765     FROM HESSE     STATUS=OK           362 CALLS     2901 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .98659        .74496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.5480        5.0791        .12965E-03   -1.5123    
   4  Prefactor     .10000E-03    6.8307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.239        30.496        .11944E-03   -1.5037    
   6  Prefactor     .10000E-03    5.5882        .17843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0900        1.4512        .61221E-04   -1.5356    
   9  Prefactor     .10027E-03    62.612        .37583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    73.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1186        7.3241        .19806E-03   -1.5302    
  12  Prefactor     .10014E-03    21.283        .34009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    161.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.461        13.422        .98708E-04   -1.4896    
  17  norm          .10000E-03    58.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.132        6.6718        .12591E-03   -1.5071    
  19  Prefactor     .10000E-03    24.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.763        21.969        .11213E-03   -1.4993    
  21  Prefactor     .10000E-03    5.8965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .97311        .25124        .31845E-03   -.93937    
  23  Prefactor     1.1679        .17631        .20782E-03   -.87324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21711e-08
Minuit parameter uncertainties:
  1  8.4171e-07
  2  4.29494e-08
  3  5.07931
  4  2.17491e-05
  5  30.5383
  6  2.39356e-06
  7  3.46502e-06
  8  1.45126
  9  0.00825897
  10  0.000105621
  11  7.3257
  12  0.00348687
  13  4.43364e-05
  14  1.94802e-05
  15  2.53132e-05
  16  13.4248
  17  8.8103e-05
  18  6.67227
  19  2.87948e-05
  20  21.9826
  21  1.92407e-07
  22  0.251546
  23  0.176403
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.276e+01  2.198e+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:  1.168e+00  1.764e-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.731e-01  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149256/likelihoodResults_297129601_297388801_4FGL_J2349.4+0534_daily_bin223.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) = 5981.71201072
delta logL = 0.0529053509063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5981.70949604
delta logL = 0.0554200292027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.982       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1576       1.0000          .0000       10.000    
     3 'Normalizat'    .97968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1627       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=   5981.709     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      262 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.069        1130.0        .22400E-02   -.22687E-04
   2  Index         2.1604        5.9836        .24955       -.77450E-05
   3  Normalizat    .97978        .67852E-01    .71753E-01   -.79225E-04
   4  Prefactor     1.1624        .48369E-01    .35578E-01   -.95162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0688
  Index      = 2.16041
  Normalizat = 0.979782
  Prefactor  = 1.16235
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.709     FROM HESSE     STATUS=OK            31 CALLS      293 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.069        35.188        .89600E-04   -1.4812    
   2  Index         2.1604        .82932        .92364E-02   -.60397    
   3  Normalizat    .97978        .24670        .31746E-03   -.93711    
   4  Prefactor     1.1624        .17655        .20822E-03   -.87498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49756e-11
Minuit parameter uncertainties:
  1  35.2245
  2  0.835041
  3  0.24699
  4  0.176642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149256': 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) = 5981.70947681
delta logL = 0.0554392664862

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.007e+01  3.522e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.160e+00  8.350e-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:  1.162e+00  1.766e-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.798e-01  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/149256/cmap_HighResolution_297129601_297388801_4FGL_J2349.4+0534_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.94e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-30 06:50:08.937719', job_id='149256', GAL2='1.16', fit_tolerance='1e-08', EG2='0.98', EG='0.97', time_epoch_completed='1633009808.94', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='5.54e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='223' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:50:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 149256: <4FGL_J2349.4+0534_daily_bin223> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin223> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:37 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:38 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:35:38 2021
Terminated at Thu Sep 30 06:50:11 2021
Results reported at Thu Sep 30 06:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin223 357.356 5.579 297129601 297388801 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 :                                   633.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

