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 93 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_J0507.9+6737_monthly_bin167
RA = 76.9956, Dec = 67.6223
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='879011', job_status='RUN', time_executed='2022-04-24 01:04:04.213656', time_epoch_executed='1650787444.21' WHERE source_name='4FGL J0507.9+6737' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/879011

Creating custom pfile directory:
/scratch/kocevski/879011/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/879011/ft1_4FGL_J0507.9+6737_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/879011/ft2_4FGL_J0507.9+6737_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/879011/ft1_4FGL_J0507.9+6737_monthly_bin167.fits outfile=/scratch/kocevski/879011/ft1_filteredMKT_4FGL_J0507.9+6737_monthly_bin167.fits ra=76.9956 dec=67.6223 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.24
user 37.21
sys 0.94

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/879011/ft2_4FGL_J0507.9+6737_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/879011/ft2_4FGL_J0507.9+6737_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/879011/ft1_filteredMKT_4FGL_J0507.9+6737_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/879011/ft1_filtered_4FGL_J0507.9+6737_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.89
user 0.69
sys 0.18

Number of photons that the gtmktime cut: 19362

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/879011/ft1_filtered_4FGL_J0507.9+6737_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/879011/ft2_4FGL_J0507.9+6737_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/879011/ltcube_669859201_672451201_4FGL_J0507.9+6737_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/879011/ft2_4FGL_J0507.9+6737_monthly_bin167.fits
.....................!
real 119.35
user 118.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/879011/ft1_filtered_4FGL_J0507.9+6737_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/879011/ft2_4FGL_J0507.9+6737_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/879011/ltcube_669859201_672451201_4FGL_J0507.9+6737_monthly_bin167.fits outfile=/scratch/kocevski/879011/expmap_669859201_672451201_4FGL_J0507.9+6737_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/879011/ltcube_669859201_672451201_4FGL_J0507.9+6737_monthly_bin167.fits
.....................!
real 191.28
user 186.18
sys 4.68

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 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 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.
Added 180 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 J0507.9+6737 @ 76.9956 67.6223

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/879011/ft1_filtered_4FGL_J0507.9+6737_monthly_bin167.fits scfile=/scratch/kocevski/879011/ft2_4FGL_J0507.9+6737_monthly_bin167.fits outfile=/scratch/kocevski/879011/cmap_669859201_672451201_4FGL_J0507.9+6737_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=76.9956 yref=67.6223 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.82
user 0.65
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/879011/ft1_filtered_4FGL_J0507.9+6737_monthly_bin167.fits scfile=/scratch/kocevski/879011/ft2_4FGL_J0507.9+6737_monthly_bin167.fits outfile=/scratch/kocevski/879011/cmap_HighResolution_669859201_672451201_4FGL_J0507.9+6737_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=76.9956 yref=67.6223 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.82
user 0.65
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/879011/ft1_filtered_4FGL_J0507.9+6737_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/879011/ft2_4FGL_J0507.9+6737_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/879011/Model_4FGL_J0507.9+6737_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/879011/ft1_filtered_4FGL_J0507.9+6737_monthly_bin167.fits.....................!
real 3331.13
user 3323.90
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/879011/ft1_filtered_4FGL_J0507.9+6737_monthly_bin167.fits', '/scratch/kocevski/879011/ft2_4FGL_J0507.9+6737_monthly_bin167.fits', expMap='/scratch/kocevski/879011/expmap_669859201_672451201_4FGL_J0507.9+6737_monthly_bin167.fits', expCube='/scratch/kocevski/879011/ltcube_669859201_672451201_4FGL_J0507.9+6737_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/879011/Model_4FGL_J0507.9+6737_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0507.9+6737'

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  5.003e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
289        Index:  1.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/879011/ft1_filtered_4FGL_J0507.9+6737_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/879011/ft2_4FGL_J0507.9+6737_monthly_bin167.fits
Exposure map: /scratch/kocevski/879011/expmap_669859201_672451201_4FGL_J0507.9+6737_monthly_bin167.fits
Exposure cube: /scratch/kocevski/879011/ltcube_669859201_672451201_4FGL_J0507.9+6737_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/879011/Model_4FGL_J0507.9+6737_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) = 192034.848378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3271       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .90419E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0017       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .82305       1.0000         .10000E-03   10000.    
     8 'norm      '    13.765       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8789       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0444       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .64492E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11279E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0317       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0366       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   192033.7     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1587 TOTAL
                     EDM=   .12E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62503        1.0354         .0000        .87899    
   2  Prefactor     5.8540        8.9178         .0000        .53680E-02
   3  Prefactor     2.3272        1.2195         .0000        .25576    
   4  Prefactor     .89504E-01    .22321         .0000        .19012E-01
   5  Prefactor     .10001E-03    1.6653         .0000    ** at limit **
   6  Prefactor     1.0020        1.4852         .0000        .64422    
   7  Prefactor     .81868        1.8918         .0000        .59385E-02
   8  norm          13.765        3.0790         .0000        .83716E-02
   9  norm          1.8783        4.4106         .0000        .50400E-02
  10  Prefactor     6.0444        2.5106         .0000       -.23171E-02
  11  Prefactor     .10000E-03    1.6407         .0000    ** at limit **
  12  norm          5.5356        20.640         .0000        .51909E-03
  13  Prefactor     .10000E-03    7.9758         .0000    ** at limit **
  14  Prefactor     .10000E-03    4.5774         .0000    ** at limit **
  15  Prefactor     .10000E-03    1.1384         .0000    ** at limit **
  16  Prefactor     .10001E-03    1.2145         .0000    ** at limit **
  17  Normalizat    1.0317        .55685E-01     .0000        .81365E-03
  18  Prefactor     1.0366        .13779E-01     .0000        .11542E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.625028
  Prefactor  = 5.85397
  Prefactor  = 2.32724
  Prefactor  = 0.0895036
  Prefactor  = 0.000100013
  Prefactor  = 1.00203
  Prefactor  = 0.818684
  norm       = 13.7647
  norm       = 1.8783
  Prefactor  = 6.04438
  Prefactor  = 0.0001
  norm       = 5.53558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Normalizat = 1.03171
  Prefactor  = 1.03655
 **********
 **   18 **HESSE 
 **********

 FCN=   192033.7     FROM HESSE     STATUS=OK           280 CALLS     1867 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62503        1.0460        .23535E-02   -1.5550    
   2  Prefactor     5.8540        8.7353        .82959E-03   -1.5224    
   3  Prefactor     2.3272        1.2166        .13443E-02   -1.5403    
   4  Prefactor     .89504E-01    .97940        .30315E-02   -1.5648    
   5  Prefactor     .10001E-03    1.5418        .15894       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0020        1.4754        .27487E-02   -1.5508    
   7  Prefactor     .81868        8.2765        .88565E-02   -1.5527    
   8  norm          13.765        3.0768        .10796E-03   -1.4966    
   9  norm          1.8783        4.3858        .30373E-03   -1.5434    
  10  Prefactor     6.0444        2.5107        .16331E-03   -1.5216    
  11  Prefactor     .10000E-03    1.6252        .17573       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5356        20.641        .17075E-03   -1.5237    
  13  Prefactor     .10000E-03    8.2985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    1.2219        .13938       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0317        .58083E-01    .53713E-03   -.91976    
  18  Prefactor     1.0366        .14564E-01    .12960E-03   -.91521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30348e-06
