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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1413
RA = 57.4699, Dec = -21.0576
tmin = 605577601, tmax = 605836801
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='34707', job_status='RUN', time_executed='2021-08-19 16:01:52.066206', time_epoch_executed='1629414112.07' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34707/ft1_4FGL_J0349.8-2103_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34707/ft2_4FGL_J0349.8-2103_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34707/ft1_4FGL_J0349.8-2103_daily_bin1413.fits outfile=/scratch/kocevski/34707/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1413.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=605577601.0 tmax=605836801.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 7.26
user 4.80
sys 2.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34707/ft1_filtered_4FGL_J0349.8-2103_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/34707/ft2_4FGL_J0349.8-2103_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/34707/ltcube_605577601_605836801_4FGL_J0349.8-2103_daily_bin1413.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/34707/ft2_4FGL_J0349.8-2103_daily_bin1413.fits
.....................!
real 17.26
user 14.44
sys 2.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34707/ft1_filtered_4FGL_J0349.8-2103_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/34707/ft2_4FGL_J0349.8-2103_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/34707/ltcube_605577601_605836801_4FGL_J0349.8-2103_daily_bin1413.fits outfile=/scratch/kocevski/34707/expmap_605577601_605836801_4FGL_J0349.8-2103_daily_bin1413.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/34707/ltcube_605577601_605836801_4FGL_J0349.8-2103_daily_bin1413.fits
.....................!
real 193.29
user 184.84
sys 8.09

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/34707/ft1_filtered_4FGL_J0349.8-2103_daily_bin1413.fits scfile=/scratch/kocevski/34707/ft2_4FGL_J0349.8-2103_daily_bin1413.fits outfile=/scratch/kocevski/34707/cmap_605577601_605836801_4FGL_J0349.8-2103_daily_bin1413.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 2.70
user 0.37
sys 2.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34707/ft1_filtered_4FGL_J0349.8-2103_daily_bin1413.fits scfile=/scratch/kocevski/34707/ft2_4FGL_J0349.8-2103_daily_bin1413.fits outfile=/scratch/kocevski/34707/cmap_HighResolution_605577601_605836801_4FGL_J0349.8-2103_daily_bin1413.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 2.72
user 0.38
sys 2.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34707/ft1_filtered_4FGL_J0349.8-2103_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/34707/ft2_4FGL_J0349.8-2103_daily_bin1413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34707/Model_4FGL_J0349.8-2103_daily_bin1413.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/34707/ft1_filtered_4FGL_J0349.8-2103_daily_bin1413.fits.....................!
real 165.37
user 160.86
sys 4.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   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 '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.640       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.299       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .79040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8570       1.0000         .10000E-03   10000.    
    13 'norm      '    25.832       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11031E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4967       1.0000         .10000E-03   10000.    
    19 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6513       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8877       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1825       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76389       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=   7001.479     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3052 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2487        .90712E-02** at limit **
   2  Prefactor     .10000E-03    6.3437        .90712E-02** at limit **
   3  Prefactor     .10000E-03    42.971        .90712E-02** at limit **
   4  Prefactor     .10000E-03    1.3068        .90712E-02** at limit **
   5  Prefactor     15.638        15.077        .25319E-02   -.81905E-04
   6  Prefactor     .10000E-03    9.2098        .90712E-02** at limit **
   7  Prefactor     10.299        38.599        .31213E-02    .33371E-04
   8  Prefactor     .10000E-03    19.169        .90712E-02** at limit **
   9  Prefactor     .10000E-03    24.323        .90712E-02** at limit **
  10  Prefactor     2.9122        1.7348        .59519E-02   -.86123E-04
  11  Prefactor     .79116        2.9594        .12404E-01    .14115E-02
  12  Prefactor     2.8570        2.5186        .60130E-02    .49889E-04
  13  norm          25.832        2.3914        .19704E-02   -.27557E-03
  14  Prefactor     .10001E-03    51.547        .90712E-02** at limit **
  15  norm          .10000E-03    .35456        .90712E-02** at limit **
  16  Prefactor     .10001E-03    303.84        .90712E-02** at limit **
  17  Prefactor     .10000E-03    15.700        .90712E-02** at limit **
  18  Prefactor     1.4968        1.5819        .87543E-02    .33680E-04
  19  norm          .10000E-03    4.5714        .90712E-02** at limit **
  20  Prefactor     7.6330        20.257        .36244E-02   -.13433E-02
  21  Prefactor     4.8869        6.4115        .45485E-02    .24528E-03
  22  Prefactor     .10000E-03    .71826        .90712E-02** at limit **
  23  Prefactor     .10000E-03    3.5066        .90712E-02** at limit **
  24  Normalizat    1.1826        .17682        .59312E-01   -.84550E-05
  25  Prefactor     .76376        .14929        .62931E-01    .14713E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 15.6381
  Prefactor  = 0.0001
  Prefactor  = 10.2988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.91219
  Prefactor  = 0.791156
  Prefactor  = 2.85699
  norm       = 25.8323
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 1.49682
  norm       = 0.0001
  Prefactor  = 7.63296
  Prefactor  = 4.88687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18259
  Prefactor  = 0.763755
 **********
 **   18 **HESSE 
 **********

 FCN=   7001.479     FROM HESSE     STATUS=OK           421 CALLS     3473 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2551        .91307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.3471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.3087        .93367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.638        15.098        .10128E-03   -1.4917    
   6  Prefactor     .10000E-03    9.2649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.299        38.657        .12485E-03   -1.5066    
   8  Prefactor     .10000E-03    19.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9122        1.7358        .82350E-04   -1.5367    
  11  Prefactor     .79116        2.9000        .26348E-03   -1.5530    
  12  Prefactor     2.8570        2.5056        .11986E-03   -1.5370    
  13  norm          25.832        2.3917        .36986E-04   -1.4691    
  14  Prefactor     .10001E-03    52.960        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .36014        .48605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    304.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4968        1.5811        .10467E-03   -1.5463    
  19  norm          .10000E-03    4.5746        .17471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6330        20.243        .14498E-03   -1.5155    
  21  Prefactor     4.8869        6.4099        .18194E-03   -1.5266    
  22  Prefactor     .10000E-03    .72133        .69247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5097        .15303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1826        .20855        .26231E-03   -.87143    
  25  Prefactor     .76376        .17539        .27836E-03   -1.0108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03881e-08
