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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1412
RA = 57.4699, Dec = -21.0576
tmin = 605318401, tmax = 605577601
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='34705', job_status='RUN', time_executed='2021-08-19 16:02:36.331791', time_epoch_executed='1629414156.33' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34705

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34705/ft1_4FGL_J0349.8-2103_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34705/ft2_4FGL_J0349.8-2103_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34705/ft1_4FGL_J0349.8-2103_daily_bin1412.fits outfile=/scratch/kocevski/34705/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1412.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=605318401.0 tmax=605577601.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 5.21
sys 3.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34705/ft1_filtered_4FGL_J0349.8-2103_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/34705/ft2_4FGL_J0349.8-2103_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/34705/ltcube_605318401_605577601_4FGL_J0349.8-2103_daily_bin1412.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/34705/ft2_4FGL_J0349.8-2103_daily_bin1412.fits
.....................!
real 17.47
user 13.80
sys 3.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34705/ft1_filtered_4FGL_J0349.8-2103_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/34705/ft2_4FGL_J0349.8-2103_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/34705/ltcube_605318401_605577601_4FGL_J0349.8-2103_daily_bin1412.fits outfile=/scratch/kocevski/34705/expmap_605318401_605577601_4FGL_J0349.8-2103_daily_bin1412.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/34705/ltcube_605318401_605577601_4FGL_J0349.8-2103_daily_bin1412.fits
.....................!
real 195.68
user 186.31
sys 9.03

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/34705/ft1_filtered_4FGL_J0349.8-2103_daily_bin1412.fits scfile=/scratch/kocevski/34705/ft2_4FGL_J0349.8-2103_daily_bin1412.fits outfile=/scratch/kocevski/34705/cmap_605318401_605577601_4FGL_J0349.8-2103_daily_bin1412.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 3.44
user 0.35
sys 3.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34705/ft1_filtered_4FGL_J0349.8-2103_daily_bin1412.fits scfile=/scratch/kocevski/34705/ft2_4FGL_J0349.8-2103_daily_bin1412.fits outfile=/scratch/kocevski/34705/cmap_HighResolution_605318401_605577601_4FGL_J0349.8-2103_daily_bin1412.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 3.43
user 0.37
sys 3.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34705/ft1_filtered_4FGL_J0349.8-2103_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/34705/ft2_4FGL_J0349.8-2103_daily_bin1412.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34705/Model_4FGL_J0349.8-2103_daily_bin1412.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/34705/ft1_filtered_4FGL_J0349.8-2103_daily_bin1412.fits.....................!
real 148.61
user 143.33
sys 5.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4164       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.554       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.059       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25881E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.104       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4815       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    28.887       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.075       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .78228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1688       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6184       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0869       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0469       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=   6259.668     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     3320 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1611        2.8580        .69281E-06    .55610E-03
   2  Prefactor     7.4350        23.795        .15935E-06    .13089E-04
   3  Prefactor     .10000E-03    73.324       -.30600E-06** at limit **
   4  Prefactor     .10000E-03    2.3812       -.13589E-06** at limit **
   5  Prefactor     16.547        23.199        .78443E-06    .33301E-05
   6  Prefactor     12.062        19.347        .18644E-06    .10304E-05
   7  Prefactor     .10000E-03    62.924        .16267E-05** at limit **
   8  Prefactor     .10000E-03    425.57       -.14717E-05** at limit **
   9  Prefactor     33.126        44.261       -.94881E-07    .19770E-04
  10  Prefactor     3.4821        2.1609        .65681E-07    .15345E-03
  11  Prefactor     .10000E-03    1.8765       -.28639E-06** at limit **
  12  Prefactor     .10000E-03    1.1577       -.79420E-07** at limit **
  13  norm          28.885        2.7882        .15222E-07   -.13100E-03
  14  Prefactor     .10000E-03    16.730       -.98552E-07** at limit **
  15  norm          .10000E-03    .73406       -.25817E-06** at limit **
  16  Prefactor     18.331        489.02        .57499E-07    .38111E-05
  17  Prefactor     .77717        15.601        .15497E-05   -.21089E-03
  18  Prefactor     .10000E-03    1.0940       -.17011E-06** at limit **
  19  norm          .10000E-03    4.0392       -.36475E-07** at limit **
  20  Prefactor     .10000E-03    7.8899       -.11263E-06** at limit **
  21  Prefactor     1.1689        6.8046        .34360E-05    .18193E-03
  22  Prefactor     2.6185        3.4906        .27168E-06    .59967E-04
  23  Prefactor     .10000E-03    13.824       -.41311E-06** at limit **
  24  Normalizat    1.0868        .24166       -.44890E-05    .84624E-04
  25  Prefactor     1.0470        .20243        .35326E-05   -.78908E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16111
  Prefactor  = 7.43496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5474
  Prefactor  = 12.0623
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 33.1261
  Prefactor  = 3.48207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.8847
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.3314
  Prefactor  = 0.77717
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.1689
  Prefactor  = 2.61848
  Prefactor  = 0.0001
  Normalizat = 1.08682
  Prefactor  = 1.04696
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.668     FROM HESSE     STATUS=OK           433 CALLS     3753 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1611        2.4551        .21052E-02   -1.5492    
   2  Prefactor     7.4350        23.790        .14727E-03   -1.5163    
   3  Prefactor     .10000E-03    73.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3892        .11917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.547        23.202        .98441E-04   -1.4894    
   6  Prefactor     12.062        19.352        .11536E-03   -1.5013    
   7  Prefactor     .10000E-03    63.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    434.70        .21451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.126        44.269        .69645E-04   -1.4556    
  10  Prefactor     3.4821        2.1551        .88522E-04   -1.5335    
  11  Prefactor     .10000E-03    3.2386        .20865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1611        .83105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          28.885        2.7868        .38416E-04   -1.4633    
  14  Prefactor     .10000E-03    16.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2216        .12967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.331        484.00        .94206E-04   -1.4851    
  17  Prefactor     .77717        93.318        .57124E-02   -1.5532    
  18  Prefactor     .10000E-03    1.1053        .80748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0412        .15530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.8983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1689        7.1343        .40464E-03   -1.5492    
  22  Prefactor     2.6185        3.4776        .16341E-03   -1.5384    
  23  Prefactor     .10000E-03    13.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0868        .25771        .30414E-03   -.90176    
  25  Prefactor     1.0470        .21844        .27256E-03   -.91180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6987e-09
