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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1179
RA = 57.1532, Dec = -16.1654
tmin = 544924801, tmax = 545184001
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='996270', job_status='RUN', time_executed='2021-08-19 13:56:04.418002', time_epoch_executed='1629406564.42' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996270/ft1_4FGL_J0348.6-1609_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996270/ft2_4FGL_J0348.6-1609_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996270/ft1_4FGL_J0348.6-1609_daily_bin1179.fits outfile=/scratch/kocevski/996270/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1179.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=544924801.0 tmax=545184001.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.84
user 3.85
sys 0.95

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/996270/ft2_4FGL_J0348.6-1609_daily_bin1179.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/996270/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1179.fits evtable="EVENTS" outfile="/scratch/kocevski/996270/ft1_filtered_4FGL_J0348.6-1609_daily_bin1179.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 1.21
user 0.30
sys 0.89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996270/ft1_filtered_4FGL_J0348.6-1609_daily_bin1179.fits" evtable="EVENTS" scfile=/scratch/kocevski/996270/ft2_4FGL_J0348.6-1609_daily_bin1179.fits sctable="SC_DATA" outfile=/scratch/kocevski/996270/ltcube_544924801_545184001_4FGL_J0348.6-1609_daily_bin1179.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/996270/ft2_4FGL_J0348.6-1609_daily_bin1179.fits
.....................!
real 12.63
user 11.45
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996270/ft1_filtered_4FGL_J0348.6-1609_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/996270/ft2_4FGL_J0348.6-1609_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/996270/ltcube_544924801_545184001_4FGL_J0348.6-1609_daily_bin1179.fits outfile=/scratch/kocevski/996270/expmap_544924801_545184001_4FGL_J0348.6-1609_daily_bin1179.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/996270/ltcube_544924801_545184001_4FGL_J0348.6-1609_daily_bin1179.fits
.....................!
real 193.01
user 187.42
sys 5.25

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/996270/ft1_filtered_4FGL_J0348.6-1609_daily_bin1179.fits scfile=/scratch/kocevski/996270/ft2_4FGL_J0348.6-1609_daily_bin1179.fits outfile=/scratch/kocevski/996270/cmap_544924801_545184001_4FGL_J0348.6-1609_daily_bin1179.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 1.14
user 0.35
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996270/ft1_filtered_4FGL_J0348.6-1609_daily_bin1179.fits scfile=/scratch/kocevski/996270/ft2_4FGL_J0348.6-1609_daily_bin1179.fits outfile=/scratch/kocevski/996270/cmap_HighResolution_544924801_545184001_4FGL_J0348.6-1609_daily_bin1179.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 1.14
user 0.36
sys 0.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996270/ft1_filtered_4FGL_J0348.6-1609_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/996270/ft2_4FGL_J0348.6-1609_daily_bin1179.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996270/Model_4FGL_J0348.6-1609_daily_bin1179.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/996270/ft1_filtered_4FGL_J0348.6-1609_daily_bin1179.fits......................!
real 68.45
user 66.22
sys 2.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3306       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .96502       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5895       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5364       1.0000         .10000E-03   10000.    
    12 'norm      '    14.994       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.177       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6466       1.0000         .10000E-03   10000.    
    17 'norm      '    6.7608       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.304       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9671       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86165       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1063       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=   2754.138     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2569 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    183.06        .48948E-04** at limit **
   2  Prefactor     .10000E-03    14.172        .28121E-06** at limit **
   3  Prefactor     .10000E-03    5.7740       -.18289E-07** at limit **
   4  Prefactor     .10000E-03    199.30       -.55759E-04** at limit **
   5  Prefactor     5.3302        7.0901        .60453E-06   -.19023E-04
   6  Prefactor     .10000E-03    27.480        .35617E-05** at limit **
   7  Prefactor     .10000E-03    11.460       -.25489E-06** at limit **
   8  Prefactor     34.030        82.759       -.53162E-04   -.25932E-05
   9  Prefactor     .96576        3.2733        .66759E-06   -.15069E-03
  10  Prefactor     6.5922        7.6824       -.33877E-07   -.90106E-04
  11  Prefactor     1.5369        6.0044       -.89162E-06   -.43507E-03
  12  norm          14.994        3.0079       -.12572E-06    .29410E-04
  13  Prefactor     .10000E-03    27.384       -.33481E-05** at limit **
  14  norm          .10000E-03    1.3542        .15706E-06** at limit **
  15  Prefactor     31.178        38.826        .10070E-05    .11972E-04
  16  Prefactor     3.6487        5.8298        .17976E-10   -.20376E-03
  17  norm          6.7577        19.702        .88050E-05   -.21881E-04
  18  Prefactor     27.292        40.739       -.77209E-05   -.71253E-05
  19  Prefactor     .10000E-03    6.6344       -.12436E-07** at limit **
  20  Prefactor     5.9689        7.0746       -.40175E-06   -.72024E-04
  21  Prefactor     .10000E-03    9.1250        .11884E-06** at limit **
  22  Normalizat    .86120        .34344        .37679E-05   -.35239E-04
  23  Prefactor     1.1065        .25643        .18542E-05   -.34142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.33018
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 34.0298
  Prefactor  = 0.965763
  Prefactor  = 6.59221
  Prefactor  = 1.53694
  norm       = 14.994
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.1778
  Prefactor  = 3.64867
  norm       = 6.75773
  Prefactor  = 27.2923
  Prefactor  = 0.0001
  Prefactor  = 5.96893
  Prefactor  = 0.0001
  Normalizat = 0.8612
  Prefactor  = 1.10654
 **********
 **   18 **HESSE 
 **********

 FCN=   2754.138     FROM HESSE     STATUS=OK           370 CALLS     2939 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    182.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7788        .12317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    199.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3302        7.0841        .15530E-03   -1.5246    
   6  Prefactor     .10000E-03    27.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.465        .17354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.030        82.655        .68656E-04   -1.4541    
   9  Prefactor     .96576        3.1342        .16074E-03   -1.5511    
  10  Prefactor     6.5922        7.5701        .13362E-03   -1.5194    
  11  Prefactor     1.5369        5.8360        .21796E-03   -1.5460    
  12  norm          14.994        3.0115        .37740E-04   -1.4933    
  13  Prefactor     .10000E-03    27.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3730        .59355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.178        38.829        .71759E-04   -1.4591    
  16  Prefactor     3.6487        5.7973        .14515E-03   -1.5326    
  17  norm          6.7577        19.638        .15431E-03   -1.5188    
  18  Prefactor     27.292        40.709        .76668E-04   -1.4663    
  19  Prefactor     .10000E-03    6.6443        .13202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9689        7.0760        .14212E-03   -1.5219    
  21  Prefactor     .10000E-03    9.1261        .15485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .86120        .40089        .34180E-03   -.97837    
  23  Prefactor     1.1065        .30194        .24575E-03   -.89258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84065e-10
