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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1529
RA = 57.4699, Dec = -21.0576
tmin = 635644801, tmax = 635904001
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='34866', job_status='RUN', time_executed='2021-08-19 16:03:02.370450', time_epoch_executed='1629414182.37' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34866/ft1_4FGL_J0349.8-2103_daily_bin1529.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34866/ft2_4FGL_J0349.8-2103_daily_bin1529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34866/ft1_4FGL_J0349.8-2103_daily_bin1529.fits outfile=/scratch/kocevski/34866/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1529.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=635644801.0 tmax=635904001.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 5.04
user 4.09
sys 0.93

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34866/ft2_4FGL_J0349.8-2103_daily_bin1529.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/34866/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1529.fits evtable="EVENTS" outfile="/scratch/kocevski/34866/ft1_filtered_4FGL_J0349.8-2103_daily_bin1529.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.12
user 0.31
sys 0.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34866/ft1_filtered_4FGL_J0349.8-2103_daily_bin1529.fits" evtable="EVENTS" scfile=/scratch/kocevski/34866/ft2_4FGL_J0349.8-2103_daily_bin1529.fits sctable="SC_DATA" outfile=/scratch/kocevski/34866/ltcube_635644801_635904001_4FGL_J0349.8-2103_daily_bin1529.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/34866/ft2_4FGL_J0349.8-2103_daily_bin1529.fits
.....................!
real 13.41
user 12.27
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34866/ft1_filtered_4FGL_J0349.8-2103_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/34866/ft2_4FGL_J0349.8-2103_daily_bin1529.fits sctable="SC_DATA" expcube=/scratch/kocevski/34866/ltcube_635644801_635904001_4FGL_J0349.8-2103_daily_bin1529.fits outfile=/scratch/kocevski/34866/expmap_635644801_635904001_4FGL_J0349.8-2103_daily_bin1529.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/34866/ltcube_635644801_635904001_4FGL_J0349.8-2103_daily_bin1529.fits
.....................!
real 192.83
user 186.66
sys 5.82

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/34866/ft1_filtered_4FGL_J0349.8-2103_daily_bin1529.fits scfile=/scratch/kocevski/34866/ft2_4FGL_J0349.8-2103_daily_bin1529.fits outfile=/scratch/kocevski/34866/cmap_635644801_635904001_4FGL_J0349.8-2103_daily_bin1529.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.21
user 0.38
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34866/ft1_filtered_4FGL_J0349.8-2103_daily_bin1529.fits scfile=/scratch/kocevski/34866/ft2_4FGL_J0349.8-2103_daily_bin1529.fits outfile=/scratch/kocevski/34866/cmap_HighResolution_635644801_635904001_4FGL_J0349.8-2103_daily_bin1529.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.14
user 0.38
sys 0.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34866/ft1_filtered_4FGL_J0349.8-2103_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/34866/ft2_4FGL_J0349.8-2103_daily_bin1529.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34866/Model_4FGL_J0349.8-2103_daily_bin1529.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/34866/ft1_filtered_4FGL_J0349.8-2103_daily_bin1529.fits.....................!
real 129.44
user 126.96
sys 2.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.641       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.872       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.760       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.876       1.0000         .10000E-03   10000.    
     7 'Prefactor '    64.401       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.623       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4117       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9554       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.599       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    81.254       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9844       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2057       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38086       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.916       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97854       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78317       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=   5682.841     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2913 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.642        5.8109       -.81965E-08   -.83532E-04
   2  Prefactor     10.873        11.755       -.42040E-06    .21936E-04
   3  Prefactor     .10000E-03    111.73        .32285E-07** at limit **
   4  Prefactor     .10000E-03    1.6659       -.18900E-08** at limit **
   5  Prefactor     19.763        18.768        .53067E-07   -.28413E-05
   6  Prefactor     14.876        12.897        .69812E-06   -.37118E-04
   7  Prefactor     64.411        49.063        .18100E-06    .33409E-04
   8  Prefactor     .10000E-03    42.454        .41374E-07** at limit **
   9  Prefactor     50.610        51.798       -.16654E-06   -.40614E-04
  10  Prefactor     3.4123        2.6790       -.79119E-08   -.17537E-04
  11  Prefactor     5.9568        5.0187        .11249E-05   -.14988E-03
  12  Prefactor     .10000E-03    3.5529       -.17994E-06** at limit **
  13  norm          17.243        2.3965       -.54184E-07   -.40337E-05
  14  Prefactor     25.596        27.792       -.67512E-08    .78536E-06
  15  norm          .10000E-03    .60201       -.84782E-08** at limit **
  16  Prefactor     81.194        145.72       -.86090E-06   -.43590E-04
  17  Prefactor     .10000E-03    9.2595        .35135E-08** at limit **
  18  Prefactor     7.9849        3.5693        .10489E-07   -.41982E-05
  19  norm          5.2053        11.713        .21240E-06   -.73586E-05
  20  Prefactor     .10000E-03    10.026        .75996E-08** at limit **
  21  Prefactor     .37438        3.7292       -.12514E-06    .10982E-03
  22  Prefactor     .10000E-03    1.2119        .25991E-07** at limit **
  23  Prefactor     26.916        21.648        .80796E-07   -.36272E-06
  24  Normalizat    .97817        .20851       -.44211E-06    .14784E-04
  25  Prefactor     .78349        .16993       -.10762E-06    .34500E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.642
  Prefactor  = 10.8726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7628
  Prefactor  = 14.8763
  Prefactor  = 64.4108
  Prefactor  = 0.0001
  Prefactor  = 50.6101
  Prefactor  = 3.41226
  Prefactor  = 5.95676
  Prefactor  = 0.0001
  norm       = 17.2425
  Prefactor  = 25.5964
  norm       = 0.0001
  Prefactor  = 81.1942
  Prefactor  = 0.0001
  Prefactor  = 7.98488
  norm       = 5.20528
  Prefactor  = 0.0001
  Prefactor  = 0.374379
  Prefactor  = 0.0001
  Prefactor  = 26.916
  Normalizat = 0.978171
  Prefactor  = 0.783494
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.841     FROM HESSE     STATUS=OK           433 CALLS     3346 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.642        5.8156        .98180E-04   -1.4892    
   2  Prefactor     10.873        11.753        .60753E-03   -1.5048    
   3  Prefactor     .10000E-03    111.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6745        .94972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.763        18.844        .90102E-04   -1.4819    
   6  Prefactor     14.876        12.900        .51922E-03   -1.4936    
   7  Prefactor     64.411        49.094        .50007E-04   -1.4101    
   8  Prefactor     .10000E-03    42.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.610        51.943        .56365E-04   -1.4284    
  10  Prefactor     3.4123        2.6686        .10378E-03   -1.5339    
  11  Prefactor     5.9568        5.0294        .72992E-03   -1.5220    
  12  Prefactor     .10000E-03    3.6388        .13886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.243        2.4024        .40376E-04   -1.4877    
  14  Prefactor     25.596        27.798        .79175E-04   -1.4696    
  15  norm          .10000E-03    .61419        .11395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     81.194        145.66        .22279E-03   -1.3903    
  17  Prefactor     .10000E-03    9.2670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9849        3.5696        .90894E-04   -1.5143    
  19  norm          5.2053        11.704        .17619E-03   -1.5252    
  20  Prefactor     .10000E-03    10.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .37438        24.493        .27518E-02   -1.5586    
  22  Prefactor     .10000E-03    1.2176        .81032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.916        21.665        .77217E-04   -1.4670    
  24  Normalizat    .97817        .23527        .28233E-03   -.93765    
  25  Prefactor     .78349        .19275        .26746E-03   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31439e-10
