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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1611
RA = 357.356, Dec = 5.579
tmin = 656899201, tmax = 657158401
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='505478', job_status='RUN', time_executed='2021-12-08 09:50:35.222544', time_epoch_executed='1638985835.22' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505478

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505478/ft1_4FGL_J2349.4+0534_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505478/ft2_4FGL_J2349.4+0534_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505478/ft1_4FGL_J2349.4+0534_daily_bin1611.fits outfile=/scratch/kocevski/505478/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1611.fits ra=357.356 dec=5.579 rad=12.0 tmin=656899201.0 tmax=657158401.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.57
user 3.32
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505478/ft1_filtered_4FGL_J2349.4+0534_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/505478/ft2_4FGL_J2349.4+0534_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/505478/ltcube_656899201_657158401_4FGL_J2349.4+0534_daily_bin1611.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/505478/ft2_4FGL_J2349.4+0534_daily_bin1611.fits
.....................!
real 12.50
user 12.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505478/ft1_filtered_4FGL_J2349.4+0534_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/505478/ft2_4FGL_J2349.4+0534_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/505478/ltcube_656899201_657158401_4FGL_J2349.4+0534_daily_bin1611.fits outfile=/scratch/kocevski/505478/expmap_656899201_657158401_4FGL_J2349.4+0534_daily_bin1611.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/505478/ltcube_656899201_657158401_4FGL_J2349.4+0534_daily_bin1611.fits
.....................!
real 191.45
user 185.02
sys 5.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/505478/ft1_filtered_4FGL_J2349.4+0534_daily_bin1611.fits scfile=/scratch/kocevski/505478/ft2_4FGL_J2349.4+0534_daily_bin1611.fits outfile=/scratch/kocevski/505478/cmap_656899201_657158401_4FGL_J2349.4+0534_daily_bin1611.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505478/ft1_filtered_4FGL_J2349.4+0534_daily_bin1611.fits scfile=/scratch/kocevski/505478/ft2_4FGL_J2349.4+0534_daily_bin1611.fits outfile=/scratch/kocevski/505478/cmap_HighResolution_656899201_657158401_4FGL_J2349.4+0534_daily_bin1611.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.6824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .71806E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.643       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7882       1.0000         .10000E-03   10000.    
    10 'Prefactor '    106.37       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1027       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.011       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1344       1.0000         .10000E-03   10000.    
    16 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .71921       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2931       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67082       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1187       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=   6677.389     FROM MIGRAD    STATUS=CONVERGED    923 CALLS     2633 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5231        .16958E-02** at limit **
   2  norm          .10000E-03    .59010        .61111E-03** at limit **
   3  norm          3.6840        4.2448        .17058E-03   -.14956E-03
   4  Prefactor     .48339E-01    11.287        .62088E-01    .19925E-03
   5  Prefactor     11.833        35.213        .11643E-03   -.10155E-04
   6  Prefactor     .10000E-03    4.3400        .16614E-02** at limit **
   7  Prefactor     19.638        20.546        .90370E-04   -.35350E-04
   8  norm          .10000E-03    .41981        .87478E-03** at limit **
   9  Prefactor     3.7943        17.992        .20740E-03    .25653E-04
  10  Prefactor     106.38        67.304        .38991E-04   -.48867E-04
  11  norm          3.0994        10.602        .11511E-02   -.19447E-04
  12  Prefactor     .10000E-03    2.9125        .13578E-02** at limit **
  13  Prefactor     .10000E-03    98.828        .18142E-02** at limit **
  14  Prefactor     15.023        16.775        .10338E-03   -.34784E-03
  15  Prefactor     4.1276        80.027        .19824E-03    .86022E-05
  16  norm          .10000E-03    11.754        .18142E-02** at limit **
  17  norm          .10000E-03    31.063        .18142E-02** at limit **
  18  Prefactor     .71339        13.806        .23376E-02   -.16441E-03
  19  Prefactor     5.2671        69.214        .17470E-03   -.25054E-04
  20  Prefactor     .10000E-03    33.694        .36285E-03** at limit **
  21  Prefactor     .10000E-03    16.646        .18142E-02** at limit **
  22  Normalizat    .67094        .21688        .33458E-03   -.25973E-03
  23  Prefactor     1.1187        .14850        .18970E-03   -.44198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.68396
  Prefactor  = 0.0483389
  Prefactor  = 11.833
  Prefactor  = 0.0001
  Prefactor  = 19.6377
  norm       = 0.0001
  Prefactor  = 3.79432
  Prefactor  = 106.379
  norm       = 3.09942
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.0227
  Prefactor  = 4.12755
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.713389
  Prefactor  = 5.26709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.67094
  Prefactor  = 1.11868
 **********
 **   18 **HESSE 
 **********

 FCN=   6677.389     FROM HESSE     STATUS=OK           360 CALLS     2993 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5233        .33916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .59012        .12222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6840        4.2419        .68232E-05   -1.5324    
   4  Prefactor     .48339E-01    9.4142        .69895E-01   -1.5664    
   5  Prefactor     11.833        35.201        .46571E-05   -1.5020    
   6  Prefactor     .10000E-03    4.3402        .33229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.638        20.542        .36148E-05   -1.4821    
   8  norm          .10000E-03    .42013        .17496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7943        17.767        .82962E-05   -1.5318    
  10  Prefactor     106.38        67.262        .77983E-05   -1.3641    
  11  norm          3.0994        10.521        .46044E-04   -1.5356    
  12  Prefactor     .10000E-03    2.9127        .27157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    98.829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.023        16.000        .41351E-05   -1.4933    
  15  Prefactor     4.1276        79.577        .79296E-05   -1.5302    
  16  norm          .10000E-03    11.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    31.066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71339        12.446        .93505E-04   -1.5539    
  19  Prefactor     5.2671        69.151        .69879E-05   -1.5249    
  20  Prefactor     .10000E-03    33.695        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.659        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67094        .21617        .13383E-04   -1.0505    
  23  Prefactor     1.1187        .14848        .37940E-04   -.88872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98014e-10
