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


Performing analysis on: 4FGL_J0348.8+4610_monthly_bin170
RA = 57.2185, Dec = 46.1695
tmin = 677635201, tmax = 680227201
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='86078', job_status='RUN', time_executed='2022-07-23 00:47:21.718862', time_epoch_executed='1658562441.72' WHERE source_name='4FGL J0348.8+4610' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86078

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86078/ft1_4FGL_J0348.8+4610_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86078/ft2_4FGL_J0348.8+4610_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86078/ft1_4FGL_J0348.8+4610_monthly_bin170.fits outfile=/scratch/kocevski/86078/ft1_filteredMKT_4FGL_J0348.8+4610_monthly_bin170.fits ra=57.2185 dec=46.1695 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.26
user 31.33
sys 0.79

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86078/ft2_4FGL_J0348.8+4610_monthly_bin170.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/86078/ft1_filteredMKT_4FGL_J0348.8+4610_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/86078/ft1_filtered_4FGL_J0348.8+4610_monthly_bin170.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.88
user 0.67
sys 0.18

Number of photons that the gtmktime cut: 27622

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86078/ft1_filtered_4FGL_J0348.8+4610_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/86078/ft2_4FGL_J0348.8+4610_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/86078/ltcube_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.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/86078/ft2_4FGL_J0348.8+4610_monthly_bin170.fits
.....................!
real 109.57
user 109.02
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86078/ft1_filtered_4FGL_J0348.8+4610_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/86078/ft2_4FGL_J0348.8+4610_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/86078/ltcube_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.fits outfile=/scratch/kocevski/86078/expmap_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.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/86078/ltcube_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.fits
.....................!
real 191.60
user 185.78
sys 5.11

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/86078/ft1_filtered_4FGL_J0348.8+4610_monthly_bin170.fits scfile=/scratch/kocevski/86078/ft2_4FGL_J0348.8+4610_monthly_bin170.fits outfile=/scratch/kocevski/86078/cmap_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.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.84
user 0.65
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86078/ft1_filtered_4FGL_J0348.8+4610_monthly_bin170.fits scfile=/scratch/kocevski/86078/ft2_4FGL_J0348.8+4610_monthly_bin170.fits outfile=/scratch/kocevski/86078/cmap_HighResolution_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.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.65
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/86078/ft1_filtered_4FGL_J0348.8+4610_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/86078/ft2_4FGL_J0348.8+4610_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86078/Model_4FGL_J0348.8+4610_monthly_bin170.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/86078/ft1_filtered_4FGL_J0348.8+4610_monthly_bin170.fits.....................!
real 5042.56
user 5030.89
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86078/ft1_filtered_4FGL_J0348.8+4610_monthly_bin170.fits', '/scratch/kocevski/86078/ft2_4FGL_J0348.8+4610_monthly_bin170.fits', expMap='/scratch/kocevski/86078/expmap_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.fits', expCube='/scratch/kocevski/86078/ltcube_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86078/Model_4FGL_J0348.8+4610_monthly_bin170.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/86078/ft1_filtered_4FGL_J0348.8+4610_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/86078/ft2_4FGL_J0348.8+4610_monthly_bin170.fits
Exposure map: /scratch/kocevski/86078/expmap_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.fits
Exposure cube: /scratch/kocevski/86078/ltcube_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86078/Model_4FGL_J0348.8+4610_monthly_bin170.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) = 265313.248165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90453       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2015       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85794       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.558       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3822       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .36238E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.591       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.286       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3249       1.0000         .10000E-03   10000.    
    13 'norm      '    .19330       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.3062       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .97104       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   265312.0     FROM MIGRAD    STATUS=CONVERGED    307 CALLS     1272 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90487        .48348        .29301E-06   -.88464E-02
   2  norm          3.2015        .97046        .15607E-07   -.11600E-02
   3  Prefactor     .85870        1.1324        .66742E-07   -.14134E-02
   4  Prefactor     12.561        8.7373       -.24202E-05   -.45466E-03
   5  norm          2.3821        .20635        .12164E-07   -.13368E-02
   6  Prefactor     .10000E-03    6.2453       -.70078E-07** at limit **
   7  Prefactor     .10000E-03    4.5764        .62444E-07** at limit **
   8  norm          .10022E-03    2.5947       -.34432E-06** at limit **
   9  Prefactor     15.594        6.9859       -.18834E-05   -.80448E-03
  10  Prefactor     .10000E-03    .11874        .39867E-07** at limit **
  11  norm          20.285        3.1094       -.40468E-08   -.19657E-03
  12  Prefactor     1.3246        1.4994        .32638E-06   -.21380E-02
  13  norm          .19364        .33972       -.10899E-06   -.52500E-03
  14  Normalizat    1.3061        .88056E-01   -.55307E-06    .75870E-04
  15  Prefactor     .97105        .10460E-01    .40305E-07    .13141E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.904873
  norm       = 3.20154
  Prefactor  = 0.858699
  Prefactor  = 12.5607
  norm       = 2.3821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100219
  Prefactor  = 15.5938
  Prefactor  = 0.0001
  norm       = 20.2849
  Prefactor  = 1.32456
  norm       = 0.19364
  Normalizat = 1.30613
  Prefactor  = 0.971048
 **********
 **   18 **HESSE 
 **********

 FCN=   265312.0     FROM HESSE     STATUS=OK           202 CALLS     1474 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90487        .59301        .31400E-03   -1.5518    
   2  norm          3.2015        .97137        .22644E-03   -1.5350    
   3  Prefactor     .85870        2.8803        .56583E-02   -1.5523    
   4  Prefactor     12.561        8.9085        .11304E-03   -1.4999    
   5  norm          2.3821        .20866        .61195E-04   -1.5399    
   6  Prefactor     .10000E-03    6.2630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10022E-03    2.4680        .27824       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.594        7.1468        .10144E-03   -1.4918    
  10  Prefactor     .10000E-03    .35437        .33408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.285        3.1154        .88927E-04   -1.4807    
  12  Prefactor     1.3246        1.5647        .38194E-03   -1.5478    
  13  norm          .19364        1.6005        .38282E-02   -1.5620    
  14  Normalizat    1.3061        .89738E-01    .84457E-03   -.83384    
  15  Prefactor     .97105        .10757E-01    .11907E-03   -.93701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50783e-06
