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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1359
RA = 57.4699, Dec = -21.0576
tmin = 591580801, tmax = 591840001
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='34624', job_status='RUN', time_executed='2021-08-19 16:01:19.166077', time_epoch_executed='1629414079.17' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34624

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34624/ft1_4FGL_J0349.8-2103_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34624/ft2_4FGL_J0349.8-2103_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34624/ft1_4FGL_J0349.8-2103_daily_bin1359.fits outfile=/scratch/kocevski/34624/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1359.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=591580801.0 tmax=591840001.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.44
user 3.53
sys 0.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34624/ft1_filtered_4FGL_J0349.8-2103_daily_bin1359.fits" evtable="EVENTS" scfile=/scratch/kocevski/34624/ft2_4FGL_J0349.8-2103_daily_bin1359.fits sctable="SC_DATA" outfile=/scratch/kocevski/34624/ltcube_591580801_591840001_4FGL_J0349.8-2103_daily_bin1359.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/34624/ft2_4FGL_J0349.8-2103_daily_bin1359.fits
.....................!
real 15.65
user 14.58
sys 1.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34624/ft1_filtered_4FGL_J0349.8-2103_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/34624/ft2_4FGL_J0349.8-2103_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/34624/ltcube_591580801_591840001_4FGL_J0349.8-2103_daily_bin1359.fits outfile=/scratch/kocevski/34624/expmap_591580801_591840001_4FGL_J0349.8-2103_daily_bin1359.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/34624/ltcube_591580801_591840001_4FGL_J0349.8-2103_daily_bin1359.fits
.....................!
real 192.96
user 186.51
sys 6.11

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/34624/ft1_filtered_4FGL_J0349.8-2103_daily_bin1359.fits scfile=/scratch/kocevski/34624/ft2_4FGL_J0349.8-2103_daily_bin1359.fits outfile=/scratch/kocevski/34624/cmap_591580801_591840001_4FGL_J0349.8-2103_daily_bin1359.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.18
user 0.36
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34624/ft1_filtered_4FGL_J0349.8-2103_daily_bin1359.fits scfile=/scratch/kocevski/34624/ft2_4FGL_J0349.8-2103_daily_bin1359.fits outfile=/scratch/kocevski/34624/cmap_HighResolution_591580801_591840001_4FGL_J0349.8-2103_daily_bin1359.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.18
user 0.37
sys 0.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34624/ft1_filtered_4FGL_J0349.8-2103_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/34624/ft2_4FGL_J0349.8-2103_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34624/Model_4FGL_J0349.8-2103_daily_bin1359.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/34624/ft1_filtered_4FGL_J0349.8-2103_daily_bin1359.fits.....................!
real 154.77
user 152.48
sys 2.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79481       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24686E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6040       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.707       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.826       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12635E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9443       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.7525       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .78480E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.007       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13953E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8411       1.0000         .10000E-03   10000.    
    19 'norm      '    3.6263       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5570       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79126       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1689       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=   6991.123     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3041 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9051        2.7453        .10486E-07    .92873E-05
   2  Prefactor     .10000E-03    5.3523       -.91483E-08** at limit **
   3  Prefactor     .10000E-03    62.291       -.20873E-07** at limit **
   4  Prefactor     .79276        4.7205        .22845E-05    .63797E-03
   5  Prefactor     .10299E-03    35.341       -.20875E-04** at limit **
   6  Prefactor     2.6033        8.1489       -.17478E-05   -.54932E-04
   7  Prefactor     .10000E-03    18.924       -.48059E-06** at limit **
   8  Prefactor     45.702        57.706        .15155E-05    .58650E-05
   9  Prefactor     19.828        22.674        .17707E-07   -.17373E-04
  10  Prefactor     .10002E-03    1.3744       -.30654E-05** at limit **
  11  Prefactor     4.9445        4.1098       -.10391E-06   -.27530E-04
  12  Prefactor     .10000E-03    1.9119        .16700E-07** at limit **
  13  norm          6.7524        1.4690       -.57486E-07    .12459E-03
  14  Prefactor     .10157E-03    139.04        .50847E-04** at limit **
  15  norm          .10000E-03    .56207        .47485E-06** at limit **
  16  Prefactor     38.006        91.490        .77411E-06   -.53768E-06
  17  Prefactor     .10062E-03    22.269       -.16135E-04** at limit **
  18  Prefactor     3.8412        2.1716        .64339E-08    .30225E-04
  19  norm          3.6255        8.5465        .53599E-05    .10030E-02
  20  Prefactor     .10000E-03    13.982        .55540E-06** at limit **
  21  Prefactor     4.5569        4.3482        .24538E-05    .22289E-02
  22  Prefactor     .10000E-03    1.9327       -.19680E-07** at limit **
  23  Prefactor     .10000E-03    14.210       -.20173E-05** at limit **
  24  Normalizat    .79124        .17104        .11238E-05    .49699E-03
  25  Prefactor     1.1689        .15074       -.14741E-05    .21266E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.90514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.792758
  Prefactor  = 0.000102993
  Prefactor  = 2.60334
  Prefactor  = 0.0001
  Prefactor  = 45.7016
  Prefactor  = 19.828
  Prefactor  = 0.000100016
  Prefactor  = 4.94454
  Prefactor  = 0.0001
  norm       = 6.75239
  Prefactor  = 0.000101575
  norm       = 0.000100001
  Prefactor  = 38.0056
  Prefactor  = 0.000100621
  Prefactor  = 3.84123
  norm       = 3.62552
  Prefactor  = 0.0001
  Prefactor  = 4.55693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.791245
  Prefactor  = 1.16894
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.123     FROM HESSE     STATUS=OK           447 CALLS     3488 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9051        2.7449        .11315E-03   -1.5313    
   2  Prefactor     .10000E-03    5.3536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    62.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .79276        8.6693        .31399E-02   -1.5530    
   5  Prefactor     .10299E-03    19.798        .82411E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6033        8.1608        .25281E-03   -1.5385    
   7  Prefactor     .10000E-03    18.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.702        57.736        .59305E-04   -1.4355    
   9  Prefactor     19.828        22.675        .89952E-04   -1.4817    
  10  Prefactor     .10002E-03    14.526        .15152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9445        4.0985        .14259E-03   -1.5263    
  12  Prefactor     .10000E-03    1.9388        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.7524        1.4724        .42649E-04   -1.5188    
  14  Prefactor     .10157E-03    20.294        .10008       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3980        .11703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.006        91.689        .65012E-04   -1.4474    
  17  Prefactor     .10062E-03    140.70        .50932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8412        2.1631        .88909E-04   -1.5316    
  19  norm          3.6255        9.7871        .10608E-02   -1.5327    
  20  Prefactor     .10000E-03    14.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5569        4.9597        .93673E-03   -1.5281    
  22  Prefactor     .10000E-03    1.9801        .22682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .79124        .19559        .28606E-03   -1.0039    
  25  Prefactor     1.1689        .17239        .21945E-03   -.87292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37553e-08
