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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin197
RA = 357.356, Dec = 5.579
tmin = 290390401, tmax = 290649601
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='149214', job_status='RUN', time_executed='2021-09-30 06:37:02.169514', time_epoch_executed='1633009022.17' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149214/ft1_4FGL_J2349.4+0534_daily_bin197.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149214/ft2_4FGL_J2349.4+0534_daily_bin197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149214/ft1_4FGL_J2349.4+0534_daily_bin197.fits outfile=/scratch/kocevski/149214/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin197.fits ra=357.356 dec=5.579 rad=12.0 tmin=290390401.0 tmax=290649601.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.45
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149214/ft1_filtered_4FGL_J2349.4+0534_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/149214/ft2_4FGL_J2349.4+0534_daily_bin197.fits sctable="SC_DATA" expcube=/scratch/kocevski/149214/ltcube_290390401_290649601_4FGL_J2349.4+0534_daily_bin197.fits outfile=/scratch/kocevski/149214/expmap_290390401_290649601_4FGL_J2349.4+0534_daily_bin197.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/149214/ltcube_290390401_290649601_4FGL_J2349.4+0534_daily_bin197.fits
.....................!
real 190.93
user 185.60
sys 4.87

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/149214/ft1_filtered_4FGL_J2349.4+0534_daily_bin197.fits scfile=/scratch/kocevski/149214/ft2_4FGL_J2349.4+0534_daily_bin197.fits outfile=/scratch/kocevski/149214/cmap_290390401_290649601_4FGL_J2349.4+0534_daily_bin197.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/149214/ft1_filtered_4FGL_J2349.4+0534_daily_bin197.fits scfile=/scratch/kocevski/149214/ft2_4FGL_J2349.4+0534_daily_bin197.fits outfile=/scratch/kocevski/149214/cmap_HighResolution_290390401_290649601_4FGL_J2349.4+0534_daily_bin197.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.870       1.0000         .10000E-03   10000.    
     2 'norm      '    .12617       1.0000         .10000E-03   10000.    
     3 'norm      '    .12379       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    73.959       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .68368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.481       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .65526       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.754       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.303       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5751       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1896       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=   8678.151     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2536 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.867        14.162        .24836E-06    .11807E-03
   2  norm          .12810        1.0253       -.39880E-06   -.78757E-04
   3  norm          .13276        3.4022       -.19344E-05    .68012E-03
   4  Prefactor     .10000E-03    3.3081       -.90228E-07** at limit **
   5  Prefactor     73.962        45.908        .27873E-05    .17760E-04
   6  Prefactor     .10000E-03    7.8110        .21358E-05** at limit **
   7  Prefactor     .10000E-03    7.0094       -.57963E-05** at limit **
   8  norm          .68372        .62971       -.36949E-07   -.55824E-03
   9  Prefactor     .10000E-03    3.5849        .39390E-06** at limit **
  10  Prefactor     .10000E-03    50.725       -.46139E-04** at limit **
  11  norm          .10000E-03    4.2320       -.74015E-06** at limit **
  12  Prefactor     .10000E-03    5.3156        .18505E-05** at limit **
  13  Prefactor     .10000E-03    40.529        .55615E-04** at limit **
  14  Prefactor     .10000E-03    2.8535        .97146E-07** at limit **
  15  Prefactor     .10000E-03    47.410       -.14187E-04** at limit **
  16  norm          21.481        14.202        .33265E-07   -.39197E-05
  17  norm          .10000E-03    8.2027        .35025E-05** at limit **
  18  Prefactor     .65450        2.3395       -.72892E-06   -.62961E-04
  19  Prefactor     .10000E-03    18.641       -.67485E-05** at limit **
  20  Prefactor     18.755        27.170        .13544E-05    .62908E-04
  21  Prefactor     23.304        20.562        .91255E-06    .86286E-04
  22  Normalizat    1.5750        .22521        .44561E-06    .55470E-03
  23  Prefactor     1.1896        .14826       -.24598E-06    .63575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8674
  norm       = 0.128103
  norm       = 0.13276
  Prefactor  = 0.0001
  Prefactor  = 73.9624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.683716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.4811
  norm       = 0.0001
  Prefactor  = 0.654505
  Prefactor  = 0.0001
  Prefactor  = 18.755
  Prefactor  = 23.3044
  Normalizat = 1.57502
  Prefactor  = 1.18957
 **********
 **   18 **HESSE 
 **********

 FCN=   8678.151     FROM HESSE     STATUS=OK           370 CALLS     2906 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.867        14.226        .10387E-03   -1.4937    
   2  norm          .12810        6.2836        .17663E-02   -1.5636    
   3  norm          .13276        28.753        .32725E-02   -1.5635    
   4  Prefactor     .10000E-03    3.3145        .16546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     73.962        45.920        .46686E-04   -1.3986    
   6  Prefactor     .10000E-03    7.9318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .68372        .60125        .68947E-03   -1.5543    
   9  Prefactor     .10000E-03    3.5901        .17225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.2600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    40.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8571        .15360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.481        14.208        .86420E-04   -1.4781    
  17  norm          .10000E-03    8.2179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .65450        7.8361        .25088E-02   -1.5546    
  19  Prefactor     .10000E-03    18.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.755        27.257        .92485E-04   -1.4842    
  21  Prefactor     23.304        20.607        .82978E-04   -1.4742    
  22  Normalizat    1.5750        .27224        .31191E-03   -.75692    
  23  Prefactor     1.1896        .17860        .24355E-03   -.86653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74201e-08
