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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin918
RA = 57.1417, Dec = -27.8303
tmin = 477273601, tmax = 477532801
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='983765', job_status='RUN', time_executed='2021-08-19 13:21:47.685998', time_epoch_executed='1629404507.69' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='918'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983765

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983765/ft1_4FGL_J0348.5-2749_daily_bin918.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983765/ft2_4FGL_J0348.5-2749_daily_bin918.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983765/ft1_4FGL_J0348.5-2749_daily_bin918.fits outfile=/scratch/kocevski/983765/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin918.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=477273601.0 tmax=477532801.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.01
user 3.34
sys 3.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/983765/ft2_4FGL_J0348.5-2749_daily_bin918.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/983765/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin918.fits evtable="EVENTS" outfile="/scratch/kocevski/983765/ft1_filtered_4FGL_J0348.5-2749_daily_bin918.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 3.93
user 0.32
sys 3.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983765/ft1_filtered_4FGL_J0348.5-2749_daily_bin918.fits" evtable="EVENTS" scfile=/scratch/kocevski/983765/ft2_4FGL_J0348.5-2749_daily_bin918.fits sctable="SC_DATA" outfile=/scratch/kocevski/983765/ltcube_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.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/983765/ft2_4FGL_J0348.5-2749_daily_bin918.fits
.....................!
real 15.91
user 11.64
sys 4.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983765/ft1_filtered_4FGL_J0348.5-2749_daily_bin918.fits evtable="EVENTS" scfile=/scratch/kocevski/983765/ft2_4FGL_J0348.5-2749_daily_bin918.fits sctable="SC_DATA" expcube=/scratch/kocevski/983765/ltcube_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.fits outfile=/scratch/kocevski/983765/expmap_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.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/983765/ltcube_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.fits
.....................!
real 196.23
user 185.51
sys 10.19

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/983765/ft1_filtered_4FGL_J0348.5-2749_daily_bin918.fits scfile=/scratch/kocevski/983765/ft2_4FGL_J0348.5-2749_daily_bin918.fits outfile=/scratch/kocevski/983765/cmap_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.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 4.14
user 0.36
sys 3.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983765/ft1_filtered_4FGL_J0348.5-2749_daily_bin918.fits scfile=/scratch/kocevski/983765/ft2_4FGL_J0348.5-2749_daily_bin918.fits outfile=/scratch/kocevski/983765/cmap_HighResolution_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.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 3.94
user 0.37
sys 3.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983765/ft1_filtered_4FGL_J0348.5-2749_daily_bin918.fits evtable="EVENTS" scfile=/scratch/kocevski/983765/ft2_4FGL_J0348.5-2749_daily_bin918.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983765/Model_4FGL_J0348.5-2749_daily_bin918.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/983765/ft1_filtered_4FGL_J0348.5-2749_daily_bin918.fits.....................!
real 117.48
user 111.27
sys 5.79

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/983765/ft1_filtered_4FGL_J0348.5-2749_daily_bin918.fits', '/scratch/kocevski/983765/ft2_4FGL_J0348.5-2749_daily_bin918.fits', expMap='/scratch/kocevski/983765/expmap_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.fits', expCube='/scratch/kocevski/983765/ltcube_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/983765/Model_4FGL_J0348.5-2749_daily_bin918.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/983765/ft1_filtered_4FGL_J0348.5-2749_daily_bin918.fits
Spacecraft file(s): /scratch/kocevski/983765/ft2_4FGL_J0348.5-2749_daily_bin918.fits
Exposure map: /scratch/kocevski/983765/expmap_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.fits
Exposure cube: /scratch/kocevski/983765/ltcube_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/983765/Model_4FGL_J0348.5-2749_daily_bin918.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) = 4909.55306465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6699       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1326       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24552E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.697       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1290       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3623       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5865       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.736       1.0000         .10000E-03   10000.    
    15 'norm      '    .32119       1.0000         .10000E-03   10000.    
    16 'Prefactor '    115.37       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16075E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35040E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.047       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.526       1.0000         .10000E-03   10000.    
    21 'norm      '    .56774E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    6.6407       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.170       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95220       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90324       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.

 FCN=   4909.545     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3160 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6711        11.406       -.73605E-06   -.58656E-05
   2  norm          3.1326        3.0261       -.56796E-07   -.31373E-04
   3  Prefactor     .10002E-03    285.24       -.36052E-04** at limit **
   4  Prefactor     .10001E-03    28.174        .21154E-04** at limit **
   5  Prefactor     67.704        50.043        .22982E-05   -.45306E-04
   6  norm          2.7943        2.0614        .17641E-07    .19795E-03
   7  Prefactor     .10000E-03    95.107       -.20884E-05** at limit **
   8  Prefactor     55.952        53.554        .98312E-05   -.22874E-03
   9  Prefactor     1.1294        2.7290       -.39794E-06   -.10160E-02
  10  Prefactor     .10000E-03    1.3841        .95993E-09** at limit **
  11  Prefactor     5.3640        3.9207       -.44329E-07   -.26687E-03
  12  Prefactor     1.5876        19.578       -.45246E-05   -.20342E-03
  13  norm          .10000E-03    .32495        .93172E-08** at limit **
  14  Prefactor     31.666        36.618       -.15289E-04   -.23415E-03
  15  norm          .32313        1.7246       -.12892E-06   -.12475E-02
  16  Prefactor     115.38        104.46        .92248E-05   -.48573E-04
  17  Prefactor     .10001E-03    140.81        .49408E-04** at limit **
  18  Prefactor     .10003E-03    2.0388        .94927E-06** at limit **
  19  norm          11.049        10.733       -.14570E-05    .77462E-04
  20  Prefactor     11.530        17.531        .30296E-05   -.14375E-03
  21  norm          .56746E-01    .17644       -.47747E-06   -.45196E-02
  22  norm          6.6412        6.5817        .45978E-05   -.28145E-03
  23  Prefactor     13.171        7.4899       -.30015E-05   -.23402E-03
  24  Prefactor     .10001E-03    28.481       -.20972E-04** at limit **
  25  Normalizat    .95210        .19140        .79848E-06   -.29956E-03
  26  Prefactor     .90319        .18947       -.23296E-06   -.28746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.67105
  norm       = 3.13262
  Prefactor  = 0.000100016
  Prefactor  = 0.00010001
  Prefactor  = 67.7037
  norm       = 2.79429
  Prefactor  = 0.0001
  Prefactor  = 55.9523
  Prefactor  = 1.12941
  Prefactor  = 0.0001
  Prefactor  = 5.36401
  Prefactor  = 1.58763
  norm       = 0.0001
  Prefactor  = 31.6656
  norm       = 0.323129
  Prefactor  = 115.381
  Prefactor  = 0.000100007
  Prefactor  = 0.00010003
  norm       = 11.0486
  Prefactor  = 11.5296
  norm       = 0.0567455
  norm       = 6.64122
  Prefactor  = 13.171
  Prefactor  = 0.000100007
  Normalizat = 0.952103
  Prefactor  = 0.903185
 **********
 **   18 **HESSE 
 **********

 FCN=   4909.545     FROM HESSE     STATUS=OK           460 CALLS     3620 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6711        11.402        .14480E-03   -1.5154    
   2  norm          3.1326        3.0259        .11637E-03   -1.5354    
   3  Prefactor     .10002E-03    284.99        .20036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    28.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     67.704        50.124        .48782E-04   -1.4060    
   6  norm          2.7943        2.0650        .84176E-04   -1.5374    
   7  Prefactor     .10000E-03    96.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     55.952        53.466        .53631E-04   -1.4211    
   9  Prefactor     1.1294        2.5462        .15420E-03   -1.5495    
  10  Prefactor     .10000E-03    1.3894        .80452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3640        3.8857        .11101E-03   -1.5245    
  12  Prefactor     1.5876        19.675        .33701E-03   -1.5456    
  13  norm          .10000E-03    .55005        .77439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.666        36.939        .71126E-04   -1.4582    
  15  norm          .32313        2.2953        .14403E-02   -1.5594    
  16  Prefactor     115.38        104.62        .37458E-04   -1.3556    
  17  Prefactor     .10001E-03    147.69        .40831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    22.522        .17485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.049        10.727        .12054E-03   -1.5043    
  20  Prefactor     11.530        17.487        .11800E-03   -1.5029    
  21  norm          .56746E-01    .17265        .48853E-04   -1.5660    
  22  norm          6.6412        6.5412        .15572E-03   -1.5192    
  23  Prefactor     13.171        7.3921        .11038E-03   -1.4982    
  24  Prefactor     .10001E-03    28.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .95210        .21868        .24116E-03   -.94653    
  26  Prefactor     .90319        .21747        .25418E-03   -.96030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89455e-09