Minuit parameter uncertainties:
  1  0.593017
  2  0.971373
  3  2.88076
  4  8.90943
  5  0.208663
  6  7.31877e-07
  7  3.24693e-06
  8  0.0014711
  9  7.14724
  10  1.11499e-06
  11  3.11545
  12  1.5648
  13  1.11316
  14  0.0897486
  15  0.0107567
Done.

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

Extracting fit parameters...

4FGL J0348.8+4610
   Spectrum: LogParabola
299         norm:  1.002e-04  1.471e-03  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.710e-01  1.076e-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.306e+00  8.975e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/86078/likelihoodResults_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.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) = 265312.025835
delta logL = -6.96229399182e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 265312.025761
delta logL = 4.2732572183e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24579E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6614       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97103       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.

 FCN=   265310.1     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      330 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2226        3.7999        .10017E-01    .13681E-02
   2  alpha         .28254E-09    .68581        .41260    ** at limit **
   3  Normalizat    1.3065        .81629E-01    .18953        .13693E-02
   4  Prefactor     .97085        .10153E-01    .26944E-01    .66210E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.22261
  alpha      = 2.82539e-10
  Normalizat = 1.30647
  Prefactor  = 0.970848
 **********
 **   18 **HESSE 
 **********

 FCN=   265310.1     FROM HESSE     STATUS=OK            35 CALLS      365 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2226        3.5841        .40069E-03   -1.5297    
   2  alpha         .28254E-09    .57434        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3065        .82867E-01    .84445E-03   -.83373    
   4  Prefactor     .97085        .10394E-01    .11908E-03   -.93708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19023e-09
Minuit parameter uncertainties:
  1  3.58426
  2  2.59922e-05
  3  0.0828751
  4  0.0103938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86078': 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) = 265310.055669
delta logL = 1.97009699064

Extracting fit parameters...

4FGL J0348.8+4610
   Spectrum: LogParabola
299         norm:  4.223e+00  3.584e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        alpha:  2.825e-10  2.599e-05  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.708e-01  1.039e-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.306e+00  8.288e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.94
Ra Dec: 57.218 46.169
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 1.13e-09 +/- 9.56e-10
Energy Flux (Free Index): 2.88e-06 +/- 2.45e-06

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/86078/cmap_HighResolution_677635201_680227201_4FGL_J0348.8+4610_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-06', comment='SUCCESS', energy_flux2='2.88e-06', dlogl='1.97e+00', photon_flux2='1.13e-09', job_status='DONE', time_completed='2022-07-23 04:37:00.412595', photon_index_error2='0.00', photon_index2='0.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.57e-08', energy_flux_error2='2.45e-06', EG='1.31', time_epoch_completed='1658576220.41', return_code='0', job_id='86078', GAL2='0.97', EG2='1.31', return_code2='0', photon_flux_error2='9.56e-10', ts2='3.94', photon_index='2.79' WHERE bin_id='170' AND source_name='4FGL J0348.8+4610' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 04:37:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 86078: <4FGL_J0348.8+4610_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0348.8+4610_monthly_bin170> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul 23 00:45:34 2022
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:45:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:45:35 2022
Terminated at Sat Jul 23 04:37:02 2022
Results reported at Sat Jul 23 04:37:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.8+4610_monthly_bin170 57.2185 46.1695 677635201 680227201 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 :                                   13751.00 sec.
    Max Memory :                                 724 MB
    Average Memory :                             663.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13886 sec.
    Turnaround time :                            13888 sec.

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

