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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1086
RA = 57.1532, Dec = -16.1654
tmin = 520819201, tmax = 521078401
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='996124', job_status='RUN', time_executed='2021-08-19 13:56:40.612730', time_epoch_executed='1629406600.61' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996124

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996124/ft1_4FGL_J0348.6-1609_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996124/ft2_4FGL_J0348.6-1609_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996124/ft1_4FGL_J0348.6-1609_daily_bin1086.fits outfile=/scratch/kocevski/996124/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1086.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=520819201.0 tmax=521078401.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.30
user 3.29
sys 1.00

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996124/ft1_filtered_4FGL_J0348.6-1609_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/996124/ft2_4FGL_J0348.6-1609_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/996124/ltcube_520819201_521078401_4FGL_J0348.6-1609_daily_bin1086.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/996124/ft2_4FGL_J0348.6-1609_daily_bin1086.fits
.....................!
real 13.48
user 12.18
sys 1.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996124/ft1_filtered_4FGL_J0348.6-1609_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/996124/ft2_4FGL_J0348.6-1609_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/996124/ltcube_520819201_521078401_4FGL_J0348.6-1609_daily_bin1086.fits outfile=/scratch/kocevski/996124/expmap_520819201_521078401_4FGL_J0348.6-1609_daily_bin1086.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/996124/ltcube_520819201_521078401_4FGL_J0348.6-1609_daily_bin1086.fits
.....................!
real 192.59
user 186.17
sys 6.06

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/996124/ft1_filtered_4FGL_J0348.6-1609_daily_bin1086.fits scfile=/scratch/kocevski/996124/ft2_4FGL_J0348.6-1609_daily_bin1086.fits outfile=/scratch/kocevski/996124/cmap_520819201_521078401_4FGL_J0348.6-1609_daily_bin1086.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.36
user 0.36
sys 0.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996124/ft1_filtered_4FGL_J0348.6-1609_daily_bin1086.fits scfile=/scratch/kocevski/996124/ft2_4FGL_J0348.6-1609_daily_bin1086.fits outfile=/scratch/kocevski/996124/cmap_HighResolution_520819201_521078401_4FGL_J0348.6-1609_daily_bin1086.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.35
user 0.38
sys 0.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996124/ft1_filtered_4FGL_J0348.6-1609_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/996124/ft2_4FGL_J0348.6-1609_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996124/Model_4FGL_J0348.6-1609_daily_bin1086.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/996124/ft1_filtered_4FGL_J0348.6-1609_daily_bin1086.fits.....................!
real 148.40
user 145.80
sys 2.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.198       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0020       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20842E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1228       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0115       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .63819       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.314       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5071       1.0000         .10000E-03   10000.    
    17 'norm      '    32.471       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8002       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22714       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21547E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1110       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98248       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=   6354.913     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     3193 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.211        57.289        .16325E-04    .97250E-06
   2  Prefactor     .10000E-03    4.9607        .40584E-06** at limit **
   3  Prefactor     6.0039        5.5185        .15929E-06   -.29809E-03
   4  Prefactor     .10000E-03    88.933       -.71681E-04** at limit **
   5  Prefactor     .10000E-03    4.2503       -.19979E-06** at limit **
   6  Prefactor     4.0780        17.915        .71064E-05    .32731E-05
   7  Prefactor     .10000E-03    4.6458       -.75894E-06** at limit **
   8  Prefactor     .10000E-03    39.188       -.27536E-04** at limit **
   9  Prefactor     .10000E-03    .58784        .64425E-08** at limit **
  10  Prefactor     .10000E-03    2.3077       -.83175E-07** at limit **
  11  Prefactor     .10000E-03    1.3296        .57072E-07** at limit **
  12  norm          2.0116        1.0164       -.44499E-07   -.11084E-03
  13  Prefactor     .10000E-03    7.0939       -.18751E-06** at limit **
  14  norm          .63924        1.6437       -.84483E-06   -.16426E-02
  15  Prefactor     19.317        16.439       -.20165E-06    .62861E-04
  16  Prefactor     3.5071        3.0968        .21446E-06    .49959E-05
  17  norm          32.469        17.695       -.79656E-07   -.24446E-03
  18  Prefactor     .10000E-03    47.358        .34387E-04** at limit **
  19  Prefactor     8.8038        8.3691       -.80572E-05   -.56540E-04
  20  Prefactor     .22639        2.6505       -.12828E-05   -.22352E-03
  21  Prefactor     .10000E-03    66.507        .40695E-04** at limit **
  22  Normalizat    1.1107        .19475        .15230E-05   -.14499E-03
  23  Prefactor     .98265        .14294       -.29997E-06   -.15932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.2112
  Prefactor  = 0.0001
  Prefactor  = 6.00387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.07798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01161
  Prefactor  = 0.0001
  norm       = 0.639243
  Prefactor  = 19.317
  Prefactor  = 3.50712
  norm       = 32.4686
  Prefactor  = 0.0001
  Prefactor  = 8.80379
  Prefactor  = 0.226391
  Prefactor  = 0.000100003
  Normalizat = 1.11065
  Prefactor  = 0.982648
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.913     FROM HESSE     STATUS=OK           368 CALLS     3561 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.211        57.293        .63222E-04   -1.4439    
   2  Prefactor     .10000E-03    4.9648        .17339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0039        5.5134        .16390E-03   -1.5218    
   4  Prefactor     .10000E-03    88.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3990        .31952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0780        17.910        .19853E-03   -1.5304    
   7  Prefactor     .10000E-03    4.6689        .16779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .58997        .59627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3546        .11812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.3411        .89699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0116        1.0179        .29189E-04   -1.5424    
  13  Prefactor     .10000E-03    7.0977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .63924        1.6244        .14691E-03   -1.5548    
  15  Prefactor     19.317        16.439        .91137E-04   -1.4829    
  16  Prefactor     3.5071        3.0449        .12044E-03   -1.5333    
  17  norm          32.469        17.691        .70318E-04   -1.4568    
  18  Prefactor     .10000E-03    47.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.8038        8.4022        .13512E-03   -1.5114    
  20  Prefactor     .22639        6.9415        .24792E-02   -1.5613    
  21  Prefactor     .10000E-03    67.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1107        .22884        .26652E-03   -.89411    
  23  Prefactor     .98265        .16860        .10959E-02   -.93310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6133e-08
