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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1236
RA = 57.1532, Dec = -16.1654
tmin = 559699201, tmax = 559958401
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='996360', job_status='RUN', time_executed='2021-08-19 13:56:45.984902', time_epoch_executed='1629406605.98' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996360

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996360/ft1_4FGL_J0348.6-1609_daily_bin1236.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996360/ft2_4FGL_J0348.6-1609_daily_bin1236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996360/ft1_4FGL_J0348.6-1609_daily_bin1236.fits outfile=/scratch/kocevski/996360/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1236.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=559699201.0 tmax=559958401.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.60
user 3.37
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/996360/ft2_4FGL_J0348.6-1609_daily_bin1236.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/996360/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1236.fits evtable="EVENTS" outfile="/scratch/kocevski/996360/ft1_filtered_4FGL_J0348.6-1609_daily_bin1236.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996360/ft1_filtered_4FGL_J0348.6-1609_daily_bin1236.fits" evtable="EVENTS" scfile=/scratch/kocevski/996360/ft2_4FGL_J0348.6-1609_daily_bin1236.fits sctable="SC_DATA" outfile=/scratch/kocevski/996360/ltcube_559699201_559958401_4FGL_J0348.6-1609_daily_bin1236.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/996360/ft2_4FGL_J0348.6-1609_daily_bin1236.fits
.....................!
real 11.92
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996360/ft1_filtered_4FGL_J0348.6-1609_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/996360/ft2_4FGL_J0348.6-1609_daily_bin1236.fits sctable="SC_DATA" expcube=/scratch/kocevski/996360/ltcube_559699201_559958401_4FGL_J0348.6-1609_daily_bin1236.fits outfile=/scratch/kocevski/996360/expmap_559699201_559958401_4FGL_J0348.6-1609_daily_bin1236.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/996360/ltcube_559699201_559958401_4FGL_J0348.6-1609_daily_bin1236.fits
.....................!
real 190.82
user 185.39
sys 5.07

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/996360/ft1_filtered_4FGL_J0348.6-1609_daily_bin1236.fits scfile=/scratch/kocevski/996360/ft2_4FGL_J0348.6-1609_daily_bin1236.fits outfile=/scratch/kocevski/996360/cmap_559699201_559958401_4FGL_J0348.6-1609_daily_bin1236.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996360/ft1_filtered_4FGL_J0348.6-1609_daily_bin1236.fits scfile=/scratch/kocevski/996360/ft2_4FGL_J0348.6-1609_daily_bin1236.fits outfile=/scratch/kocevski/996360/cmap_HighResolution_559699201_559958401_4FGL_J0348.6-1609_daily_bin1236.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996360/ft1_filtered_4FGL_J0348.6-1609_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/996360/ft2_4FGL_J0348.6-1609_daily_bin1236.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996360/Model_4FGL_J0348.6-1609_daily_bin1236.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/996360/ft1_filtered_4FGL_J0348.6-1609_daily_bin1236.fits......................!
real 45.22
user 43.91
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11627E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26578       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51638E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.8539       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.397       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0334       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.010       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11374E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67925       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81254       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=   1604.521     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2491 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.383        .76811E-06** at limit **
   2  Prefactor     .10000E-03    15.853        .92332E-07** at limit **
   3  Prefactor     .10000E-03    3.8391       -.12728E-07** at limit **
   4  Prefactor     .10000E-03    341.85       -.88906E-06** at limit **
   5  Prefactor     .26316        12.539       -.90952E-06    .52439E-03
   6  Prefactor     11.300        55.776       -.93686E-05   -.27307E-04
   7  Prefactor     30.350        23.643       -.12779E-06   -.37719E-04
   8  Prefactor     .10001E-03    278.82        .48465E-05** at limit **
   9  Prefactor     .10000E-03    7.9275        .53641E-06** at limit **
  10  Prefactor     .10000E-03    10.643        .50340E-07** at limit **
  11  Prefactor     .10000E-03    6.8562        .44525E-07** at limit **
  12  norm          9.8536        11.696       -.45590E-06   -.42379E-04
  13  Prefactor     .10000E-03    41.257       -.16711E-06** at limit **
  14  norm          .10000E-03    2.7154        .41876E-07** at limit **
  15  Prefactor     37.376        55.911        .24767E-06   -.19477E-04
  16  Prefactor     4.0325        6.6499        .72537E-07   -.17748E-04
  17  norm          .10000E-03    76.878       -.48422E-06** at limit **
  18  Prefactor     .10000E-03    79.716       -.42064E-07** at limit **
  19  Prefactor     .10000E-03    4.6580       -.74673E-07** at limit **
  20  Prefactor     12.007        17.137        .23479E-06   -.90597E-06
  21  Prefactor     .10000E-03    268.36        .71957E-06** at limit **
  22  Normalizat    .67875        .34032       -.19225E-05   -.48268E-04
  23  Prefactor     .81278        .22002        .46587E-06   -.93049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.26316
  Prefactor  = 11.3
  Prefactor  = 30.3503
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.85363
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.3765
  Prefactor  = 4.0325
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0072
  Prefactor  = 0.000100002
  Normalizat = 0.678752
  Prefactor  = 0.812784
 **********
 **   18 **HESSE 
 **********

 FCN=   1604.521     FROM HESSE     STATUS=OK           362 CALLS     2853 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.876        .15582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8500        .76608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    340.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .26316        135.95        .24514E-02   -1.5605    
   6  Prefactor     11.300        80.537        .11939E-03   -1.5036    
   7  Prefactor     30.350        23.751        .72739E-04   -1.4606    
   8  Prefactor     .10001E-03    280.77        .21141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1349        .11033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.644        .12766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8570        .10246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.8536        11.672        .63827E-03   -1.5080    
  13  Prefactor     .10000E-03    41.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7335        .64459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.376        55.920        .65538E-04   -1.4484    
  16  Prefactor     4.0325        6.6379        .12891E-03   -1.5306    
  17  norm          .10000E-03    76.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    79.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6599        .84432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.007        17.146        .11559E-03   -1.5015    
  21  Prefactor     .10000E-03    268.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67875        .40509        .28905E-03   -1.0474    
  23  Prefactor     .81278        .26580        .17935E-03   -.99259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67651e-08
