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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1514
RA = 57.4699, Dec = -21.0576
tmin = 631756801, tmax = 632016001
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='34851', job_status='RUN', time_executed='2021-08-19 16:01:25.014004', time_epoch_executed='1629414085.01' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34851

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34851/ft1_4FGL_J0349.8-2103_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34851/ft2_4FGL_J0349.8-2103_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34851/ft1_4FGL_J0349.8-2103_daily_bin1514.fits outfile=/scratch/kocevski/34851/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1514.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=631756801.0 tmax=632016001.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 2.51
user 2.25
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34851/ft2_4FGL_J0349.8-2103_daily_bin1514.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/34851/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/34851/ft1_filtered_4FGL_J0349.8-2103_daily_bin1514.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 0.55
user 0.32
sys 0.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34851/ft1_filtered_4FGL_J0349.8-2103_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/34851/ft2_4FGL_J0349.8-2103_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/34851/ltcube_631756801_632016001_4FGL_J0349.8-2103_daily_bin1514.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/34851/ft2_4FGL_J0349.8-2103_daily_bin1514.fits
.....................!
real 12.77
user 12.27
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34851/ft1_filtered_4FGL_J0349.8-2103_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/34851/ft2_4FGL_J0349.8-2103_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/34851/ltcube_631756801_632016001_4FGL_J0349.8-2103_daily_bin1514.fits outfile=/scratch/kocevski/34851/expmap_631756801_632016001_4FGL_J0349.8-2103_daily_bin1514.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/34851/ltcube_631756801_632016001_4FGL_J0349.8-2103_daily_bin1514.fits
.....................!
real 190.10
user 185.42
sys 4.35

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/34851/ft1_filtered_4FGL_J0349.8-2103_daily_bin1514.fits scfile=/scratch/kocevski/34851/ft2_4FGL_J0349.8-2103_daily_bin1514.fits outfile=/scratch/kocevski/34851/cmap_631756801_632016001_4FGL_J0349.8-2103_daily_bin1514.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 0.63
user 0.38
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34851/ft1_filtered_4FGL_J0349.8-2103_daily_bin1514.fits scfile=/scratch/kocevski/34851/ft2_4FGL_J0349.8-2103_daily_bin1514.fits outfile=/scratch/kocevski/34851/cmap_HighResolution_631756801_632016001_4FGL_J0349.8-2103_daily_bin1514.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 0.61
user 0.39
sys 0.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34851/ft1_filtered_4FGL_J0349.8-2103_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/34851/ft2_4FGL_J0349.8-2103_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34851/Model_4FGL_J0349.8-2103_daily_bin1514.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/34851/ft1_filtered_4FGL_J0349.8-2103_daily_bin1514.fits.....................!
real 133.98
user 132.48
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15392E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13821       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6558       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14533E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5237       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2245       1.0000         .10000E-03   10000.    
    13 'norm      '    22.188       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .76274E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    208.14       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6930       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4240       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.570       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.722       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.147       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83461       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=   5911.091     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3691 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.298        5.2550        .19321E-06   -.65600E-04
   2  Prefactor     .10000E-03    8.7764       -.19393E-07** at limit **
   3  Prefactor     .10000E-03    90.578       -.61850E-07** at limit **
   4  Prefactor     .41146E-01    4.0969        .26881E-05    .53444E-03
   5  Prefactor     5.8021        25.192       -.17730E-04   -.43660E-03
   6  Prefactor     .10000E-03    42.259        .14696E-04** at limit **
   7  Prefactor     .10000E-03    12.790        .14239E-05** at limit **
   8  Prefactor     .10000E-03    23.874        .12294E-05** at limit **
   9  Prefactor     .10000E-03    18.128       -.24137E-06** at limit **
  10  Prefactor     .10000E-03    .80521        .70574E-07** at limit **
  11  Prefactor     8.5255        6.5585       -.29570E-05   -.19463E-03
  12  Prefactor     7.2247        5.6187        .20583E-05   -.44457E-04
  13  norm          22.190        2.5163       -.24759E-06    .11749E-04
  14  Prefactor     .10000E-03    13.793        .37002E-05** at limit **
  15  norm          .78405E-01    .81675       -.28730E-06   -.12051E-03
  16  Prefactor     208.30        145.79        .10064E-03   -.26523E-05
  17  Prefactor     .10000E-03    13.139       -.42394E-05** at limit **
  18  Prefactor     7.6924        3.8647        .10198E-06   -.66810E-04
  19  norm          3.4235        9.2336       -.99079E-06   -.17448E-03
  20  Prefactor     13.555        28.413        .75032E-05   -.60034E-05
  21  Prefactor     11.726        9.2096        .38332E-07   -.74792E-04
  22  Prefactor     .10000E-03    2.0910        .66445E-07** at limit **
  23  Prefactor     14.137        13.982       -.10700E-05   -.13949E-04
  24  Normalizat    1.0383        .21063       -.42301E-05   -.31027E-03
  25  Prefactor     .83519        .17339        .10782E-05   -.57552E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0411457
  Prefactor  = 5.80209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.5255
  Prefactor  = 7.22472
  norm       = 22.1897
  Prefactor  = 0.0001
  norm       = 0.0784046
  Prefactor  = 208.296
  Prefactor  = 0.0001
  Prefactor  = 7.69238
  norm       = 3.42348
  Prefactor  = 13.5546
  Prefactor  = 11.7262
  Prefactor  = 0.0001
  Prefactor  = 14.1375
  Normalizat = 1.03826
  Prefactor  = 0.835189
 **********
 **   18 **HESSE 
 **********

 FCN=   5911.091     FROM HESSE     STATUS=OK           437 CALLS     4128 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.298        5.2609        .11131E-03   -1.5006    
   2  Prefactor     .10000E-03    8.7897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    90.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41146E-01    10.052        .45036E-01   -1.5667    
   5  Prefactor     5.8021        29.534        .16891E-03   -1.5226    
   6  Prefactor     .10000E-03    43.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .80900        .67305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.5255        6.5517        .13730E-03   -1.5124    
  12  Prefactor     7.2247        5.5671        .14363E-03   -1.5170    
  13  norm          22.190        2.5214        .37976E-04   -1.4765    
  14  Prefactor     .10000E-03    13.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .78405E-01    3.7068        .12879E-02   -1.5652    
  16  Prefactor     208.30        145.06        .14010E-03   -1.2811    
  17  Prefactor     .10000E-03    13.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6924        3.8477        .10094E-03   -1.5153    
  19  norm          3.4235        9.2090        .21861E-03   -1.5338    
  20  Prefactor     13.555        28.381        .10873E-03   -1.4971    
  21  Prefactor     11.726        9.2247        .11701E-03   -1.5023    
  22  Prefactor     .10000E-03    2.1109        .10853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.137        13.983        .10649E-03   -1.4956    
  24  Normalizat    1.0383        .24511        .29168E-03   -.91759    
  25  Prefactor     .83519        .20140        .27826E-03   -.98444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15522e-08
