aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 130 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0349.6+2410_daily_bin1717
RA = 57.423, Dec = 24.1775
tmin = 684374401, tmax = 684633601
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='17450', job_status='RUN', time_executed='2022-09-16 11:03:48.377408', time_epoch_executed='1663351428.38' WHERE source_name='4FGL J0349.6+2410' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17450/ft1_4FGL_J0349.6+2410_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17450/ft1_4FGL_J0349.6+2410_daily_bin1717.fits outfile=/scratch/kocevski/17450/ft1_filteredMKT_4FGL_J0349.6+2410_daily_bin1717.fits ra=57.423 dec=24.1775 rad=12.0 tmin=684374401.0 tmax=684633601.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 4.97
user 4.73
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.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/17450/ft1_filteredMKT_4FGL_J0349.6+2410_daily_bin1717.fits evtable="EVENTS" outfile="/scratch/kocevski/17450/ft1_filtered_4FGL_J0349.6+2410_daily_bin1717.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.35
sys 0.14

Number of photons that the gtmktime cut: 1422

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17450/ft1_filtered_4FGL_J0349.6+2410_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/17450/ltcube_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.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/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.fits
.....................!
real 13.96
user 13.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17450/ft1_filtered_4FGL_J0349.6+2410_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/17450/ltcube_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.fits outfile=/scratch/kocevski/17450/expmap_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.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/17450/ltcube_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.fits
.....................!
real 192.02
user 186.98
sys 4.55

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J0349.6+2410 @ 57.423 24.1775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17450/ft1_filtered_4FGL_J0349.6+2410_daily_bin1717.fits scfile=/scratch/kocevski/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.fits outfile=/scratch/kocevski/17450/cmap_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.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=57.423 yref=24.1775 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17450/ft1_filtered_4FGL_J0349.6+2410_daily_bin1717.fits scfile=/scratch/kocevski/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.fits outfile=/scratch/kocevski/17450/cmap_HighResolution_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.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=57.423 yref=24.1775 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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17450/ft1_filtered_4FGL_J0349.6+2410_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17450/Model_4FGL_J0349.6+2410_daily_bin1717.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/17450/ft1_filtered_4FGL_J0349.6+2410_daily_bin1717.fits.....................!
real 243.07
user 241.11
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17450/ft1_filtered_4FGL_J0349.6+2410_daily_bin1717.fits', '/scratch/kocevski/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.fits', expMap='/scratch/kocevski/17450/expmap_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.fits', expCube='/scratch/kocevski/17450/ltcube_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17450/Model_4FGL_J0349.6+2410_daily_bin1717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0349.6+2410'

4FGL J0349.6+2410
   Spectrum: LogParabola
275         norm:  7.855e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        alpha:  2.734e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  4.428e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  7.904e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17450/ft1_filtered_4FGL_J0349.6+2410_daily_bin1717.fits
Spacecraft file(s): /scratch/kocevski/17450/ft2_4FGL_J0349.6+2410_daily_bin1717.fits
Exposure map: /scratch/kocevski/17450/expmap_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.fits
Exposure cube: /scratch/kocevski/17450/ltcube_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17450/Model_4FGL_J0349.6+2410_daily_bin1717.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) = 15073.898969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95378E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .30294E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .50217       1.0000          .0000       .10000E+07
     4 'norm      '    1.9770       1.0000          .0000       .10000E+07
     5 'norm      '    .51866E-05   1.0000          .0000       .10000E+07
     6 'norm      '    7.6319       1.0000          .0000       .10000E+07
     7 'norm      '    .23239       1.0000          .0000       .10000E+07
     8 'Prefactor '    25.401       1.0000          .0000       .10000E+07
     9 'Prefactor '    36.083       1.0000          .0000       .10000E+07
    10 'norm      '    17.556       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.1853       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .95272       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15073.89     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      752 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.6910        .46759E-06** at limit **
   2  Prefactor     .33307E-09    5.4024       -.55439E-06** at limit **
   3  Prefactor     .50428        1.0352        .14069E-06   -.11257E-01
   4  norm          1.9773        1.9651       -.47203E-07    .55505E-02
   5  norm           .0000        .73281        .38497E-07** at limit **
   6  norm          7.6522        5.3483       -.37691E-07   -.88489E-03
   7  norm          .96700E-07    100.83        .21440E-05** at limit **
   8  Prefactor     25.320        22.600       -.65420E-05    .56008E-01
   9  Prefactor     36.066        4.5114       -.10463E-05   -.35752E-01
  10  norm          17.548        6.9764        .24203E-05    .14130    
  11  Normalizat    1.1853        .25278        .26759E-04   -.21718E-03
  12  Prefactor     .95286        .56912E-01   -.39498E-05    .17284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 0.50428
  norm       = 1.97734
  norm       = 0
  norm       = 7.65223
  norm       = 9.67004e-08
  Prefactor  = 25.3196
  Prefactor  = 36.0656
  norm       = 17.5484
  Normalizat = 1.18528
  Prefactor  = 0.952856
 **********
 **   18 **HESSE 
 **********

 FCN=   15073.89     FROM HESSE     STATUS=OK           157 CALLS      909 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.6847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    5.3992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .50428        1.0624        .40315E-02   -1.5694    
   4  norm          1.9773        1.9679        .73696E-03   -1.5680    
   5  norm           .0000        .72867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.6522        5.3492        .36276E-03   -1.5653    
   7  norm          .96700E-07    100.95        .11226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.320        26.731        .19846E-03   -1.5607    
   9  Prefactor     36.066        19.642        .16649E-03   -1.5588    
  10  norm          17.548        14.368        .23876E-03   -1.5624    
  11  Normalizat    1.1853        .23536        .12199       -.87059    
  12  Prefactor     .95286        .52742E-01    .30916E-01   -.94318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42416e-07
