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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin528
RA = 357.356, Dec = 5.579
tmin = 376185601, tmax = 376444801
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='151874', job_status='RUN', time_executed='2021-09-30 06:47:38.335380', time_epoch_executed='1633009658.34' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151874/ft1_4FGL_J2349.4+0534_daily_bin528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151874/ft2_4FGL_J2349.4+0534_daily_bin528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151874/ft1_4FGL_J2349.4+0534_daily_bin528.fits outfile=/scratch/kocevski/151874/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin528.fits ra=357.356 dec=5.579 rad=12.0 tmin=376185601.0 tmax=376444801.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.38
user 3.16
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151874/ft1_filtered_4FGL_J2349.4+0534_daily_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/151874/ft2_4FGL_J2349.4+0534_daily_bin528.fits sctable="SC_DATA" expcube=/scratch/kocevski/151874/ltcube_376185601_376444801_4FGL_J2349.4+0534_daily_bin528.fits outfile=/scratch/kocevski/151874/expmap_376185601_376444801_4FGL_J2349.4+0534_daily_bin528.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/151874/ltcube_376185601_376444801_4FGL_J2349.4+0534_daily_bin528.fits
.....................!
real 191.50
user 185.42
sys 5.64

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/151874/ft1_filtered_4FGL_J2349.4+0534_daily_bin528.fits scfile=/scratch/kocevski/151874/ft2_4FGL_J2349.4+0534_daily_bin528.fits outfile=/scratch/kocevski/151874/cmap_376185601_376444801_4FGL_J2349.4+0534_daily_bin528.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.55
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.026       1.0000         .10000E-03   10000.    
     2 'norm      '    .21296       1.0000         .10000E-03   10000.    
     3 'norm      '    11.812       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.986       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.766       1.0000         .10000E-03   10000.    
     8 'norm      '    .96404       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.933       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.742       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.827       1.0000         .10000E-03   10000.    
    16 'norm      '    10.504       1.0000         .10000E-03   10000.    
    17 'norm      '    13.555       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0889       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.287       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8728       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.007       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .69640       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1006       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=   5797.522     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2527 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.043        21.949        .31642E-05    .49036E-03
   2  norm          .20269        1.9519       -.18648E-05    .13894E-02
   3  norm          11.811        4.9747       -.27911E-07    .13831E-03
   4  Prefactor     .10000E-03    2.5897       -.11135E-06** at limit **
   5  Prefactor     18.985        40.230       -.19516E-06   -.33301E-05
   6  Prefactor     .10000E-03    5.2800       -.27623E-06** at limit **
   7  Prefactor     33.761        20.681        .20925E-06    .11915E-05
   8  norm          .96322        1.3402       -.44566E-06   -.17753E-02
   9  Prefactor     12.933        10.284        .87982E-06   -.19333E-04
  10  Prefactor     14.738        49.225       -.95401E-05   -.75512E-05
  11  norm          .10000E-03    3.5430       -.23564E-06** at limit **
  12  Prefactor     .10000E-03    6.4349       -.26998E-06** at limit **
  13  Prefactor     .10000E-03    87.304       -.14264E-05** at limit **
  14  Prefactor     4.3932        35.856        .14729E-04    .11499E-03
  15  Prefactor     24.823        22.021        .32152E-08    .34038E-05
  16  norm          10.503        14.155        .25247E-05   -.23537E-04
  17  norm          13.545        38.094       -.29667E-04   -.90944E-04
  18  Prefactor     6.0876        6.9578        .30413E-05   -.35948E-03
  19  Prefactor     38.286        30.212       -.11442E-05    .73406E-05
  20  Prefactor     9.8726        17.695        .63440E-06   -.63130E-05
  21  Prefactor     23.005        20.692       -.17710E-05    .14725E-03
  22  Normalizat    .69640        .21868       -.17887E-05    .25529E-03
  23  Prefactor     1.1006        .14658        .52145E-06    .17619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0434
  norm       = 0.202685
  norm       = 11.8113
  Prefactor  = 0.0001
  Prefactor  = 18.9854
  Prefactor  = 0.0001
  Prefactor  = 33.7606
  norm       = 0.963218
  Prefactor  = 12.9325
  Prefactor  = 14.7384
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.39324
  Prefactor  = 24.8227
  norm       = 10.5034
  norm       = 13.5447
  Prefactor  = 6.08757
  Prefactor  = 38.2857
  Prefactor  = 9.87259
  Prefactor  = 23.0052
  Normalizat = 0.6964
  Prefactor  = 1.1006
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.522     FROM HESSE     STATUS=OK           382 CALLS     2909 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.043        22.141        .83475E-04   -1.4748    
   2  norm          .20269        9.2722        .17854E-02   -1.5618    
   3  norm          11.811        4.9769        .10651E-03   -1.5020    
   4  Prefactor     .10000E-03    2.5908        .11966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.985        40.237        .91919E-04   -1.4836    
   6  Prefactor     .10000E-03    5.3071        .17087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.761        20.679        .68961E-04   -1.4545    
   8  norm          .96322        1.2220        .92758E-03   -1.5512    
   9  Prefactor     12.933        10.272        .11138E-03   -1.4989    
  10  Prefactor     14.738        49.159        .10432E-03   -1.4940    
  11  norm          .10000E-03    3.5580        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    87.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3932        31.747        .19246E-03   -1.5289    
  15  Prefactor     24.823        22.009        .80395E-04   -1.4711    
  16  norm          10.503        14.133        .12362E-03   -1.5060    
  17  norm          13.545        37.634        .10879E-03   -1.4972    
  18  Prefactor     6.0876        6.7322        .16271E-03   -1.5214    
  19  Prefactor     38.286        30.211        .64775E-04   -1.4470    
  20  Prefactor     9.8726        17.686        .12753E-03   -1.5079    
  21  Prefactor     23.005        20.676        .83510E-04   -1.4748    
  22  Normalizat    .69640        .24286        .33721E-03   -1.0404    
  23  Prefactor     1.1006        .16448        .19754E-03   -.89447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69493e-09
