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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin131
RA = 357.356, Dec = 5.579
tmin = 273283201, tmax = 273542401
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='149087', job_status='RUN', time_executed='2021-09-30 06:36:48.142278', time_epoch_executed='1633009008.14' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149087/ft1_4FGL_J2349.4+0534_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149087/ft2_4FGL_J2349.4+0534_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149087/ft1_4FGL_J2349.4+0534_daily_bin131.fits outfile=/scratch/kocevski/149087/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin131.fits ra=357.356 dec=5.579 rad=12.0 tmin=273283201.0 tmax=273542401.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 1.72
user 1.50
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149087/ft1_filtered_4FGL_J2349.4+0534_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/149087/ft2_4FGL_J2349.4+0534_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/149087/ltcube_273283201_273542401_4FGL_J2349.4+0534_daily_bin131.fits outfile=/scratch/kocevski/149087/expmap_273283201_273542401_4FGL_J2349.4+0534_daily_bin131.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/149087/ltcube_273283201_273542401_4FGL_J2349.4+0534_daily_bin131.fits
.....................!
real 190.84
user 185.64
sys 4.83

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/149087/ft1_filtered_4FGL_J2349.4+0534_daily_bin131.fits scfile=/scratch/kocevski/149087/ft2_4FGL_J2349.4+0534_daily_bin131.fits outfile=/scratch/kocevski/149087/cmap_273283201_273542401_4FGL_J2349.4+0534_daily_bin131.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149087/ft1_filtered_4FGL_J2349.4+0534_daily_bin131.fits scfile=/scratch/kocevski/149087/ft2_4FGL_J2349.4+0534_daily_bin131.fits outfile=/scratch/kocevski/149087/cmap_HighResolution_273283201_273542401_4FGL_J2349.4+0534_daily_bin131.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9041       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0469       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.615       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.790       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1552       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.705       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    26.244       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.664       1.0000         .10000E-03   10000.    
    16 'norm      '    8.0863       1.0000         .10000E-03   10000.    
    17 'norm      '    10.645       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2425       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.703       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.141       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .32730E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89282       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92133       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=   8474.887     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2563 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9009        13.091       -.11800E-04   -.12753E-03
   2  norm          2.0483        2.4563        .10158E-05    .45250E-03
   3  norm          .10000E-03    1.3029        .92226E-07** at limit **
   4  Prefactor     .10000E-03    5.8394       -.25690E-07** at limit **
   5  Prefactor     12.589        25.235       -.18281E-05   -.77715E-05
   6  Prefactor     .10000E-03    5.4316       -.24541E-07** at limit **
   7  Prefactor     10.785        14.864       -.95369E-06   -.82826E-05
   8  norm          1.1551        .72563       -.47481E-07   -.29515E-04
   9  Prefactor     15.703        11.278       -.29848E-05   -.11089E-03
  10  Prefactor     .10000E-03    11.325        .33010E-06** at limit **
  11  norm          26.244        9.8508        .26197E-06   -.61436E-05
  12  Prefactor     2.4671        1.9374        .57637E-06   -.27034E-02
  13  Prefactor     .10000E-03    62.058        .21795E-05** at limit **
  14  Prefactor     .10000E-03    10.581       -.29319E-06** at limit **
  15  Prefactor     25.660        20.786        .32073E-07    .36174E-05
  16  norm          8.0859        6.4451       -.10191E-06    .23676E-03
  17  norm          10.634        20.273        .20288E-05    .40331E-04
  18  Prefactor     1.2423        3.1684       -.47467E-06   -.24362E-03
  19  Prefactor     12.697        27.141       -.15888E-05    .25563E-05
  20  Prefactor     13.139        11.988       -.16734E-05   -.24669E-04
  21  Prefactor     .10003E-03    10.088        .92336E-08** at limit **
  22  Normalizat    .89314        .16759        .14779E-05    .22586E-04
  23  Prefactor     .92126        .11154        .46279E-07    .12641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.90092
  norm       = 2.04831
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5888
  Prefactor  = 0.0001
  Prefactor  = 10.7849
  norm       = 1.15507
  Prefactor  = 15.7028
  Prefactor  = 0.0001
  norm       = 26.244
  Prefactor  = 2.46709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6603
  norm       = 8.08592
  norm       = 10.6336
  Prefactor  = 1.24234
  Prefactor  = 12.6972
  Prefactor  = 13.1395
  Prefactor  = 0.000100032
  Normalizat = 0.893137
  Prefactor  = 0.921262
 **********
 **   18 **HESSE 
 **********

 FCN=   8474.887     FROM HESSE     STATUS=OK           382 CALLS     2945 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9009        13.115        .23844E-03   -1.5367    
   2  norm          2.0483        2.4323        .13739E-03   -1.5422    
   3  norm          .10000E-03    1.3114        .10259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.589        25.222        .11278E-03   -1.4998    
   6  Prefactor     .10000E-03    5.4609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.785        14.857        .12197E-03   -1.5051    
   8  norm          1.1551        .71039        .59941E-04   -1.5493    
   9  Prefactor     15.703        11.264        .10106E-03   -1.4915    
  10  Prefactor     .10000E-03    11.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          26.244        10.318        .78198E-04   -1.4683    
  12  Prefactor     2.4671        4.5994        .12289E-02   -1.5394    
  13  Prefactor     .10000E-03    62.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.660        20.767        .79075E-04   -1.4694    
  16  norm          8.0859        6.4612        .70497E-03   -1.5139    
  17  norm          10.634        19.825        .12280E-03   -1.5056    
  18  Prefactor     1.2423        3.0717        .22017E-03   -1.5485    
  19  Prefactor     12.697        27.141        .11239E-03   -1.4995    
  20  Prefactor     13.139        11.976        .11049E-03   -1.4983    
  21  Prefactor     .10003E-03    126.13        .54984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89314        .19166        .29244E-03   -.96702    
  23  Prefactor     .92126        .13005        .20238E-03   -.95402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74449e-09
