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 130 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_J0047.0+5657_monthly_bin167
RA = 11.7535, Dec = 56.9601
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='877344', job_status='RUN', time_executed='2022-04-24 00:54:05.139221', time_epoch_executed='1650786845.14' WHERE source_name='4FGL J0047.0+5657' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877344

Creating custom pfile directory:
/scratch/kocevski/877344/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/877344/ft1_4FGL_J0047.0+5657_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/877344/ft2_4FGL_J0047.0+5657_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877344/ft1_4FGL_J0047.0+5657_monthly_bin167.fits outfile=/scratch/kocevski/877344/ft1_filteredMKT_4FGL_J0047.0+5657_monthly_bin167.fits ra=11.7535 dec=56.9601 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.64
user 37.48
sys 1.07

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/877344/ft2_4FGL_J0047.0+5657_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877344/ft2_4FGL_J0047.0+5657_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/877344/ft1_filteredMKT_4FGL_J0047.0+5657_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/877344/ft1_filtered_4FGL_J0047.0+5657_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.69
sys 0.17

Number of photons that the gtmktime cut: 31158

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877344/ft1_filtered_4FGL_J0047.0+5657_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/877344/ft2_4FGL_J0047.0+5657_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/877344/ltcube_669859201_672451201_4FGL_J0047.0+5657_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/877344/ft2_4FGL_J0047.0+5657_monthly_bin167.fits
.....................!
real 122.50
user 121.91
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877344/ft1_filtered_4FGL_J0047.0+5657_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/877344/ft2_4FGL_J0047.0+5657_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/877344/ltcube_669859201_672451201_4FGL_J0047.0+5657_monthly_bin167.fits outfile=/scratch/kocevski/877344/expmap_669859201_672451201_4FGL_J0047.0+5657_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/877344/ltcube_669859201_672451201_4FGL_J0047.0+5657_monthly_bin167.fits
.....................!
real 192.97
user 188.17
sys 4.44

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 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.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 197 point sources and 5 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 J0047.0+5657 @ 11.7535 56.9601

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/877344/ft1_filtered_4FGL_J0047.0+5657_monthly_bin167.fits scfile=/scratch/kocevski/877344/ft2_4FGL_J0047.0+5657_monthly_bin167.fits outfile=/scratch/kocevski/877344/cmap_669859201_672451201_4FGL_J0047.0+5657_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=11.7535 yref=56.9601 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.64
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877344/ft1_filtered_4FGL_J0047.0+5657_monthly_bin167.fits scfile=/scratch/kocevski/877344/ft2_4FGL_J0047.0+5657_monthly_bin167.fits outfile=/scratch/kocevski/877344/cmap_HighResolution_669859201_672451201_4FGL_J0047.0+5657_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=11.7535 yref=56.9601 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.69
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877344/ft1_filtered_4FGL_J0047.0+5657_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/877344/ft2_4FGL_J0047.0+5657_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877344/Model_4FGL_J0047.0+5657_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 CTB 109
adding source EG_v02
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/877344/ft1_filtered_4FGL_J0047.0+5657_monthly_bin167.fits.....................!
real 4017.43
user 4005.98
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/877344/ft1_filtered_4FGL_J0047.0+5657_monthly_bin167.fits', '/scratch/kocevski/877344/ft2_4FGL_J0047.0+5657_monthly_bin167.fits', expMap='/scratch/kocevski/877344/expmap_669859201_672451201_4FGL_J0047.0+5657_monthly_bin167.fits', expCube='/scratch/kocevski/877344/ltcube_669859201_672451201_4FGL_J0047.0+5657_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/877344/Model_4FGL_J0047.0+5657_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0047.0+5657'

4FGL J0047.0+5657
   Spectrum: LogParabola