Minuit parameter uncertainties:
  1  5.81581
  2  11.7555
  3  1.44021e-05
  4  3.56515e-07
  5  18.8492
  6  12.9027
  7  49.1246
  8  5.31237e-06
  9  51.9892
  10  2.66873
  11  5.0298
  12  2.01913e-05
  13  2.40246
  14  27.8123
  15  3.78128e-07
  16  146.306
  17  1.3414e-06
  18  3.56969
  19  11.709
  20  1.09983e-06
  21  6.0581
  22  4.06836e-07
  23  21.6711
  24  0.235515
  25  0.192919
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  7.835e-01  1.929e-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.782e-01  2.355e-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: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34866/likelihoodResults_635644801_635904001_4FGL_J0349.8-2103_daily_bin1529.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) = 5682.8488714
delta logL = -0.00757127261022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5682.841295
delta logL = 5.12799670105e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7648       1.0000          .0000       5.0000    
     3 'Normalizat'    .97806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78353       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5682.841     FROM MIGRAD    STATUS=FAILED        80 CALLS      257 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    .80135        .11671E-02** at limit **
   2  alpha         2.8038        3.8747        .16579       -.34982E-05
   3  Normalizat    .97817        .21545        .28233E-03    .27739E-03
   4  Prefactor     .78350        .18559        .26746E-03    .29532E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5682.841     FROM SIMPLEX   STATUS=UNCHANGED    119 CALLS      376 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    .80135        .87554E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8038        3.8747        .10401E-02    .12183    
   3  Normalizat    .97817        .21545        .80956E-04   -.93765    
   4  Prefactor     .78350        .18559        .79563E-04   -1.0034    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5682.841     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      403 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .66006        .23341E-03** at limit **
   2  alpha         2.8394        3.4182        .66315E-02   -.72688E-07
   3  Normalizat    .97817        .21559        .56466E-04   -.16989E-03
   4  Prefactor     .78349        .18572        .53492E-04   -.16713E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.83943
  Normalizat = 0.978169
  Prefactor  = 0.783495
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.841     FROM HESSE     STATUS=OK            23 CALLS      426 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .66007        .46683E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8394        3.4700        .13263E-02    .13619    
   3  Normalizat    .97817        .21560        .11293E-04   -.93765    
   4  Prefactor     .78349        .18573        .10698E-04   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8873e-11
Minuit parameter uncertainties:
  1  2.05658e-06
  2  162.023
  3  0.215795
  4  0.185881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34866': 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) = 5682.84129447
delta logL = 5.65947902942e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  7.835e-01  1.859e-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.782e-01  2.158e-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/34866/cmap_HighResolution_635644801_635904001_4FGL_J0349.8-2103_daily_bin1529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-05', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-08-19 16:15:07.512215', job_id='34866', GAL2='0.78', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1629414907.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1529' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:15:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 34866: <4FGL_J0349.8-2103_daily_bin1529> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1529 57.4699 -21.0576 635644801 635904001 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 :                                   722.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            848 sec.

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

