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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin368
RA = 357.356, Dec = 5.579
tmin = 334713601, tmax = 334972801
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='150494', job_status='RUN', time_executed='2021-09-30 06:42:14.268950', time_epoch_executed='1633009334.27' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150494

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150494/ft1_4FGL_J2349.4+0534_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150494/ft2_4FGL_J2349.4+0534_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150494/ft1_4FGL_J2349.4+0534_daily_bin368.fits outfile=/scratch/kocevski/150494/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin368.fits ra=357.356 dec=5.579 rad=12.0 tmin=334713601.0 tmax=334972801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.55
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150494/ft1_filtered_4FGL_J2349.4+0534_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/150494/ft2_4FGL_J2349.4+0534_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/150494/ltcube_334713601_334972801_4FGL_J2349.4+0534_daily_bin368.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/150494/ft2_4FGL_J2349.4+0534_daily_bin368.fits
.....................!
real 12.17
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150494/ft1_filtered_4FGL_J2349.4+0534_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/150494/ft2_4FGL_J2349.4+0534_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/150494/ltcube_334713601_334972801_4FGL_J2349.4+0534_daily_bin368.fits outfile=/scratch/kocevski/150494/expmap_334713601_334972801_4FGL_J2349.4+0534_daily_bin368.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/150494/ltcube_334713601_334972801_4FGL_J2349.4+0534_daily_bin368.fits
.....................!
real 192.28
user 184.99
sys 5.03

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/150494/ft1_filtered_4FGL_J2349.4+0534_daily_bin368.fits scfile=/scratch/kocevski/150494/ft2_4FGL_J2349.4+0534_daily_bin368.fits outfile=/scratch/kocevski/150494/cmap_334713601_334972801_4FGL_J2349.4+0534_daily_bin368.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.59
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.776       1.0000         .10000E-03   10000.    
     2 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .76955E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .90558E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .31555E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26287E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1150       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8193       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17744E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21691E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11165E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10736E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10514E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.853       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.808       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1997       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77441       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=   5269.069     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     3005 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.774        17.028        .78903E-04    .12247E-04
   2  norm          .10000E-03    3.1903        .17700E-02** at limit **
   3  norm          .10001E-03    25.203        .21012E-02** at limit **
   4  Prefactor     .10013E-03    43.948        .37483E-02** at limit **
   5  Prefactor     .10099E-03    39.365        .12485    ** at limit **
   6  Prefactor     .10000E-03    33.157        .40215E-02** at limit **
   7  Prefactor     3.1184        14.414        .22974E-03   -.52405E-04
   8  norm          1.0352        1.0298        .73408E-03    .83796E-03
   9  Prefactor     9.8206        10.015        .12788E-03   -.99036E-04
  10  Prefactor     .10000E-03    12.748        .18142E-02** at limit **
  11  norm          .10000E-03    3.7957        .13767E-02** at limit **
  12  Prefactor     .10000E-03    14.981        .32274E-02** at limit **
  13  Prefactor     .10000E-03    150.74        .18142E-02** at limit **
  14  Prefactor     .10000E-03    9.4984        .18142E-02** at limit **
  15  Prefactor     .10000E-03    8.4473        .18142E-02** at limit **
  16  norm          .10000E-03    18.847        .18142E-02** at limit **
  17  norm          .10000E-03    14.455        .18142E-02** at limit **
  18  Prefactor     .10000E-03    2.2672        .10578E-02** at limit **
  19  Prefactor     50.837        40.670        .56238E-04   -.83085E-04
  20  Prefactor     32.833        26.254        .69958E-04   -.35589E-04
  21  Prefactor     .10000E-03    6.2758        .17745E-02** at limit **
  22  Normalizat    1.2000        .24051        .25564E-03   -.68753E-04
  23  Prefactor     .77435        .16207        .21503E-03   -.67516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7742
  norm       = 0.000100001
  norm       = 0.000100006
  Prefactor  = 0.000100135
  Prefactor  = 0.000100994
  Prefactor  = 0.0001
  Prefactor  = 3.11844
  norm       = 1.03519
  Prefactor  = 9.82062
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.8371
  Prefactor  = 32.8331
  Prefactor  = 0.0001
  Normalizat = 1.19996
  Prefactor  = 0.774347
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.069     FROM HESSE     STATUS=OK           358 CALLS     3363 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.774        17.022        .31561E-05   -1.4692    
   2  norm          .10000E-03    3.2009        .35399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    25.721        .42023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10013E-03    44.340        .74966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10099E-03    37.970        .12812       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.587        .80430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1184        14.414        .91895E-05   -1.5355    
   8  norm          1.0352        1.0296        .29363E-04   -1.5504    
   9  Prefactor     9.8206        10.014        .51152E-05   -1.5081    
  10  Prefactor     .10000E-03    12.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.7961        .27535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.082        .64548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    150.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4476        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2677        .21155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     50.837        40.670        .11248E-04   -1.4281    
  20  Prefactor     32.833        26.251        .27983E-05   -1.4561    
  21  Prefactor     .10000E-03    6.2762        .35490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2000        .24060        .10226E-04   -.86604    
  23  Prefactor     .77435        .16221        .86012E-05   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97383e-09