Minuit parameter uncertainties:
  1  1.04599
  2  8.73722
  3  1.21663
  4  0.591829
  5  0.000279554
  6  1.47549
  7  5.20671
  8  3.07687
  9  4.38651
  10  2.51077
  11  5.37169e-05
  12  20.6675
  13  8.3296e-05
  14  2.11972e-05
  15  3.88757e-06
  16  0.000248411
  17  0.0580861
  18  0.0145644
Done.

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

Extracting fit parameters...

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  6.044e+00  2.511e+00  1.000e-04  1.000e+04 ( 1.000e-14)
289        Index:  1.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.037e+00  1.456e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.032e+00  5.809e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.30
Ra Dec: 76.996 67.622
Photon Index (Fixed Index): 1.58 +/- 0.00
Photon Flux (Fixed Index): 7.35e-09 +/- 3.05e-09
Energy Flux (Fixed Index): 1.79e-05 +/- 7.43e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 192033.342424
delta logL = 0.328074530524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 192033.286922
delta logL = 0.383576032182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5246       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3235       1.0000          .0000       10.000    
     3 'Normalizat'    1.0335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0366       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+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.

 FCN=   192033.3     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      271 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5252        2.8172        .78557E-03    .13893E-03
   2  Index         1.3233        .30403        .14336E-01    .77170E-04
   3  Normalizat    1.0335        .55489E-01    .53674E-03    .49479E-04
   4  Prefactor     1.0366        .13537E-01    .12960E-03   -.16842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.52519
  Index      = 1.32331
  Normalizat = 1.0335
  Prefactor  = 1.03664
 **********
 **   18 **HESSE 
 **********

 FCN=   192033.3     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5252        2.8241        .31423E-04   -1.5197    
   2  Index         1.3233        .30511        .57344E-03   -.82616    
   3  Normalizat    1.0335        .55496E-01    .21469E-04   -.91916    
   4  Prefactor     1.0366        .13540E-01    .51841E-05   -.91518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38887e-11
Minuit parameter uncertainties:
  1  2.82414
  2  0.305524
  3  0.055499
  4  0.0135398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/879011': 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) = 192033.286922
delta logL = 0.383576565393

Extracting fit parameters...

4FGL J0507.9+6737
   Spectrum: PowerLaw
288    Prefactor:  6.525e+00  2.824e+00  1.000e-04  1.000e+04 ( 1.000e-14)
289        Index:  1.323e+00  3.055e-01  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  6.445e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.037e+00  1.354e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.034e+00  5.550e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.05
Ra Dec: 76.996 67.622
Photon Index (Free Index): 1.32 +/- 0.31
Photon Flux (Free Index): 4.47e-09 +/- 3.35e-09
Energy Flux (Free Index): 2.54e-05 +/- 1.45e-05

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/879011/cmap_HighResolution_669859201_672451201_4FGL_J0507.9+6737_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.35e-09', energy_flux2='2.54e-05', photon_flux_error='3.05e-09', dlogl='3.84e-01', energy_flux='1.79e-05', photon_flux2='4.47e-09', job_status='DONE', time_completed='2022-04-24 03:47:30.393264', photon_index_error2='0.31', photon_index2='1.32', ts='24.30', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.03', time_epoch_completed='1650797250.39', return_code='0', job_id='879011', GAL2='1.04', EG2='1.03', return_code2='0', energy_flux_error='7.43e-06', photon_flux_error2='3.35e-09', ts2='25.05', photon_index='1.58' WHERE bin_id='167' AND source_name='4FGL J0507.9+6737' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 03:47:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 879011: <4FGL_J0507.9+6737_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0507.9+6737_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:55:41 2022
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 01:02:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 01:02:22 2022
Terminated at Sun Apr 24 03:47:32 2022
Results reported at Sun Apr 24 03:47:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0507.9+6737_monthly_bin167 76.9956 67.6223 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0507.9+6737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9773.00 sec.
    Max Memory :                                 1277 MB
    Average Memory :                             588.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9909 sec.
    Turnaround time :                            10311 sec.

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

