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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin301
RA = 357.356, Dec = 5.579
tmin = 317347201, tmax = 317606401
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='149390', job_status='RUN', time_executed='2021-09-30 06:38:31.844401', time_epoch_executed='1633009111.84' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149390/ft1_4FGL_J2349.4+0534_daily_bin301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149390/ft2_4FGL_J2349.4+0534_daily_bin301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149390/ft1_4FGL_J2349.4+0534_daily_bin301.fits outfile=/scratch/kocevski/149390/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin301.fits ra=357.356 dec=5.579 rad=12.0 tmin=317347201.0 tmax=317606401.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.79
user 3.55
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149390/ft1_filtered_4FGL_J2349.4+0534_daily_bin301.fits evtable="EVENTS" scfile=/scratch/kocevski/149390/ft2_4FGL_J2349.4+0534_daily_bin301.fits sctable="SC_DATA" expcube=/scratch/kocevski/149390/ltcube_317347201_317606401_4FGL_J2349.4+0534_daily_bin301.fits outfile=/scratch/kocevski/149390/expmap_317347201_317606401_4FGL_J2349.4+0534_daily_bin301.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/149390/ltcube_317347201_317606401_4FGL_J2349.4+0534_daily_bin301.fits
.....................!
real 190.29
user 185.33
sys 4.60

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/149390/ft1_filtered_4FGL_J2349.4+0534_daily_bin301.fits scfile=/scratch/kocevski/149390/ft2_4FGL_J2349.4+0534_daily_bin301.fits outfile=/scratch/kocevski/149390/cmap_317347201_317606401_4FGL_J2349.4+0534_daily_bin301.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149390/ft1_filtered_4FGL_J2349.4+0534_daily_bin301.fits scfile=/scratch/kocevski/149390/ft2_4FGL_J2349.4+0534_daily_bin301.fits outfile=/scratch/kocevski/149390/cmap_HighResolution_317347201_317606401_4FGL_J2349.4+0534_daily_bin301.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/149390/ft1_filtered_4FGL_J2349.4+0534_daily_bin301.fits evtable="EVENTS" scfile=/scratch/kocevski/149390/ft2_4FGL_J2349.4+0534_daily_bin301.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149390/Model_4FGL_J2349.4+0534_daily_bin301.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/149390/ft1_filtered_4FGL_J2349.4+0534_daily_bin301.fits.....................!
real 71.24
user 69.87
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1866       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6826       1.0000         .10000E-03   10000.    
     3 'norm      '    6.4300       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.384       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.909       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .62255       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3128       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .35392E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5682       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27469E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.143       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6911       1.0000         .10000E-03   10000.    
    17 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6254       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2293       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .50277       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0735       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83336       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=   6724.627     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2299 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1819        23.274       -.22707E-06    .38627E-05
   2  norm          1.6823        2.9134       -.77757E-09   -.12887E-03
   3  norm          6.4299        3.9242        .43464E-07   -.31890E-04
   4  Prefactor     17.384        11.717        .10020E-06   -.11822E-04
   5  Prefactor     .10000E-03    15.589        .58276E-07** at limit **
   6  Prefactor     22.911        16.241       -.97693E-08    .24689E-04
   7  Prefactor     .10000E-03    5.4637        .54546E-07** at limit **
   8  norm          .62266        .90430       -.13319E-06   -.92618E-03
   9  Prefactor     6.3180        9.4896       -.28909E-06    .22140E-05
  10  Prefactor     .10004E-03    130.40        .25357E-05** at limit **
  11  norm          .10180E-03    14.276       -.49750E-05** at limit **
  12  Prefactor     7.5737        6.5544       -.25696E-06    .10813E-03
  13  Prefactor     .10000E-03    94.053       -.25686E-06** at limit **
  14  Prefactor     .10003E-03    8.8235        .25870E-05** at limit **
  15  Prefactor     17.150        28.648       -.31938E-06   -.19690E-04
  16  norm          3.6917        11.665       -.14578E-05   -.14262E-04
  17  norm          .10000E-03    30.110        .19356E-06** at limit **
  18  Prefactor     6.6291        5.3995       -.97379E-06   -.56797E-03
  19  Prefactor     .10000E-03    38.895        .37133E-06** at limit **
  20  Prefactor     9.2285        15.896        .68533E-07   -.30835E-04
  21  Prefactor     .55293        104.05        .17898E-04    .46718E-04
  22  Normalizat    1.0736        .19859       -.12470E-05   -.38909E-03
  23  Prefactor     .83329        .12833        .84117E-07   -.40656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.18187
  norm       = 1.68235
  norm       = 6.42994
  Prefactor  = 17.384
  Prefactor  = 0.0001
  Prefactor  = 22.9111
  Prefactor  = 0.0001
  norm       = 0.62266
  Prefactor  = 6.31796
  Prefactor  = 0.000100043
  norm       = 0.000101804
  Prefactor  = 7.5737
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 17.1501
  norm       = 3.69168
  norm       = 0.0001
  Prefactor  = 6.62907
  Prefactor  = 0.0001
  Prefactor  = 9.22849
  Prefactor  = 0.552925
  Normalizat = 1.0736
  Prefactor  = 0.833288
 **********
 **   18 **HESSE 
 **********

 FCN=   6724.627     FROM HESSE     STATUS=OK           390 CALLS     2689 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1819        21.632        .17652E-03   -1.5253    
   2  norm          1.6823        2.7951        .14685E-03   -1.5449    
   3  norm          6.4299        3.9227        .12159E-03   -1.5201    
   4  Prefactor     17.384        11.723        .96060E-04   -1.4874    
   5  Prefactor     .10000E-03    15.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.911        16.232        .83687E-04   -1.4750    
   7  Prefactor     .10000E-03    5.4706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .62266        .80535        .89595E-03   -1.5550    
   9  Prefactor     6.3180        9.5448        .15976E-03   -1.5205    
  10  Prefactor     .10004E-03    131.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10180E-03    10.580        .55033E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5737        6.6970        .14578E-03   -1.5157    
  13  Prefactor     .10000E-03    94.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    146.45        .40652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.150        28.676        .96733E-04   -1.4879    
  16  norm          3.6917        11.402        .10511E-02   -1.5324    
  17  norm          .10000E-03    30.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6291        5.3713        .77950E-03   -1.5193    
  19  Prefactor     .10000E-03    39.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.2285        15.898        .13192E-03   -1.5100    
  21  Prefactor     .55293        108.62        .50744E-02   -1.5559    
  22  Normalizat    1.0736        .23112        .28039E-03   -.90604    
  23  Prefactor     .83329        .15036        .21557E-03   -.98513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70389e-09
