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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin385
RA = 357.356, Dec = 5.579
tmin = 339120001, tmax = 339379201
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='150520', job_status='RUN', time_executed='2021-09-30 06:41:07.819858', time_epoch_executed='1633009267.82' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150520

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150520/ft1_4FGL_J2349.4+0534_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150520/ft2_4FGL_J2349.4+0534_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150520/ft1_4FGL_J2349.4+0534_daily_bin385.fits outfile=/scratch/kocevski/150520/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin385.fits ra=357.356 dec=5.579 rad=12.0 tmin=339120001.0 tmax=339379201.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 6.31
user 6.05
sys 0.24

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150520/ft1_filtered_4FGL_J2349.4+0534_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/150520/ft2_4FGL_J2349.4+0534_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/150520/ltcube_339120001_339379201_4FGL_J2349.4+0534_daily_bin385.fits outfile=/scratch/kocevski/150520/expmap_339120001_339379201_4FGL_J2349.4+0534_daily_bin385.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/150520/ltcube_339120001_339379201_4FGL_J2349.4+0534_daily_bin385.fits
.....................!
real 190.61
user 186.05
sys 4.25

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/150520/ft1_filtered_4FGL_J2349.4+0534_daily_bin385.fits scfile=/scratch/kocevski/150520/ft2_4FGL_J2349.4+0534_daily_bin385.fits outfile=/scratch/kocevski/150520/cmap_339120001_339379201_4FGL_J2349.4+0534_daily_bin385.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150520/ft1_filtered_4FGL_J2349.4+0534_daily_bin385.fits scfile=/scratch/kocevski/150520/ft2_4FGL_J2349.4+0534_daily_bin385.fits outfile=/scratch/kocevski/150520/cmap_HighResolution_339120001_339379201_4FGL_J2349.4+0534_daily_bin385.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7232       1.0000         .10000E-03   10000.    
     3 'norm      '    6.5732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0069       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2438       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.083       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.092       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    22.530       1.0000         .10000E-03   10000.    
    17 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.532       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7907       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.292       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89860       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88759       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=   4804.201     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2878 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6366        .45412E-06** at limit **
   2  norm          2.7231        2.2505       -.19921E-06   -.13027E-03
   3  norm          6.5736        5.4960        .15824E-05   -.12417E-03
   4  Prefactor     5.0080        13.902       -.19500E-05   -.10655E-03
   5  Prefactor     .10000E-03    11.531       -.45495E-05** at limit **
   6  Prefactor     .10000E-03    5.1336        .23137E-07** at limit **
   7  Prefactor     5.2434        18.967       -.14239E-05   -.34814E-04
   8  norm          .10000E-03    .49335        .19273E-06** at limit **
   9  Prefactor     11.083        7.0483        .14033E-07    .51953E-04
  10  Prefactor     .10000E-03    28.679        .53921E-06** at limit **
  11  norm          .10000E-03    3.4094       -.10140E-06** at limit **
  12  Prefactor     .10000E-03    3.1160       -.99707E-07** at limit **
  13  Prefactor     30.069        265.66       -.41756E-04   -.12008E-05
  14  Prefactor     .10000E-03    14.096       -.38571E-05** at limit **
  15  Prefactor     .10000E-03    133.59        .50885E-06** at limit **
  16  norm          22.532        16.410       -.17808E-05    .47482E-05
  17  norm          .10000E-03    12.646        .83008E-05** at limit **
  18  Prefactor     .10000E-03    2.8171        .12567E-06** at limit **
  19  Prefactor     52.506        51.395       -.23534E-04    .14079E-04
  20  Prefactor     6.7945        18.050       -.63773E-06   -.12538E-04
  21  Prefactor     32.286        21.558        .17895E-05    .19146E-04
  22  Normalizat    .89862        .21134        .44639E-05   -.49675E-04
  23  Prefactor     .88748        .14154        .24807E-06    .95094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.72313
  norm       = 6.57362
  Prefactor  = 5.00797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.24341
  norm       = 0.0001
  Prefactor  = 11.0831
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0687
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 22.5317
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.5057
  Prefactor  = 6.79446
  Prefactor  = 32.2863
  Normalizat = 0.898624
  Prefactor  = 0.887479
 **********
 **   18 **HESSE 
 **********

 FCN=   4804.201     FROM HESSE     STATUS=OK           366 CALLS     3244 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7231        2.2447        .91286E-04   -1.5378    
   3  norm          6.5736        5.4737        .13831E-03   -1.5195    
   4  Prefactor     5.0080        13.882        .17972E-03   -1.5260    
   5  Prefactor     .10000E-03    11.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1656        .15338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2434        18.968        .17553E-03   -1.5250    
   8  norm          .10000E-03    .51010        .94800E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.083        7.0468        .12034E-03   -1.5042    
  10  Prefactor     .10000E-03    28.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.4517        .12495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1416        .11945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.069        264.80        .73038E-04   -1.4611    
  14  Prefactor     .10000E-03    14.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    139.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.532        16.418        .84388E-04   -1.4758    
  17  norm          .10000E-03    12.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8455        .11350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     52.506        51.407        .55336E-04   -1.4257    
  20  Prefactor     6.7945        18.032        .15397E-03   -1.5187    
  21  Prefactor     32.286        21.644        .70512E-04   -1.4571    
  22  Normalizat    .89862        .24141        .27748E-03   -.96509    
  23  Prefactor     .88748        .16249        .19676E-03   -.96580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09399e-10