Minuit parameter uncertainties:
  1  22.1485
  2  2.74155
  3  4.97712
  4  1.05279e-06
  5  40.2941
  6  5.8557e-07
  7  20.6829
  8  1.22207
  9  10.2733
  10  49.2949
  11  4.36706e-06
  12  6.6369e-06
  13  2.79203e-05
  14  23.6372
  15  22.0162
  16  14.1371
  17  37.7005
  18  6.73307
  19  30.2233
  20  17.6957
  21  20.682
  22  0.243236
  23  0.164555
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  9.873e+00  1.770e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.101e+00  1.646e-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:  6.964e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/151874/likelihoodResults_376185601_376444801_4FGL_J2349.4+0534_daily_bin528.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) = 5797.51198037
delta logL = 0.00955904829425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5797.50463945
delta logL = 0.0168999730367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.659       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2178       1.0000          .0000       10.000    
     3 'Normalizat'    .70121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0979       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=   5797.505     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      235 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.653        25.382        .11259E-03    .63148E-03
   2  Index         2.2180        1.2661        .12693E-01    .21346E-03
   3  Normalizat    .70119        .22155        .33613E-03   -.53908E-03
   4  Prefactor     1.0979        .16081        .19774E-03   -.12324E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6525
  Index      = 2.21798
  Normalizat = 0.701195
  Prefactor  = 1.09792
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.505     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.653        24.261        .22517E-04   -1.4996    
   2  Index         2.2180        1.2118        .50772E-03   -.59005    
   3  Normalizat    .70119        .22144        .67226E-04   -1.0385    
   4  Prefactor     1.0979        .16076        .39548E-04   -.89533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06651e-09
Minuit parameter uncertainties:
  1  24.2798
  2  1.22972
  3  0.221724
  4  0.160831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151874': 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) = 5797.50463939
delta logL = 0.0169000363367

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.265e+01  2.428e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.218e+00  1.230e+00  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.098e+00  1.608e-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:  7.012e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
Ra Dec: 357.356 5.579

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/151874/cmap_HighResolution_376185601_376444801_4FGL_J2349.4+0534_daily_bin528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-30 06:58:03.795929', job_id='151874', GAL2='1.10', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1633010283.8', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.69e-02', ts2='0.43', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='528' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:58:03 PDT 2021


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

Job <4FGL_J2349.4+0534_daily_bin528> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:45:15 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:45:16 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:45:16 2021
Terminated at Thu Sep 30 06:58:04 2021
Results reported at Thu Sep 30 06:58:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin528 357.356 5.579 376185601 376444801 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 :                                   622.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            769 sec.

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