Minuit parameter uncertainties:
  1  17.0256
  2  9.22233e-05
  3  0.000792593
  4  0.00489567
  5  0.0122935
  6  0.000145484
  7  13.414
  8  1.0296
  9  10.0161
  10  8.18868e-05
  11  6.93416e-06
  12  0.000433538
  13  0.000405136
  14  1.16614e-05
  15  1.45123e-06
  16  9.94612e-06
  17  3.92558e-05
  18  2.88258e-06
  19  40.6923
  20  26.2606
  21  9.46602e-06
  22  0.240827
  23  0.162314
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.283e+01  2.626e+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:  7.743e-01  1.623e-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.200e+00  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.55e-08 +/- 5.24e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/150494/likelihoodResults_334713601_334972801_4FGL_J2349.4+0534_daily_bin368.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) = 5267.1573543
delta logL = 1.91148076962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5267.13027306
delta logL = 1.93856200469

Fit tolerance = 1e-08

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

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

 FCN=   5267.130     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      266 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45330        3.3661        .51832E-02   -.19482E-02
   2  Index         5.1453        2.3268        .73494E-01    .24362E-04
   3  Normalizat    1.0814        .71937E-01    .60291E-01    .71340E-04
   4  Prefactor     .83593        .49719E-01    .44181E-01   -.15024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.453296
  Index      = 5.1453
  Normalizat = 1.08136
  Prefactor  = 0.835926
 **********
 **   18 **HESSE 
 **********

 FCN=   5267.130     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      297 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45330        5.5068        .23198E-04   -1.5573    
   2  Index         5.1453        3.0976        .30596E-02    .29063E-01
   3  Normalizat    1.0814        .22007        .26665E-03   -.90353    
   4  Prefactor     .83593        .15089        .20772E-03   -.98417    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89831e-09
Minuit parameter uncertainties:
  1  3.15989
  2  3.34097
  3  0.220252
  4  0.150965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150494': 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) = 5267.13026728
delta logL = 1.93856778584

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.533e-01  3.160e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  5.145e+00  3.341e+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.359e-01  1.510e-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.081e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.54
Ra Dec: 357.356 5.579
Photon Index (Free Index): 5.15 +/- 3.34
Photon Flux (Free Index): 1.54e-07 +/- 7.60e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.19e-05

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/150494/cmap_HighResolution_334713601_334972801_4FGL_J2349.4+0534_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', comment='SUCCESS', photon_flux='6.55e-08', energy_flux2='2.02e-05', photon_flux_error='5.24e-08', dlogl='1.94e+00', energy_flux='1.98e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-30 06:52:45.059516', photon_index_error2='3.34', photon_index2='5.15', ts='2.30', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.19e-05', EG='1.20', time_epoch_completed='1633009965.06', return_code='0', job_id='150494', GAL2='0.84', EG2='1.08', return_code2='102', energy_flux_error='1.58e-05', photon_flux_error2='7.60e-08', ts2='6.54', photon_index='2.47' WHERE bin_id='368' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:52:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 150494: <4FGL_J2349.4+0534_daily_bin368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin368 357.356 5.579 334713601 334972801 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 :                                   624.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            753 sec.

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

