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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1478
RA = 57.4699, Dec = -21.0576
tmin = 622425601, tmax = 622684801
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='34811', job_status='RUN', time_executed='2021-08-19 16:02:52.526983', time_epoch_executed='1629414172.53' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34811

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34811/ft1_4FGL_J0349.8-2103_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34811/ft2_4FGL_J0349.8-2103_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34811/ft1_4FGL_J0349.8-2103_daily_bin1478.fits outfile=/scratch/kocevski/34811/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1478.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=622425601.0 tmax=622684801.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 5.02
user 4.01
sys 0.99

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34811/ft1_filtered_4FGL_J0349.8-2103_daily_bin1478.fits" evtable="EVENTS" scfile=/scratch/kocevski/34811/ft2_4FGL_J0349.8-2103_daily_bin1478.fits sctable="SC_DATA" outfile=/scratch/kocevski/34811/ltcube_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.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/34811/ft2_4FGL_J0349.8-2103_daily_bin1478.fits
.....................!
real 13.09
user 11.93
sys 1.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34811/ft1_filtered_4FGL_J0349.8-2103_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/34811/ft2_4FGL_J0349.8-2103_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/34811/ltcube_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.fits outfile=/scratch/kocevski/34811/expmap_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.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/34811/ltcube_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.fits
.....................!
real 190.83
user 185.04
sys 5.47

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/34811/ft1_filtered_4FGL_J0349.8-2103_daily_bin1478.fits scfile=/scratch/kocevski/34811/ft2_4FGL_J0349.8-2103_daily_bin1478.fits outfile=/scratch/kocevski/34811/cmap_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.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 1.25
user 0.37
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34811/ft1_filtered_4FGL_J0349.8-2103_daily_bin1478.fits scfile=/scratch/kocevski/34811/ft2_4FGL_J0349.8-2103_daily_bin1478.fits outfile=/scratch/kocevski/34811/cmap_HighResolution_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.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 1.28
user 0.39
sys 0.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34811/ft1_filtered_4FGL_J0349.8-2103_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/34811/ft2_4FGL_J0349.8-2103_daily_bin1478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34811/Model_4FGL_J0349.8-2103_daily_bin1478.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/34811/ft1_filtered_4FGL_J0349.8-2103_daily_bin1478.fits.....................!
real 136.16
user 133.76
sys 2.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/34811/ft1_filtered_4FGL_J0349.8-2103_daily_bin1478.fits', '/scratch/kocevski/34811/ft2_4FGL_J0349.8-2103_daily_bin1478.fits', expMap='/scratch/kocevski/34811/expmap_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.fits', expCube='/scratch/kocevski/34811/ltcube_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/34811/Model_4FGL_J0349.8-2103_daily_bin1478.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/34811/ft1_filtered_4FGL_J0349.8-2103_daily_bin1478.fits
Spacecraft file(s): /scratch/kocevski/34811/ft2_4FGL_J0349.8-2103_daily_bin1478.fits
Exposure map: /scratch/kocevski/34811/expmap_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.fits
Exposure cube: /scratch/kocevski/34811/ltcube_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/34811/Model_4FGL_J0349.8-2103_daily_bin1478.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) = 5975.80337243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0499       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3876       1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.686       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5128       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8386       1.0000         .10000E-03   10000.    
    13 'norm      '    38.420       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .89053       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9316       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6403       1.0000         .10000E-03   10000.    
    19 'norm      '    10.886       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9435       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3240       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80048       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1301       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=   5975.796     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2912 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0499        2.8844       -.25392E-07    .52778E-05
   2  Prefactor     .10000E-03    11.897       -.10093E-07** at limit **
   3  Prefactor     .10001E-03    117.87       -.58529E-05** at limit **
   4  Prefactor     .10000E-03    1.5835        .10042E-07** at limit **
   5  Prefactor     17.247        20.825       -.70852E-07   -.92719E-05
   6  Prefactor     1.3836        25.410        .26083E-05   -.26704E-04
   7  Prefactor     58.691        49.258        .45286E-06    .19954E-04
   8  Prefactor     .10000E-03    52.909       -.11145E-05** at limit **
   9  Prefactor     .10000E-03    20.508        .76185E-06** at limit **
  10  Prefactor     4.5136        3.2105        .96545E-06   -.40252E-03
  11  Prefactor     .10000E-03    3.6138       -.47270E-07** at limit **
  12  Prefactor     4.8393        4.3133       -.13099E-06   -.31905E-04
  13  norm          38.421        3.4617        .95773E-08    .36870E-05
  14  Prefactor     .10000E-03    22.361       -.43982E-06** at limit **
  15  norm          .88882        1.5837       -.43658E-07   -.22083E-03
  16  Prefactor     .10001E-03    84.733        .53856E-05** at limit **
  17  Prefactor     9.9377        30.558       -.63133E-07    .13517E-05
  18  Prefactor     5.6413        3.7891        .44105E-07    .87388E-05
  19  norm          10.886        10.827        .35706E-08    .27808E-05
  20  Prefactor     .10000E-03    14.954       -.46129E-06** at limit **
  21  Prefactor     1.9396        10.898        .16179E-05   -.33508E-04
  22  Prefactor     3.3237        4.4646        .37954E-07   -.14111E-03
  23  Prefactor     .10000E-03    13.330        .39735E-06** at limit **
  24  Normalizat    .80027        .22946       -.10098E-05   -.23756E-04
  25  Prefactor     1.1304        .18341       -.26579E-06   -.43782E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.04988
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 17.2466
  Prefactor  = 1.38357
  Prefactor  = 58.6905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51362
  Prefactor  = 0.0001
  Prefactor  = 4.83932
  norm       = 38.4208
  Prefactor  = 0.0001
  norm       = 0.888816
  Prefactor  = 0.000100005
  Prefactor  = 9.9377
  Prefactor  = 5.64125
  norm       = 10.8861
  Prefactor  = 0.0001
  Prefactor  = 1.93955
  Prefactor  = 3.32372
  Prefactor  = 0.0001
  Normalizat = 0.800269
  Prefactor  = 1.13035
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.796     FROM HESSE     STATUS=OK           429 CALLS     3341 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0499        2.8942        .12427E-03   -1.5359    
   2  Prefactor     .10000E-03    11.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    122.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5857        .94957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.247        20.872        .96449E-04   -1.4877    
   6  Prefactor     1.3836        25.900        .36909E-03   -1.5473    
   7  Prefactor     58.691        49.314        .26185E-03   -1.4174    
   8  Prefactor     .10000E-03    53.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5136        3.2385        .55510E-03   -1.5283    
  11  Prefactor     .10000E-03    3.6348        .14335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8393        4.3021        .14499E-03   -1.5268    
  13  norm          38.421        3.4690        .40888E-04   -1.4467    
  14  Prefactor     .10000E-03    22.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .88882        1.3353        .11932E-02   -1.5519    
  16  Prefactor     .10001E-03    88.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.9377        30.440        .12715E-03   -1.5077    
  18  Prefactor     5.6413        3.7531        .11510E-03   -1.5233    
  19  norm          10.886        10.828        .12143E-03   -1.5048    
  20  Prefactor     .10000E-03    15.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9396        10.927        .29776E-03   -1.5429    
  22  Prefactor     3.3237        4.4682        .18000E-03   -1.5343    
  23  Prefactor     .10000E-03    13.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .80027        .26715        .35193E-03   -1.0006    
  25  Prefactor     1.1304        .21519        .26052E-03   -.88502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73533e-09
