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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1445
RA = 57.1532, Dec = -16.1654
tmin = 613872001, tmax = 614131201
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='998000', job_status='RUN', time_executed='2021-08-19 14:02:44.753205', time_epoch_executed='1629406964.75' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998000

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998000/ft1_4FGL_J0348.6-1609_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998000/ft2_4FGL_J0348.6-1609_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998000/ft1_4FGL_J0348.6-1609_daily_bin1445.fits outfile=/scratch/kocevski/998000/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1445.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=613872001.0 tmax=614131201.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 7.84
user 2.08
sys 5.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998000/ft2_4FGL_J0348.6-1609_daily_bin1445.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/998000/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/998000/ft1_filtered_4FGL_J0348.6-1609_daily_bin1445.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.61
user 0.33
sys 5.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998000/ft1_filtered_4FGL_J0348.6-1609_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/998000/ft2_4FGL_J0348.6-1609_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/998000/ltcube_613872001_614131201_4FGL_J0348.6-1609_daily_bin1445.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/998000/ft2_4FGL_J0348.6-1609_daily_bin1445.fits
.....................!
real 19.81
user 13.09
sys 6.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998000/ft1_filtered_4FGL_J0348.6-1609_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/998000/ft2_4FGL_J0348.6-1609_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/998000/ltcube_613872001_614131201_4FGL_J0348.6-1609_daily_bin1445.fits outfile=/scratch/kocevski/998000/expmap_613872001_614131201_4FGL_J0348.6-1609_daily_bin1445.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/998000/ltcube_613872001_614131201_4FGL_J0348.6-1609_daily_bin1445.fits
.....................!
real 199.20
user 186.40
sys 12.42

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/998000/ft1_filtered_4FGL_J0348.6-1609_daily_bin1445.fits scfile=/scratch/kocevski/998000/ft2_4FGL_J0348.6-1609_daily_bin1445.fits outfile=/scratch/kocevski/998000/cmap_613872001_614131201_4FGL_J0348.6-1609_daily_bin1445.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=57.1532 yref=-16.1654 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 6.01
user 0.37
sys 5.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998000/ft1_filtered_4FGL_J0348.6-1609_daily_bin1445.fits scfile=/scratch/kocevski/998000/ft2_4FGL_J0348.6-1609_daily_bin1445.fits outfile=/scratch/kocevski/998000/cmap_HighResolution_613872001_614131201_4FGL_J0348.6-1609_daily_bin1445.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=57.1532 yref=-16.1654 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 6.03
user 0.37
sys 5.64

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998000/ft1_filtered_4FGL_J0348.6-1609_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/998000/ft2_4FGL_J0348.6-1609_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998000/Model_4FGL_J0348.6-1609_daily_bin1445.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/998000/ft1_filtered_4FGL_J0348.6-1609_daily_bin1445.fits.....................!
real 163.23
user 154.46
sys 8.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4731       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.226       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0034       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4005       1.0000         .10000E-03   10000.    
    12 'norm      '    29.798       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.087       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5692       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5041       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.035       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.934       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1153       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0506       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92145       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=   6753.483     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2548 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.044        .29569E-04** at limit **
   2  Prefactor     .10000E-03    6.3060       -.51573E-07** at limit **
   3  Prefactor     .10000E-03    4.9739        .58093E-06** at limit **
   4  Prefactor     .10000E-03    76.975       -.14913E-04** at limit **
   5  Prefactor     2.4729        3.7799       -.16067E-05   -.48344E-03
   6  Prefactor     .10000E-03    25.193        .72925E-05** at limit **
   7  Prefactor     14.225        13.205       -.12270E-05   -.59005E-03
   8  Prefactor     .10000E-03    34.610       -.22345E-04** at limit **
   9  Prefactor     3.0035        2.1186       -.50261E-07    .12537E-04
  10  Prefactor     .10000E-03    1.4175       -.59002E-07** at limit **
  11  Prefactor     2.4020        4.3626       -.14104E-05   -.69988E-03
  12  norm          29.798        3.0119        .24403E-06    .33600E-03
  13  Prefactor     19.088        17.783       -.40259E-06    .40133E-04
  14  norm          .10000E-03    .70546       -.10464E-06** at limit **
  15  Prefactor     .10000E-03    6.9857        .13227E-07** at limit **
  16  Prefactor     8.5699        3.3792        .43068E-06    .25944E-03
  17  norm          2.5077        8.0087       -.33899E-05   -.20485E-03
  18  Prefactor     20.007        29.295       -.19071E-04    .31978E-04
  19  Prefactor     14.935        8.9796       -.12464E-05    .53507E-04
  20  Prefactor     1.1157        3.8796       -.22141E-05   -.12484E-02
  21  Prefactor     .10000E-03    5.0704       -.85091E-06** at limit **
  22  Normalizat    1.0505        .20435        .44603E-05   -.49986E-04
  23  Prefactor     .92153        .14914       -.44913E-06    .26371E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.47287
  Prefactor  = 0.0001
  Prefactor  = 14.2253
  Prefactor  = 0.0001
  Prefactor  = 3.00351
  Prefactor  = 0.0001
  Prefactor  = 2.40199
  norm       = 29.7984
  Prefactor  = 19.0876
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.56989
  norm       = 2.50767
  Prefactor  = 20.0074
  Prefactor  = 14.9351
  Prefactor  = 1.11569
  Prefactor  = 0.0001
  Normalizat = 1.0505
  Prefactor  = 0.921534
 **********
 **   18 **HESSE 
 **********

 FCN=   6753.483     FROM HESSE     STATUS=OK           368 CALLS     2916 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.3111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1034        .35768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    76.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4729        3.7765        .19143E-03   -1.5393    
   6  Prefactor     .10000E-03    25.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.225        13.274        .53096E-03   -1.4953    
   8  Prefactor     .10000E-03    34.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0035        2.1087        .95804E-04   -1.5361    
  10  Prefactor     .10000E-03    1.4205        .95467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4020        4.3549        .21621E-03   -1.5398    
  12  norm          29.798        3.0137        .43119E-04   -1.4616    
  13  Prefactor     19.088        17.787        .91677E-04   -1.4834    
  14  norm          .10000E-03    .72830        .13428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.5699        3.3758        .90205E-04   -1.5122    
  17  norm          2.5077        8.0000        .25824E-03   -1.5391    
  18  Prefactor     20.007        28.990        .89482E-04   -1.4813    
  19  Prefactor     14.935        9.0062        .10364E-03   -1.4935    
  20  Prefactor     1.1157        3.9340        .28566E-03   -1.5497    
  21  Prefactor     .10000E-03    5.0725        .18072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0505        .23780        .29944E-03   -.91357    
  23  Prefactor     .92153        .17386        .24615E-03   -.95393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76343e-09
