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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1381
RA = 57.4699, Dec = -21.0576
tmin = 597283201, tmax = 597542401
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='34658', job_status='RUN', time_executed='2021-08-19 16:01:40.739653', time_epoch_executed='1629414100.74' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34658/ft1_4FGL_J0349.8-2103_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34658/ft2_4FGL_J0349.8-2103_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34658/ft1_4FGL_J0349.8-2103_daily_bin1381.fits outfile=/scratch/kocevski/34658/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1381.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=597283201.0 tmax=597542401.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 3.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34658/ft1_filtered_4FGL_J0349.8-2103_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/34658/ft2_4FGL_J0349.8-2103_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/34658/ltcube_597283201_597542401_4FGL_J0349.8-2103_daily_bin1381.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/34658/ft2_4FGL_J0349.8-2103_daily_bin1381.fits
.....................!
real 12.00
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34658/ft1_filtered_4FGL_J0349.8-2103_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/34658/ft2_4FGL_J0349.8-2103_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/34658/ltcube_597283201_597542401_4FGL_J0349.8-2103_daily_bin1381.fits outfile=/scratch/kocevski/34658/expmap_597283201_597542401_4FGL_J0349.8-2103_daily_bin1381.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/34658/ltcube_597283201_597542401_4FGL_J0349.8-2103_daily_bin1381.fits
.....................!
real 190.80
user 186.34
sys 4.12

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/34658/ft1_filtered_4FGL_J0349.8-2103_daily_bin1381.fits scfile=/scratch/kocevski/34658/ft2_4FGL_J0349.8-2103_daily_bin1381.fits outfile=/scratch/kocevski/34658/cmap_597283201_597542401_4FGL_J0349.8-2103_daily_bin1381.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34658/ft1_filtered_4FGL_J0349.8-2103_daily_bin1381.fits scfile=/scratch/kocevski/34658/ft2_4FGL_J0349.8-2103_daily_bin1381.fits outfile=/scratch/kocevski/34658/cmap_HighResolution_597283201_597542401_4FGL_J0349.8-2103_daily_bin1381.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3019       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12328E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0431       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.097       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.230       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16521E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .55564       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7141       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6728       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.197       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4575       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4790       1.0000         .10000E-03   10000.    
    19 'norm      '    15.424       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34054E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3482       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .49966       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0229       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=   7397.904     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2533 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3021        2.3922        .43544E-08   -.96715E-04
   2  Prefactor     .10000E-03    3.4364        .51396E-07** at limit **
   3  Prefactor     .10005E-03    6325.6        .69210E-04** at limit **
   4  Prefactor     5.0422        3.7571       -.81738E-06   -.17456E-03
   5  Prefactor     2.0244        21.126        .14201E-04    .40424E-04
   6  Prefactor     35.095        13.409        .13244E-06   -.19078E-04
   7  Prefactor     .10000E-03    8.4758       -.43742E-07** at limit **
   8  Prefactor     35.188        28.424        .30465E-05    .13906E-03
   9  Prefactor     .10000E-03    10.380       -.72665E-08** at limit **
  10  Prefactor     .10004E-03    .73469       -.34632E-06** at limit **
  11  Prefactor     .55592        3.7452        .86287E-06   -.76468E-04
  12  Prefactor     5.7152        3.3909       -.32135E-07   -.23879E-03
  13  norm          7.6730        1.2351        .20225E-08   -.40359E-03
  14  Prefactor     16.183        16.243       -.19717E-07   -.11100E-04
  15  norm          1.4578        1.0714        .10840E-08   -.28186E-03
  16  Prefactor     .10000E-03    43.310        .84879E-06** at limit **
  17  Prefactor     .10000E-03    22.885       -.32604E-06** at limit **
  18  Prefactor     1.4788        1.3650        .93200E-07   -.16008E-03
  19  norm          15.421        11.532        .32452E-06   -.21941E-03
  20  Prefactor     .10060E-03    11.335        .42255E-05** at limit **
  21  Prefactor     6.3471        4.5973        .24986E-06    .17144E-04
  22  Prefactor     .10000E-03    .68498       -.15576E-07** at limit **
  23  Prefactor     .10000E-03    3.4680        .38041E-07** at limit **
  24  Normalizat    .49966        .14148       -.24554E-05   -.47329E-03
  25  Prefactor     1.0229        .12796       -.92968E-07   -.70347E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.30207
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 5.04218
  Prefactor  = 2.02442
  Prefactor  = 35.0954
  Prefactor  = 0.0001
  Prefactor  = 35.1877
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.555923
  Prefactor  = 5.71524
  norm       = 7.67298
  Prefactor  = 16.1831
  norm       = 1.45778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.47879
  norm       = 15.4209
  Prefactor  = 0.000100604
  Prefactor  = 6.34706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.49966
  Prefactor  = 1.0229
 **********
 **   18 **HESSE 
 **********

 FCN=   7397.904     FROM HESSE     STATUS=OK           441 CALLS     2974 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3021        2.3934        .87069E-04   -1.5247    
   2  Prefactor     .10000E-03    3.4377        .15572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    6324.7        .41237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0422        3.7660        .13066E-03   -1.5259    
   5  Prefactor     2.0244        21.595        .14562E-02   -1.5423    
   6  Prefactor     35.095        13.402        .67645E-04   -1.4522    
   7  Prefactor     .10000E-03    8.4899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.188        28.609        .67517E-04   -1.4521    
   9  Prefactor     .10000E-03    10.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    2.0922        .24796E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55592        3.5597        .28733E-03   -1.5559    
  12  Prefactor     5.7152        3.2991        .10700E-03   -1.5230    
  13  norm          7.6730        1.2247        .35185E-04   -1.5154    
  14  Prefactor     16.183        16.227        .99519E-04   -1.4903    
  15  norm          1.4578        1.0658        .70103E-04   -1.5466    
  16  Prefactor     .10000E-03    43.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4788        1.3538        .92622E-04   -1.5465    
  19  norm          15.421        11.338        .10198E-03   -1.4922    
  20  Prefactor     .10060E-03    87.783        .49655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.3471        4.5971        .15064E-03   -1.5204    
  22  Prefactor     .10000E-03    .68906        .69501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4719        .15643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .49966        .15784        .29311E-03   -1.1243    
  25  Prefactor     1.0229        .14540        .20051E-03   -.91970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20736e-09
