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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1618
RA = 57.1417, Dec = -27.8303
tmin = 658713601, tmax = 658972801
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='177878', job_status='RUN', time_executed='2021-12-07 14:17:57.593831', time_epoch_executed='1638915477.59' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/177878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/177878/ft1_4FGL_J0348.5-2749_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/177878/ft1_4FGL_J0348.5-2749_daily_bin1618.fits outfile=/scratch/kocevski/177878/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1618.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=658713601.0 tmax=658972801.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 3.02
user 2.81
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.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/177878/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1618.fits evtable="EVENTS" outfile="/scratch/kocevski/177878/ft1_filtered_4FGL_J0348.5-2749_daily_bin1618.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 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/177878/ft1_filtered_4FGL_J0348.5-2749_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/177878/ltcube_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.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/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.fits
.....................!
real 14.11
user 13.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/177878/ft1_filtered_4FGL_J0348.5-2749_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/177878/ltcube_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.fits outfile=/scratch/kocevski/177878/expmap_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.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/177878/ltcube_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.fits
.....................!
real 191.05
user 185.64
sys 5.00

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 160 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.5-2749 @ 57.1417 -27.8303

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/177878/ft1_filtered_4FGL_J0348.5-2749_daily_bin1618.fits scfile=/scratch/kocevski/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.fits outfile=/scratch/kocevski/177878/cmap_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.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.1417 yref=-27.8303 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 0.78
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/177878/ft1_filtered_4FGL_J0348.5-2749_daily_bin1618.fits scfile=/scratch/kocevski/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.fits outfile=/scratch/kocevski/177878/cmap_HighResolution_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.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.1417 yref=-27.8303 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 0.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/177878/ft1_filtered_4FGL_J0348.5-2749_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/177878/Model_4FGL_J0348.5-2749_daily_bin1618.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/177878/ft1_filtered_4FGL_J0348.5-2749_daily_bin1618.fits.....................!
real 119.07
user 117.46
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/177878/ft1_filtered_4FGL_J0348.5-2749_daily_bin1618.fits', '/scratch/kocevski/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.fits', expMap='/scratch/kocevski/177878/expmap_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.fits', expCube='/scratch/kocevski/177878/ltcube_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/177878/Model_4FGL_J0348.5-2749_daily_bin1618.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0348.5-2749'

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.231e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  6.312e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/177878/ft1_filtered_4FGL_J0348.5-2749_daily_bin1618.fits
Spacecraft file(s): /scratch/kocevski/177878/ft2_4FGL_J0348.5-2749_daily_bin1618.fits
Exposure map: /scratch/kocevski/177878/expmap_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.fits
Exposure cube: /scratch/kocevski/177878/ltcube_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/177878/Model_4FGL_J0348.5-2749_daily_bin1618.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) = 5514.40529328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34020E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9421       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13713E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.771       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1147       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    84.160       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.131       1.0000         .10000E-03   10000.    
    13 'norm      '    7.5359       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4655       1.0000         .10000E-03   10000.    
    16 'Prefactor '    222.25       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.388       1.0000         .10000E-03   10000.    
    19 'norm      '    .11573E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.469       1.0000         .10000E-03   10000.    
    21 'norm      '    .57484       1.0000         .10000E-03   10000.    
    22 'norm      '    .15726       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0247       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0345       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5514.395     FROM MIGRAD    STATUS=FAILED      1131 CALLS     3714 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61572E-02    14.412        .79480E-01    .63823E-04
   2  norm          3.9426        3.2521        .11805E-03   -.11913E-03
   3  Prefactor     .10000E-03    293.16        .20540E-02** at limit **
   4  Prefactor     42.721        33.254        .61298E-04   -.12990E-03
   5  Prefactor     .10000E-03    17.612        .18142E-02** at limit **
   6  norm          4.1155        3.2314        .11354E-03   -.49063E-04
   7  Prefactor     .10000E-03    43.667        .18142E-02** at limit **
   8  Prefactor     84.166        71.349        .21894E-03   -.12878E-04
   9  Prefactor     2.3032        3.5119        .16067E-03    .16154E-03
  10  Prefactor     .10000E-03    1.4379        .86876E-03** at limit **
  11  Prefactor     6.6660        4.6980        .12916E-03   -.23669E-03
  12  Prefactor     11.130        12.922        .12008E-03   -.78389E-04
  13  norm          7.5367        1.6942        .43541E-04   -.31541E-03
  14  Prefactor     .10000E-03    35.326        .18142E-02** at limit **
  15  norm          2.4655        2.1263        .93586E-04   -.65526E-03
  16  Prefactor     222.31        148.96        .13567E-03    .51551E-04
  17  Prefactor     .10000E-03    97.703        .18142E-02** at limit **
  18  Prefactor     15.392        6.8024        .10210E-03    .11268E-03
  19  norm          .10001E-03    26.924        .36285E-03** at limit **
  20  Prefactor     13.501        28.723        .10914E-03    .58438E-04
  21  norm          .57384        .39209        .34150E-04   -.59924E-03
  22  norm          .26314        73.478        .38455E-02    .10734E-02
  23  Prefactor     .10000E-03    14.763        .36285E-03** at limit **
  24  Prefactor     .10000E-03    10.094        .18142E-02** at limit **
  25  Normalizat    1.0246        .25701        .28384E-03   -.39693E-03
  26  Prefactor     1.0343        .25678        .29385E-03   -.13831E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5514.395     FROM SIMPLEX   STATUS=PROGRESS    1169 CALLS     4883 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57880E-02    14.412        .31067E-04   -1.5723    
   2  norm          3.9426        3.2521        .53348E-06   -1.5311    
   3  Prefactor     .10000E-03    293.16        .18620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.721        33.254        .47172E-06   -1.4400    
   5  Prefactor     .10000E-03    17.612        .46226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1155        3.2314        .49656E-06   -1.5302    
   7  Prefactor     .10000E-03    43.667        .73530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     84.166        71.349        .45037E-06   -1.3871    
   9  Prefactor     2.3032        3.5119        .50064E-06   -1.5404    
  10  Prefactor     .10000E-03    1.4379        .16590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6660        4.6980        .49330E-06   -1.5192    
  12  Prefactor     11.130        12.922        .48650E-06   -1.5041    
  13  norm          7.5367        1.6942        .49171E-06   -1.5159    
  14  Prefactor     .10000E-03    35.326        .73662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4655        2.1263        .50399E-06   -1.5394    
  16  Prefactor     222.31        148.96        .46465E-06   -1.2715    
  17  Prefactor     .10000E-03    97.703        .83131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.392        6.8024        .49088E-06   -1.4923    
  19  norm          .10001E-03    26.924        .42781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.501        28.723        .53729E-06   -1.4973    
  21  norm          .57384        .39209        .50273E-06   -1.5556    
  22  norm          .26314        73.478        .11436E-05   -1.5605    
  23  Prefactor     .10000E-03    14.763        .27762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.094        .20666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0246        .25701        .29996E-06   -.92211    
  26  Prefactor     1.0343        .25678        .29763E-06   -.91595    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5514.395     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     5328 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57902E-02    13.718        .82188E-01   -.43235E-04
   2  norm          3.9426        3.2518        .47219E-05    .11557E-04
   3  Prefactor     .10000E-03    293.16        .41080E-03** at limit **
   4  Prefactor     42.722        33.251        .12260E-04    .74187E-06
   5  Prefactor     .10000E-03    17.613        .36285E-03** at limit **
   6  norm          4.1155        3.2310        .45416E-05   -.10013E-05
   7  Prefactor     .10000E-03    43.670        .36285E-03** at limit **
   8  Prefactor     84.166        71.346        .87575E-05    .15578E-06
   9  Prefactor     2.3032        3.5111        .64266E-05    .35380E-06
  10  Prefactor     .10000E-03    1.4379        .17375E-03** at limit **
  11  Prefactor     6.6660        4.6977        .51663E-05    .13203E-05
  12  Prefactor     11.130        12.922        .48033E-05   -.18935E-05
  13  norm          7.5367        1.6940        .87082E-05    .52221E-05
  14  Prefactor     .10000E-03    35.326        .36285E-03** at limit **
  15  norm          2.4655        2.1260        .37434E-05    .12148E-05
  16  Prefactor     222.30        148.91        .27134E-04   -.83795E-07
  17  Prefactor     .10000E-03    97.712        .36285E-03** at limit **
  18  Prefactor     15.392        6.8010        .40841E-05    .11135E-05
  19  norm          .10000E-03    26.925        .72569E-04** at limit **
  20  Prefactor     13.501        28.721        .43656E-05    .52084E-06
  21  norm          .57384        .38672        .13660E-05   -.73565E-04
  22  norm          .26319        72.499        .76909E-03   -.24390E-05
  23  Prefactor     .10000E-03    14.763        .72569E-04** at limit **
  24  Prefactor     .10000E-03    10.095        .36285E-03** at limit **
  25  Normalizat    1.0246        .25700        .56768E-04    .10334E-04
  26  Prefactor     1.0343        .25698        .11754E-04    .96721E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00579017
  norm       = 3.94264
  Prefactor  = 0.0001
  Prefactor  = 42.7216
  Prefactor  = 0.0001
  norm       = 4.11551
  Prefactor  = 0.0001
  Prefactor  = 84.1664
  Prefactor  = 2.3032
  Prefactor  = 0.0001
  Prefactor  = 6.66599
  Prefactor  = 11.1304
  norm       = 7.53666
  Prefactor  = 0.0001
  norm       = 2.46553
  Prefactor  = 222.304
  Prefactor  = 0.0001
  Prefactor  = 15.3918
  norm       = 0.0001
  Prefactor  = 13.5013
  norm       = 0.573839
  norm       = 0.263192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0246
  Prefactor  = 1.03429
 **********
 **   18 **HESSE 
 **********

 FCN=   5514.395     FROM HESSE     STATUS=OK           442 CALLS     5770 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57902E-02    13.863        .81542E-01   -1.5723    
   2  norm          3.9426        3.2518        .94437E-06   -1.5311    
   3  Prefactor     .10000E-03    293.16        .82160E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.722        33.258        .24519E-05   -1.4400    
   5  Prefactor     .10000E-03    17.613        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1155        3.2312        .90832E-06   -1.5302    
   7  Prefactor     .10000E-03    43.670        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     84.166        71.346        .87575E-05   -1.3871    
   9  Prefactor     2.3032        3.5119        .12853E-05   -1.5404    
  10  Prefactor     .10000E-03    1.4379        .34750E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6660        4.6978        .10333E-05   -1.5192    
  12  Prefactor     11.130        12.933        .96067E-06   -1.5041    
  13  norm          7.5367        1.6939        .17416E-05   -1.5159    
  14  Prefactor     .10000E-03    35.326        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4655        2.1266        .74868E-06   -1.5394    
  16  Prefactor     222.30        148.89        .54269E-05   -1.2715    
  17  Prefactor     .10000E-03    97.713        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.392        6.8000        .81681E-06   -1.4923    
  19  norm          .10000E-03    26.925        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.501        28.834        .87311E-06   -1.4973    
  21  norm          .57384        .38547        .37090E-06   -1.5556    
  22  norm          .26319        71.838        .30764E-04   -1.5605    
  23  Prefactor     .10000E-03    14.763        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.095        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0246        .25712        .11354E-04   -.92211    
  26  Prefactor     1.0343        .25698        .23508E-05   -.91595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22772e-11
