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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1587
RA = 57.4699, Dec = -21.0576
tmin = 650678401, tmax = 650937601
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='36005', job_status='RUN', time_executed='2021-08-19 16:07:45.257580', time_epoch_executed='1629414465.26' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36005

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36005/ft1_4FGL_J0349.8-2103_daily_bin1587.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36005/ft2_4FGL_J0349.8-2103_daily_bin1587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36005/ft1_4FGL_J0349.8-2103_daily_bin1587.fits outfile=/scratch/kocevski/36005/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1587.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=650678401.0 tmax=650937601.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.25
user 3.50
sys 4.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36005/ft2_4FGL_J0349.8-2103_daily_bin1587.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/36005/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1587.fits evtable="EVENTS" outfile="/scratch/kocevski/36005/ft1_filtered_4FGL_J0349.8-2103_daily_bin1587.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 5.00
user 0.34
sys 4.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36005/ft1_filtered_4FGL_J0349.8-2103_daily_bin1587.fits" evtable="EVENTS" scfile=/scratch/kocevski/36005/ft2_4FGL_J0349.8-2103_daily_bin1587.fits sctable="SC_DATA" outfile=/scratch/kocevski/36005/ltcube_650678401_650937601_4FGL_J0349.8-2103_daily_bin1587.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/36005/ft2_4FGL_J0349.8-2103_daily_bin1587.fits
.....................!
real 17.22
user 11.79
sys 5.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36005/ft1_filtered_4FGL_J0349.8-2103_daily_bin1587.fits evtable="EVENTS" scfile=/scratch/kocevski/36005/ft2_4FGL_J0349.8-2103_daily_bin1587.fits sctable="SC_DATA" expcube=/scratch/kocevski/36005/ltcube_650678401_650937601_4FGL_J0349.8-2103_daily_bin1587.fits outfile=/scratch/kocevski/36005/expmap_650678401_650937601_4FGL_J0349.8-2103_daily_bin1587.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/36005/ltcube_650678401_650937601_4FGL_J0349.8-2103_daily_bin1587.fits
.....................!
real 195.88
user 185.22
sys 10.14

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/36005/ft1_filtered_4FGL_J0349.8-2103_daily_bin1587.fits scfile=/scratch/kocevski/36005/ft2_4FGL_J0349.8-2103_daily_bin1587.fits outfile=/scratch/kocevski/36005/cmap_650678401_650937601_4FGL_J0349.8-2103_daily_bin1587.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=57.4699 yref=-21.0576 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.84
user 0.36
sys 4.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36005/ft1_filtered_4FGL_J0349.8-2103_daily_bin1587.fits scfile=/scratch/kocevski/36005/ft2_4FGL_J0349.8-2103_daily_bin1587.fits outfile=/scratch/kocevski/36005/cmap_HighResolution_650678401_650937601_4FGL_J0349.8-2103_daily_bin1587.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=57.4699 yref=-21.0576 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.85
user 0.38
sys 4.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/36005/ft1_filtered_4FGL_J0349.8-2103_daily_bin1587.fits evtable="EVENTS" scfile=/scratch/kocevski/36005/ft2_4FGL_J0349.8-2103_daily_bin1587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/36005/Model_4FGL_J0349.8-2103_daily_bin1587.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/36005/ft1_filtered_4FGL_J0349.8-2103_daily_bin1587.fits.....................!
real 126.49
user 119.37
sys 6.91

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8292       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    64.315       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6672       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29840       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11495E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.147       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3775       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.6671       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.666       1.0000         .10000E-03   10000.    
    15 'norm      '    .39829E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    101.77       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1824       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.730       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.174       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.619       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3048       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7718       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86807       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92572       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=   5422.337     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     3438 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8293        2.5797        .37065E-06    .24765E-04
   2  Prefactor     .10000E-03    9.3697        .43692E-06** at limit **
   3  Prefactor     64.700        227.74        .46822E-03   -.73891E-05
   4  Prefactor     2.6672        2.6400       -.22905E-06   -.15465E-03
   5  Prefactor     .10001E-03    15.160        .10317E-04** at limit **
   6  Prefactor     .30544        8.0994        .15345E-05    .44137E-03
   7  Prefactor     .10000E-03    14.681       -.95376E-05** at limit **
   8  Prefactor     21.179        31.818       -.64769E-06   -.10564E-04
   9  Prefactor     .10000E-03    20.883       -.23046E-05** at limit **
  10  Prefactor     1.3764        2.3205       -.11938E-05   -.20027E-02
  11  Prefactor     .10000E-03    1.4843        .57534E-07** at limit **
  12  Prefactor     .10000E-03    1.3002       -.74550E-08** at limit **
  13  norm          8.6670        1.6159        .36492E-07   -.54093E-03
  14  Prefactor     22.704        34.590        .31482E-04   -.15184E-03
  15  norm          .42355E-01    .71561        .40266E-06   -.11339E-02
  16  Prefactor     101.95        108.37        .15805E-03   -.52015E-05
  17  Prefactor     8.1433        25.972        .14020E-04   -.15108E-03
  18  Prefactor     .10000E-03    .69512        .38515E-07** at limit **
  19  norm          10.730        13.215        .23523E-06   -.82951E-03
  20  Prefactor     24.174        22.183        .54083E-05   -.88471E-04
  21  Prefactor     25.622        10.168        .86417E-06   -.31859E-03
  22  Prefactor     2.3053        3.5214        .20548E-05   -.37846E-03
  23  Prefactor     3.7762        11.628        .38582E-05   -.10453E-03
  24  Normalizat    .86788        .19157       -.16846E-04   -.32871E-03
  25  Prefactor     .92584        .16581       -.89441E-05   -.41444E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.82926
  Prefactor  = 0.0001
  Prefactor  = 64.6998
  Prefactor  = 2.66724
  Prefactor  = 0.000100007
  Prefactor  = 0.305444
  Prefactor  = 0.0001
  Prefactor  = 21.1789
  Prefactor  = 0.0001
  Prefactor  = 1.37644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.66697
  Prefactor  = 22.704
  norm       = 0.0423546
  Prefactor  = 101.949
  Prefactor  = 8.14327
  Prefactor  = 0.0001
  norm       = 10.7304
  Prefactor  = 24.1744
  Prefactor  = 25.6216
  Prefactor  = 2.30533
  Prefactor  = 3.77619
  Normalizat = 0.867881
  Prefactor  = 0.925839
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.337     FROM HESSE     STATUS=OK           431 CALLS     3869 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8293        2.5876        .10999E-03   -1.5372    
   2  Prefactor     .10000E-03    9.3800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     64.700        227.37        .25020E-03   -1.4098    
   4  Prefactor     2.6672        2.6499        .11591E-03   -1.5381    
   5  Prefactor     .10001E-03    15.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .30544        115.68        .39966E-02   -1.5597    
   7  Prefactor     .10000E-03    14.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.179        31.822        .87101E-04   -1.4787    
   9  Prefactor     .10000E-03    20.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3764        2.2722        .13160E-03   -1.5473    
  11  Prefactor     .10000E-03    1.4917        .87562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3094        .81948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.6670        1.6200        .38432E-04   -1.5119    
  14  Prefactor     22.704        34.350        .84133E-04   -1.4755    
  15  norm          .42355E-01    5.8993        .11333E-02   -1.5667    
  16  Prefactor     101.95        108.34        .19927E-03   -1.3685    
  17  Prefactor     8.1433        25.780        .14016E-03   -1.5137    
  18  Prefactor     .10000E-03    .69773        .59935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.730        13.211        .61156E-03   -1.5053    
  20  Prefactor     24.174        22.189        .81471E-04   -1.4724    
  21  Prefactor     25.622        10.172        .79144E-04   -1.4695    
  22  Prefactor     2.3053        3.5010        .16271E-03   -1.5404    
  23  Prefactor     3.7762        11.610        .20787E-03   -1.5319    
  24  Normalizat    .86788        .21926        .26896E-03   -.97598    
  25  Prefactor     .92584        .19154        .23265E-03   -.95244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44538e-08
