/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 137 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 = 7477
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0348.5-2749_daily_bin4
RA = 57.1417, Dec = -27.8303
tmin = 240364801, tmax = 240624001
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='977653', job_status='RUN', time_executed='2021-08-19 13:03:06.138963', time_epoch_executed='1629403386.14' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977653/ft1_4FGL_J0348.5-2749_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977653/ft2_4FGL_J0348.5-2749_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977653/ft1_4FGL_J0348.5-2749_daily_bin4.fits outfile=/scratch/kocevski/977653/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin4.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=240364801.0 tmax=240624001.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 1.73
user 1.24
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/977653/ft2_4FGL_J0348.5-2749_daily_bin4.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/977653/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/977653/ft1_filtered_4FGL_J0348.5-2749_daily_bin4.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.81
user 0.34
sys 0.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977653/ft1_filtered_4FGL_J0348.5-2749_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/977653/ft2_4FGL_J0348.5-2749_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/977653/ltcube_240364801_240624001_4FGL_J0348.5-2749_daily_bin4.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/977653/ft2_4FGL_J0348.5-2749_daily_bin4.fits
.....................!
real 12.99
user 12.28
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977653/ft1_filtered_4FGL_J0348.5-2749_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/977653/ft2_4FGL_J0348.5-2749_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/977653/ltcube_240364801_240624001_4FGL_J0348.5-2749_daily_bin4.fits outfile=/scratch/kocevski/977653/expmap_240364801_240624001_4FGL_J0348.5-2749_daily_bin4.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/977653/ltcube_240364801_240624001_4FGL_J0348.5-2749_daily_bin4.fits
.....................!
real 192.15
user 186.71
sys 5.05

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/977653/ft1_filtered_4FGL_J0348.5-2749_daily_bin4.fits scfile=/scratch/kocevski/977653/ft2_4FGL_J0348.5-2749_daily_bin4.fits outfile=/scratch/kocevski/977653/cmap_240364801_240624001_4FGL_J0348.5-2749_daily_bin4.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.85
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/977653/ft1_filtered_4FGL_J0348.5-2749_daily_bin4.fits scfile=/scratch/kocevski/977653/ft2_4FGL_J0348.5-2749_daily_bin4.fits outfile=/scratch/kocevski/977653/cmap_HighResolution_240364801_240624001_4FGL_J0348.5-2749_daily_bin4.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.79
user 0.36
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/977653/ft1_filtered_4FGL_J0348.5-2749_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/977653/ft2_4FGL_J0348.5-2749_daily_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/977653/Model_4FGL_J0348.5-2749_daily_bin4.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/977653/ft1_filtered_4FGL_J0348.5-2749_daily_bin4.fits.....................!
real 137.96
user 136.05
sys 1.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12777E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9169       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13247E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.057       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6460       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4605       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.322       1.0000         .10000E-03   10000.    
    15 'norm      '    .35532       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.896       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.993       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .60573       1.0000         .10000E-03   10000.    
    22 'norm      '    23.817       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7524       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10172       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89739       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=   6394.461     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3143 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0526        .39662E-07** at limit **
   2  norm          1.2775        3.1583       -.76367E-06   -.10796E-02
   3  Prefactor     .10000E-03    118.33        .71706E-05** at limit **
   4  Prefactor     2.9235        11.376        .59172E-05   -.12481E-03
   5  Prefactor     .10000E-03    16.981       -.63197E-07** at limit **
   6  norm          3.6729        2.8346       -.89737E-07   -.17383E-03
   7  Prefactor     .10000E-03    46.686        .31570E-06** at limit **
   8  Prefactor     22.042        22.152       -.18969E-04   -.35653E-05
   9  Prefactor     .10000E-03    .60847        .56888E-07** at limit **
  10  Prefactor     8.6444        4.1660        .29749E-07   -.56178E-04
  11  Prefactor     .10000E-03    1.8744        .45473E-07** at limit **
  12  Prefactor     3.4448        10.334        .29100E-05   -.16336E-03
  13  norm          .10000E-03    .32562       -.11645E-06** at limit **
  14  Prefactor     11.322        17.673       -.46702E-06   -.99441E-05
  15  norm          .35506        1.0653       -.30494E-06   -.18204E-02
  16  Prefactor     33.005        113.80        .37270E-04   -.27039E-05
  17  Prefactor     13.994        14.592       -.49116E-06    .13115E-06
  18  Prefactor     .10000E-03    1.1566        .17021E-06** at limit **
  19  norm          .10000E-03    3.4093        .30241E-07** at limit **
  20  Prefactor     .10000E-03    6.7142        .25128E-07** at limit **
  21  norm          .60614        .31002        .30325E-07   -.20036E-02
  22  norm          23.824        10.964       -.33601E-05   -.34646E-03
  23  Prefactor     3.7525        2.8693        .12399E-08   -.14194E-03
  24  Prefactor     .29408E-03    17.602        .24427E-05** at limit **
  25  Normalizat    1.0391        .16542       -.21411E-05    .13146E-05
  26  Prefactor     .89744        .16596        .15928E-05   -.20067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.27747
  Prefactor  = 0.0001
  Prefactor  = 2.92354
  Prefactor  = 0.0001
  norm       = 3.67292
  Prefactor  = 0.0001
  Prefactor  = 22.0424
  Prefactor  = 0.0001
  Prefactor  = 8.64437
  Prefactor  = 0.0001
  Prefactor  = 3.44478
  norm       = 0.0001
  Prefactor  = 11.3223
  norm       = 0.35506
  Prefactor  = 33.0051
  Prefactor  = 13.9938
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.606143
  norm       = 23.8244
  Prefactor  = 3.75248
  Prefactor  = 0.000294078
  Normalizat = 1.03908
  Prefactor  = 0.897436
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.461     FROM HESSE     STATUS=OK           468 CALLS     3611 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0546        .13645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2775        3.1681        .21499E-03   -1.5482    
   3  Prefactor     .10000E-03    118.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9235        11.319        .23787E-03   -1.5366    
   5  Prefactor     .10000E-03    17.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6729        2.8311        .11468E-03   -1.5325    
   7  Prefactor     .10000E-03    47.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.042        21.988        .85287E-04   -1.4769    
   9  Prefactor     .10000E-03    .61350        .60815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6444        4.1381        .10639E-03   -1.5120    
  11  Prefactor     .10000E-03    1.8939        .10656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4448        10.281        .21740E-03   -1.5337    
  13  norm          .10000E-03    .61088        .87336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.322        17.670        .11906E-03   -1.5035    
  15  norm          .35506        1.0464        .13340E-03   -1.5589    
  16  Prefactor     33.005        113.57        .69865E-04   -1.4558    
  17  Prefactor     13.994        14.584        .10708E-03   -1.4960    
  18  Prefactor     .10000E-03    1.9582        .16503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.4111        .14420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.7196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .60614        .30597        .29646E-04   -1.5552    
  22  norm          23.824        11.019        .82079E-04   -1.4731    
  23  Prefactor     3.7525        2.8640        .11459E-03   -1.5321    
  24  Prefactor     .29408E-03    22.882        .94883E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0391        .18870        .23282E-03   -.91732    
  26  Prefactor     .89744        .18949        .25635E-03   -.96231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49957e-09