Minuit parameter uncertainties:
  1  2.39342
  2  1.36708e-06
  3  0.0246285
  4  3.76618
  5  13.2296
  6  13.4034
  7  6.90097e-06
  8  28.6204
  9  4.48594e-07
  10  0.000553536
  11  2.81349
  12  3.29917
  13  1.22473
  14  16.2315
  15  1.06584
  16  6.38239e-05
  17  3.69576e-05
  18  1.35384
  19  11.3394
  20  0.0145851
  21  4.59733
  22  5.01436e-07
  23  2.58326e-06
  24  0.157986
  25  0.145459
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.458e+00  1.066e+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:  1.023e+00  1.455e-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:  4.997e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.80
Ra Dec: 57.470 -21.058
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.71e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 8.38e-06

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) = 7394.44153517
delta logL = 3.46253599794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7394.38802208
delta logL = 3.51604909313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22047       1.0000         .10000E-03   10000.    
     2 'alpha     '    .45142       1.0000          .0000       5.0000    
     3 'Normalizat'    .52724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0153       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=   7394.388     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      223 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22048        .24092        .66906E-02    .95985E-03
   2  alpha         .45142        .45452        .37027       -.47637E-04
   3  Normalizat    .52725        .13120        .64590E-01    .26773E-03
   4  Prefactor     1.0152        .12605        .42649E-01    .62736E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.220476
  alpha      = 0.451417
  Normalizat = 0.527252
  Prefactor  = 1.01524
 **********
 **   18 **HESSE 
 **********

 FCN=   7394.388     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22048        .35334        .28652E-03   -1.5614    
   2  alpha         .45142        .57797        .18028E-01   -.96042    
   3  Normalizat    .52725        .14936        .28585E-03   -1.1117    
   4  Prefactor     1.0152        .14389        .20115E-03   -.92223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2891e-10
Minuit parameter uncertainties:
  1  0.353339
  2  0.594911
  3  0.149474
  4  0.143945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34658': 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) = 7394.38802207
delta logL = 3.51604909635

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  2.205e-01  3.533e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  4.514e-01  5.949e-01  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.015e+00  1.439e-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:  5.273e-01  1.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.83
Ra Dec: 57.470 -21.058
Photon Index (Free Index): 0.45 +/- 0.59
Photon Flux (Free Index): 6.72e-09 +/- 5.91e-09
Energy Flux (Free Index): 4.77e-05 +/- 4.92e-05

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/34658/cmap_HighResolution_597283201_597542401_4FGL_J0349.8-2103_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.71e-08', energy_flux2='4.77e-05', photon_flux_error='2.71e-08', dlogl='3.52e+00', energy_flux='1.15e-05', photon_flux2='6.72e-09', job_status='DONE', time_completed='2021-08-19 16:13:34.873604', photon_index_error2='0.59', photon_index2='0.45', ts='4.80', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.92e-05', EG='0.50', time_epoch_completed='1629414814.87', return_code='0', job_id='34658', GAL2='1.02', EG2='0.53', return_code2='0', energy_flux_error='8.38e-06', photon_flux_error2='5.91e-09', ts2='11.83', photon_index='2.34' WHERE bin_id='1381' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:13:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 34658: <4FGL_J0349.8-2103_daily_bin1381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1381 57.4699 -21.0576 597283201 597542401 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 :                                   707.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             354.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            770 sec.

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

