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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin384
RA = 357.356, Dec = 5.579
tmin = 338860801, tmax = 339120001
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='150518', job_status='RUN', time_executed='2021-09-30 06:42:26.783997', time_epoch_executed='1633009346.78' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150518

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150518/ft1_4FGL_J2349.4+0534_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150518/ft2_4FGL_J2349.4+0534_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150518/ft1_4FGL_J2349.4+0534_daily_bin384.fits outfile=/scratch/kocevski/150518/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin384.fits ra=357.356 dec=5.579 rad=12.0 tmin=338860801.0 tmax=339120001.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 4.73
user 4.45
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150518/ft1_filtered_4FGL_J2349.4+0534_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/150518/ft2_4FGL_J2349.4+0534_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/150518/ltcube_338860801_339120001_4FGL_J2349.4+0534_daily_bin384.fits outfile=/scratch/kocevski/150518/expmap_338860801_339120001_4FGL_J2349.4+0534_daily_bin384.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/150518/ltcube_338860801_339120001_4FGL_J2349.4+0534_daily_bin384.fits
.....................!
real 190.38
user 184.68
sys 5.27

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/150518/ft1_filtered_4FGL_J2349.4+0534_daily_bin384.fits scfile=/scratch/kocevski/150518/ft2_4FGL_J2349.4+0534_daily_bin384.fits outfile=/scratch/kocevski/150518/cmap_338860801_339120001_4FGL_J2349.4+0534_daily_bin384.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150518/ft1_filtered_4FGL_J2349.4+0534_daily_bin384.fits scfile=/scratch/kocevski/150518/ft2_4FGL_J2349.4+0534_daily_bin384.fits outfile=/scratch/kocevski/150518/cmap_HighResolution_338860801_339120001_4FGL_J2349.4+0534_daily_bin384.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/150518/ft1_filtered_4FGL_J2349.4+0534_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/150518/ft2_4FGL_J2349.4+0534_daily_bin384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150518/Model_4FGL_J2349.4+0534_daily_bin384.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/150518/ft1_filtered_4FGL_J2349.4+0534_daily_bin384.fits.....................!
real 60.26
user 58.88
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2895       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1200       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8439       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.275       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6347       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11233E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.148       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.943       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5368       1.0000         .10000E-03   10000.    
    19 'Prefactor '    122.97       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.757       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91686       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94232       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=   5576.485     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2569 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2827        18.988        .80219E-06    .10429E-03
   2  norm          2.1208        2.8448        .83788E-07    .15621E-03
   3  norm          2.8824        2.7937       -.84988E-07    .80393E-05
   4  Prefactor     1.8452        18.384        .26646E-05    .14948E-03
   5  Prefactor     .10001E-03    40.862        .15517E-05** at limit **
   6  Prefactor     12.611        14.031        .71196E-07    .96374E-04
   7  Prefactor     .10000E-03    21.130       -.32105E-06** at limit **
   8  norm          1.5729        1.0955       -.11260E-07   -.10576E-03
   9  Prefactor     .10000E-03    11.032        .19957E-06** at limit **
  10  Prefactor     37.275        43.782        .22160E-07   -.19969E-05
  11  norm          4.6431        9.0767        .14301E-05    .62193E-03
  12  Prefactor     .10001E-03    10.332       -.47822E-05** at limit **
  13  Prefactor     .10000E-03    159.11       -.66463E-06** at limit **
  14  Prefactor     22.147        16.141       -.18274E-06    .26272E-04
  15  Prefactor     .10000E-03    10.682       -.58395E-06** at limit **
  16  norm          17.944        15.296        .10050E-06    .11435E-03
  17  norm          .10000E-03    12.936        .74091E-06** at limit **
  18  Prefactor     1.5364        3.6858        .72509E-06    .23124E-03
  19  Prefactor     122.97        54.126       -.45121E-06   -.13944E-03
  20  Prefactor     34.757        22.550        .51110E-07    .60882E-04
  21  Prefactor     .10000E-03    39.225       -.13365E-05** at limit **
  22  Normalizat    .91695        .20939        .14105E-07    .42499E-03
  23  Prefactor     .94225        .13981       -.11704E-06    .53421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.28271
  norm       = 2.12082
  norm       = 2.88243
  Prefactor  = 1.84519
  Prefactor  = 0.000100006
  Prefactor  = 12.6112
  Prefactor  = 0.0001
  norm       = 1.57288
  Prefactor  = 0.000100001
  Prefactor  = 37.2751
  norm       = 4.64308
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  Prefactor  = 22.1469
  Prefactor  = 0.0001
  norm       = 17.9444
  norm       = 0.000100001
  Prefactor  = 1.53644
  Prefactor  = 122.967
  Prefactor  = 34.7575
  Prefactor  = 0.000100004
  Normalizat = 0.916949
  Prefactor  = 0.942248
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.485     FROM HESSE     STATUS=OK           368 CALLS     2937 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2827        18.460        .22324E-03   -1.5346    
   2  norm          2.1208        2.7930        .12694E-03   -1.5417    
   3  norm          2.8824        2.8012        .11901E-03   -1.5368    
   4  Prefactor     1.8452        18.474        .30714E-03   -1.5436    
   5  Prefactor     .10001E-03    41.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.611        14.026        .11280E-03   -1.4998    
   7  Prefactor     .10000E-03    21.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5729        1.0953        .33889E-04   -1.5457    
   9  Prefactor     .10000E-03    11.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.275        43.777        .65645E-04   -1.4486    
  11  norm          4.6431        9.4606        .18695E-03   -1.5277    
  12  Prefactor     .10001E-03    12.193        .30901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    159.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.147        15.990        .85111E-04   -1.4766    
  15  Prefactor     .10000E-03    10.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.944        15.305        .94552E-04   -1.4860    
  17  norm          .10000E-03    13.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5364        3.6288        .20173E-03   -1.5460    
  19  Prefactor     122.97        54.404        .36295E-04   -1.3486    
  20  Prefactor     34.757        22.555        .67974E-04   -1.4528    
  21  Prefactor     .10000E-03    40.792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .91695        .24025        .29921E-03   -.95867    
  23  Prefactor     .94225        .16114        .20705E-03   -.94680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41209e-09
