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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1144
RA = 57.4699, Dec = -21.0576
tmin = 535852801, tmax = 536112001
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='32235', job_status='RUN', time_executed='2021-08-19 15:59:30.366490', time_epoch_executed='1629413970.37' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32235/ft1_4FGL_J0349.8-2103_daily_bin1144.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32235/ft2_4FGL_J0349.8-2103_daily_bin1144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32235/ft1_4FGL_J0349.8-2103_daily_bin1144.fits outfile=/scratch/kocevski/32235/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1144.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=535852801.0 tmax=536112001.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.99
user 3.35
sys 0.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32235/ft1_filtered_4FGL_J0349.8-2103_daily_bin1144.fits" evtable="EVENTS" scfile=/scratch/kocevski/32235/ft2_4FGL_J0349.8-2103_daily_bin1144.fits sctable="SC_DATA" outfile=/scratch/kocevski/32235/ltcube_535852801_536112001_4FGL_J0349.8-2103_daily_bin1144.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/32235/ft2_4FGL_J0349.8-2103_daily_bin1144.fits
.....................!
real 13.35
user 12.44
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32235/ft1_filtered_4FGL_J0349.8-2103_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/32235/ft2_4FGL_J0349.8-2103_daily_bin1144.fits sctable="SC_DATA" expcube=/scratch/kocevski/32235/ltcube_535852801_536112001_4FGL_J0349.8-2103_daily_bin1144.fits outfile=/scratch/kocevski/32235/expmap_535852801_536112001_4FGL_J0349.8-2103_daily_bin1144.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/32235/ltcube_535852801_536112001_4FGL_J0349.8-2103_daily_bin1144.fits
.....................!
real 191.39
user 185.38
sys 5.54

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/32235/ft1_filtered_4FGL_J0349.8-2103_daily_bin1144.fits scfile=/scratch/kocevski/32235/ft2_4FGL_J0349.8-2103_daily_bin1144.fits outfile=/scratch/kocevski/32235/cmap_535852801_536112001_4FGL_J0349.8-2103_daily_bin1144.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.88
user 0.37
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32235/ft1_filtered_4FGL_J0349.8-2103_daily_bin1144.fits scfile=/scratch/kocevski/32235/ft2_4FGL_J0349.8-2103_daily_bin1144.fits outfile=/scratch/kocevski/32235/cmap_HighResolution_535852801_536112001_4FGL_J0349.8-2103_daily_bin1144.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.92
user 0.38
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32235/ft1_filtered_4FGL_J0349.8-2103_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/32235/ft2_4FGL_J0349.8-2103_daily_bin1144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32235/Model_4FGL_J0349.8-2103_daily_bin1144.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/32235/ft1_filtered_4FGL_J0349.8-2103_daily_bin1144.fits......................!
real 88.62
user 86.78
sys 1.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8738       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0397       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.933       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.973       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4641       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .83215       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9589       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23415E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.761       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6960       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.526       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62496       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0324       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3691.793     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2481 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8741        4.0669       -.17212E-05   -.18199E-03
   2  Prefactor     33.400        1.1050       -.62666E-06    .58048E-03
   3  Prefactor     .10086E-03    91.832       -.99794E-04** at limit **
   4  Prefactor     1.0418        5.0361       -.30491E-05   -.25293E-03
   5  Prefactor     .10006E-03    11.564       -.15565E-04** at limit **
   6  Prefactor     7.7921        1.0065       -.89939E-07    .48836E-04
   7  Prefactor     34.933        1.0219       -.27679E-06    .32455E-03
   8  Prefactor     16.969        1.7762       -.27402E-05    .13118E-02
   9  Prefactor     .10091E-03    11.096        .25752E-04** at limit **
  10  Prefactor     2.4644        2.6169       -.20051E-07   -.51913E-03
  11  Prefactor     2.1276        2.0747       -.82331E-06   -.10452E-03
  12  Prefactor     .83014        4.8448        .83994E-06    .18299E-04
  13  norm          4.9591        1.7559       -.61320E-07   -.20873E-03
  14  Prefactor     .10094E-03    62.217        .74304E-04** at limit **
  15  norm          .10000E-03    1.5689       -.31102E-07** at limit **
  16  Prefactor     59.759        1.3074       -.84293E-06    .15078E-02
  17  Prefactor     22.197        6.6450       -.10277E-04    .44260E-02
  18  Prefactor     2.6962        3.4074       -.30430E-06    .22544E-05
  19  norm          .10001E-03    11.021        .98297E-05** at limit **
  20  Prefactor     .10011E-03    30.553       -.10975E-04** at limit **
  21  Prefactor     16.527        1.0194        .22566E-06   -.29681E-03
  22  Prefactor     .10000E-03    6.1612       -.58485E-06** at limit **
  23  Prefactor     .10102E-03    11.774       -.18255E-04** at limit **
  24  Normalizat    .62508        .25847        .24634E-05    .13362E-03
  25  Prefactor     1.0323        .22159        .14751E-05    .17492E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.87407
  Prefactor  = 33.4004
  Prefactor  = 0.000100862
  Prefactor  = 1.04181
  Prefactor  = 0.000100058
  Prefactor  = 7.7921
  Prefactor  = 34.933
  Prefactor  = 16.9689
  Prefactor  = 0.000100905
  Prefactor  = 2.4644
  Prefactor  = 2.12761
  Prefactor  = 0.830138
  norm       = 4.95906
  Prefactor  = 0.000100937
  norm       = 0.0001
  Prefactor  = 59.7588
  Prefactor  = 22.1974
  Prefactor  = 2.69618
  norm       = 0.000100008
  Prefactor  = 0.000100113
  Prefactor  = 16.527
  Prefactor  = 0.0001
  Prefactor  = 0.000101017
  Normalizat = 0.625075
  Prefactor  = 1.03229
 **********
 **   18 **HESSE 
 **********

 FCN=   3691.793     FROM HESSE     STATUS=OK           485 CALLS     2966 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8741        4.0757        .45551E-02   -1.5266    
   2  Prefactor     33.400        33.596        .17334E-02   -1.4551    
   3  Prefactor     .10086E-03    108.96        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0418        5.0840        .12291E-01   -1.5504    
   5  Prefactor     .10006E-03    11.828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7921        12.868        .35916E-02   -1.5150    
   7  Prefactor     34.933        67.833        .16951E-02   -1.4525    
   8  Prefactor     16.969        93.677        .24304E-02   -1.4884    
   9  Prefactor     .10091E-03    16.382        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4644        2.6657        .65131E-02   -1.5394    
  11  Prefactor     2.1276        8.1400        .70702E-02   -1.5416    
  12  Prefactor     .83014        12.845        .12559E-01   -1.5526    
  13  norm          4.9591        1.8718        .45150E-02   -1.5263    
  14  Prefactor     .10094E-03    72.595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .95672        .32322E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     59.759        185.19        .12975E-02   -1.4160    
  17  Prefactor     22.197        34.275        .21240E-02   -1.4765    
  18  Prefactor     2.6962        3.4653        .62029E-02   -1.5380    
  19  norm          .10001E-03    11.037        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10011E-03    31.333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.527        10.688        .24630E-02   -1.4895    
  22  Prefactor     .10000E-03    5.9464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10102E-03    17.671        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .62508        .23788        .67249E-01   -1.0693    
  25  Prefactor     1.0323        .19490        .41070E-01   -.91661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64204e-07
