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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1269
RA = 57.1532, Dec = -16.1654
tmin = 568252801, tmax = 568512001
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='996413', job_status='RUN', time_executed='2021-08-19 13:57:50.683664', time_epoch_executed='1629406670.68' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996413

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996413/ft1_4FGL_J0348.6-1609_daily_bin1269.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996413/ft2_4FGL_J0348.6-1609_daily_bin1269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996413/ft1_4FGL_J0348.6-1609_daily_bin1269.fits outfile=/scratch/kocevski/996413/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1269.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=568252801.0 tmax=568512001.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 8.48
user 3.43
sys 5.02

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/996413/ft2_4FGL_J0348.6-1609_daily_bin1269.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/996413/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1269.fits evtable="EVENTS" outfile="/scratch/kocevski/996413/ft1_filtered_4FGL_J0348.6-1609_daily_bin1269.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 5.26
user 0.31
sys 4.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996413/ft1_filtered_4FGL_J0348.6-1609_daily_bin1269.fits" evtable="EVENTS" scfile=/scratch/kocevski/996413/ft2_4FGL_J0348.6-1609_daily_bin1269.fits sctable="SC_DATA" outfile=/scratch/kocevski/996413/ltcube_568252801_568512001_4FGL_J0348.6-1609_daily_bin1269.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/996413/ft2_4FGL_J0348.6-1609_daily_bin1269.fits
.....................!
real 17.72
user 11.97
sys 5.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996413/ft1_filtered_4FGL_J0348.6-1609_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/996413/ft2_4FGL_J0348.6-1609_daily_bin1269.fits sctable="SC_DATA" expcube=/scratch/kocevski/996413/ltcube_568252801_568512001_4FGL_J0348.6-1609_daily_bin1269.fits outfile=/scratch/kocevski/996413/expmap_568252801_568512001_4FGL_J0348.6-1609_daily_bin1269.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/996413/ltcube_568252801_568512001_4FGL_J0348.6-1609_daily_bin1269.fits
.....................!
real 197.25
user 185.44
sys 11.47

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/996413/ft1_filtered_4FGL_J0348.6-1609_daily_bin1269.fits scfile=/scratch/kocevski/996413/ft2_4FGL_J0348.6-1609_daily_bin1269.fits outfile=/scratch/kocevski/996413/cmap_568252801_568512001_4FGL_J0348.6-1609_daily_bin1269.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 5.20
user 0.36
sys 4.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996413/ft1_filtered_4FGL_J0348.6-1609_daily_bin1269.fits scfile=/scratch/kocevski/996413/ft2_4FGL_J0348.6-1609_daily_bin1269.fits outfile=/scratch/kocevski/996413/cmap_HighResolution_568252801_568512001_4FGL_J0348.6-1609_daily_bin1269.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 5.33
user 0.36
sys 4.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996413/ft1_filtered_4FGL_J0348.6-1609_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/996413/ft2_4FGL_J0348.6-1609_daily_bin1269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996413/Model_4FGL_J0348.6-1609_daily_bin1269.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/996413/ft1_filtered_4FGL_J0348.6-1609_daily_bin1269.fits.....................!
real 128.90
user 121.32
sys 7.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23382E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0890       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34861E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93554E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .73042       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27403E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.588       1.0000         .10000E-03   10000.    
    12 'norm      '    25.533       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.284       1.0000         .10000E-03   10000.    
    14 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20104E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22936E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .14868E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.451       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26371E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.311       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14814E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0768       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89396       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=   5354.615     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2548 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.406        .63601E-05** at limit **
   2  Prefactor     .10000E-03    5.4355       -.46551E-06** at limit **
   3  Prefactor     6.0910        5.4820       -.17561E-05   -.99775E-04
   4  Prefactor     .10000E-03    113.74       -.89627E-05** at limit **
   5  Prefactor     .10000E-03    1.5804        .16686E-07** at limit **
   6  Prefactor     .10000E-03    45.968       -.10521E-04** at limit **
   7  Prefactor     .71662        11.143       -.14504E-05    .81026E-04
   8  Prefactor     .10000E-03    24.243       -.81956E-06** at limit **
   9  Prefactor     .10000E-03    1.6670        .10150E-05** at limit **
  10  Prefactor     .10000E-03    7.3636       -.57497E-06** at limit **
  11  Prefactor     18.595        9.2315       -.99550E-06   -.30304E-03
  12  norm          25.535        5.2231       -.40566E-06   -.16136E-04
  13  Prefactor     13.226        37.595       -.65302E-04    .79053E-04
  14  norm          .10000E-03    1.1995        .32318E-06** at limit **
  15  Prefactor     .10008E-03    41.293       -.13706E-04** at limit **
  16  Prefactor     .10102E-03    2.0420       -.27106E-07** at limit **
  17  norm          .10000E-03    10.163        .20334E-07** at limit **
  18  Prefactor     34.496        37.817        .36420E-04   -.90196E-06
  19  Prefactor     .10000E-03    9.4603        .39050E-05** at limit **
  20  Prefactor     10.335        7.1518       -.49581E-06   -.32158E-04
  21  Prefactor     .10000E-03    15.318       -.23138E-05** at limit **
  22  Normalizat    1.0770        .21850        .72863E-05   -.10674E-03
  23  Prefactor     .89398        .14850       -.54900E-07    .33943E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.09104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.71662
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 18.5949
  norm       = 25.5352
  Prefactor  = 13.2263
  norm       = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 0.000101022
  norm       = 0.0001
  Prefactor  = 34.4961
  Prefactor  = 0.0001
  Prefactor  = 10.3355
  Prefactor  = 0.0001
  Normalizat = 1.07699
  Prefactor  = 0.893985
 **********
 **   18 **HESSE 
 **********

 FCN=   5354.615     FROM HESSE     STATUS=OK           376 CALLS     2924 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4440        .16662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0910        5.4739        .15296E-03   -1.5214    
   4  Prefactor     .10000E-03    113.75        .19660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5842        .89830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.029        .41611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .71662        45.278        .44805E-02   -1.5539    
   8  Prefactor     .10000E-03    24.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.974        .17935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.595        9.1008        .92899E-04   -1.4845    
  12  norm          25.535        5.2242        .72159E-04   -1.4697    
  13  Prefactor     13.226        37.576        .10990E-03   -1.4980    
  14  norm          .10000E-03    1.2383        .15601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    41.157        .20224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10102E-03    5.0941        .34481E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.496        37.930        .68274E-04   -1.4533    
  19  Prefactor     .10000E-03    9.8799        .42887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.335        7.1641        .12478E-03   -1.5065    
  21  Prefactor     .10000E-03    15.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0770        .25683        .27798E-03   -.90494    
  23  Prefactor     .89398        .17593        .21842E-03   -.96352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24695e-09
