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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin148
RA = 357.356, Dec = 5.579
tmin = 277689601, tmax = 277948801
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='149118', job_status='RUN', time_executed='2021-09-30 06:39:08.872780', time_epoch_executed='1633009148.87' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149118/ft1_4FGL_J2349.4+0534_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149118/ft2_4FGL_J2349.4+0534_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149118/ft1_4FGL_J2349.4+0534_daily_bin148.fits outfile=/scratch/kocevski/149118/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin148.fits ra=357.356 dec=5.579 rad=12.0 tmin=277689601.0 tmax=277948801.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.55
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149118/ft2_4FGL_J2349.4+0534_daily_bin148.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/149118/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin148.fits evtable="EVENTS" outfile="/scratch/kocevski/149118/ft1_filtered_4FGL_J2349.4+0534_daily_bin148.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149118/ft1_filtered_4FGL_J2349.4+0534_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/149118/ft2_4FGL_J2349.4+0534_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/149118/ltcube_277689601_277948801_4FGL_J2349.4+0534_daily_bin148.fits outfile=/scratch/kocevski/149118/expmap_277689601_277948801_4FGL_J2349.4+0534_daily_bin148.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/149118/ltcube_277689601_277948801_4FGL_J2349.4+0534_daily_bin148.fits
.....................!
real 191.30
user 185.32
sys 5.61

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/149118/ft1_filtered_4FGL_J2349.4+0534_daily_bin148.fits scfile=/scratch/kocevski/149118/ft2_4FGL_J2349.4+0534_daily_bin148.fits outfile=/scratch/kocevski/149118/cmap_277689601_277948801_4FGL_J2349.4+0534_daily_bin148.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/149118/ft1_filtered_4FGL_J2349.4+0534_daily_bin148.fits scfile=/scratch/kocevski/149118/ft2_4FGL_J2349.4+0534_daily_bin148.fits outfile=/scratch/kocevski/149118/cmap_HighResolution_277689601_277948801_4FGL_J2349.4+0534_daily_bin148.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/149118/ft1_filtered_4FGL_J2349.4+0534_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/149118/ft2_4FGL_J2349.4+0534_daily_bin148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149118/Model_4FGL_J2349.4+0534_daily_bin148.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/149118/ft1_filtered_4FGL_J2349.4+0534_daily_bin148.fits.....................!
real 71.47
user 70.12
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.5099       1.0000         .10000E-03   10000.    
     3 'norm      '    13.594       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.795       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4515       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7352       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.533       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5394       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7508       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1840       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.615       1.0000         .10000E-03   10000.    
    16 'norm      '    9.4680       1.0000         .10000E-03   10000.    
    17 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8320       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.108       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.402       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87909       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96753       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=   7147.356     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2530 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7705        .34864E-07** at limit **
   2  norm          1.5098        1.6611        .84801E-07   -.51216E-05
   3  norm          13.592        5.8071        .57307E-07   -.47663E-05
   4  Prefactor     .10000E-03    3.6811        .20878E-07** at limit **
   5  Prefactor     20.794        33.259       -.29367E-06   -.10603E-04
   6  Prefactor     9.4532        11.435       -.68004E-07   -.77699E-05
   7  Prefactor     .10000E-03    4.7773       -.30360E-07** at limit **
   8  norm          .10000E-03    .31192       -.32490E-06** at limit **
   9  Prefactor     4.7355        8.2205        .64365E-05   -.24473E-03
  10  Prefactor     22.519        45.142        .45090E-06   -.39479E-04
  11  norm          1.5464        7.2996        .40899E-06   -.13585E-03
  12  Prefactor     15.565        10.314       -.57087E-06   -.34007E-04
  13  Prefactor     2.5508        1617.4       -.16761E-04   -.16573E-04
  14  Prefactor     3.1957        10.449       -.37714E-05    .95428E-04
  15  Prefactor     11.627        15.378       -.53884E-06    .41807E-04
  16  norm          9.4786        14.543        .31772E-06    .41359E-04
  17  norm          .10000E-03    10.676        .73055E-07** at limit **
  18  Prefactor     2.8311        3.1927        .15455E-06    .26547E-03
  19  Prefactor     .10000E-03    31.206        .43903E-06** at limit **
  20  Prefactor     18.116        22.810        .37164E-06    .60763E-04
  21  Prefactor     12.400        15.304        .30151E-06   -.76465E-05
  22  Normalizat    .87912        .19452       -.37599E-06    .26790E-04
  23  Prefactor     .96749        .12870       -.24437E-06    .47531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.50985
  norm       = 13.5925
  Prefactor  = 0.0001
  Prefactor  = 20.7942
  Prefactor  = 9.45317
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.73546
  Prefactor  = 22.519
  norm       = 1.54644
  Prefactor  = 15.5648
  Prefactor  = 2.55075
  Prefactor  = 3.19566
  Prefactor  = 11.627
  norm       = 9.47855
  norm       = 0.0001
  Prefactor  = 2.83108
  Prefactor  = 0.0001
  Prefactor  = 18.1161
  Prefactor  = 12.4001
  Normalizat = 0.879117
  Prefactor  = 0.967486
 **********
 **   18 **HESSE 
 **********

 FCN=   7147.356     FROM HESSE     STATUS=OK           382 CALLS     2912 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5098        1.6481        .11026E-03   -1.5462    
   3  norm          13.592        5.8109        .10864E-03   -1.4970    
   4  Prefactor     .10000E-03    3.6894        .15839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.794        33.273        .87833E-04   -1.4796    
   6  Prefactor     9.4532        11.435        .13035E-03   -1.5093    
   7  Prefactor     .10000E-03    4.7830        .18046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .32063        .91515E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7355        8.2408        .92455E-03   -1.5273    
  10  Prefactor     22.519        45.177        .84381E-04   -1.4759    
  11  norm          1.5464        6.8501        .34368E-03   -1.5459    
  12  Prefactor     15.565        10.154        .10149E-03   -1.4919    
  13  Prefactor     2.5508        1713.5        .24544E-02   -1.5389    
  14  Prefactor     3.1957        10.212        .22710E-03   -1.5350    
  15  Prefactor     11.627        15.363        .11754E-03   -1.5026    
  16  norm          9.4786        14.557        .13024E-03   -1.5092    
  17  norm          .10000E-03    10.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8311        3.1575        .14580E-03   -1.5371    
  19  Prefactor     .10000E-03    31.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.116        22.833        .94121E-04   -1.4856    
  21  Prefactor     12.400        15.342        .11375E-03   -1.5004    
  22  Normalizat    .87912        .22684        .30948E-03   -.97198    
  23  Prefactor     .96749        .15087        .20505E-03   -.93821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42696e-10
