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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1601
RA = 57.1532, Dec = -16.1654
tmin = 654307201, tmax = 654566401
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='539777', job_status='RUN', time_executed='2021-09-29 00:06:14.202420', time_epoch_executed='1632899174.2' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/539777

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/539777/ft1_4FGL_J0348.6-1609_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/539777/ft2_4FGL_J0348.6-1609_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/539777/ft1_4FGL_J0348.6-1609_daily_bin1601.fits outfile=/scratch/kocevski/539777/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1601.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.24
user 3.97
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/539777/ft2_4FGL_J0348.6-1609_daily_bin1601.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/539777/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/539777/ft1_filtered_4FGL_J0348.6-1609_daily_bin1601.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/539777/ft1_filtered_4FGL_J0348.6-1609_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/539777/ft2_4FGL_J0348.6-1609_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/539777/ltcube_654307201_654566401_4FGL_J0348.6-1609_daily_bin1601.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/539777/ft2_4FGL_J0348.6-1609_daily_bin1601.fits
.....................!
real 15.76
user 15.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/539777/ft1_filtered_4FGL_J0348.6-1609_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/539777/ft2_4FGL_J0348.6-1609_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/539777/ltcube_654307201_654566401_4FGL_J0348.6-1609_daily_bin1601.fits outfile=/scratch/kocevski/539777/expmap_654307201_654566401_4FGL_J0348.6-1609_daily_bin1601.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/539777/ltcube_654307201_654566401_4FGL_J0348.6-1609_daily_bin1601.fits
.....................!
real 193.50
user 187.54
sys 5.63

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/539777/ft1_filtered_4FGL_J0348.6-1609_daily_bin1601.fits scfile=/scratch/kocevski/539777/ft2_4FGL_J0348.6-1609_daily_bin1601.fits outfile=/scratch/kocevski/539777/cmap_654307201_654566401_4FGL_J0348.6-1609_daily_bin1601.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/539777/ft1_filtered_4FGL_J0348.6-1609_daily_bin1601.fits scfile=/scratch/kocevski/539777/ft2_4FGL_J0348.6-1609_daily_bin1601.fits outfile=/scratch/kocevski/539777/cmap_HighResolution_654307201_654566401_4FGL_J0348.6-1609_daily_bin1601.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/539777/ft1_filtered_4FGL_J0348.6-1609_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/539777/ft2_4FGL_J0348.6-1609_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/539777/Model_4FGL_J0348.6-1609_daily_bin1601.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/539777/ft1_filtered_4FGL_J0348.6-1609_daily_bin1601.fits.....................!
real 108.51
user 107.11
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .72936E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9802       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.6073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.803       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.5942       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4175       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2880       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68106       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=   4488.305     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2144 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.969        .48041E-07** at limit **
   2  Prefactor     .10000E-03    6.5583        .24465E-07** at limit **
   3  Prefactor     .10000E-03    5.0046        .16648E-06** at limit **
   4  Prefactor     .10000E-03    6715.2       -.29438E-04** at limit **
   5  Prefactor     .10000E-03    1.7307       -.35242E-09** at limit **
   6  Prefactor     .10000E-03    20.907       -.21899E-06** at limit **
   7  Prefactor     .10000E-03    10.574        .14673E-06** at limit **
   8  Prefactor     .10000E-03    67.591       -.90702E-07** at limit **
   9  Prefactor     2.0188        2.1853       -.14009E-06    .38984E-04
  10  Prefactor     1.9800        5.2962        .90051E-06   -.53856E-05
  11  Prefactor     .10000E-03    2.0805        .51624E-07** at limit **
  12  norm          9.6069        2.4001       -.26678E-07   -.71606E-04
  13  Prefactor     40.796        31.448        .12206E-06   -.28546E-04
  14  norm          .10000E-03    .46267        .15824E-07** at limit **
  15  Prefactor     .10000E-03    15.575       -.10099E-06** at limit **
  16  Prefactor     .10000E-03    1.3727        .12263E-06** at limit **
  17  norm          7.6016        13.875        .25422E-06   -.58583E-05
  18  Prefactor     .10000E-03    12.108        .25714E-07** at limit **
  19  Prefactor     1.4120        16.033        .37254E-05   -.17408E-04
  20  Prefactor     .10000E-03    2.3190        .51629E-07** at limit **
  21  Prefactor     .10000E-03    26.764        .87686E-07** at limit **
  22  Normalizat    1.2881        .21229       -.16062E-05   -.21564E-04
  23  Prefactor     .68109        .14639       -.37893E-06   -.76795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.01883
  Prefactor  = 1.97995
  Prefactor  = 0.0001
  norm       = 9.60686
  Prefactor  = 40.7957
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.60162
  Prefactor  = 0.0001
  Prefactor  = 1.412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2881
  Prefactor  = 0.681089
 **********
 **   18 **HESSE 
 **********

 FCN=   4488.305     FROM HESSE     STATUS=OK           364 CALLS     2508 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5618        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1272        .14652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6727.1        .18633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7363        .86072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    67.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0188        2.1781        .99222E-04   -1.5424    
  10  Prefactor     1.9800        5.2820        .23268E-03   -1.5427    
  11  Prefactor     .10000E-03    2.0859        .94210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.6069        2.3955        .48663E-04   -1.5088    
  13  Prefactor     40.796        31.493        .62753E-04   -1.4430    
  14  norm          .10000E-03    .46602        .44492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2221        .15287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.6016        13.868        .14552E-03   -1.5156    
  18  Prefactor     .10000E-03    12.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4120        16.309        .36352E-03   -1.5470    
  20  Prefactor     .10000E-03    2.3416        .99630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2881        .24413        .23470E-03   -.83922    
  23  Prefactor     .68109        .17122        .23040E-03   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38638e-11