Minuit parameter uncertainties:
  1  15.5763
  2  2.79314
  3  2.80134
  4  11.6814
  5  0.00097
  6  14.0297
  7  0.000166087
  8  1.09535
  9  0.000252821
  10  43.8151
  11  9.46369
  12  0.000727556
  13  0.000856754
  14  15.9935
  15  0.000124862
  16  15.308
  17  0.000266213
  18  3.62937
  19  54.4263
  20  22.5605
  21  0.000810883
  22  0.24053
  23  0.16122
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.476e+01  2.256e+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.422e-01  1.612e-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.169e-01  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.64
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.94e-08 +/- 4.50e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.36e-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) = 5575.17912871
delta logL = 1.30608585366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5575.16216903
delta logL = 1.32304552822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.026       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7680       1.0000          .0000       10.000    
     3 'Normalizat'    .95325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92203       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=   5575.162     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      262 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 19.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.023        34.212       -.41488E-05    .69782E-03
   2  Index         1.7679        .29906        .50894E-05    .57337E-03
   3  Normalizat    .95307        .19731       -.40772E-06   -.73379E-04
   4  Prefactor     .92203        .13895        .40170E-06   -.11333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.0226
  Index      = 1.76794
  Normalizat = 0.953072
  Prefactor  = 0.922034
 **********
 **   18 **HESSE 
 **********

 FCN=   5575.162     FROM HESSE     STATUS=OK            29 CALLS      291 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.023        36.616        .51363E-04   -1.4144    
   2  Index         1.7679        .36869        .64048E-02   -.70287    
   3  Normalizat    .95307        .22687        .29407E-03   -.94620    
   4  Prefactor     .92203        .16007        .20882E-03   -.95375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25074e-09
Minuit parameter uncertainties:
  1  36.6296
  2  0.369271
  3  0.227097
  4  0.160147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150518': 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) = 5575.1621678
delta logL = 1.32304676558

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  6.102e+01  3.663e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.768e+00  3.693e-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.220e-01  1.601e-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.531e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.33
Ra Dec: 357.356 5.579
Photon Index (Free Index): 1.77 +/- 0.37
Photon Flux (Free Index): 4.63e-08 +/- 3.31e-08
Energy Flux (Free Index): 6.11e-05 +/- 5.85e-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/150518/cmap_HighResolution_338860801_339120001_4FGL_J2349.4+0534_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.94e-08', energy_flux2='6.11e-05', photon_flux_error='4.50e-08', dlogl='1.32e+00', energy_flux='2.09e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2021-09-30 06:51:56.479122', photon_index_error2='0.37', photon_index2='1.77', ts='4.64', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='5.85e-05', EG='0.92', time_epoch_completed='1633009916.48', return_code='0', job_id='150518', GAL2='0.92', EG2='0.95', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.31e-08', ts2='7.33', photon_index='2.47' WHERE bin_id='384' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:51:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 150518: <4FGL_J2349.4+0534_daily_bin384> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin384> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:13 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40:15 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:40:15 2021
Terminated at Thu Sep 30 06:51:57 2021
Results reported at Thu Sep 30 06:51:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin384 357.356 5.579 338860801 339120001 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 :                                   567.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            704 sec.

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