Minuit parameter uncertainties:
  1  1.11412e-05
  2  6.82167e-06
  3  5.47436
  4  2.71567e-05
  5  5.51515e-06
  6  0.000686407
  7  11.4007
  8  0.000297147
  9  0.000474026
  10  1.32877e-05
  11  9.10151
  12  5.22428
  13  37.6437
  14  1.24214e-05
  15  0.00365669
  16  0.00456378
  17  0.000103229
  18  37.9567
  19  4.25777e-05
  20  7.16471
  21  3.2378e-05
  22  0.257124
  23  0.17604
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.323e+01  3.764e+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:  8.940e-01  1.760e-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.077e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/996413/likelihoodResults_568252801_568512001_4FGL_J0348.6-1609_daily_bin1269.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) = 5354.39116687
delta logL = 0.223695763101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5354.34988619
delta logL = 0.264976442548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4859       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6207       1.0000          .0000       10.000    
     3 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91405       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=   5354.350     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      286 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4872        366.18        .19010E-03    .10073E-02
   2  Index         3.6211        6.3589        .75757E-02    .25485E-03
   3  Normalizat    1.0334        .22907        .28308E-03    .56674E-03
   4  Prefactor     .91403        .16753        .21627E-03    .57388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.48724
  Index      = 3.62109
  Normalizat = 1.03341
  Prefactor  = 0.914032
 **********
 **   18 **HESSE 
 **********

 FCN=   5354.350     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4872        16.020        .76041E-05   -1.5284    
   2  Index         3.6211        1.7520        .30303E-03   -.27940    
   3  Normalizat    1.0334        .25180        .56616E-04   -.91919    
   4  Prefactor     .91403        .17792        .43254E-04   -.95652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26737e-09
Minuit parameter uncertainties:
  1  16.035
  2  1.79329
  3  0.252088
  4  0.178028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996413': 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) = 5354.34988591
delta logL = 0.264976725607

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  4.487e+00  1.604e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.621e+00  1.793e+00  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.140e-01  1.780e-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.033e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/996413/cmap_HighResolution_568252801_568512001_4FGL_J0348.6-1609_daily_bin1269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-08-19 14:10:00.738445', job_id='996413', GAL2='0.91', fit_tolerance='1e-08', EG2='1.03', EG='1.08', time_epoch_completed='1629407400.74', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.65e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1269' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:10:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 996413: <4FGL_J0348.6-1609_daily_bin1269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1269 57.1532 -16.1654 568252801 568512001 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 :                                   797.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