Minuit parameter uncertainties:
  1  2.27615e-05
  2  3.39697e-06
  3  1.66788e-05
  4  0.000308139
  5  2.55498e-06
  6  5.50615e-05
  7  2.21761e-05
  8  8.11734e-05
  9  2.17819
  10  5.28322
  11  9.90738e-07
  12  2.39553
  13  31.5061
  14  9.83251e-07
  15  1.30511e-05
  16  9.17216e-06
  17  13.8743
  18  1.22992e-06
  19  9.60051
  20  3.90732e-06
  21  3.14626e-05
  22  0.244347
  23  0.171356
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  4.080e+01  3.151e+01  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:  6.811e-01  1.714e-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.288e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.16
Ra Dec: 57.153 -16.165
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 4.54e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.55e-05

TS (Fixed Index): 3.16
Ra Dec: 57.153 -16.165
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/539777/likelihoodResults_654307201_654566401_4FGL_J0348.6-1609_daily_bin1601.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) = 4487.8725445
delta logL = 0.432507714816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4487.86983556
delta logL = 0.435216660548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.869       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0657       1.0000          .0000       10.000    
     3 'Normalizat'    1.2370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70284       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=   4487.870     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      293 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.870        31.966        .81989E-04    .76125E-04
   2  Index         3.0656        .89210        .47582E-02    .30265E-04
   3  Normalizat    1.2370        .23947        .23860E-03    .10817E-03
   4  Prefactor     .70282        .17223        .22708E-03    .13327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8703
  Index      = 3.06555
  Normalizat = 1.23699
  Prefactor  = 0.702816
 **********
 **   18 **HESSE 
 **********

 FCN=   4487.870     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.870        27.881        .32796E-05   -1.4730    
   2  Index         3.0656        .77793        .19033E-03   -.39726    
   3  Normalizat    1.2370        .23869        .47720E-04   -.85467    
   4  Prefactor     .70282        .17188        .90833E-05   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54066e-11
Minuit parameter uncertainties:
  1  27.8959
  2  0.781673
  3  0.238901
  4  0.172009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/539777': 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) = 4487.86983548
delta logL = 0.435216740892

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  2.387e+01  2.790e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.066e+00  7.817e-01  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:  7.028e-01  1.720e-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.237e+00  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 57.153 -16.165
Photon Index (Free Index): 3.07 +/- 0.78
Photon Flux (Free Index): 1.07e-07 +/- 7.95e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.32e-05

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/539777/cmap_HighResolution_654307201_654566401_4FGL_J0348.6-1609_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='2.08e-05', photon_flux_error='4.54e-08', dlogl='4.35e-01', energy_flux='2.00e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-29 00:16:22.098486', photon_index_error2='0.78', photon_index2='3.07', ts='3.16', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.32e-05', EG='1.29', time_epoch_completed='1632899782.1', return_code='0', job_id='539777', GAL2='0.70', EG2='1.24', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='7.95e-08', ts2='4.08', photon_index='2.37' WHERE bin_id='1601' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:16:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 539777: <4FGL_J0348.6-1609_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1601> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:05:37 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:05:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:05:39 2021
Terminated at Wed Sep 29 00:16:22 2021
Results reported at Wed Sep 29 00:16:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1601 57.1532 -16.1654 654307201 654566401 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            645 sec.

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

