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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1469
RA = 57.4699, Dec = -21.0576
tmin = 620092801, tmax = 620352001
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='34795', job_status='RUN', time_executed='2021-08-19 16:01:22.979770', time_epoch_executed='1629414082.98' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34795/ft1_4FGL_J0349.8-2103_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34795/ft2_4FGL_J0349.8-2103_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34795/ft1_4FGL_J0349.8-2103_daily_bin1469.fits outfile=/scratch/kocevski/34795/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1469.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=620092801.0 tmax=620352001.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 4.32
user 3.27
sys 1.03

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34795/ft1_filtered_4FGL_J0349.8-2103_daily_bin1469.fits" evtable="EVENTS" scfile=/scratch/kocevski/34795/ft2_4FGL_J0349.8-2103_daily_bin1469.fits sctable="SC_DATA" outfile=/scratch/kocevski/34795/ltcube_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.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/34795/ft2_4FGL_J0349.8-2103_daily_bin1469.fits
.....................!
real 14.62
user 13.30
sys 1.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34795/ft1_filtered_4FGL_J0349.8-2103_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/34795/ft2_4FGL_J0349.8-2103_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/34795/ltcube_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.fits outfile=/scratch/kocevski/34795/expmap_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.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/34795/ltcube_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.fits
.....................!
real 193.24
user 186.73
sys 6.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/34795/ft1_filtered_4FGL_J0349.8-2103_daily_bin1469.fits scfile=/scratch/kocevski/34795/ft2_4FGL_J0349.8-2103_daily_bin1469.fits outfile=/scratch/kocevski/34795/cmap_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.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 1.33
user 0.38
sys 0.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34795/ft1_filtered_4FGL_J0349.8-2103_daily_bin1469.fits scfile=/scratch/kocevski/34795/ft2_4FGL_J0349.8-2103_daily_bin1469.fits outfile=/scratch/kocevski/34795/cmap_HighResolution_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.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 1.35
user 0.38
sys 0.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34795/ft1_filtered_4FGL_J0349.8-2103_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/34795/ft2_4FGL_J0349.8-2103_daily_bin1469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34795/Model_4FGL_J0349.8-2103_daily_bin1469.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/34795/ft1_filtered_4FGL_J0349.8-2103_daily_bin1469.fits.....................!
real 190.79
user 188.09
sys 2.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/34795/ft1_filtered_4FGL_J0349.8-2103_daily_bin1469.fits', '/scratch/kocevski/34795/ft2_4FGL_J0349.8-2103_daily_bin1469.fits', expMap='/scratch/kocevski/34795/expmap_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.fits', expCube='/scratch/kocevski/34795/ltcube_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/34795/Model_4FGL_J0349.8-2103_daily_bin1469.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/34795/ft1_filtered_4FGL_J0349.8-2103_daily_bin1469.fits
Spacecraft file(s): /scratch/kocevski/34795/ft2_4FGL_J0349.8-2103_daily_bin1469.fits
Exposure map: /scratch/kocevski/34795/expmap_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.fits
Exposure cube: /scratch/kocevski/34795/ltcube_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/34795/Model_4FGL_J0349.8-2103_daily_bin1469.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8503.39707159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3372       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.180       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.154       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3575       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1515       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51385       1.0000         .10000E-03   10000.    
    13 'norm      '    9.7873       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7245       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.245       1.0000         .10000E-03   10000.    
    19 'norm      '    .11294E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4311       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .24135       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95861       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85585       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=   8503.281     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2575 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3370        3.2416        .23539E-06   -.27666E-03
   2  Prefactor     .10000E-03    5.7431       -.91384E-06** at limit **
   3  Prefactor     .10000E-03    104.20       -.10547E-05** at limit **
   4  Prefactor     .39538        2.2453        .11300E-06   -.15397E-03
   5  Prefactor     27.190        16.225       -.79038E-06   -.58908E-03
   6  Prefactor     .10000E-03    4.5458        .10686E-05** at limit **
   7  Prefactor     .10000E-03    8.0144       -.32285E-06** at limit **
   8  Prefactor     35.153        31.444       -.10877E-06   -.30289E-04
   9  Prefactor     .10000E-03    20.963       -.84590E-06** at limit **
  10  Prefactor     2.3573        1.5300       -.82838E-08   -.21270E-03
  11  Prefactor     2.1507        4.4749       -.61593E-06   -.92044E-03
  12  Prefactor     .51501        2.2074        .13481E-05   -.12608E-03
  13  norm          9.7876        1.4948        .20973E-07   -.11356E-03
  14  Prefactor     8.7230        13.650        .13131E-05   -.14109E-03
  15  norm          .10000E-03    .29744       -.18864E-07** at limit **
  16  Prefactor     .10000E-03    33.441        .72197E-06** at limit **
  17  Prefactor     .10000E-03    6.2554        .93756E-06** at limit **
  18  Prefactor     10.245        2.6906       -.48583E-07   -.65821E-03
  19  norm          .10000E-03    14.257        .48412E-06** at limit **
  20  Prefactor     7.4350        14.273       -.27431E-06   -.11456E-03
  21  Prefactor     .10000E-03    2.4032        .22353E-07** at limit **
  22  Prefactor     .23649        1.7239        .12505E-05   -.15518E-02
  23  Prefactor     .10000E-03    4.4693       -.90430E-06** at limit **
  24  Normalizat    .95860        .15153       -.58147E-07   -.33685E-03
  25  Prefactor     .85591        .13110       -.31785E-06   -.27232E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33701
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.395382
  Prefactor  = 27.1898
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 35.1534
  Prefactor  = 0.000100001
  Prefactor  = 2.35733
  Prefactor  = 2.15072
  Prefactor  = 0.515014
  norm       = 9.78763
  Prefactor  = 8.72304
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.2453
  norm       = 0.0001
  Prefactor  = 7.43501
  Prefactor  = 0.0001
  Prefactor  = 0.236492
  Prefactor  = 0.000100001
  Normalizat = 0.9586
  Prefactor  = 0.855911
 **********
 **   18 **HESSE 
 **********

 FCN=   8503.281     FROM HESSE     STATUS=OK           425 CALLS     3000 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3370        3.2902        .58255E-03   -1.5204    
   2  Prefactor     .10000E-03    5.8412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    104.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .39538        8.2102        .24017E-02   -1.5582    
   5  Prefactor     27.190        16.705        .76843E-04   -1.4665    
   6  Prefactor     .10000E-03    4.6939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.153        31.450        .67590E-04   -1.4521    
   9  Prefactor     .10000E-03    21.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3573        1.5208        .88254E-04   -1.5401    
  11  Prefactor     2.1507        4.5862        .24159E-03   -1.5415    
  12  Prefactor     .51501        2.1873        .25042E-03   -1.5564    
  13  norm          9.7876        1.5006        .39355E-04   -1.5082    
  14  Prefactor     8.7230        14.059        .67853E-03   -1.5117    
  15  norm          .10000E-03    .30717        .98073E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.245        2.6870        .74174E-04   -1.5068    
  19  norm          .10000E-03    14.822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4350        14.294        .14713E-03   -1.5163    
  21  Prefactor     .10000E-03    2.4250        .13955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .23649        5.4199        .19076E-02   -1.5611    
  23  Prefactor     .10000E-03    4.5655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95860        .17581        .25403E-03   -.94431    
  25  Prefactor     .85591        .15138        .24113E-03   -.97699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89319e-08
