aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 90 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 = 73886
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0348.8+4610_monthly_bin167
RA = 57.2185, Dec = 46.1695
tmin = 669859201, tmax = 672451201
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='878876', job_status='RUN', time_executed='2022-04-24 01:01:01.124016', time_epoch_executed='1650787261.12' WHERE source_name='4FGL J0348.8+4610' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/878876

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/878876/ft1_4FGL_J0348.8+4610_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/878876/ft1_4FGL_J0348.8+4610_monthly_bin167.fits outfile=/scratch/kocevski/878876/ft1_filteredMKT_4FGL_J0348.8+4610_monthly_bin167.fits ra=57.2185 dec=46.1695 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.07
user 37.03
sys 0.90

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.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/878876/ft1_filteredMKT_4FGL_J0348.8+4610_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/878876/ft1_filtered_4FGL_J0348.8+4610_monthly_bin167.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.87
user 0.64
sys 0.22

Number of photons that the gtmktime cut: 29386

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/878876/ft1_filtered_4FGL_J0348.8+4610_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/878876/ltcube_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.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/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.fits
.....................!
real 107.58
user 107.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/878876/ft1_filtered_4FGL_J0348.8+4610_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/878876/ltcube_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.fits outfile=/scratch/kocevski/878876/expmap_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.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/878876/ltcube_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.fits
.....................!
real 192.34
user 186.31
sys 5.71

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 G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 169 point sources and 4 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.8+4610 @ 57.2185 46.1695

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/878876/ft1_filtered_4FGL_J0348.8+4610_monthly_bin167.fits scfile=/scratch/kocevski/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.fits outfile=/scratch/kocevski/878876/cmap_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.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.2185 yref=46.1695 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.83
user 0.64
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/878876/ft1_filtered_4FGL_J0348.8+4610_monthly_bin167.fits scfile=/scratch/kocevski/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.fits outfile=/scratch/kocevski/878876/cmap_HighResolution_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.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.2185 yref=46.1695 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.67
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/878876/ft1_filtered_4FGL_J0348.8+4610_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/878876/Model_4FGL_J0348.8+4610_monthly_bin167.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/878876/ft1_filtered_4FGL_J0348.8+4610_monthly_bin167.fits.....................!
real 5166.90
user 5156.85
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/878876/ft1_filtered_4FGL_J0348.8+4610_monthly_bin167.fits', '/scratch/kocevski/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.fits', expMap='/scratch/kocevski/878876/expmap_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.fits', expCube='/scratch/kocevski/878876/ltcube_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/878876/Model_4FGL_J0348.8+4610_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0348.8+4610'

4FGL J0348.8+4610
   Spectrum: LogParabola
299         norm:  8.952e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        alpha:  2.791e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
301         beta:  7.194e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
302           Eb:  9.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/878876/ft1_filtered_4FGL_J0348.8+4610_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/878876/ft2_4FGL_J0348.8+4610_monthly_bin167.fits
Exposure map: /scratch/kocevski/878876/expmap_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.fits
Exposure cube: /scratch/kocevski/878876/ltcube_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/878876/Model_4FGL_J0348.8+4610_monthly_bin167.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) = 279886.49209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0037       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10846E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.504       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8220       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.572       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9083       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21192       1.0000         .10000E-03   10000.    
    11 'norm      '    13.910       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1652       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.5456       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .96351       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   279885.5     FROM MIGRAD    STATUS=CONVERGED    298 CALLS     1251 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0039        .57481         .0000        .32878E-01
   2  norm          2.3607        .94384         .0000        .23900    
   3  Prefactor     .10021E-03    .31982         .0000    ** at limit **
   4  Prefactor     36.510        15.183         .0000        .12838E-02
   5  norm          1.8216        .20202         .0000        .13109E-01
   6  Prefactor     .10000E-03    4.8413         .0000    ** at limit **
   7  Prefactor     .10001E-03    5.8749         .0000    ** at limit **
   8  norm          10.536        16.577         .0000        .73548E-03
   9  Prefactor     7.9087        5.1422         .0000        .98590E-04
  10  Prefactor     .20921        .34270         .0000        .22734E-01
  11  norm          13.909        2.7332         .0000        .19870E-02
  12  Prefactor     2.1652        1.8019         .0000        .36641E-02
  13  norm          .10000E-03    .12898         .0000    ** at limit **
  14  Normalizat    1.5455        .88056E-01     .0000        .11710E-02
  15  Prefactor     .96351        .10018E-01     .0000        .19092E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00389
  norm       = 2.36069
  Prefactor  = 0.000100208
  Prefactor  = 36.5098
  norm       = 1.8216
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  norm       = 10.536
  Prefactor  = 7.90866
  Prefactor  = 0.209211
  norm       = 13.9089
  Prefactor  = 2.16524
  norm       = 0.0001
  Normalizat = 1.54555
  Prefactor  = 0.96351
 **********
 **   18 **HESSE 
 **********

 FCN=   279885.5     FROM HESSE     STATUS=OK           208 CALLS     1459 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0039        .56024        .29195E-03   -1.5508    
   2  norm          2.3607        .94107        .13337E-02   -1.5401    
   3  Prefactor     .10021E-03    .59271        .96172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.510        15.436        .66332E-04   -1.4499    
   5  norm          1.8216        .20457        .69836E-04   -1.5438    
   6  Prefactor     .10000E-03    4.8486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    5.9989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.536        16.440        .12323E-03   -1.5059    
   9  Prefactor     7.9087        5.1438        .14258E-03   -1.5145    
  10  Prefactor     .20921        .78612        .36064E-02   -1.5617    
  11  norm          13.909        2.7324        .10739E-03   -1.4962    
  12  Prefactor     2.1652        1.7991        .27990E-03   -1.5414    
  13  norm          .10000E-03    .17176        .56081E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.5455        .90121E-01    .81011E-03   -.76506    
  15  Prefactor     .96351        .10476E-01    .11942E-03   -.93956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54129e-06
