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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1015
RA = 57.1532, Dec = -16.1654
tmin = 502416001, tmax = 502675201
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='994887', job_status='RUN', time_executed='2021-08-19 13:53:45.974815', time_epoch_executed='1629406425.97' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994887/ft1_4FGL_J0348.6-1609_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994887/ft1_4FGL_J0348.6-1609_daily_bin1015.fits outfile=/scratch/kocevski/994887/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1015.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=502416001.0 tmax=502675201.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.76
user 3.32
sys 0.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.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/994887/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/994887/ft1_filtered_4FGL_J0348.6-1609_daily_bin1015.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.74
user 0.33
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994887/ft1_filtered_4FGL_J0348.6-1609_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/994887/ltcube_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.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/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.fits
.....................!
real 14.36
user 13.76
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994887/ft1_filtered_4FGL_J0348.6-1609_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/994887/ltcube_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.fits outfile=/scratch/kocevski/994887/expmap_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.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/994887/ltcube_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.fits
.....................!
real 190.87
user 185.39
sys 5.17

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 159 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 J0348.6-1609 @ 57.1532 -16.1654

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/994887/ft1_filtered_4FGL_J0348.6-1609_daily_bin1015.fits scfile=/scratch/kocevski/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.fits outfile=/scratch/kocevski/994887/cmap_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.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.1532 yref=-16.1654 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.77
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994887/ft1_filtered_4FGL_J0348.6-1609_daily_bin1015.fits scfile=/scratch/kocevski/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.fits outfile=/scratch/kocevski/994887/cmap_HighResolution_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.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.1532 yref=-16.1654 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.78
user 0.38
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994887/ft1_filtered_4FGL_J0348.6-1609_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994887/Model_4FGL_J0348.6-1609_daily_bin1015.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/994887/ft1_filtered_4FGL_J0348.6-1609_daily_bin1015.fits.....................!
real 135.59
user 133.88
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/994887/ft1_filtered_4FGL_J0348.6-1609_daily_bin1015.fits', '/scratch/kocevski/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.fits', expMap='/scratch/kocevski/994887/expmap_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.fits', expCube='/scratch/kocevski/994887/ltcube_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/994887/Model_4FGL_J0348.6-1609_daily_bin1015.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0348.6-1609'

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  9.725e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  9.291e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/994887/ft1_filtered_4FGL_J0348.6-1609_daily_bin1015.fits
Spacecraft file(s): /scratch/kocevski/994887/ft2_4FGL_J0348.6-1609_daily_bin1015.fits
Exposure map: /scratch/kocevski/994887/expmap_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.fits
Exposure cube: /scratch/kocevski/994887/ltcube_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/994887/Model_4FGL_J0348.6-1609_daily_bin1015.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) = 5951.0160776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    100.67       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.307       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.127       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2718       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6921       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0624       1.0000         .10000E-03   10000.    
    12 'norm      '    .44813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .65239       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3014       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8910       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.184       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0038       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4223       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0822       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86859       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5950.989     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2542 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.555        .12122E-07** at limit **
   2  Prefactor     .10000E-03    5.0298       -.82779E-08** at limit **
   3  Prefactor     .10000E-03    1.5380       -.55294E-07** at limit **
   4  Prefactor     100.89        194.24        .23372E-05    .19793E-04
   5  Prefactor     .10000E-03    2.3213        .19633E-06** at limit **
   6  Prefactor     21.352        18.960        .61058E-06   -.74407E-05
   7  Prefactor     12.310        10.810        .29037E-06   -.57582E-07
   8  Prefactor     13.116        40.194       -.63232E-06   -.61250E-05
   9  Prefactor     1.2717        1.9035        .47888E-06    .34152E-03
  10  Prefactor     4.6947        4.7805        .28700E-06   -.29754E-04
  11  Prefactor     3.0630        3.4396        .93304E-07   -.18957E-04
  12  norm          .44782        .83691        .28125E-06    .98398E-03
  13  Prefactor     .10000E-03    12.995       -.33951E-06** at limit **
  14  norm          .65232        .90209       -.59821E-07   -.23596E-03
  15  Prefactor     6.2987        17.772        .36315E-06    .46110E-06
  16  Prefactor     3.8913        2.2819        .21610E-07   -.36958E-04
  17  norm          .10000E-03    3.3000       -.30278E-07** at limit **
  18  Prefactor     12.183        25.517        .82033E-06   -.14864E-04
  19  Prefactor     3.0046        5.8898        .78622E-06    .10407E-03
  20  Prefactor     9.4236        5.1480        .24005E-06    .10892E-04
  21  Prefactor     .10000E-03    11.142       -.10703E-06** at limit **
  22  Normalizat    1.0818        .22925       -.46489E-05    .38428E-04
  23  Prefactor     .86888        .16076        .31062E-05   -.12727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.894
  Prefactor  = 0.0001
  Prefactor  = 21.3518
  Prefactor  = 12.3095
  Prefactor  = 13.1157
  Prefactor  = 1.27171
  Prefactor  = 4.69467
  Prefactor  = 3.06304
  norm       = 0.447818
  Prefactor  = 0.0001
  norm       = 0.652317
  Prefactor  = 6.29871
  Prefactor  = 3.89131
  norm       = 0.0001
  Prefactor  = 12.1827
  Prefactor  = 3.00463
  Prefactor  = 9.42365
  Prefactor  = 0.0001
  Normalizat = 1.08182
  Prefactor  = 0.868877
 **********
 **   18 **HESSE 
 **********

 FCN=   5950.989     FROM HESSE     STATUS=OK           382 CALLS     2924 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0349        .16897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5561        .93403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     100.89        194.71        .20034E-03   -1.3696    
   5  Prefactor     .10000E-03    2.3429        .11469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.352        18.900        .86698E-04   -1.4783    
   7  Prefactor     12.310        10.808        .11419E-03   -1.5006    
   8  Prefactor     13.116        40.211        .11056E-03   -1.4983    
   9  Prefactor     1.2717        1.8827        .12457E-03   -1.5482    
  10  Prefactor     4.6947        4.6079        .14829E-03   -1.5275    
  11  Prefactor     3.0630        3.4037        .13970E-03   -1.5358    
  12  norm          .44782        .72138        .93122E-03   -1.5574    
  13  Prefactor     .10000E-03    13.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .65232        .78265        .82434E-03   -1.5546    
  15  Prefactor     6.2987        17.748        .15990E-03   -1.5206    
  16  Prefactor     3.8913        2.2782        .85955E-04   -1.5313    
  17  norm          .10000E-03    3.3004        .13686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.183        25.420        .11476E-03   -1.5010    
  19  Prefactor     3.0046        5.8943        .23420E-03   -1.5361    
  20  Prefactor     9.4236        5.1425        .12195E-03   -1.5094    
  21  Prefactor     .10000E-03    11.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0818        .22804        .25804E-03   -.90338    
  23  Prefactor     .86888        .16115        .22022E-03   -.97237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11335e-10