Minuit parameter uncertainties:
  1  1.41438e-05
  2  4.0613e-06
  3  4.24224
  4  1.348
  5  35.2625
  6  8.67573e-06
  7  20.5494
  8  9.04106e-06
  9  16.4291
  10  67.3104
  11  10.5269
  12  2.20917e-05
  13  0.000498522
  14  16.0044
  15  36.3023
  16  4.74513e-05
  17  8.03574e-05
  18  5.96042
  19  38.2232
  20  8.97141e-05
  21  0.000116515
  22  0.216448
  23  0.148535
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  8.971e-05  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.119e+00  1.485e-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.709e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/505478/likelihoodResults_656899201_657158401_4FGL_J2349.4+0534_daily_bin1611.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6677.38893217
delta logL = -0.000141529734719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6677.38879222
delta logL = -1.57865451911e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8335       1.0000          .0000       10.000    
     3 'Normalizat'    .67094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1187       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6677.389     FROM MIGRAD    STATUS=FAILED        93 CALLS      290 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12889E-03    160.60        .36285E-02** at limit **
   2  Index         2.4824        8.7024        .50000        .13351E-04
   3  Normalizat    .67093        .10351E-01    .33458E-03   -.61668E-03
   4  Prefactor     1.1187        .74667E-02    .18970E-03   -.50396E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6677.389     FROM SIMPLEX   STATUS=PROGRESS     122 CALLS      412 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10917E-03    160.60        .74937E-03** at limit **
   2  Index         2.4808        8.7024        .51617E-03    .13351E-04
   3  Normalizat    .67093        .10351E-01    .13098E-05   -.61668E-03
   4  Prefactor     1.1187        .74667E-02    .53031E-06   -.50396E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6677.389     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      450 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10184E-03    74.556        .72569E-02** at limit **
   2  Index         2.3355        5.0809        .50000        .46375E-05
   3  Normalizat    .67093        .64543E-02    .66915E-04   -.14515E-02
   4  Prefactor     1.1187        .46557E-02    .37940E-04   -.19344E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101843
  Index      = 2.33546
  Normalizat = 0.670932
  Prefactor  = 1.11869
 **********
 **   18 **HESSE 
 **********

 FCN=   6677.389     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      479 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10184E-03    612.92        .14514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3355        8.2406        .50000       -.56203    
   3  Normalizat    .67093        .18793E-01    .13383E-04   -1.0505    
   4  Prefactor     1.1187        .13556E-01    .75880E-05   -.88872    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.27764e-09
Minuit parameter uncertainties:
  1  0.0679215
  2  838.67
  3  0.0187932
  4  0.0135561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505478': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6677.38879045
delta logL = 1.90194441529e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.119e+00  1.356e-02  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.709e-01  1.879e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='8.07e-08', time_completed='2021-12-08 10:01:48.483426', job_id='505478', GAL2='1.12', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1638986508.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1611' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 10:01:48 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 505478: <4FGL_J2349.4+0534_daily_bin1611> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1611> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 09:45:26 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:46:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:46:36 2021
Terminated at Wed Dec  8 10:01:49 2021
Results reported at Wed Dec  8 10:01:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1611 357.356 5.579 656899201 657158401 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 :                                   672.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            983 sec.

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

