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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1446
RA = 57.1532, Dec = -16.1654
tmin = 614131201, tmax = 614390401
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='998002', job_status='RUN', time_executed='2021-08-19 14:03:22.728625', time_epoch_executed='1629407002.73' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998002

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998002/ft1_4FGL_J0348.6-1609_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998002/ft2_4FGL_J0348.6-1609_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998002/ft1_4FGL_J0348.6-1609_daily_bin1446.fits outfile=/scratch/kocevski/998002/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1446.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=614131201.0 tmax=614390401.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.63
user 4.40
sys 4.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998002/ft2_4FGL_J0348.6-1609_daily_bin1446.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/998002/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1446.fits evtable="EVENTS" outfile="/scratch/kocevski/998002/ft1_filtered_4FGL_J0348.6-1609_daily_bin1446.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 4.97
user 0.32
sys 4.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998002/ft1_filtered_4FGL_J0348.6-1609_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/998002/ft2_4FGL_J0348.6-1609_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/998002/ltcube_614131201_614390401_4FGL_J0348.6-1609_daily_bin1446.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/998002/ft2_4FGL_J0348.6-1609_daily_bin1446.fits
.....................!
real 16.31
user 11.34
sys 4.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998002/ft1_filtered_4FGL_J0348.6-1609_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/998002/ft2_4FGL_J0348.6-1609_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/998002/ltcube_614131201_614390401_4FGL_J0348.6-1609_daily_bin1446.fits outfile=/scratch/kocevski/998002/expmap_614131201_614390401_4FGL_J0348.6-1609_daily_bin1446.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/998002/ltcube_614131201_614390401_4FGL_J0348.6-1609_daily_bin1446.fits
.....................!
real 195.16
user 185.17
sys 9.62

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/998002/ft1_filtered_4FGL_J0348.6-1609_daily_bin1446.fits scfile=/scratch/kocevski/998002/ft2_4FGL_J0348.6-1609_daily_bin1446.fits outfile=/scratch/kocevski/998002/cmap_614131201_614390401_4FGL_J0348.6-1609_daily_bin1446.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 4.41
user 0.38
sys 4.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998002/ft1_filtered_4FGL_J0348.6-1609_daily_bin1446.fits scfile=/scratch/kocevski/998002/ft2_4FGL_J0348.6-1609_daily_bin1446.fits outfile=/scratch/kocevski/998002/cmap_HighResolution_614131201_614390401_4FGL_J0348.6-1609_daily_bin1446.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 4.44
user 0.38
sys 4.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998002/ft1_filtered_4FGL_J0348.6-1609_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/998002/ft2_4FGL_J0348.6-1609_daily_bin1446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998002/Model_4FGL_J0348.6-1609_daily_bin1446.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/998002/ft1_filtered_4FGL_J0348.6-1609_daily_bin1446.fits.....................!
real 120.38
user 113.70
sys 6.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.470       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23511       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17548E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .65737E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.180       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.323       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9927       1.0000         .10000E-03   10000.    
    17 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5039       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28321E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0850       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96238       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=   4856.688     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2305 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.209        161.22       -.19383E-04   -.33394E-04
   2  Prefactor     .10002E-03    34.862        .61597E-05** at limit **
   3  Prefactor     .21368        22.390        .10523E-04   -.11996E-03
   4  Prefactor     .10000E-03    134.01       -.35305E-05** at limit **
   5  Prefactor     .10000E-03    2.2614        .25752E-06** at limit **
   6  Prefactor     .10000E-03    21.644        .13245E-05** at limit **
   7  Prefactor     .10000E-03    11.784        .70097E-06** at limit **
   8  Prefactor     .10000E-03    36.294        .14835E-06** at limit **
   9  Prefactor     .10000E-03    2.1508        .10950E-06** at limit **
  10  Prefactor     .10000E-03    2.5037        .17869E-06** at limit **
  11  Prefactor     .10000E-03    3.3333        .25852E-05** at limit **
  12  norm          20.180        3.1310        .41899E-07   -.76980E-03
  13  Prefactor     22.364        34.331        .20560E-05   -.33279E-04
  14  norm          .10000E-03    .74841        .14721E-06** at limit **
  15  Prefactor     .10000E-03    13.042       -.58856E-06** at limit **
  16  Prefactor     8.9924        4.0228        .44093E-07   -.25622E-03
  17  norm          .10000E-03    10.263        .30579E-06** at limit **
  18  Prefactor     17.999        34.093       -.32781E-06   -.64469E-04
  19  Prefactor     4.5007        8.0200        .28772E-06   -.28572E-03
  20  Prefactor     .10000E-03    1.4603        .82489E-07** at limit **
  21  Prefactor     .10000E-03    93.904        .22202E-04** at limit **
  22  Normalizat    1.0855        .24908       -.86269E-05   -.38969E-03
  23  Prefactor     .96229        .17543        .38888E-05   -.94116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.2089
  Prefactor  = 0.000100016
  Prefactor  = 0.213684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1796
  Prefactor  = 22.3641
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.99244
  norm       = 0.0001
  Prefactor  = 17.9991
  Prefactor  = 4.50067
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.08553
  Prefactor  = 0.962291
 **********
 **   18 **HESSE 
 **********

 FCN=   4856.688     FROM HESSE     STATUS=OK           368 CALLS     2673 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.209        166.36        .38218E-03   -1.4664    
   2  Prefactor     .10002E-03    36.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .21368        102.75        .39556E-02   -1.5616    
   4  Prefactor     .10000E-03    133.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2720        .10238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6558        .19292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5151        .10761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.758        .21767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.180        3.1199        .46263E-04   -1.4809    
  13  Prefactor     22.364        34.400        .84777E-04   -1.4762    
  14  norm          .10000E-03    .76328        .58798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9924        4.0271        .89218E-04   -1.5108    
  17  norm          .10000E-03    10.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.999        34.173        .94341E-04   -1.4859    
  19  Prefactor     4.5007        8.1605        .94856E-03   -1.5284    
  20  Prefactor     .10000E-03    1.4647        .82247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    107.71        .46680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0855        .26846        .28457E-03   -.90218    
  23  Prefactor     .96229        .18546        .22776E-03   -.93997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28252e-09