Minuit parameter uncertainties:
  1  1.9665e-06
  2  3.16854
  3  3.98977e-06
  4  11.3272
  5  2.21891e-05
  6  2.83122
  7  4.50086e-05
  8  21.9959
  9  4.28237e-06
  10  4.13822
  11  6.7767e-06
  12  10.286
  13  8.71358e-06
  14  17.6783
  15  1.04643
  16  114.323
  17  14.588
  18  2.24697e-05
  19  2.49054e-07
  20  2.61935e-06
  21  0.305974
  22  11.0197
  23  2.86407
  24  0.133331
  25  0.188826
  26  0.189634
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  8.714e-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:  8.974e-01  1.896e-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.039e+00  1.888e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/977653/likelihoodResults_240364801_240624001_4FGL_J0348.5-2749_daily_bin4.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) = 6394.46887445
delta logL = -0.0078271419452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6394.17929167
delta logL = 0.281755637769

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20962E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .99126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92876       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=   6394.179     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      306 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20958E-01    1.1333        .34638E-02    .41135E-02
   2  alpha         5.0000        4.5011        .46267    ** at limit **
   3  Normalizat    .99130        .60089E-01    .46057E-01   -.51171E-04
   4  Prefactor     .92869        .55187E-01    .45371E-01   -.24704E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0209583
  alpha      = 5
  Normalizat = 0.991296
  Prefactor  = 0.928692
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.179     FROM HESSE     STATUS=OK            35 CALLS      341 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20958E-01    .34380E-01    .15508E-04   -1.5679    
   2  alpha         5.0000        4.0372        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .99130        .19230        .23768E-03   -.93323    
   4  Prefactor     .92869        .19204        .25254E-03   -.95146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01205e-11
Minuit parameter uncertainties:
  1  0.0343796
  2  1.4653e-05
  3  0.192436
  4  0.192181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977653': 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) = 6394.17929127
delta logL = 0.281756043922

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.096e-02  3.438e-02  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  5.000e+00  1.465e-05  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.287e-01  1.922e-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.913e-01  1.924e-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/977653/cmap_HighResolution_240364801_240624001_4FGL_J0348.5-2749_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', job_status='DONE', photon_flux_upper_limit='5.64e-08', time_completed='2021-08-19 13:16:11.508822', job_id='977653', GAL2='0.93', fit_tolerance='1e-08', EG2='0.99', EG='1.04', time_epoch_completed='1629404171.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.82e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='4' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:16:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 977653: <4FGL_J0348.5-2749_daily_bin4> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin4> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Aug 19 13:00:33 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:00:34 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:00:34 2021
Terminated at Thu Aug 19 13:16:12 2021
Results reported at Thu Aug 19 13:16:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin4 57.1417 -27.8303 240364801 240624001 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 :                                   790.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

