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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1208
RA = 357.356, Dec = 5.579
tmin = 552441601, tmax = 552700801
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='153833', job_status='RUN', time_executed='2021-09-30 06:51:13.981071', time_epoch_executed='1633009873.98' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153833/ft1_4FGL_J2349.4+0534_daily_bin1208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153833/ft2_4FGL_J2349.4+0534_daily_bin1208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153833/ft1_4FGL_J2349.4+0534_daily_bin1208.fits outfile=/scratch/kocevski/153833/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1208.fits ra=357.356 dec=5.579 rad=12.0 tmin=552441601.0 tmax=552700801.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.07
user 2.86
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153833/ft2_4FGL_J2349.4+0534_daily_bin1208.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/153833/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1208.fits evtable="EVENTS" outfile="/scratch/kocevski/153833/ft1_filtered_4FGL_J2349.4+0534_daily_bin1208.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/153833/ft1_filtered_4FGL_J2349.4+0534_daily_bin1208.fits" evtable="EVENTS" scfile=/scratch/kocevski/153833/ft2_4FGL_J2349.4+0534_daily_bin1208.fits sctable="SC_DATA" outfile=/scratch/kocevski/153833/ltcube_552441601_552700801_4FGL_J2349.4+0534_daily_bin1208.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/153833/ft2_4FGL_J2349.4+0534_daily_bin1208.fits
.....................!
real 15.13
user 14.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153833/ft1_filtered_4FGL_J2349.4+0534_daily_bin1208.fits evtable="EVENTS" scfile=/scratch/kocevski/153833/ft2_4FGL_J2349.4+0534_daily_bin1208.fits sctable="SC_DATA" expcube=/scratch/kocevski/153833/ltcube_552441601_552700801_4FGL_J2349.4+0534_daily_bin1208.fits outfile=/scratch/kocevski/153833/expmap_552441601_552700801_4FGL_J2349.4+0534_daily_bin1208.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/153833/ltcube_552441601_552700801_4FGL_J2349.4+0534_daily_bin1208.fits
.....................!
real 189.87
user 184.17
sys 5.35

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/153833/ft1_filtered_4FGL_J2349.4+0534_daily_bin1208.fits scfile=/scratch/kocevski/153833/ft2_4FGL_J2349.4+0534_daily_bin1208.fits outfile=/scratch/kocevski/153833/cmap_552441601_552700801_4FGL_J2349.4+0534_daily_bin1208.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/153833/ft1_filtered_4FGL_J2349.4+0534_daily_bin1208.fits scfile=/scratch/kocevski/153833/ft2_4FGL_J2349.4+0534_daily_bin1208.fits outfile=/scratch/kocevski/153833/cmap_HighResolution_552441601_552700801_4FGL_J2349.4+0534_daily_bin1208.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.60
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8140       1.0000         .10000E-03   10000.    
     2 'norm      '    .10674E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8933       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13097E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    67.215       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5073       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.846       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9849       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.405       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3635       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81437       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=   9351.136     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2265 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7944        14.968       -.37406E-05   -.10079E-03
   2  norm          .10000E-03    1.1436        .98785E-07** at limit **
   3  norm          1.8929        2.0870       -.67293E-07   -.15291E-03
   4  Prefactor     .10003E-03    3.9913        .48304E-06** at limit **
   5  Prefactor     .10000E-03    17.510       -.14209E-05** at limit **
   6  Prefactor     .10000E-03    2.7669        .77597E-08** at limit **
   7  Prefactor     .10000E-03    22.902       -.18541E-05** at limit **
   8  norm          .10000E-03    .32233       -.32324E-07** at limit **
   9  Prefactor     .10000E-03    3.9288        .26750E-06** at limit **
  10  Prefactor     67.200        40.942       -.62938E-05    .51485E-03
  11  norm          1.5057        5.7417       -.70547E-05   -.40344E-03
  12  Prefactor     .10000E-03    2.2116        .11641E-06** at limit **
  13  Prefactor     .10000E-03    125.94       -.86275E-06** at limit **
  14  Prefactor     10.853        8.8547        .44599E-06   -.64264E-05
  15  Prefactor     6.9822        16.121        .61781E-06    .86357E-04
  16  norm          .10000E-03    4.7065       -.75723E-07** at limit **
  17  norm          .10000E-03    13.632       -.64948E-06** at limit **
  18  Prefactor     .10000E-03    1.7457       -.17077E-06** at limit **
  19  Prefactor     .10000E-03    48.620        .75663E-06** at limit **
  20  Prefactor     .10000E-03    8.0930       -.31198E-07** at limit **
  21  Prefactor     12.401        16.993        .66354E-07   -.52629E-04
  22  Normalizat    1.3636        .16743        .11996E-05    .72153E-04
  23  Prefactor     .81423        .10900        .48002E-06    .16937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.79443
  norm       = 0.0001
  norm       = 1.89292
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.2002
  norm       = 1.50567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8535
  Prefactor  = 6.98224
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4007
  Normalizat = 1.36364
  Prefactor  = 0.814232
 **********
 **   18 **HESSE 
 **********

 FCN=   9351.136     FROM HESSE     STATUS=OK           370 CALLS     2635 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7944        14.086        .24248E-03   -1.5374    
   2  norm          .10000E-03    1.8578        .18899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8929        2.0775        .14196E-03   -1.5433    
   4  Prefactor     .10003E-03    18.717        .36872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7693        .15709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7755        .10532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     67.200        39.628        .48956E-04   -1.4067    
  11  norm          1.5057        6.8684        .34852E-03   -1.5463    
  12  Prefactor     .10000E-03    2.2327        .14039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    125.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.853        8.3680        .12165E-03   -1.5049    
  15  Prefactor     6.9822        16.057        .15179E-03   -1.5179    
  16  norm          .10000E-03    4.7146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.451        .22984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.401        17.086        .11373E-03   -1.5004    
  22  Normalizat    1.3636        .19277        .25707E-03   -.81686    
  23  Prefactor     .81423        .12698        .22411E-03   -.99206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10513e-09