Minuit parameter uncertainties:
  1  2.6693e-07
  2  3.3312e-06
  3  0.000823981
  4  4.91939e-07
  5  15.1014
  6  2.76519e-06
  7  38.7515
  8  4.79879e-05
  9  0.000103727
  10  1.73579
  11  2.90051
  12  2.50567
  13  2.39175
  14  0.0014736
  15  1.85647e-07
  16  0.00311891
  17  1.3036e-05
  18  1.58112
  19  1.76545e-06
  20  20.2613
  21  6.41083
  22  3.67321e-07
  23  2.09784e-07
  24  0.208693
  25  0.175521
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  1.856e-07  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:  7.638e-01  1.755e-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.183e+00  2.087e-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: 4.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34707/likelihoodResults_605577601_605836801_4FGL_J0349.8-2103_daily_bin1413.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) = 7001.4788852
delta logL = -0.000105964993963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7001.47878082
delta logL = -1.58158854902e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3442       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76378       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=   7001.479     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      238 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .38383        .48617E-03** at limit **
   2  alpha         2.5196        3.5368        .16501       -.12642E-06
   3  Normalizat    1.1826        .19846        .26231E-03   -.36278E-03
   4  Prefactor     .76375        .17385        .27836E-03   -.36197E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.51961
  Normalizat = 1.18259
  Prefactor  = 0.763754
 **********
 **   18 **HESSE 
 **********

 FCN=   7001.479     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .36339        .97234E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5196        2.5175        .66005E-02    .78444E-02
   3  Normalizat    1.1826        .19861        .52461E-04   -.87143    
   4  Prefactor     .76375        .17398        .55672E-04   -1.0108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05994e-10
Minuit parameter uncertainties:
  1  3.0323e-06
  2  117.88
  3  0.198737
  4  0.174103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34707': 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) = 7001.478778
delta logL = 1.23548670672e-06

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  3.032e-06  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.520e+00  1.179e+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:  7.638e-01  1.741e-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.183e+00  1.987e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/34707/cmap_HighResolution_605577601_605836801_4FGL_J0349.8-2103_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-05', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2021-08-19 16:16:26.172422', job_id='34707', GAL2='0.76', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1629414986.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1413' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:16:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 34707: <4FGL_J0349.8-2103_daily_bin1413> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1413> 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) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:00:50 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:50 2021
Terminated at Thu Aug 19 16:16:26 2021
Results reported at Thu Aug 19 16:16:26 2021

Your job looked like:

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

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