Minuit parameter uncertainties:
  1  12.3404
  2  2.43245
  3  6.75053e-07
  4  2.63889e-06
  5  25.243
  6  5.88525e-08
  7  14.8619
  8  0.710399
  9  11.2658
  10  2.46175e-06
  11  10.3186
  12  4.6001
  13  3.37375e-05
  14  7.221e-05
  15  20.7727
  16  6.46175
  17  19.837
  18  3.0721
  19  27.1672
  20  11.9778
  21  0.00404678
  22  0.19181
  23  0.130096
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.314e+01  1.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:  9.213e-01  1.301e-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:  8.931e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.71
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.62e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 7.91e-06 +/- 7.21e-06

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) = 8472.21893658
delta logL = 2.66773748428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8471.7950119
delta logL = 3.09166216845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3327       1.0000         .10000E-03   10000.    
     2 'Index     '    .70246       1.0000          .0000       10.000    
     3 'Normalizat'    .90653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92241       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=   8471.795     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      222 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3341        2.5834        .67123E-02   -.44087E-03
   2  Index         .70254        .36355        .25721       -.60743E-04
   3  Normalizat    .90658        .15579        .65655E-01    .27978E-04
   4  Prefactor     .92236        .10998        .45290E-01    .10405E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33414
  Index      = 0.702541
  Normalizat = 0.906582
  Prefactor  = 0.922365
 **********
 **   18 **HESSE 
 **********

 FCN=   8471.795     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3341        5.4794        .13650E-03   -1.5402    
   2  Index         .70254        .74788        .11520E-02   -1.0343    
   3  Normalizat    .90658        .18096        .29042E-03   -.96229    
   4  Prefactor     .92236        .12790        .20226E-03   -.95364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79809e-13
Minuit parameter uncertainties:
  1  5.4806
  2  0.758989
  3  0.18108
  4  0.127938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149087': 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) = 8471.79501177
delta logL = 3.09166230177

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.334e+00  5.481e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  7.025e-01  7.590e-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.224e-01  1.279e-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.066e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.85
Ra Dec: 357.356 5.579
Photon Index (Free Index): 0.70 +/- 0.76
Photon Flux (Free Index): 2.69e-09 +/- 2.91e-09
Energy Flux (Free Index): 7.08e-05 +/- 9.00e-05

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/149087/cmap_HighResolution_273283201_273542401_4FGL_J2349.4+0534_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.62e-08', energy_flux2='7.08e-05', photon_flux_error='2.39e-08', dlogl='3.09e+00', energy_flux='7.91e-06', photon_flux2='2.69e-09', job_status='DONE', time_completed='2021-09-30 06:48:13.411458', photon_index_error2='0.76', photon_index2='0.70', ts='8.71', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='9.00e-05', EG='0.89', time_epoch_completed='1633009693.41', return_code='0', job_id='149087', GAL2='0.92', EG2='0.91', return_code2='0', energy_flux_error='7.21e-06', photon_flux_error2='2.91e-09', ts2='14.85', photon_index='2.47' WHERE bin_id='131' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:48:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 149087: <4FGL_J2349.4+0534_daily_bin131> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin131> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:21 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:23 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:23 2021
Terminated at Thu Sep 30 06:48:14 2021
Results reported at Thu Sep 30 06:48:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin131 357.356 5.579 273283201 273542401 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.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