Minuit parameter uncertainties:
  1  12.5526
  2  2.19581e-05
  3  2.07755
  4  0.00147773
  5  0.000111564
  6  1.92651e-06
  7  0.000196887
  8  4.9753e-06
  9  5.33877e-05
  10  39.6439
  11  6.43266
  12  3.32291e-05
  13  0.000124858
  14  8.36888
  15  16.0669
  16  1.20336e-06
  17  1.26157e-05
  18  0.00030773
  19  0.000111778
  20  7.05007e-06
  21  17.0929
  22  0.192872
  23  0.127028
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  7.050e-06  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.142e-01  1.270e-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.364e+00  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/153833/likelihoodResults_552441601_552700801_4FGL_J2349.4+0534_daily_bin1208.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): 102
logL (Free Index) = 9351.1366253
delta logL = -0.000586287005717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9351.13603869
delta logL = 3.28720489051e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4297       1.0000          .0000       10.000    
     3 'Normalizat'    1.3637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9351.136     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10687E-03    7.3251        .18142E-01** at limit **
   2  Index         2.3046        6.3097        .50000        .32004E-04
   3  Normalizat    1.3636        .35333E-02    .25707E-03   -.22926E-03
   4  Prefactor     .81423        .24642E-02    .22411E-03   -.17552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106872
  Index      = 2.30459
  Normalizat = 1.36364
  Prefactor  = 0.814231
 **********
 **   18 **HESSE 
 **********

 FCN=   9351.136     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10687E-03    60.366        .30085E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3046        8.7942        .50000       -.56935    
   3  Normalizat    1.3636        .10104E-01    .51413E-04   -.81686    
   4  Prefactor     .81423        .70468E-02    .89644E-05   -.99206    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.13251e-09
Minuit parameter uncertainties:
  1  0.040775
  2  256.462
  3  0.0101042
  4  0.00704683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153833': 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): 102
logL (Free Index) = 9351.13603803
delta logL = 9.89699401543e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.069e-04  4.078e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.305e+00  2.565e+02  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.142e-01  7.047e-03  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.364e+00  1.010e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/153833/cmap_HighResolution_552441601_552700801_4FGL_J2349.4+0534_daily_bin1208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-09-30 07:05:11.534094', job_id='153833', GAL2='0.81', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1633010711.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1208' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:05:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 153833: <4FGL_J2349.4+0534_daily_bin1208> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1208 357.356 5.579 552441601 552700801 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 :                                   774.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            852 sec.

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