Minuit parameter uncertainties:
  1  4.07589
  2  33.6147
  3  0.019415
  4  4.60328
  5  0.00165655
  6  12.8723
  7  67.9833
  8  79.9328
  9  0.0077042
  10  2.66586
  11  8.14421
  12  6.53209
  13  1.87179
  14  0.0165147
  15  7.28786e-06
  16  187.021
  17  34.3058
  18  3.46558
  19  0.000611711
  20  0.0037685
  21  10.6894
  22  7.06045e-06
  23  0.00848131
  24  0.238274
  25  0.195033
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  7.288e-06  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.032e+00  1.950e-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:  6.251e-01  2.383e-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: 9.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32235/likelihoodResults_535852801_536112001_4FGL_J0349.8-2103_daily_bin1144.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) = 3691.79569485
delta logL = -0.00304079970965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3691.79265494
delta logL = -8.86018824531e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3360       1.0000          .0000       5.0000    
     3 'Normalizat'    .62522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0323       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=   3691.793     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    347.94        .11140E-02** at limit **
   2  alpha         2.2987        3.5302        .16506        .41598E-05
   3  Normalizat    .62507        .15140        .29761E-03    .13064E-04
   4  Prefactor     1.0323        .13519        .20898E-03    .34164E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3691.793     FROM SIMPLEX   STATUS=UNCHANGED    163 CALLS      402 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    347.94        .19267E-03** at limit **
   2  alpha         2.2987        3.5302        .11213E-04    .41598E-05
   3  Normalizat    .62507        .15140        .76192E-06    .13064E-04
   4  Prefactor     1.0323        .13519        .66989E-06    .34164E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3691.793     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      433 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5764        .22281E-03** at limit **
   2  alpha         2.2736        3.8285        .66022E-02   -.30651E-07
   3  Normalizat    .62507        .24226        .11904E-04    .65895E-05
   4  Prefactor     1.0323        .21610        .41796E-04    .13954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.27358
  Normalizat = 0.625075
  Prefactor  = 1.03229
 **********
 **   18 **HESSE 
 **********

 FCN=   3691.793     FROM HESSE     STATUS=OK            23 CALLS      456 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5764        .44562E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2736        3.8312        .13204E-02   -.90693E-01
   3  Normalizat    .62507        .24244        .23809E-05   -1.0693    
   4  Prefactor     1.0323        .21623        .83591E-05   -.91661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.819e-12
Minuit parameter uncertainties:
  1  1.53215e-06
  2  121.575
  3  0.242851
  4  0.216411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32235': 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) = 3691.79265391
delta logL = 1.43140368891e-07

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  1.532e-06  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.274e+00  1.216e+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:  1.032e+00  2.164e-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:  6.251e-01  2.429e-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/32235/cmap_HighResolution_535852801_536112001_4FGL_J0349.8-2103_daily_bin1144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-05', job_status='DONE', photon_flux_upper_limit='9.77e-08', time_completed='2021-08-19 16:09:47.031899', job_id='32235', GAL2='1.03', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1629414587.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1144' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 32235: <4FGL_J0349.8-2103_daily_bin1144> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1144> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 15:55:54 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 15:55: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 15:55:56 2021
Terminated at Thu Aug 19 16:09:47 2021
Results reported at Thu Aug 19 16:09:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1144 57.4699 -21.0576 535852801 536112001 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 :                                   558.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