Minuit parameter uncertainties:
  1  3.29027
  2  0.000130371
  3  0.000610757
  4  3.60352
  5  16.7076
  6  0.000134464
  7  5.49166e-05
  8  31.4646
  9  0.000214795
  10  1.52083
  11  4.5869
  12  2.12265
  13  1.50065
  14  14.0644
  15  3.67753e-07
  16  0.000245835
  17  0.000140171
  18  2.68704
  19  0.000105824
  20  14.3001
  21  2.36949e-07
  22  2.26405
  23  0.000118391
  24  0.175918
  25  0.151451
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  3.678e-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:  8.559e-01  1.515e-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:  9.586e-01  1.759e-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: 3.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34795/likelihoodResults_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.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) = 8503.28072985
delta logL = -8.50913093018e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8503.28064602
delta logL = -1.25929545902e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3420       1.0000          .0000       5.0000    
     3 'Normalizat'    .95875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85589       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=   8503.281     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      241 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .30898        .98075E-04** at limit **
   2  alpha         2.4079        2.5415        .16502       -.92342E-07
   3  Normalizat    .95860        .16342        .25403E-03   -.73223E-03
   4  Prefactor     .85591        .14820        .24113E-03   -.73284E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.40794
  Normalizat = 0.9586
  Prefactor  = 0.85591
 **********
 **   18 **HESSE 
 **********

 FCN=   8503.281     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .30777        .19615E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4079        2.8733        .33005E-01   -.36834E-01
   3  Normalizat    .95860        .16354        .50805E-04   -.94431    
   4  Prefactor     .85591        .14831        .48226E-04   -.97699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42737e-10
Minuit parameter uncertainties:
  1  1.14502e-06
  2  86.9051
  3  0.163629
  4  0.148384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34795': 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) = 8503.28064445
delta logL = 3.13373675453e-07

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  1.145e-06  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.408e+00  8.691e+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:  8.559e-01  1.484e-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:  9.586e-01  1.636e-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/34795/cmap_HighResolution_620092801_620352001_4FGL_J0349.8-2103_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-05', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2021-08-19 16:16:21.115133', job_id='34795', GAL2='0.86', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629414981.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1469' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 34795: <4FGL_J0349.8-2103_daily_bin1469> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1469 57.4699 -21.0576 620092801 620352001 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 :                                   901.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             353.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            926 sec.

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