Minuit parameter uncertainties:
  1  2.45533
  2  23.8201
  3  0.000202913
  4  5.5527e-06
  5  23.2147
  6  19.3617
  7  0.000381084
  8  0.00104668
  9  44.3131
  10  2.15514
  11  4.37966e-05
  12  6.69497e-08
  13  2.7868
  14  2.76979e-05
  15  1.08946e-05
  16  190.12
  17  17.0584
  18  1.64541e-06
  19  5.81587e-07
  20  1.80246e-06
  21  5.77634
  22  3.47791
  23  1.58605e-05
  24  0.258007
  25  0.218624
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  1.089e-05  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.047e+00  2.186e-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:  1.087e+00  2.580e-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: 7.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34705/likelihoodResults_605318401_605577601_4FGL_J0349.8-2103_daily_bin1412.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) = 6259.67233367
delta logL = -0.0038970743044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6259.6684373
delta logL = -7.07894287189e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3298       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0471       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=   6259.668     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      268 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    308.42        .12995E-02** at limit **
   2  alpha         2.0780        3.5392        .16509       -.48686E-07
   3  Normalizat    1.0868        .19587        .30414E-03   -.55968E-03
   4  Prefactor     1.0470        .17428        .27256E-03   -.57045E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.07805
  Normalizat = 1.08682
  Prefactor  = 1.04696
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.668     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2950        .25990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0780        3.0205        .66036E-02   -.16959    
   3  Normalizat    1.0868        .23968        .60829E-04   -.90176    
   4  Prefactor     1.0470        .21240        .54511E-04   -.91180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95749e-10
Minuit parameter uncertainties:
  1  4.63128e-06
  2  116.318
  3  0.239919
  4  0.212575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34705': 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) = 6259.66843437
delta logL = 2.22525795834e-06

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  4.631e-06  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.078e+00  1.163e+02  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.047e+00  2.126e-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:  1.087e+00  2.399e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/34705/cmap_HighResolution_605318401_605577601_4FGL_J0349.8-2103_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-05', job_status='DONE', photon_flux_upper_limit='7.44e-08', time_completed='2021-08-19 16:16:30.902368', job_id='34705', GAL2='1.05', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1629414990.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1412' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:16:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 34705: <4FGL_J0349.8-2103_daily_bin1412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1412 57.4699 -21.0576 605318401 605577601 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 :                                   870.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

