/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 3 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0348.6-1609_daily_bin323
RA = 57.1532, Dec = -16.1654
tmin = 323049601, tmax = 323308801
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='991508', job_status='RUN', time_executed='2021-08-19 13:42:17.588907', time_epoch_executed='1629405737.59' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991508

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991508/ft1_4FGL_J0348.6-1609_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991508/ft2_4FGL_J0348.6-1609_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991508/ft1_4FGL_J0348.6-1609_daily_bin323.fits outfile=/scratch/kocevski/991508/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin323.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=323049601.0 tmax=323308801.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 9.77
user 3.11
sys 6.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991508/ft2_4FGL_J0348.6-1609_daily_bin323.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/991508/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin323.fits evtable="EVENTS" outfile="/scratch/kocevski/991508/ft1_filtered_4FGL_J0348.6-1609_daily_bin323.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 6.97
user 0.32
sys 6.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991508/ft1_filtered_4FGL_J0348.6-1609_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/991508/ft2_4FGL_J0348.6-1609_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/991508/ltcube_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.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/991508/ft2_4FGL_J0348.6-1609_daily_bin323.fits
.....................!
real 19.76
user 12.13
sys 7.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991508/ft1_filtered_4FGL_J0348.6-1609_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/991508/ft2_4FGL_J0348.6-1609_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/991508/ltcube_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.fits outfile=/scratch/kocevski/991508/expmap_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.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/991508/ltcube_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.fits
.....................!
real 199.07
user 185.93
sys 12.72

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/991508/ft1_filtered_4FGL_J0348.6-1609_daily_bin323.fits scfile=/scratch/kocevski/991508/ft2_4FGL_J0348.6-1609_daily_bin323.fits outfile=/scratch/kocevski/991508/cmap_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.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 6.87
user 0.38
sys 6.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991508/ft1_filtered_4FGL_J0348.6-1609_daily_bin323.fits scfile=/scratch/kocevski/991508/ft2_4FGL_J0348.6-1609_daily_bin323.fits outfile=/scratch/kocevski/991508/cmap_HighResolution_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.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 6.92
user 0.38
sys 6.48

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/991508/ft1_filtered_4FGL_J0348.6-1609_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/991508/ft2_4FGL_J0348.6-1609_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991508/Model_4FGL_J0348.6-1609_daily_bin323.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/991508/ft1_filtered_4FGL_J0348.6-1609_daily_bin323.fits.....................!
real 158.48
user 149.14
sys 8.89

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991508/ft1_filtered_4FGL_J0348.6-1609_daily_bin323.fits', '/scratch/kocevski/991508/ft2_4FGL_J0348.6-1609_daily_bin323.fits', expMap='/scratch/kocevski/991508/expmap_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.fits', expCube='/scratch/kocevski/991508/ltcube_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991508/Model_4FGL_J0348.6-1609_daily_bin323.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/991508/ft1_filtered_4FGL_J0348.6-1609_daily_bin323.fits
Spacecraft file(s): /scratch/kocevski/991508/ft2_4FGL_J0348.6-1609_daily_bin323.fits
Exposure map: /scratch/kocevski/991508/expmap_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.fits
Exposure cube: /scratch/kocevski/991508/ltcube_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991508/Model_4FGL_J0348.6-1609_daily_bin323.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) = 6642.05707352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38915E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27511       1.0000         .10000E-03   10000.    
     4 'Prefactor '    88.823       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0489       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6829       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.139       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.882       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6073       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3467       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .38014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3373       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4923       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.804       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91332       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97637       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=   6642.047     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2605 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    192.04        .28832E-04** at limit **
   2  Prefactor     .10000E-03    12.842       -.17898E-06** at limit **
   3  Prefactor     .26147        1.9408       -.56093E-06    .32624E-03
   4  Prefactor     88.820        122.50        .13376E-05   -.28340E-05
   5  Prefactor     1.0438        2.9427        .90689E-06    .36884E-03
   6  Prefactor     8.6926        13.041       -.92364E-06   -.72414E-04
   7  Prefactor     12.140        9.8790        .23964E-06    .21711E-04
   8  Prefactor     50.884        39.003        .19564E-06    .23664E-05
   9  Prefactor     .10000E-03    1.1168        .17698E-06** at limit **
  10  Prefactor     1.8747        3.0678        .58168E-06    .61833E-04
  11  Prefactor     5.6065        3.5150       -.40234E-08   -.32316E-04
  12  norm          .10000E-03    .30867       -.37896E-08** at limit **
  13  Prefactor     .10000E-03    11.358       -.11348E-05** at limit **
  14  norm          2.3467        1.3617        .13676E-06    .75184E-04
  15  Prefactor     .10000E-03    5.8039       -.13794E-07** at limit **
  16  Prefactor     .10000E-03    .85175       -.48993E-07** at limit **
  17  norm          .10000E-03    5.0913        .51666E-06** at limit **
  18  Prefactor     .10000E-03    9.2887        .55255E-06** at limit **
  19  Prefactor     2.3381        6.9559        .83848E-05    .10574E-04
  20  Prefactor     1.4918        4.3527        .85010E-06   -.14822E-04
  21  Prefactor     20.804        17.841        .30234E-06   -.72365E-05
  22  Normalizat    .91335        .17220       -.30974E-05   -.16218E-03
  23  Prefactor     .97631        .12854        .49835E-06   -.22071E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.261471
  Prefactor  = 88.8196
  Prefactor  = 1.04378
  Prefactor  = 8.69258
  Prefactor  = 12.1405
  Prefactor  = 50.8837
  Prefactor  = 0.0001
  Prefactor  = 1.87471
  Prefactor  = 5.6065
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.34671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.33815
  Prefactor  = 1.49181
  Prefactor  = 20.8041
  Normalizat = 0.913355
  Prefactor  = 0.97631
 **********
 **   18 **HESSE 
 **********

 FCN=   6642.047     FROM HESSE     STATUS=OK           380 CALLS     2985 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    191.89        .21276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .26147        10.008        .21544E-02   -1.5606    
   4  Prefactor     88.820        122.45        .42633E-04   -1.3820    
   5  Prefactor     1.0438        2.6994        .21418E-02   -1.5504    
   6  Prefactor     8.6926        12.629        .13603E-03   -1.5118    
   7  Prefactor     12.140        9.8659        .11497E-03   -1.5011    
   8  Prefactor     50.884        38.975        .56222E-04   -1.4280    
   9  Prefactor     .10000E-03    1.8172        .16241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8747        3.0216        .16601E-03   -1.5434    
  11  Prefactor     5.6065        3.4825        .10923E-03   -1.5234    
  12  norm          .10000E-03    .64992        .87899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3467        1.3338        .67234E-04   -1.5402    
  15  Prefactor     .10000E-03    5.8109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .86274        .73374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.823        .35806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.3148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.3381        6.9616        .13410E-02   -1.5402    
  20  Prefactor     1.4918        4.3292        .26541E-03   -1.5464    
  21  Prefactor     20.804        17.827        .87813E-04   -1.4795    
  22  Normalizat    .91335        .19466        .25816E-03   -.95992    
  23  Prefactor     .97631        .14742        .20469E-03   -.93523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12398e-09