Minuit parameter uncertainties:
  1  5.26108
  2  1.4195e-05
  3  0.000151837
  4  1.28489
  5  26.2013
  6  6.96883e-05
  7  2.85212e-05
  8  2.49977e-05
  9  5.11723e-05
  10  5.03891e-06
  11  6.55225
  12  5.56747
  13  2.52138
  14  3.76219e-05
  15  1.07758
  16  145.315
  17  3.46306e-05
  18  3.84782
  19  9.21281
  20  28.4095
  21  9.22584
  22  8.12373e-06
  23  13.9866
  24  0.245378
  25  0.201578
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  7.840e-02  1.078e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  8.352e-01  2.016e-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.038e+00  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/34851/likelihoodResults_631756801_632016001_4FGL_J0349.8-2103_daily_bin1514.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) = 5911.08833573
delta logL = 0.00244845964426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5911.08802632
delta logL = 0.00275786692964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10446       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6474       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83532       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=   5911.088     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      280 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10322        3.9600        .14513E-02    .27578E-03
   2  alpha         2.6366        3.7549        .10632        .13894E-04
   3  Normalizat    1.0374        .22699        .29177E-03    .63902E-05
   4  Prefactor     .83521        .19778        .27824E-03    .68642E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.103217
  alpha      = 2.63663
  Normalizat = 1.03745
  Prefactor  = 0.835214
 **********
 **   18 **HESSE 
 **********

 FCN=   5911.088     FROM HESSE     STATUS=OK            27 CALLS      307 TOTAL
                     EDM=   .76E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10322        2.5050        .58052E-04   -1.5644    
   2  alpha         2.6366        3.8151        .21265E-01    .54678E-01
   3  Normalizat    1.0374        .22721        .11671E-04   -.91786    
   4  Prefactor     .83521        .19758        .11130E-04   -.98443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55605e-13
Minuit parameter uncertainties:
  1  1.01654
  2  3.87748
  3  0.227428
  4  0.197749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34851': 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) = 5911.08802083
delta logL = 0.00276335550734

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.032e-01  1.017e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.637e+00  3.877e+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:  8.352e-01  1.977e-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.037e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/34851/cmap_HighResolution_631756801_632016001_4FGL_J0349.8-2103_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-08-19 16:14:09.099504', job_id='34851', GAL2='0.84', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1629414849.1', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.76e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1514' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:14:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 34851: <4FGL_J0349.8-2103_daily_bin1514> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1514 57.4699 -21.0576 631756801 632016001 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 :                                   758.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             349.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            789 sec.

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