Minuit parameter uncertainties:
  1  2.745
  2  1.46046e-06
  3  7.40956e-06
  4  5.24378
  5  0.0154015
  6  8.16424
  7  0.00018278
  8  57.8067
  9  22.6847
  10  0.00096411
  11  4.09878
  12  4.20388e-06
  13  1.47243
  14  0.0113101
  15  0.00010598
  16  92.0314
  17  0.0187376
  18  2.16312
  19  9.79141
  20  9.58562e-06
  21  4.96017
  22  2.62583e-06
  23  9.39067e-05
  24  0.195759
  25  0.172472
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  1.060e-04  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.169e+00  1.725e-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.912e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.470 -21.058
Photon Flux Upper Limit: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34624/likelihoodResults_591580801_591840001_4FGL_J0349.8-2103_daily_bin1359.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) = 6991.1236663
delta logL = -0.00111489214578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6990.95737567
delta logL = 0.165175738127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30788       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1708       1.0000          .0000       5.0000    
     3 'Normalizat'    .79893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1566       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=   6990.957     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      291 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30785        .72741        .21610E-01    .29396E-02
   2  alpha         1.1708        .83349        .50000       -.50428E-04
   3  Normalizat    .79894        .15986        .64373E-01   -.22437E-03
   4  Prefactor     1.1566        .14767        .35748E-01   -.80566E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.307846
  alpha      = 1.17078
  Normalizat = 0.798935
  Prefactor  = 1.1566
 **********
 **   18 **HESSE 
 **********

 FCN=   6990.957     FROM HESSE     STATUS=OK            33 CALLS      324 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30785        .75038        .99440E-03   -1.5597    
   2  alpha         1.1708        1.1764        .30997E-01   -.56059    
   3  Normalizat    .79894        .18102        .28477E-03   -1.0011    
   4  Prefactor     1.1566        .16737        .22040E-03   -.87678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51044e-10
Minuit parameter uncertainties:
  1  0.750398
  2  1.2473
  3  0.181155
  4  0.167444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34624': 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) = 6990.95737567
delta logL = 0.165175740492

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  3.078e-01  7.504e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.171e+00  1.247e+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.157e+00  1.674e-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.989e-01  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/34624/cmap_HighResolution_591580801_591840001_4FGL_J0349.8-2103_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-05', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-08-19 16:15:01.464397', job_id='34624', GAL2='1.16', fit_tolerance='1e-08', EG2='0.80', EG='0.79', time_epoch_completed='1629414901.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.65e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1359' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:15:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 34624: <4FGL_J0349.8-2103_daily_bin1359> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1359> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Aug 19 16:00:42 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:00:44 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:44 2021
Terminated at Thu Aug 19 16:15:01 2021
Results reported at Thu Aug 19 16:15:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1359 57.4699 -21.0576 591580801 591840001 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 :                                   826.00 sec.
    Max Memory :                                 1099 MB
    Average Memory :                             367.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