Minuit parameter uncertainties:
  1  2.58774
  2  5.40147e-05
  3  230.538
  4  2.64999
  5  0.00064461
  6  11.9097
  7  9.71034e-06
  8  31.8472
  9  0.000128005
  10  2.27235
  11  1.25718e-05
  12  1.24857e-05
  13  1.61999
  14  34.3797
  15  0.998646
  16  108.551
  17  25.8152
  18  5.94122e-06
  19  13.2143
  20  22.1969
  21  10.1729
  22  3.50134
  23  11.6173
  24  0.219488
  25  0.191681
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  4.235e-02  9.986e-01  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:  9.258e-01  1.917e-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.679e-01  2.195e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36005/likelihoodResults_650678401_650937601_4FGL_J0349.8-2103_daily_bin1587.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) = 5422.33466263
delta logL = 0.00221993427749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5422.33332891
delta logL = 0.00355365854739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85927E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6739       1.0000          .0000       5.0000    
     3 'Normalizat'    .86705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92549       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=   5422.333     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      296 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83905E-01    3.7984        .10928E-02    .12170E-02
   2  alpha         2.6701        3.8314        .91331E-01    .15108E-04
   3  Normalizat    .86697        .20997        .26909E-03   -.85638E-04
   4  Prefactor     .92561        .18813        .23267E-03   -.76224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0839049
  alpha      = 2.67005
  Normalizat = 0.866967
  Prefactor  = 0.925607
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.333     FROM HESSE     STATUS=OK            27 CALLS      323 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83905E-01    2.4281        .43710E-04   -1.5650    
   2  alpha         2.6701        3.7921        .36532E-02    .68074E-01
   3  Normalizat    .86697        .21017        .10764E-04   -.97631    
   4  Prefactor     .92561        .18805        .93069E-05   -.95252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31568e-09
Minuit parameter uncertainties:
  1  0.902223
  2  3.43209
  3  0.210367
  4  0.188185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36005': 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) = 5422.33332516
delta logL = 0.00355740850136

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  8.390e-02  9.022e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.670e+00  3.432e+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:  9.256e-01  1.882e-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.670e-01  2.104e-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/36005/cmap_HighResolution_650678401_650937601_4FGL_J0349.8-2103_daily_bin1587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-08-19 16:20:39.150915', job_id='36005', GAL2='0.93', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1629415239.15', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.56e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1587' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:20:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 36005: <4FGL_J0349.8-2103_daily_bin1587> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1587> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 16:05:21 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:05:23 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:05:23 2021
Terminated at Thu Aug 19 16:20:40 2021
Results reported at Thu Aug 19 16:20:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1587 57.4699 -21.0576 650678401 650937601 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 :                                   831.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