Minuit parameter uncertainties:
  1  0.560244
  2  0.941078
  3  0.000702251
  4  15.4377
  5  0.204575
  6  0.000101442
  7  0.000569993
  8  16.4473
  9  5.14409
  10  0.786158
  11  2.73238
  12  1.79918
  13  7.94868e-07
  14  0.0901305
  15  0.010476
Done.

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

Extracting fit parameters...

4FGL J0348.8+4610
   Spectrum: LogParabola
299         norm:  1.054e+01  1.645e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        alpha:  2.791e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
301         beta:  7.194e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
302           Eb:  9.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.635e-01  1.048e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.546e+00  9.013e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 57.218 46.169
Photon Flux Upper Limit: 2.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/878876/likelihoodResults_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.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) = 279885.480911
delta logL = 0.0256288176752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 279885.474846
delta logL = 0.0316935391165

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   279885.5     FROM MIGRAD    STATUS=FAILED       121 CALLS      293 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4934        463.13        .68703E-03   -.52952E-05
   2  alpha         3.3700        3.0052        .50000        .59277E-03
   3  Normalizat    1.5431        .50227E-01    .81059E-03   -.17952E-05
   4  Prefactor     .96354        .41520E-02    .11942E-03   -.60926E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   279885.5     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      367 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4934        463.13        .35045E-03   -.52952E-05
   2  alpha         3.3700        3.0052        .36244E-02    .59277E-03
   3  Normalizat    1.5431        .50227E-01    .76018E-04   -.17952E-05
   4  Prefactor     .96354        .41520E-02    .64653E-05   -.60926E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   279885.5     FROM MIGRAD    STATUS=FAILED        77 CALLS      444 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4934        469.26        .54963E-05   -.26476E-04
   2  alpha         3.3700        2.9670        .50000        .59277E-03
   3  Normalizat    1.5431        .51351E-01    .64847E-05   -.44880E-05
   4  Prefactor     .96354        .42092E-02    .47769E-05   -.60926E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.49338
  alpha      = 3.36998
  Normalizat = 1.54315
  Prefactor  = 0.963543
 **********
 **   18 **HESSE 
 **********

 FCN=   279885.5     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      473 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4934        481.06        .10993E-05   -1.5125    
   2  alpha         3.3700        3.0026        .50000        .35543    
   3  Normalizat    1.5431        .50136E-01    .64847E-05   -.76573    
   4  Prefactor     .96354        .41520E-02    .47769E-05   -.93955    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18622e-05
Minuit parameter uncertainties:
  1  128.944
  2  13.5713
  3  0.0501378
  4  0.00415196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/878876': 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): 1
logL (Free Index) = 279885.474845
delta logL = 0.0316940583289

Extracting fit parameters...

4FGL J0348.8+4610
   Spectrum: LogParabola
299         norm:  8.493e+00  1.289e+02  1.000e-04  1.000e+04 ( 1.000e-13)
300        alpha:  3.370e+00  1.357e+01  0.000e+00  5.000e+00 ( 1.000e+00)
301         beta:  7.194e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
302           Eb:  9.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.635e-01  4.152e-03  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.543e+00  5.014e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 57.218 46.169

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/878876/cmap_HighResolution_669859201_672451201_4FGL_J0348.8+4610_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-06', job_status='DONE', photon_flux_upper_limit='2.17e-08', time_completed='2022-04-24 05:04:11.141491', job_id='878876', GAL2='0.96', fit_tolerance='1e-08', EG2='1.54', EG='1.55', time_epoch_completed='1650801851.14', return_code2='1', ts='0.48', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.17e-02', ts2='0.55', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='167' AND source_name='4FGL J0348.8+4610' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 05:04:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 878876: <4FGL_J0348.8+4610_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0348.8+4610_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:55:28 2022
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:59:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:59:14 2022
Terminated at Sun Apr 24 05:04:13 2022
Results reported at Sun Apr 24 05:04:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.8+4610_monthly_bin167 57.2185 46.1695 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0348.8+4610 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14551.00 sec.
    Max Memory :                                 750 MB
    Average Memory :                             681.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   14703 sec.
    Turnaround time :                            14925 sec.

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

