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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1025
RA = 57.4699, Dec = -21.0576
tmin = 505008001, tmax = 505267201
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='31954', job_status='RUN', time_executed='2021-08-19 15:57:12.659384', time_epoch_executed='1629413832.66' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31954

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31954/ft1_4FGL_J0349.8-2103_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31954/ft1_4FGL_J0349.8-2103_daily_bin1025.fits outfile=/scratch/kocevski/31954/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1025.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=505008001.0 tmax=505267201.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 8.51
user 4.26
sys 4.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.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/31954/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/31954/ft1_filtered_4FGL_J0349.8-2103_daily_bin1025.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 4.49
user 0.33
sys 4.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31954/ft1_filtered_4FGL_J0349.8-2103_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/31954/ltcube_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.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/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.fits
.....................!
real 19.79
user 14.93
sys 4.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31954/ft1_filtered_4FGL_J0349.8-2103_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/31954/ltcube_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.fits outfile=/scratch/kocevski/31954/expmap_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.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/31954/ltcube_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.fits
.....................!
real 195.33
user 185.25
sys 9.48

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 151 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0349.8-2103 @ 57.4699 -21.0576

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/31954/ft1_filtered_4FGL_J0349.8-2103_daily_bin1025.fits scfile=/scratch/kocevski/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.fits outfile=/scratch/kocevski/31954/cmap_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.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.4699 yref=-21.0576 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 4.41
user 0.38
sys 4.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31954/ft1_filtered_4FGL_J0349.8-2103_daily_bin1025.fits scfile=/scratch/kocevski/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.fits outfile=/scratch/kocevski/31954/cmap_HighResolution_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.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.4699 yref=-21.0576 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 4.43
user 0.39
sys 4.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31954/ft1_filtered_4FGL_J0349.8-2103_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31954/Model_4FGL_J0349.8-2103_daily_bin1025.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/31954/ft1_filtered_4FGL_J0349.8-2103_daily_bin1025.fits......................!
real 89.27
user 82.67
sys 6.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/31954/ft1_filtered_4FGL_J0349.8-2103_daily_bin1025.fits', '/scratch/kocevski/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.fits', expMap='/scratch/kocevski/31954/expmap_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.fits', expCube='/scratch/kocevski/31954/ltcube_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/31954/Model_4FGL_J0349.8-2103_daily_bin1025.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0349.8-2103'

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.092e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/31954/ft1_filtered_4FGL_J0349.8-2103_daily_bin1025.fits
Spacecraft file(s): /scratch/kocevski/31954/ft2_4FGL_J0349.8-2103_daily_bin1025.fits
Exposure map: /scratch/kocevski/31954/expmap_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.fits
Exposure cube: /scratch/kocevski/31954/ltcube_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/31954/Model_4FGL_J0349.8-2103_daily_bin1025.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) = 3592.5341797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8252       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.430       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.078       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2606       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.669       1.0000         .10000E-03   10000.    
     8 'Prefactor '    107.19       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11432       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2495       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4095       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.584       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.571       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9764       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .23435       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2592       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3592.518     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2985 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8243        4.7931        .20840E-06    .60135E-04
   2  Prefactor     .10000E-03    8.1552        .75268E-07** at limit **
   3  Prefactor     72.357        209.89       -.28804E-05    .48497E-06
   4  Prefactor     .10000E-03    1.3575        .72558E-07** at limit **
   5  Prefactor     13.063        16.721        .14368E-05    .56207E-04
   6  Prefactor     5.2588        9.2836        .28096E-05   -.28471E-03
   7  Prefactor     46.607        57.918       -.21012E-05   -.47250E-04
   8  Prefactor     107.14        75.618       -.43842E-06   -.33400E-04
   9  Prefactor     30.757        30.910       -.68873E-08    .14074E-04
  10  Prefactor     .11511        1.9891        .17819E-06    .36417E-03
  11  Prefactor     .10000E-03    2.5695        .76110E-07** at limit **
  12  Prefactor     .10000E-03    4.1083        .35966E-06** at limit **
  13  norm          .10000E-03    .44151       -.10407E-06** at limit **
  14  Prefactor     5.2408        28.073        .79874E-06    .89197E-05
  15  norm          2.8911        1.8196        .12562E-06   -.30836E-04
  16  Prefactor     .10000E-03    83.224        .21810E-06** at limit **
  17  Prefactor     .10000E-03    15.508       -.30027E-07** at limit **
  18  Prefactor     1.4065        3.2766        .10386E-05    .16397E-04
  19  norm          .10000E-03    5.7922        .91389E-08** at limit **
  20  Prefactor     36.574        31.419        .98575E-06    .16616E-04
  21  Prefactor     18.563        11.082        .10823E-05    .10316E-03
  22  Prefactor     2.9756        4.3154        .70950E-06    .20367E-04
  23  Prefactor     .10000E-03    9.5541        .36595E-06** at limit **
  24  Normalizat    .23484        .22483       -.18093E-04   -.17055E-04
  25  Prefactor     1.2589        .20112        .57685E-05    .20266E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.82434
  Prefactor  = 0.0001
  Prefactor  = 72.3567
  Prefactor  = 0.0001
  Prefactor  = 13.0634
  Prefactor  = 5.25875
  Prefactor  = 46.6066
  Prefactor  = 107.139
  Prefactor  = 30.7574
  Prefactor  = 0.115112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.24078
  norm       = 2.89107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.40648
  norm       = 0.0001
  Prefactor  = 36.5736
  Prefactor  = 18.5634
  Prefactor  = 2.97558
  Prefactor  = 0.0001
  Normalizat = 0.234839
  Prefactor  = 1.25887
 **********
 **   18 **HESSE 
 **********

 FCN=   3592.518     FROM HESSE     STATUS=OK           435 CALLS     3420 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8243        4.7951        .89144E-04   -1.5081    
   2  Prefactor     .10000E-03    8.1599        .16719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     72.357        209.98        .23586E-03   -1.4005    
   4  Prefactor     .10000E-03    1.3579        .68184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.063        16.694        .11076E-03   -1.4985    
   6  Prefactor     5.2588        9.2499        .87624E-03   -1.5249    
   7  Prefactor     46.607        58.023        .29347E-03   -1.4342    
   8  Prefactor     107.14        75.561        .19422E-03   -1.3634    
   9  Prefactor     30.757        30.910        .72244E-04   -1.4598    
  10  Prefactor     .11511        22.811        .15049E-02   -1.5640    
  11  Prefactor     .10000E-03    2.6012        .93768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2097        .23684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .45448        .77349E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2408        28.153        .17543E-03   -1.5250    
  15  norm          2.8911        1.8192        .29130E-03   -1.5368    
  16  Prefactor     .10000E-03    83.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4065        3.2252        .15071E-03   -1.5471    
  19  norm          .10000E-03    5.7974        .14088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.574        31.314        .66260E-04   -1.4498    
  21  Prefactor     18.563        11.111        .92940E-04   -1.4846    
  22  Prefactor     2.9756        4.2934        .14055E-03   -1.5363    
  23  Prefactor     .10000E-03    9.5794        .18095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .23484        .22304        .41762E-03   -1.2696    
  25  Prefactor     1.2589        .20155        .18200E-03   -.84538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86549e-09