Minuit parameter uncertainties:
  1  7.64131e-06
  2  1.07618e-06
  3  2.3713e-07
  4  195.961
  5  4.60299e-06
  6  18.9053
  7  10.8093
  8  40.2939
  9  1.88278
  10  4.60823
  11  3.40393
  12  0.721391
  13  2.17564e-05
  14  0.782663
  15  17.7627
  16  2.27823
  17  1.31444e-06
  18  25.4428
  19  5.89544
  20  5.14272
  21  6.55274e-07
  22  0.22825
  23  0.161241
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  2.176e-05  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  9.291e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  8.689e-01  1.612e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.082e+00  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.153 -16.165
Photon Flux Upper Limit: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994887/likelihoodResults_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5950.98972042
delta logL = -0.000365685706129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5950.98935491
delta logL = -1.74537490238e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3748       1.0000          .0000       10.000    
     3 'Normalizat'    1.0817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86894       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+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=   5950.989     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    423.90        .18142E-02** at limit **
   2  Index         2.4110        7.3993        .50000       -.18085E-05
   3  Normalizat    1.0818        .28069E-01    .25805E-03    .24231E-05
   4  Prefactor     .86888        .21834E-01    .22022E-03    .23747E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100185
  Index      = 2.41104
  Normalizat = 1.08182
  Prefactor  = 0.868878
 **********
 **   18 **HESSE 
 **********

 FCN=   5950.989     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    1701.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4110        6.1677        .50000       -.54427    
   3  Normalizat    1.0818        .69012E-01    .10322E-04   -.90338    
   4  Prefactor     .86888        .53638E-01    .88089E-05   -.97237    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.28659e-09
Minuit parameter uncertainties:
  1  0.0365448
  2  3223.07
  3  0.0690178
  4  0.0536416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994887': 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): 102
logL (Free Index) = 5950.98935473
delta logL = 1.15360307973e-08

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.002e-04  3.654e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.411e+00  3.223e+03  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  9.291e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  8.689e-01  5.364e-02  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.082e+00  6.902e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 57.153 -16.165

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/994887/cmap_HighResolution_502416001_502675201_4FGL_J0348.6-1609_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-08-19 14:06:32.844286', job_id='994887', GAL2='0.87', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1629407192.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1015' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:06:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 994887: <4FGL_J0348.6-1609_daily_bin1015> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1015> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 13:50:40 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:50:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 13:50:42 2021
Terminated at Thu Aug 19 14:06:33 2021
Results reported at Thu Aug 19 14:06:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1015 57.1532 -16.1654 502416001 502675201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0348.6-1609 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