Minuit parameter uncertainties:
  1  0.00273377
  2  7.97496e-05
  3  3.23534
  4  122.803
  5  2.69967
  6  12.6331
  7  9.86726
  8  38.9946
  9  9.74894e-06
  10  3.02182
  11  3.48263
  12  2.27676e-06
  13  5.84689e-06
  14  1.33382
  15  3.07761e-07
  16  1.8594e-06
  17  5.66355e-05
  18  7.24764e-06
  19  6.96406
  20  4.33011
  21  17.8319
  22  0.194805
  23  0.147484
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  5.847e-06  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:  9.763e-01  1.475e-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:  9.134e-01  1.948e-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: 5.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991508/likelihoodResults_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.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) = 6642.04786466
delta logL = -0.000418094052293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6642.04744649
delta logL = 6.93671609042e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3510       1.0000          .0000       10.000    
     3 'Normalizat'    .91334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97632       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=   6642.047     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    129.78        .18142E-02** at limit **
   2  Index         2.2893        8.8290        .50000        .11364E-04
   3  Normalizat    .91335        .13757E-01    .25817E-03    .14048E-04
   4  Prefactor     .97631        .11302E-01    .20468E-03    .24994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010141
  Index      = 2.28933
  Normalizat = 0.913355
  Prefactor  = 0.97631
 **********
 **   18 **HESSE 
 **********

 FCN=   6642.047     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10141E-03    541.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2893        5.7285        .50000       -.57297    
   3  Normalizat    .91335        .29453E-01    .10327E-04   -.95992    
   4  Prefactor     .97631        .24197E-01    .81874E-05   -.93523    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16482e-08
Minuit parameter uncertainties:
  1  0.0557702
  2  851.406
  3  0.0294538
  4  0.0241971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991508': 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) = 6642.04744636
delta logL = 2.01331204153e-07

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.014e-04  5.577e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.289e+00  8.514e+02  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:  9.763e-01  2.420e-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:  9.134e-01  2.945e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/991508/cmap_HighResolution_323049601_323308801_4FGL_J0348.6-1609_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2021-08-19 13:56:21.593941', job_id='991508', GAL2='0.98', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1629406581.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='323' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:56:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 991508: <4FGL_J0348.6-1609_daily_bin323> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin323> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 13:40:17 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:40:19 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:40:19 2021
Terminated at Thu Aug 19 13:56:23 2021
Results reported at Thu Aug 19 13:56:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin323 57.1532 -16.1654 323049601 323308801 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 :                                   941.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            966 sec.

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