Minuit parameter uncertainties:
  1  5.25709e-05
  2  8.7326e-06
  3  2.96884e-05
  4  2.74721e-05
  5  3.77686
  6  5.44118e-05
  7  13.2766
  8  9.36695e-06
  9  2.10875
  10  6.52107e-06
  11  4.3555
  12  3.01367
  13  17.7915
  14  4.86861e-06
  15  1.23686e-06
  16  3.37587
  17  8.00345
  18  29.01
  19  9.00705
  20  3.93496
  21  2.1053e-07
  22  0.238046
  23  0.173966
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.909e+01  1.779e+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:  9.215e-01  1.740e-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.050e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.72
Ra Dec: 57.153 -16.165
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.75e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 9.37e-06 +/- 8.73e-06

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) = 6752.81928158
delta logL = 0.664197480896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6752.81697072
delta logL = 0.666508340419

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.017       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5511       1.0000          .0000       10.000    
     3 'Normalizat'    1.0652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91816       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=   6752.817     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      214 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 19.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.011        21.896       -.65663E-05   -.20172E-03
   2  Index         1.5506        .68925       -.33255E-04    .52575E-04
   3  Normalizat    1.0648        .19024        .55131E-06    .37977E-03
   4  Prefactor     .91822        .14830        .48805E-06    .44117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0109
  Index      = 1.55064
  Normalizat = 1.06483
  Prefactor  = 0.918224
 **********
 **   18 **HESSE 
 **********

 FCN=   6752.817     FROM HESSE     STATUS=OK            27 CALLS      241 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.011        21.408        .94359E-04   -1.4859    
   2  Index         1.5506        .67280        .10136E-01   -.76131    
   3  Normalizat    1.0648        .22059        .29764E-03   -.90889    
   4  Prefactor     .91822        .17209        .24655E-03   -.95507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96207e-10
Minuit parameter uncertainties:
  1  21.417
  2  0.67674
  3  0.220778
  4  0.172193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998000': 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) = 6752.81696602
delta logL = 0.666513046556

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.801e+01  2.142e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.551e+00  6.767e-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:  9.182e-01  1.722e-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.065e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.05
Ra Dec: 57.153 -16.165
Photon Index (Free Index): 1.55 +/- 0.68
Photon Flux (Free Index): 1.01e-08 +/- 1.46e-08
Energy Flux (Free Index): 2.71e-05 +/- 4.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/998000/cmap_HighResolution_613872001_614131201_4FGL_J0348.6-1609_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.75e-08', energy_flux2='2.71e-05', photon_flux_error='2.56e-08', dlogl='6.67e-01', energy_flux='9.37e-06', photon_flux2='1.01e-08', job_status='DONE', time_completed='2021-08-19 14:15:47.362760', photon_index_error2='0.68', photon_index2='1.55', ts='4.72', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='4.30e-05', EG='1.05', time_epoch_completed='1629407747.36', return_code='0', job_id='998000', GAL2='0.92', EG2='1.06', return_code2='0', energy_flux_error='8.73e-06', photon_flux_error2='1.46e-08', ts2='6.05', photon_index='2.37' WHERE bin_id='1445' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:15:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 998000: <4FGL_J0348.6-1609_daily_bin1445> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1445> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 19 14:00:31 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 14:00: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 14:00:33 2021
Terminated at Thu Aug 19 14:15:49 2021
Results reported at Thu Aug 19 14:15:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1445 57.1532 -16.1654 613872001 614131201 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 :                                   859.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