Minuit parameter uncertainties:
  1  0.561856
  2  3.25194
  3  6.49955e-06
  4  33.2726
  5  1.10491e-06
  6  3.23138
  7  2.66318e-06
  8  71.419
  9  3.51223
  10  9.90001e-08
  11  4.69804
  12  12.9362
  13  1.69393
  14  1.02572e-06
  15  2.12665
  16  149.144
  17  5.06085e-06
  18  6.80037
  19  1.03071e-06
  20  28.864
  21  0.385468
  22  8.70537
  23  6.57204e-07
  24  1.51761e-06
  25  0.257431
  26  0.257285
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  7.537e+00  1.694e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  6.312e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.034e+00  2.573e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.025e+00  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 62.28
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.69e-07 +/- 6.04e-08
Energy Flux (Fixed Index): 1.27e-04 +/- 2.85e-05

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) = 5514.39416007
delta logL = 0.000975010469119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5514.39409571
delta logL = 0.00103936988216

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5476       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0781       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5514.394     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      192 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5476        1.8954        .36494E-02    .18271E-04
   2  alpha         2.0781        .22936        .13561        .25222E-04
   3  Normalizat    1.0265        .20767        .64125E-01    .11715E-04
   4  Prefactor     1.0330        .21430        .66467E-01    .81388E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.54756
  alpha      = 2.07814
  Normalizat = 1.02647
  Prefactor  = 1.03303
 **********
 **   18 **HESSE 
 **********

 FCN=   5514.394     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5476        1.7035        .43629E-04   -1.5158    
   2  alpha         2.0781        .21020        .58830E-03   -.16956    
   3  Normalizat    1.0265        .24750        .28363E-03   -.92149    
   4  Prefactor     1.0330        .25458        .29401E-03   -.91636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.164e-12