Minuit parameter uncertainties:
  1  2.03881e-05
  2  2.24472
  3  5.47407
  4  13.8913
  5  1.54272e-06
  6  6.71535e-06
  7  18.9898
  8  8.62887e-06
  9  7.04734
  10  8.5524e-05
  11  4.99544e-06
  12  7.01747e-06
  13  179.535
  14  0.000220681
  15  0.000787578
  16  16.4217
  17  6.08952e-05
  18  3.03168e-05
  19  51.4506
  20  18.0466
  21  21.6491
  22  0.241703
  23  0.162577
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  6.794e+00  1.805e+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:  8.875e-01  1.626e-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.986e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/150520/likelihoodResults_339120001_339379201_4FGL_J2349.4+0534_daily_bin385.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) = 4804.1266076
delta logL = 0.0744693317984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4804.1008834
delta logL = 0.100193533879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3998       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3103       1.0000          .0000       10.000    
     3 'Normalizat'    .88178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89332       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.

 FCN=   4804.101     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      257 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4156        520.96        .10923E-02   -.30098E-03
   2  Index         3.3049        6.4363        .78971E-02   -.50071E-04
   3  Normalizat    .88161        .25500        .27985E-03   -.14284E-03
   4  Prefactor     .89343        .17481        .19615E-03   -.94916E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.41565
  Index      = 3.30494
  Normalizat = 0.881609
  Prefactor  = 0.893428
 **********
 **   18 **HESSE 
 **********

 FCN=   4804.101     FROM HESSE     STATUS=OK            27 CALLS      284 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4156        13.183        .43692E-04   -1.5338    
   2  Index         3.3049        2.1321        .31588E-03   -.34587    
   3  Normalizat    .88161        .23261        .11194E-04   -.97109    
   4  Prefactor     .89343        .16197        .39229E-04   -.96371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71117e-10
Minuit parameter uncertainties:
  1  13.1942
  2  2.2128
  3  0.232878
  4  0.162054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150520': 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) = 4804.10087724
delta logL = 0.100199691989

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.416e+00  1.319e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.305e+00  2.213e+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:  8.934e-01  1.621e-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.816e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/150520/cmap_HighResolution_339120001_339379201_4FGL_J2349.4+0534_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-30 06:51:07.072019', job_id='150520', GAL2='0.89', fit_tolerance='1e-08', EG2='0.88', EG='0.90', time_epoch_completed='1633009867.07', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.00e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='385' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:51:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 150520: <4FGL_J2349.4+0534_daily_bin385> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin385> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:14 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40:15 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:40:15 2021
Terminated at Thu Sep 30 06:51:07 2021
Results reported at Thu Sep 30 06:51:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin385 357.356 5.579 339120001 339379201 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 :                                   595.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            653 sec.

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