Minuit parameter uncertainties:
  1  135.121
  2  0.00150551
  3  9.38525
  4  3.07062e-05
  5  9.2074e-06
  6  0.000166291
  7  3.27317e-05
  8  1.03288e-05
  9  0.000243861
  10  1.21455e-05
  11  8.28102e-05
  12  3.11997
  13  34.4302
  14  8.15921e-06
  15  2.50953e-06
  16  4.02722
  17  3.12386e-05
  18  34.21
  19  8.16248
  20  6.7031e-06
  21  0.000611525
  22  0.268797
  23  0.185581
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  2.236e+01  3.443e+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.623e-01  1.856e-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.086e+00  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/998002/likelihoodResults_614131201_614390401_4FGL_J0348.6-1609_daily_bin1446.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) = 4856.66795222
delta logL = 0.0197104128411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4856.65714964
delta logL = 0.0305129917415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.195       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7467       1.0000          .0000       10.000    
     3 'Normalizat'    1.0717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96977       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=   4856.657     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      279 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.200        64.642        .99524E-04    .32259E-03
   2  Index         2.7461        2.5856        .78833E-02    .15523E-03
   3  Normalizat    1.0716        .25778        .28617E-03   -.57387E-03
   4  Prefactor     .96980        .19327        .22701E-03   -.59046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2001
  Index      = 2.74611
  Normalizat = 1.07163
  Prefactor  = 0.969805
 **********
 **   18 **HESSE 
 **********

 FCN=   4856.657     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.200        44.602        .19905E-04   -1.4903    
   2  Index         2.7461        1.8410        .31533E-03   -.46764    
   3  Normalizat    1.0716        .25089        .57235E-04   -.90668    
   4  Prefactor     .96980        .18807        .45402E-04   -.93743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47594e-09
Minuit parameter uncertainties:
  1  44.694
  2  1.89765
  3  0.251166
  4  0.188198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998002': 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) = 4856.65714948
delta logL = 0.0305131478863

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.620e+01  4.469e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.746e+00  1.898e+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.698e-01  1.882e-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.072e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
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/998002/cmap_HighResolution_614131201_614390401_4FGL_J0348.6-1609_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-08-19 14:14:39.141623', job_id='998002', GAL2='0.97', fit_tolerance='1e-08', EG2='1.07', EG='1.09', time_epoch_completed='1629407679.14', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.05e-02', ts2='0.60', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1446' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:14:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 998002: <4FGL_J0348.6-1609_daily_bin1446> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1446> 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) <bullet0083>, 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:14:40 2021
Results reported at Thu Aug 19 14:14:40 2021

Your job looked like:

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

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