Minuit parameter uncertainties:
  1  1.7035
  2  0.210456
  3  0.24778
  4  0.254876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/177878': 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) = 5514.39409571
delta logL = 0.00103937017138

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  7.548e+00  1.704e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.078e+00  2.105e-01  0.000e+00  5.000e+00 ( 1.000e+00)
249         beta:  6.312e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.033e+00  2.549e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.026e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 61.78
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.08 +/- 0.21
Photon Flux (Free Index): 2.67e-07 +/- 7.21e-08
Energy Flux (Free Index): 1.28e-04 +/- 3.76e-05

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/177878/cmap_HighResolution_658713601_658972801_4FGL_J0348.5-2749_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-07', energy_flux2='1.28e-04', photon_flux_error='6.04e-08', dlogl='1.04e-03', energy_flux='1.27e-04', photon_flux2='2.67e-07', job_status='DONE', time_completed='2021-12-07 14:31:00.032237', photon_index_error2='0.21', photon_index2='2.08', ts='62.28', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='3.76e-05', EG='1.02', time_epoch_completed='1638916260.03', return_code='0', job_id='177878', GAL2='1.03', EG2='1.03', return_code2='0', energy_flux_error='2.85e-05', photon_flux_error2='7.21e-08', ts2='61.78', photon_index='2.09' WHERE bin_id='1618' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:31:00 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 177878: <4FGL_J0348.5-2749_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1618> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 14:15:19 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 14:16:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 14:16:26 2021
Terminated at Tue Dec  7 14:31:00 2021
Results reported at Tue Dec  7 14:31:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1618 57.1417 -27.8303 658713601 658972801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0348.5-2749 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   781.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            941 sec.

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