Minuit parameter uncertainties:
  1  4.7953
  2  2.34478e-06
  3  212.187
  4  2.08042e-06
  5  16.6996
  6  9.25245
  7  58.093
  8  75.6294
  9  30.9266
  10  3.24072
  11  3.33042e-05
  12  3.61551e-05
  13  1.28192e-05
  14  24.3109
  15  1.81923
  16  0.000219835
  17  1.47565e-05
  18  3.2256
  19  5.84202e-06
  20  31.328
  21  11.112
  22  4.29382
  23  5.89587e-06
  24  0.223887
  25  0.201675
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  2.891e+00  1.819e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  1.259e+00  2.017e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  2.348e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.53
Ra Dec: 57.470 -21.058
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 7.35e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.43e-05

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) = 3592.46879656
delta logL = 0.0494844739083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3592.4670412
delta logL = 0.0512398378901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9347       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1268       1.0000          .0000       5.0000    
     3 'Normalizat'    .24545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2535       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3592.467     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9347        3.4165        .59277E-02   -.26765E-02
   2  alpha         2.1267        1.1129        .34935       -.20428E-04
   3  Normalizat    .24546        .21937        .92308E-01    .40950E-04
   4  Prefactor     1.2535        .21113        .33473E-01   -.16109E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93472
  alpha      = 2.12673
  Normalizat = 0.245464
  Prefactor  = 1.25354
 **********
 **   18 **HESSE 
 **********

 FCN=   3592.467     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9347        1.8066        .60638E-04   -1.5365    
   2  alpha         2.1267        .65750        .13921E-01   -.14987    
   3  Normalizat    .24546        .20519        .40858E-03   -1.2625    
   4  Prefactor     1.2535        .19857        .18236E-03   -.84699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65276e-10
Minuit parameter uncertainties:
  1  1.8066
  2  0.665509
  3  0.205822
  4  0.198685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31954': 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) = 3592.46704119
delta logL = 0.0512398441838

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  2.935e+00  1.807e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.127e+00  6.655e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  1.254e+00  1.987e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  2.455e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.62
Ra Dec: 57.470 -21.058
Photon Index (Free Index): 2.13 +/- 0.67
Photon Flux (Free Index): 6.36e-08 +/- 4.99e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.52e-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/31954/cmap_HighResolution_505008001_505267201_4FGL_J0349.8-2103_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.35e-08', energy_flux2='2.38e-05', photon_flux_error='4.62e-08', dlogl='5.12e-02', energy_flux='2.27e-05', photon_flux2='6.36e-08', job_status='DONE', time_completed='2021-08-19 16:07:02.479001', photon_index_error2='0.67', photon_index2='2.13', ts='7.53', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='0.23', time_epoch_completed='1629414422.48', return_code='0', job_id='31954', GAL2='1.25', EG2='0.25', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='4.99e-08', ts2='7.62', photon_index='2.34' WHERE bin_id='1025' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:07:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 31954: <4FGL_J0349.8-2103_daily_bin1025> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1025> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 15:55:39 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 15:55:40 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:55:40 2021
Terminated at Thu Aug 19 16:07:03 2021
Results reported at Thu Aug 19 16:07:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1025 57.4699 -21.0576 505008001 505267201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0349.8-2103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            684 sec.

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