137         norm:  3.670e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
138        alpha:  2.017e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
139         beta:  1.171e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
140           Eb:  1.707e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/877344/ft1_filtered_4FGL_J0047.0+5657_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/877344/ft2_4FGL_J0047.0+5657_monthly_bin167.fits
Exposure map: /scratch/kocevski/877344/expmap_669859201_672451201_4FGL_J0047.0+5657_monthly_bin167.fits
Exposure cube: /scratch/kocevski/877344/ltcube_669859201_672451201_4FGL_J0047.0+5657_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/877344/Model_4FGL_J0047.0+5657_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) = 294985.225721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12104E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .33266       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12810E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3429       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4813       1.0000         .10000E-03   10000.    
     6 'norm      '    .78122E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.8949       1.0000         .10000E-03   10000.    
     8 'norm      '    19.712       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7642       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11879E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1104       1.0000         .10000E-03   10000.    
    14 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3059       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0013       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2267       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2521       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96520       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   294985.2     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1727 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2134         .0000    ** at limit **
   2  norm          .33272        .26678         .0000        .34205E-01
   3  Prefactor     .10000E-03    1.4644         .0000    ** at limit **
   4  Prefactor     3.3701        6.2380         .0000        .11399E-01
   5  norm          1.4811        .88033         .0000        .60253E-02
   6  norm          .10002E-03    .37651         .0000    ** at limit **
   7  norm          9.8971        1.5831         .0000        .43830E-01
   8  norm          19.708        8.2664         .0000       -.16295E-02
   9  norm          1.7616        1.7317         .0000        .22117    
  10  norm          1.8689        .79712         .0000        .40517    
  11  Prefactor     4.2358        3.9264         .0000        .19068E-01
  12  Prefactor     .10000E-03    7.5761         .0000    ** at limit **
  13  norm          1.1105        .69020         .0000        .93549E-02
  14  norm          .10000E-03    .36132E-01     .0000    ** at limit **
  15  Prefactor     1.3059        .80608         .0000        .25654E-01
  16  Prefactor     5.0187        3.9666         .0000       -.13390E-02
  17  norm          9.2230        2.7204         .0000        .44454E-02
  18  Normalizat    1.2520        .70914E-01     .0000       -.64514E-03
  19  Prefactor     .96519        .91859E-02     .0000       -.68185E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.332718
  Prefactor  = 0.0001
  Prefactor  = 3.37008
  norm       = 1.48114
  norm       = 0.000100017
  norm       = 9.89709
  norm       = 19.7084
  norm       = 1.76161
  norm       = 1.86885
  Prefactor  = 4.23576
  Prefactor  = 0.0001
  norm       = 1.11047
  norm       = 0.0001
  Prefactor  = 1.30592
  Prefactor  = 5.01869
  norm       = 9.22295
  Normalizat = 1.25204
  Prefactor  = 0.965192
 **********
 **   18 **HESSE 
 **********

 FCN=   294985.2     FROM HESSE     STATUS=OK           296 CALLS     2023 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .33272        .30734        .24238E-02   -1.5593    
   3  Prefactor     .10000E-03    1.4833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3701        6.2270        .11068E-02   -1.5341    
   5  norm          1.4811        .87643        .35263E-03   -1.5465    
   6  norm          .10002E-03    .45333        .13622       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.8971        1.5805        .63694E-03   -1.5079    
   8  norm          19.708        8.2662        .90212E-04   -1.4820    
   9  norm          1.7616        1.7269        .15770E-02   -1.5443    
  10  norm          1.8689        .79557        .15236E-02   -1.5435    
  11  Prefactor     4.2358        3.9252        .97980E-03   -1.5296    
  12  Prefactor     .10000E-03    7.7159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1105        .67839        .34696E-03   -1.5497    
  14  norm          .10000E-03    .32477E-01    .36778E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3059        .79782        .37189E-03   -1.5479    
  16  Prefactor     5.0187        3.9612        .17982E-03   -1.5260    
  17  norm          9.2230        2.7198        .13194E-03   -1.5100    
  18  Normalizat    1.2520        .71149E-01    .79145E-03   -.85009    
  19  Prefactor     .96519        .94189E-02    .11721E-03   -.93899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50143e-08
Minuit parameter uncertainties:
  1  6.71923e-06
  2  0.307339
  3  1.81814e-05
  4  6.22821
  5  0.876442
  6  0.000173278
  7  1.58055
  8  8.26671
  9  1.72696
  10  0.795574
  11  3.92546
  12  4.28855e-05
  13  0.678399
  14  1.2755e-07
  15  0.797828
  16  3.96138
  17  2.71979
  18  0.0711549
  19  0.00941896
Done.

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

Extracting fit parameters...

4FGL J0047.0+5657
   Spectrum: LogParabola
137         norm:  1.000e-04  1.733e-04  1.000e-04  1.000e+04 ( 1.000e-13)
138        alpha:  2.017e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
139         beta:  1.171e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
140           Eb:  1.707e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.652e-01  9.419e-03  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  1.252e+00  7.115e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 11.754 56.960
Photon Flux Upper Limit: 1.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/877344/likelihoodResults_669859201_672451201_4FGL_J0047.0+5657_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) = 294985.177334
delta logL = -0.000190692255273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 294985.177142
delta logL = 1.00425677374e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   294985.2     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      275 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    .31842E-01    .12833    ** at limit **
   2  alpha         2.2776        2.5740        .41638        .61265E-05
   3  Normalizat    1.2520        .65153E-03    .17773        .40855E-04
   4  Prefactor     .96519        .86444E-04    .26522E-01   -.66323E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100064
  alpha      = 2.27764
  Normalizat = 1.25204
  Prefactor  = 0.965192
 **********
 **   18 **HESSE 
 **********

 FCN=   294985.2     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      318 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    .25895E-01    .11942       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2776        3.4041        .50000       -.89061E-01
   3  Normalizat    1.2520        .56442E-03    .79145E-03   -.85009    
   4  Prefactor     .96519        .75480E-04    .11721E-03   -.93899    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.72926e-09
Minuit parameter uncertainties:
  1  8.17332e-05
  2  24.958
  3  0.000564417
  4  7.54799e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877344': 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): 102
logL (Free Index) = 294985.177142
delta logL = 1.34453875944e-06

Extracting fit parameters...

4FGL J0047.0+5657
   Spectrum: LogParabola
137         norm:  1.001e-04  8.173e-05  1.000e-04  1.000e+04 ( 1.000e-13)
138        alpha:  2.278e+00  2.496e+01  0.000e+00  5.000e+00 ( 1.000e+00)
139         beta:  1.171e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
140           Eb:  1.707e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.652e-01  7.548e-05  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  1.252e+00  5.644e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 11.754 56.960

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/877344/cmap_HighResolution_669859201_672451201_4FGL_J0047.0+5657_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-06', job_status='DONE', photon_flux_upper_limit='1.01e-08', time_completed='2022-04-24 06:15:33.096832', job_id='877344', GAL2='0.97', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1650806133.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='167' AND source_name='4FGL J0047.0+5657' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 06:15:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 877344: <4FGL_J0047.0+5657_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0047.0+5657_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:50:26 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:51:45 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:51:45 2022
Terminated at Sun Apr 24 06:15:34 2022
Results reported at Sun Apr 24 06:15:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.0+5657_monthly_bin167 11.7535 56.9601 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0047.0+5657 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   19245.00 sec.
    Max Memory :                                 858 MB
    Average Memory :                             779.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   19429 sec.
    Turnaround time :                            19508 sec.

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