Minuit parameter uncertainties:
  1  57.3713
  2  2.05405e-05
  3  5.5139
  4  5.28688e-05
  5  8.31654e-05
  6  17.1006
  7  3.04752e-06
  8  3.01096e-05
  9  1.51518e-07
  10  4.14911e-06
  11  2.21386e-07
  12  1.01794
  13  9.14954e-06
  14  1.62451
  15  16.4429
  16  3.04499
  17  17.6935
  18  0.000256174
  19  8.40329
  20  2.50695
  21  0.00086246
  22  0.229041
  23  0.168688
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  9.150e-06  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.826e-01  1.687e-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.111e+00  2.290e-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: 5.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996124/likelihoodResults_520819201_521078401_4FGL_J0348.6-1609_daily_bin1086.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) = 6354.91333242
delta logL = -0.000669266455589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6354.91266325
delta logL = -9.36679498409e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3514       1.0000          .0000       10.000    
     3 'Normalizat'    1.1108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98257       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=   6354.913     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      256 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.305        .18142E-01** at limit **
   2  Index         1.6771        7.2563        .50000        .33112E-06
   3  Normalizat    1.1107        .93912E-02    .26651E-03    .21336E-03
   4  Prefactor     .98265        .73539E-02    .21918E-03    .26127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.67709
  Normalizat = 1.11065
  Prefactor  = 0.982649
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.913     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    273.51        .24308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6771        7.6896        .50000       -.72693    
   3  Normalizat    1.1107        .26189E-01    .53303E-04   -.89410    
   4  Prefactor     .98265        .20507E-01    .43836E-04   -.93310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.16373e-09
Minuit parameter uncertainties:
  1  0.000222257
  2  855.685
  3  0.0261889
  4  0.0205075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996124': 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) = 6354.91266123
delta logL = 1.92464358406e-06

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  2.223e-04  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.677e+00  8.557e+02  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.826e-01  2.051e-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:  1.111e+00  2.619e-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/996124/cmap_HighResolution_520819201_521078401_4FGL_J0348.6-1609_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2021-08-19 14:09:40.199516', job_id='996124', GAL2='0.98', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629407380.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1086' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:09:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 996124: <4FGL_J0348.6-1609_daily_bin1086> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1086 57.1532 -16.1654 520819201 521078401 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 :                                   788.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            861 sec.

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

