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


Performing analysis on: 4FGL_J0349.6+2410_daily_bin666
RA = 57.423, Dec = 24.1775
tmin = 411955201, tmax = 412214401
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='19833', job_status='RUN', time_executed='2021-08-19 15:17:38.271309', time_epoch_executed='1629411458.27' WHERE source_name='4FGL J0349.6+2410' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19833/ft1_4FGL_J0349.6+2410_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19833/ft2_4FGL_J0349.6+2410_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19833/ft1_4FGL_J0349.6+2410_daily_bin666.fits outfile=/scratch/kocevski/19833/ft1_filteredMKT_4FGL_J0349.6+2410_daily_bin666.fits ra=57.423 dec=24.1775 rad=12.0 tmin=411955201.0 tmax=412214401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.75
user 5.32
sys 1.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19833/ft2_4FGL_J0349.6+2410_daily_bin666.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/19833/ft1_filteredMKT_4FGL_J0349.6+2410_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/19833/ft1_filtered_4FGL_J0349.6+2410_daily_bin666.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 1.65
user 0.32
sys 1.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19833/ft1_filtered_4FGL_J0349.6+2410_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/19833/ft2_4FGL_J0349.6+2410_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/19833/ltcube_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.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/19833/ft2_4FGL_J0349.6+2410_daily_bin666.fits
.....................!
real 13.67
user 11.90
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19833/ft1_filtered_4FGL_J0349.6+2410_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/19833/ft2_4FGL_J0349.6+2410_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/19833/ltcube_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.fits outfile=/scratch/kocevski/19833/expmap_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.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/19833/ltcube_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.fits
.....................!
real 191.39
user 185.30
sys 5.59

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/19833/ft1_filtered_4FGL_J0349.6+2410_daily_bin666.fits scfile=/scratch/kocevski/19833/ft2_4FGL_J0349.6+2410_daily_bin666.fits outfile=/scratch/kocevski/19833/cmap_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.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 1.65
user 0.38
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19833/ft1_filtered_4FGL_J0349.6+2410_daily_bin666.fits scfile=/scratch/kocevski/19833/ft2_4FGL_J0349.6+2410_daily_bin666.fits outfile=/scratch/kocevski/19833/cmap_HighResolution_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.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 1.67
user 0.39
sys 1.26

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19833/ft1_filtered_4FGL_J0349.6+2410_daily_bin666.fits', '/scratch/kocevski/19833/ft2_4FGL_J0349.6+2410_daily_bin666.fits', expMap='/scratch/kocevski/19833/expmap_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.fits', expCube='/scratch/kocevski/19833/ltcube_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19833/Model_4FGL_J0349.6+2410_daily_bin666.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  1.000e-04  1.000e+04 ( 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  0.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/19833/ft1_filtered_4FGL_J0349.6+2410_daily_bin666.fits
Spacecraft file(s): /scratch/kocevski/19833/ft2_4FGL_J0349.6+2410_daily_bin666.fits
Exposure map: /scratch/kocevski/19833/expmap_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.fits
Exposure cube: /scratch/kocevski/19833/ltcube_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19833/Model_4FGL_J0349.6+2410_daily_bin666.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) = 10667.9351527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80908E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66994       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2789       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0013       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    19.770       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74075E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.501       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1603       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .97169       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.

 FCN=   10667.91     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     1552 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    290.41        .20895E-02** at limit **
   2  Prefactor     .10000E-03    2.3811        .15537E-02** at limit **
   3  Prefactor     .10000E-03    4.5620        .18142E-02** at limit **
   4  Prefactor     .66963        2.0705        .24068E-03    .10203E-03
   5  norm          .10000E-03    .73219        .85778E-03** at limit **
   6  norm          2.2842        9.7657        .27199E-03   -.36782E-05
   7  norm          1.0015        1.9096        .18752E-03   -.16224E-03
   8  norm          .10000E-03    3.2493        .18142E-02** at limit **
   9  norm          19.576        48.290        .90080E-04    .23475E-04
  10  Prefactor     .10000E-03    17.635        .18142E-02** at limit **
  11  Prefactor     .10000E-03    29.503        .16006    ** at limit **
  12  Prefactor     10.532        17.225        .12364E-03   -.12505E-04
  13  norm          3.1595        8.0771        .22799E-03   -.12266E-04
  14  Normalizat    1.1446        .27356        .51476E-03    .15327E-04
  15  Prefactor     .97173        .65157E-01    .13147E-03   -.86298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.669634
  norm       = 0.0001
  norm       = 2.28419
  norm       = 1.00151
  norm       = 0.0001
  norm       = 19.5761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5315
  norm       = 3.15954
  Normalizat = 1.14458
  Prefactor  = 0.971727
 **********
 **   18 **HESSE 
 **********

 FCN=   10667.91     FROM HESSE     STATUS=OK           176 CALLS     1728 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    290.49        .41791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3813        .31073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66963        2.0693        .96273E-05   -1.5544    
   5  norm          .10000E-03    .73226        .17156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2842        9.7661        .10880E-04   -1.5406    
   7  norm          1.0015        1.9088        .75008E-05   -1.5508    
   8  norm          .10000E-03    3.2496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.576        48.273        .36032E-05   -1.4823    
  10  Prefactor     .10000E-03    17.637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.634        .15954       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.532        17.228        .49456E-05   -1.5059    
  13  norm          3.1595        8.0774        .91198E-05   -1.5352    
  14  Normalizat    1.1446        .27363        .20590E-04   -.88333    
  15  Prefactor     .97173        .65183E-01    .52589E-05   -.93678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4234e-11