Minuit parameter uncertainties:
  1  2.89428
  2  5.56243e-07
  3  0.00172101
  4  3.76263e-07
  5  20.8812
  6  11.9779
  7  49.3487
  8  0.000217914
  9  8.8726e-05
  10  3.23859
  11  8.06441e-07
  12  4.30239
  13  3.46898
  14  7.30378e-05
  15  1.33531
  16  0.00133641
  17  30.4872
  18  3.75327
  19  10.8301
  20  4.40899e-05
  21  9.2096
  22  4.46869
  23  4.39789e-05
  24  0.267588
  25  0.215361
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  8.888e-01  1.335e+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.130e+00  2.154e-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:  8.003e-01  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 57.470 -21.058
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34811/likelihoodResults_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.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) = 5975.72793587
delta logL = 0.0680460767626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5975.72726286
delta logL = 0.0687190826575

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5975.727     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      253 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90123        1.3000        .10396E-02    .53843E-03
   2  alpha         2.7742        1.1596        .30490E-01    .23417E-04
   3  Normalizat    .79158        .24423        .35357E-03   -.16109E-04
   4  Prefactor     1.1337        .21143        .26011E-03   -.26443E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.901227
  alpha      = 2.77419
  Normalizat = 0.791581
  Prefactor  = 1.13368
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.727     FROM HESSE     STATUS=OK            27 CALLS      280 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90123        1.2527        .41586E-04   -1.5518    
   2  alpha         2.7742        1.1211        .12196E-02    .10990    
   3  Normalizat    .79158        .24443        .14143E-04   -1.0038    
   4  Prefactor     1.1337        .21156        .10404E-04   -.88397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67115e-11
Minuit parameter uncertainties:
  1  1.25276
  2  1.16311
  3  0.244769
  4  0.211714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34811': 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) = 5975.72726286
delta logL = 0.0687190875879

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  9.012e-01  1.253e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.774e+00  1.163e+00  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.134e+00  2.117e-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:  7.916e-01  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
Ra Dec: 57.470 -21.058

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/34811/cmap_HighResolution_622425601_622684801_4FGL_J0349.8-2103_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-08-19 16:15:12.319064', job_id='34811', GAL2='1.13', fit_tolerance='1e-08', EG2='0.79', EG='0.80', time_epoch_completed='1629414912.32', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='6.87e-02', ts2='0.87', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1478' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:15:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 34811: <4FGL_J0349.8-2103_daily_bin1478> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1478> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Aug 19 16:00:56 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:00:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 16:00:58 2021
Terminated at Thu Aug 19 16:15:13 2021
Results reported at Thu Aug 19 16:15:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1478 57.4699 -21.0576 622425601 622684801 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 :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