Minuit parameter uncertainties:
  1  0.000206631
  2  1.31839e-05
  3  3.67982e-06
  4  1.54243e-05
  5  7.0852
  6  0.000266069
  7  9.72577e-07
  8  82.9346
  9  3.13472
  10  7.57118
  11  5.83818
  12  3.01153
  13  0.000114696
  14  1.81353e-05
  15  38.8603
  16  5.79816
  17  19.6567
  18  40.7506
  19  7.53039e-06
  20  7.07703
  21  3.79527e-06
  22  0.402286
  23  0.302405
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.147e-04  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:  1.107e+00  3.024e-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:  8.612e-01  4.023e-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: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996270/likelihoodResults_544924801_545184001_4FGL_J0348.6-1609_daily_bin1179.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) = 2754.13790252
delta logL = -0.000173614849245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2754.13772935
delta logL = -4.48517766927e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1339       1.0000          .0000       10.000    
     3 'Normalizat'    .86119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1065       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=   2754.138     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      279 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10108E-03    222.58        .18142E-02** at limit **
   2  Index         3.0757        6.4742        .50000        .51239E-05
   3  Normalizat    .86120        .26243E-01    .34180E-03   -.76134E-04
   4  Prefactor     1.1065        .21255E-01    .24575E-03   -.46724E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101075
  Index      = 3.0757
  Normalizat = 0.861197
  Prefactor  = 1.10654
 **********
 **   18 **HESSE 
 **********

 FCN=   2754.138     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10108E-03    960.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0757        8.2686        .50000       -.39506    
   3  Normalizat    .86120        .57389E-01    .13672E-04   -.97837    
   4  Prefactor     1.1065        .46478E-01    .98299E-05   -.89258    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03591e-08
Minuit parameter uncertainties:
  1  0.0653505
  2  1355.57
  3  0.0573926
  4  0.0464796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996270': 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) = 2754.13772929
delta logL = -3.87738509744e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.107e+00  4.648e-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:  8.612e-01  5.739e-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/996270/cmap_HighResolution_544924801_545184001_4FGL_J0348.6-1609_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-08-19 14:04:23.931970', job_id='996270', GAL2='1.11', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1629407063.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-3.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1179' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:04:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 996270: <4FGL_J0348.6-1609_daily_bin1179> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1179 57.1532 -16.1654 544924801 545184001 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 :                                   505.42 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             329.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            533 sec.

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