Minuit parameter uncertainties:
  1  0.00177607
  2  1.93639e-06
  3  8.01673e-07
  4  2.06955
  5  1.96438e-06
  6  9.44857
  7  1.9089
  8  4.00786e-07
  9  48.3699
  10  2.62112e-05
  11  5.13285e-05
  12  17.2359
  13  8.08019
  14  0.273969
  15  0.0651878
Done.

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

Extracting fit parameters...

4FGL J0349.6+2410
   Spectrum: LogParabola
275         norm:  1.958e+01  4.837e+01  1.000e-04  1.000e+04 ( 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  0.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.717e-01  6.519e-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.145e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/19833/likelihoodResults_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.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) = 10667.3576442
delta logL = 0.553572257388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10667.3415422
delta logL = 0.569674205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9814       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98524       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.

 FCN=   10667.34     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      335 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9759        5.3083        .50534E-02    .90481E-03
   2  alpha         5.0000        3.5380        .46363    ** at limit **
   3  Normalizat    1.0458        .26704        .12087        .46535E-04
   4  Prefactor     .98519        .61153E-01    .29568E-01   -.10327E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.97589
  alpha      = 5
  Normalizat = 1.04584
  Prefactor  = 0.985193
 **********
 **   18 **HESSE 
 **********

 FCN=   10667.34     FROM HESSE     STATUS=OK            35 CALLS      370 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9759        4.3493        .18307E-03   -1.5309    
   2  alpha         5.0000        3.2109        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0458        .28941        .53618E-03   -.91510    
   4  Prefactor     .98519        .66085E-01    .13066E-03   -.93225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55803e-10
Minuit parameter uncertainties:
  1  4.34963
  2  8.71345e-05
  3  0.289845
  4  0.0660904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19833': 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) = 10667.3415403
delta logL = 0.569676165873

Extracting fit parameters...

4FGL J0349.6+2410
   Spectrum: LogParabola
275         norm:  3.976e+00  4.350e+00  1.000e-04  1.000e+04 ( 1.000e-13)
276        alpha:  5.000e+00  8.713e-05  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  4.428e-01  0.000e+00  0.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.852e-01  6.609e-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.046e+00  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 57.423 24.177
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.44e-08 +/- 8.12e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.25e-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/19833/cmap_HighResolution_411955201_412214401_4FGL_J0349.6+2410_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='5.70e-01', photon_flux2='7.44e-08', job_status='DONE', time_completed='2021-08-19 15:30:56.995156', photon_index_error2='0.00', photon_index2='5.00', ts='0.21', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.39e-08', energy_flux_error2='1.25e-05', EG='1.14', time_epoch_completed='1629412257.0', return_code='0', job_id='19833', GAL2='0.99', EG2='1.05', return_code2='0', photon_flux_error2='8.12e-08', ts2='1.50', photon_index='2.73' WHERE bin_id='666' AND source_name='4FGL J0349.6+2410' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 15:30:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 19833: <4FGL_J0349.6+2410_daily_bin666> in cluster <slac> Done

Job <4FGL_J0349.6+2410_daily_bin666> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 15:15:22 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 15:15:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 15:15:24 2021
Terminated at Thu Aug 19 15:30:57 2021
Results reported at Thu Aug 19 15:30:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.6+2410_daily_bin666 57.423 24.1775 411955201 412214401 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 :                                   811.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