Minuit parameter uncertainties:
  1  14.2289
  2  1.79387
  3  3.908
  4  4.10714e-06
  5  45.9417
  6  1.23671e-05
  7  4.3551e-06
  8  0.601254
  9  5.72471e-07
  10  0.000125014
  11  1.72025e-06
  12  7.01633e-06
  13  4.48125e-06
  14  3.98756e-06
  15  6.43854e-05
  16  14.2099
  17  9.16978e-06
  18  4.52975
  19  3.53334e-06
  20  27.2747
  21  20.6136
  22  0.2725
  23  0.178695
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.876e+01  2.727e+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.190e+00  1.787e-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.575e+00  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149214/likelihoodResults_290390401_290649601_4FGL_J2349.4+0534_daily_bin197.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) = 8677.86446042
delta logL = 0.286292147579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8677.8508125
delta logL = 0.299940064624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.609       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2415       1.0000          .0000       10.000    
     3 'Normalizat'    1.5249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2087       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8677.851     FROM MIGRAD    STATUS=FAILED       107 CALLS      337 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.627        33.435        .61504E-03   -.86507E-05
   2  Index         3.2412        1.7254        .64115E-02    .51207E-03
   3  Normalizat    1.5244        .26959        .31609E-03    .18703E-05
   4  Prefactor     1.2090        .18207        .24182E-03   -.61117E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8677.851     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      411 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.627        33.435        .33727E-03   -1.5056    
   2  Index         3.2412        1.7254        .10704E-02   -.35944    
   3  Normalizat    1.5244        .26959        .28375E-03   -.77096    
   4  Prefactor     1.2090        .18207        .25860E-03   -.86055    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8677.851     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      443 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.627        21.101        .24602E-04   -.12015E-04
   2  Index         3.2412        1.1011        .12823E-02   -.32981E-05
   3  Normalizat    1.5244        .26647        .12643E-04    .21580E-05
   4  Prefactor     1.2090        .17948        .96727E-05   -.61117E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6272
  Index      = 3.24123
  Normalizat = 1.52438
  Prefactor  = 1.20901
 **********
 **   18 **HESSE 
 **********

 FCN=   8677.851     FROM HESSE     STATUS=OK            23 CALLS      466 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.627        20.009        .98407E-06   -1.5056    
   2  Index         3.2412        1.0447        .51292E-04   -.35944    
   3  Normalizat    1.5244        .26569        .25287E-05   -.77096    
   4  Prefactor     1.2090        .17885        .19345E-05   -.86055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89063e-13
Minuit parameter uncertainties:
  1  20.0218
  2  1.05355
  3  0.265932
  4  0.178935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149214': 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) = 8677.85081008
delta logL = 0.299942480533

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.063e+01  2.002e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.241e+00  1.054e+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.209e+00  1.789e-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.524e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 357.356 5.579
Photon Index (Free Index): 3.24 +/- 1.05
Photon Flux (Free Index): 8.27e-08 +/- 8.73e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.48e-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/149214/cmap_HighResolution_290390401_290649601_4FGL_J2349.4+0534_daily_bin197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='1.49e-05', dlogl='3.00e-01', photon_flux2='8.27e-08', job_status='DONE', time_completed='2021-09-30 06:50:33.136680', photon_index_error2='1.05', photon_index2='3.24', ts='0.63', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.48e-05', EG='1.58', time_epoch_completed='1633009833.14', return_code='0', job_id='149214', GAL2='1.21', EG2='1.52', return_code2='0', photon_flux_error2='8.73e-08', ts2='1.26', photon_index='2.47' WHERE bin_id='197' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:50:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 149214: <4FGL_J2349.4+0534_daily_bin197> in cluster <slac> Done

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

Your job looked like:

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

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