Minuit parameter uncertainties:
  1  0.000599354
  2  1.69007e-05
  3  8.08063e-06
  4  0.00246998
  5  11.9877
  6  60.4499
  7  23.7588
  8  0.00334644
  9  5.21039e-05
  10  7.26341e-06
  11  4.87063e-06
  12  11.6743
  13  3.50031e-05
  14  7.70236e-06
  15  55.9987
  16  6.63914
  17  0.000425187
  18  3.6669e-05
  19  2.90284e-07
  20  17.1533
  21  0.00130696
  22  0.406893
  23  0.266223
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.500e-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.128e-01  2.662e-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:  6.788e-01  4.069e-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: 2.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996360/likelihoodResults_559699201_559958401_4FGL_J0348.6-1609_daily_bin1236.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) = 1604.52139593
delta logL = -0.000115284619142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1604.52128137
delta logL = -7.30146894057e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8115       1.0000          .0000       10.000    
     3 'Normalizat'    .67875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81279       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=   1604.521     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10524E-03    26.419        .18142E-01** at limit **
   2  Index         2.6942        5.1074        .50000        .86658E-05
   3  Normalizat    .67875        .76636E-02    .28905E-03   -.14552E-05
   4  Prefactor     .81278        .52118E-02    .17935E-03   -.76065E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105241
  Index      = 2.69425
  Normalizat = 0.678752
  Prefactor  = 0.812784
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10524E-03    246.93        .21614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6942        6.6349        .50000       -.47929    
   3  Normalizat    .67875        .23637E-01    .11562E-04   -1.0474    
   4  Prefactor     .81278        .16075E-01    .71741E-05   -.99259    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89242e-09
Minuit parameter uncertainties:
  1  0.0722498
  2  598.069
  3  0.0236369
  4  0.0160746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996360': 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) = 1604.52128115
delta logL = -5.06126070832e-07

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.052e-04  7.225e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.694e+00  5.981e+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:  8.128e-01  1.607e-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:  6.788e-01  2.364e-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/996360/cmap_HighResolution_559699201_559958401_4FGL_J0348.6-1609_daily_bin1236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', job_status='DONE', photon_flux_upper_limit='2.20e-07', time_completed='2021-08-19 14:03:37.879852', job_id='996360', GAL2='0.81', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1629407017.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-5.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1236' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:03:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 996360: <4FGL_J0348.6-1609_daily_bin1236> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1236> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:55:42 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:55:43 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:55:43 2021
Terminated at Thu Aug 19 14:03:41 2021
Results reported at Thu Aug 19 14:03:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1236 57.1532 -16.1654 559699201 559958401 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 :                                   407.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   475 sec.
    Turnaround time :                            479 sec.

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