Minuit parameter uncertainties:
  1  4.66168e-06
  2  8.22659e-05
  3  1.06236
  4  1.96789
  5  2.38383e-06
  6  5.34922
  7  0.00624903
  8  26.7311
  9  19.6421
  10  14.3676
  11  0.235573
  12  0.0527446
Done.

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

Extracting fit parameters...

4FGL J0349.6+2410
   Spectrum: LogParabola
275         norm:  9.670e-08  6.249e-03  0.000e+00  1.000e+06 ( 1.000e-13)
276        alpha:  2.734e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  4.428e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  7.904e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.529e-01  5.274e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.185e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.423 24.177
Photon Flux Upper Limit: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17450/likelihoodResults_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.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) = 15073.8958215
delta logL = -0.00478466011191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15073.1813125
delta logL = 0.709724353655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5519       1.0000          .0000       .10000E+07
     2 'alpha     '    4.6143       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96505       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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=   15073.18     FROM MIGRAD    STATUS=FAILED        96 CALLS      335 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5510        324.31        .13702E-04   -.39827E-04
   2  alpha         4.6145        2.6484        .60029E-01    .11287E-03
   3  Normalizat    1.0788        .24171        .56423E-03   -.47310E-04
   4  Prefactor     .96507        .54306E-01    .13582E-03   -.67635E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15073.18     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      427 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5510        324.31        .21254E-04   -.39827E-04
   2  alpha         4.6145        2.6484        .31322E-02    .11287E-03
   3  Normalizat    1.0788        .24171        .16323E-03   -.47310E-04
   4  Prefactor     .96507        .54306E-01    .35699E-04   -.67635E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15073.18     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      457 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5510        20.522        .54807E-06    .65815E-04
   2  alpha         4.6145        3.6196        .12006E-01   -.49241E-06
   3  Normalizat    1.0788        .26060        .22569E-04   -.38888E-04
   4  Prefactor     .96507        .57768E-01    .54327E-05   -.52735E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.55099
  alpha      = 4.61451
  Normalizat = 1.07881
  Prefactor  = 0.965069
 **********
 **   18 **HESSE 
 **********

 FCN=   15073.18     FROM HESSE     STATUS=OK            23 CALLS      480 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5510        17.950        .37311E-06   -1.5649    
   2  alpha         4.6145        1.0651        .48023E-03    1.0081    
   3  Normalizat    1.0788        .26073        .45139E-05   -.90435    
   4  Prefactor     .96507        .57772E-01    .10865E-05   -.93903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57371e-12
Minuit parameter uncertainties:
  1  17.9503
  2  1.23363
  3  0.261039
  4  0.0577753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17450': 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) = 15073.1813122
delta logL = 0.709724632188

Extracting fit parameters...

4FGL J0349.6+2410
   Spectrum: LogParabola
275         norm:  8.551e+00  1.795e+01  0.000e+00  1.000e+06 ( 1.000e-13)
276        alpha:  4.615e+00  1.234e+00  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  4.428e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  7.904e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.651e-01  5.778e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.079e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 57.423 24.177
Photon Index (Free Index): 4.61 +/- 1.23
Photon Flux (Free Index): 8.36e-08 +/- 7.81e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/17450/cmap_HighResolution_684374401_684633601_4FGL_J0349.6+2410_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-05', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='7.10e-01', photon_flux2='8.36e-08', job_status='DONE', time_completed='2022-09-16 11:17:10.154817', photon_index_error2='1.23', photon_index2='4.61', ts='-0.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.12e-08', energy_flux_error2='1.26e-05', EG='1.19', time_epoch_completed='1663352230.15', return_code='0', job_id='17450', GAL2='0.97', EG2='1.08', return_code2='0', photon_flux_error2='7.81e-08', ts2='1.59', photon_index='2.73' WHERE bin_id='1717' AND source_name='4FGL J0349.6+2410' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:17:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 17450: <4FGL_J0349.6+2410_daily_bin1717> in cluster <slac> Done

Job <4FGL_J0349.6+2410_daily_bin1717> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 11:00:34 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:01:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:01:27 2022
Terminated at Fri Sep 16 11:17:11 2022
Results reported at Fri Sep 16 11:17:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.6+2410_daily_bin1717 57.423 24.1775 684374401 684633601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0349.6+2410 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   803.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            997 sec.

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