Minuit parameter uncertainties:
  1  1.4974e-06
  2  1.64816
  3  5.81118
  4  6.16032e-07
  5  33.3022
  6  11.4377
  7  1.17414e-06
  8  5.54652e-06
  9  8.24281
  10  45.2452
  11  6.51049
  12  10.1556
  13  136.342
  14  10.2176
  15  15.3682
  16  14.5622
  17  7.62468e-05
  18  3.15768
  19  3.16596e-05
  20  22.8442
  21  15.3468
  22  0.227088
  23  0.150937
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.812e+01  2.284e+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.675e-01  1.509e-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.791e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149118/likelihoodResults_277689601_277948801_4FGL_J2349.4+0534_daily_bin148.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) = 7147.2488278
delta logL = 0.107589367607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7147.24585684
delta logL = 0.110560332082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.340       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8714       1.0000          .0000       10.000    
     3 'Normalizat'    .86359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97409       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=   7147.246     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      302 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.335        26.143        .11403E-03    .58422E-04
   2  Index         2.8714        1.1287        .82631E-02    .32543E-04
   3  Normalizat    .86362        .21741        .31199E-03   -.92285E-03
   4  Prefactor     .97416        .14967        .20441E-03   -.15694E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3355
  Index      = 2.87144
  Normalizat = 0.863618
  Prefactor  = 0.974158
 **********
 **   18 **HESSE 
 **********

 FCN=   7147.246     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.335        21.433        .45614E-05   -1.5005    
   2  Index         2.8714        .92703        .33052E-03   -.43975    
   3  Normalizat    .86362        .21706        .62397E-04   -.97751    
   4  Prefactor     .97416        .14920        .40883E-04   -.93596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6739e-09
Minuit parameter uncertainties:
  1  21.4467
  2  0.933645
  3  0.217276
  4  0.149264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149118': 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) = 7147.24585613
delta logL = 0.110561041832

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.234e+01  2.145e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.871e+00  9.336e-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.742e-01  1.493e-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.636e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
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/149118/cmap_HighResolution_277689601_277948801_4FGL_J2349.4+0534_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-30 06:50:23.333632', job_id='149118', GAL2='0.97', fit_tolerance='1e-08', EG2='0.86', EG='0.88', time_epoch_completed='1633009823.33', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.11e-01', ts2='0.99', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='148' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:50:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 149118: <4FGL_J2349.4+0534_daily_bin148> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin148 357.356 5.579 277689601 277948801 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 :                                   673.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            899 sec.

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