Minuit parameter uncertainties:
  1  11.4056
  2  3.02603
  3  0.00434143
  4  0.00104104
  5  50.1555
  6  2.06508
  7  7.29882e-05
  8  53.5121
  9  2.5464
  10  1.4382e-06
  11  3.88584
  12  11.1821
  13  7.43073e-06
  14  36.9659
  15  1.72226
  16  104.79
  17  0.00198349
  18  0.0016425
  19  10.7293
  20  17.4946
  21  0.172654
  22  6.54188
  23  7.39259
  24  0.000915632
  25  0.218885
  26  0.217678
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  7.431e-06  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:  9.032e-01  2.177e-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:  9.521e-01  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.142 -27.830
Photon Flux Upper Limit: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983765/likelihoodResults_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.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) = 4909.55343198
delta logL = -0.00867466287946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4909.54475694
delta logL = 3.7724385038e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0979       1.0000          .0000       5.0000    
     3 'Normalizat'    .95211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90319       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.

 FCN=   4909.545     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      249 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8627        .77334E-03** at limit **
   2  alpha         2.2783        3.2924        .16738        .12158E-07
   3  Normalizat    .95210        .20528        .24116E-03   -.21380E-03
   4  Prefactor     .90319        .21241        .25418E-03   -.22479E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.27826
  Normalizat = 0.952103
  Prefactor  = 0.903186
 **********
 **   18 **HESSE 
 **********

 FCN=   4909.545     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .57402        .15467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2783        3.3504        .66952E-02   -.88812E-01
   3  Normalizat    .95210        .20543        .48232E-04   -.94653    
   4  Prefactor     .90319        .21257        .50836E-04   -.96030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06326e-11
Minuit parameter uncertainties:
  1  3.07042e-07
  2  71.7626
  3  0.205601
  4  0.212763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983765': 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) = 4909.54475366
delta logL = 3.65421874449e-06

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  3.070e-07  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.278e+00  7.176e+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:  9.032e-01  2.128e-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:  9.521e-01  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 57.142 -27.830

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/983765/cmap_HighResolution_477273601_477532801_4FGL_J0348.5-2749_daily_bin918.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-08-19 13:33:57.006933', job_id='983765', GAL2='0.90', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1629405237.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='918' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:33:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 983765: <4FGL_J0348.5-2749_daily_bin918> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin918> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:20:36 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:20:37 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:20:37 2021
Terminated at Thu Aug 19 13:33:58 2021
Results reported at Thu Aug 19 13:33:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin918 57.1417 -27.8303 477273601 477532801 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 :                                   779.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