Minuit parameter uncertainties:
  1  21.188
  2  2.79527
  3  3.92286
  4  11.7249
  5  8.85527e-06
  6  16.2351
  7  5.09947e-06
  8  0.805369
  9  9.54706
  10  0.00476929
  11  0.00873909
  12  6.69768
  13  0.000393444
  14  0.00397339
  15  28.6988
  16  11.4085
  17  4.03846e-05
  18  5.37166
  19  0.000125492
  20  15.9053
  21  15.5266
  22  0.231339
  23  0.150432
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  9.228e+00  1.591e+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.333e-01  1.504e-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.074e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149390/likelihoodResults_317347201_317606401_4FGL_J2349.4+0534_daily_bin301.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) = 6724.5822885
delta logL = 0.044976425319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6724.57279083
delta logL = 0.0544740944579

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1987       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8834       1.0000          .0000       10.000    
     3 'Normalizat'    1.0632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83658       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=   6724.573     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      260 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2092        16.637        .74751E-03   -.98978E-04
   2  Index         2.8817        1.4361        .95811E-02   -.13197E-04
   3  Normalizat    1.0631        .21691        .28162E-03   -.73028E-04
   4  Prefactor     .83662        .14734        .21518E-03   -.40894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.20915
  Index      = 2.88172
  Normalizat = 1.06313
  Prefactor  = 0.836616
 **********
 **   18 **HESSE 
 **********

 FCN=   6724.573     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2092        14.512        .29900E-04   -1.5171    
   2  Index         2.8817        1.2560        .38325E-03   -.43748    
   3  Normalizat    1.0631        .21666        .11265E-04   -.90945    
   4  Prefactor     .83662        .14725        .86071E-05   -.98392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92128e-11
Minuit parameter uncertainties:
  1  14.5192
  2  1.27266
  3  0.216837
  4  0.147319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149390': 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) = 6724.5727897
delta logL = 0.0544752248907

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  7.209e+00  1.452e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.882e+00  1.273e+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.366e-01  1.473e-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.063e+00  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/149390/cmap_HighResolution_317347201_317606401_4FGL_J2349.4+0534_daily_bin301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-30 06:49:31.259756', job_id='149390', GAL2='0.84', fit_tolerance='1e-08', EG2='1.06', EG='1.07', time_epoch_completed='1633009771.26', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='5.45e-02', ts2='0.58', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='301' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:49:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 149390: <4FGL_J2349.4+0534_daily_bin301> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin301 357.356 5.579 317347201 317606401 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 :                                   658.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

