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


Performing analysis on: 4FGL_J2000.0+4214_weekly_bin716
RA = 300.003, Dec = 42.2371
tmin = 672019201, tmax = 672624001
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='659275', job_status='RUN', time_executed='2022-04-26 01:22:15.167491', time_epoch_executed='1650961335.17' WHERE source_name='4FGL J2000.0+4214' and cadence='weekly' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659275

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659275/ft1_4FGL_J2000.0+4214_weekly_bin716.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659275/ft1_4FGL_J2000.0+4214_weekly_bin716.fits outfile=/scratch/kocevski/659275/ft1_filteredMKT_4FGL_J2000.0+4214_weekly_bin716.fits ra=300.003 dec=42.2371 rad=12.0 tmin=672019201.0 tmax=672624001.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 8.82
user 8.48
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.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/659275/ft1_filteredMKT_4FGL_J2000.0+4214_weekly_bin716.fits evtable="EVENTS" outfile="/scratch/kocevski/659275/ft1_filtered_4FGL_J2000.0+4214_weekly_bin716.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.57
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 13705

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659275/ft1_filtered_4FGL_J2000.0+4214_weekly_bin716.fits" evtable="EVENTS" scfile=/scratch/kocevski/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.fits sctable="SC_DATA" outfile=/scratch/kocevski/659275/ltcube_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.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/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.fits
.....................!
real 26.77
user 26.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659275/ft1_filtered_4FGL_J2000.0+4214_weekly_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/659275/ltcube_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.fits outfile=/scratch/kocevski/659275/expmap_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.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/659275/ltcube_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.fits
.....................!
real 191.77
user 186.64
sys 4.77

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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 204 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 J2000.0+4214 @ 300.003 42.2371

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/659275/ft1_filtered_4FGL_J2000.0+4214_weekly_bin716.fits scfile=/scratch/kocevski/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.fits outfile=/scratch/kocevski/659275/cmap_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.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=300.003 yref=42.2371 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.60
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659275/ft1_filtered_4FGL_J2000.0+4214_weekly_bin716.fits scfile=/scratch/kocevski/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.fits outfile=/scratch/kocevski/659275/cmap_HighResolution_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.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=300.003 yref=42.2371 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.61
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659275/ft1_filtered_4FGL_J2000.0+4214_weekly_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659275/Model_4FGL_J2000.0+4214_weekly_bin716.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/659275/ft1_filtered_4FGL_J2000.0+4214_weekly_bin716.fits.....................!
real 2852.01
user 2845.71
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659275/ft1_filtered_4FGL_J2000.0+4214_weekly_bin716.fits', '/scratch/kocevski/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.fits', expMap='/scratch/kocevski/659275/expmap_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.fits', expCube='/scratch/kocevski/659275/ltcube_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659275/Model_4FGL_J2000.0+4214_weekly_bin716.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2000.0+4214'

4FGL J2000.0+4214
   Spectrum: PowerLaw
353    Prefactor:  1.968e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.478e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/659275/ft1_filtered_4FGL_J2000.0+4214_weekly_bin716.fits
Spacecraft file(s): /scratch/kocevski/659275/ft2_4FGL_J2000.0+4214_weekly_bin716.fits
Exposure map: /scratch/kocevski/659275/expmap_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.fits
Exposure cube: /scratch/kocevski/659275/ltcube_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659275/Model_4FGL_J2000.0+4214_weekly_bin716.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) = 123884.829747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.264       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0662       1.0000         .10000E-03   10000.    
     4 'norm      '    7.9263       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0082       1.0000         .10000E-03   10000.    
     6 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.085       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3091       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2284       1.0000         .10000E-03   10000.    
    11 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3018       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14862E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .13851       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4792       1.0000         .10000E-03   10000.    
    17 'norm      '    5.7313       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2540       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   123884.8     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1723 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.264        11.237       -.30898E-06    .33218E-05
   2  Prefactor     .10000E-03    61.104       -.77014E-05** at limit **
   3  Prefactor     6.0660        3.8114        .11524E-05   -.75215E-05
   4  norm          7.9262        6.4778       -.23147E-05   -.46039E-05
   5  Prefactor     4.0060        12.793       -.49135E-06    .11146E-04
   6  norm          .10000E-03    .66939        .19016E-06** at limit **
   7  Prefactor     13.084        8.5214       -.18673E-05   -.14999E-04
   8  norm          2.9514        4.8654       -.13838E-05    .41753E-05
   9  Prefactor     2.3078        13.744       -.18400E-05   -.24327E-05
  10  norm          3.2285        1.2554       -.80241E-09    .13135E-03
  11  norm          .10000E-03    .50786       -.75392E-07** at limit **
  12  Prefactor     2.3018        .14408        .47759E-08    .29891E-03
  13  Prefactor     .10000E-03    12.337        .12326E-05** at limit **
  14  norm          .10088E-03    .34519        .12091E-06** at limit **
  15  norm          .12950        .73527       -.69804E-06    .18933E-02
  16  norm          1.4797        .22313        .28818E-07   -.73906E-03
  17  norm          5.7319        3.3832        .16415E-05    .21609E-03
  18  Normalizat    1.2540        .14657        .62230E-07    .61638E-04
  19  Prefactor     1.0301        .15470E-01    .10012E-09    .57374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2639
  Prefactor  = 0.0001
  Prefactor  = 6.06604
  norm       = 7.92625
  Prefactor  = 4.00604
  norm       = 0.0001
  Prefactor  = 13.0839
  norm       = 2.95141
  Prefactor  = 2.30783
  norm       = 3.22849
  norm       = 0.000100001
  Prefactor  = 2.30183
  Prefactor  = 0.0001
  norm       = 0.000100881
  norm       = 0.129502
  norm       = 1.47968
  norm       = 5.73187
  Normalizat = 1.25403
  Prefactor  = 1.03009
 **********
 **   18 **HESSE 
 **********

 FCN=   123884.8     FROM HESSE     STATUS=OK           298 CALLS     2021 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.264        11.234        .12506E-03   -1.5067    
   2  Prefactor     .10000E-03    61.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0660        3.8076        .16301E-03   -1.5215    
   4  norm          7.9262        6.4781        .14242E-03   -1.5145    
   5  Prefactor     4.0060        12.781        .20144E-03   -1.5308    
   6  norm          .10000E-03    2.1610        .55756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.084        8.5043        .11073E-03   -1.4984    
   8  norm          2.9514        4.8507        .23641E-03   -1.5364    
   9  Prefactor     2.3078        13.671        .27001E-03   -1.5404    
  10  norm          3.2285        1.2540        .22545E-03   -1.5349    
  11  norm          .10000E-03    2.1882        .48044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3018        .14600        .31613E-04   -1.5405    
  13  Prefactor     .10000E-03    12.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10088E-03    .42952        .62013E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .12950        .71254        .96606E-01   -1.5636    
  16  norm          1.4797        3.2201        .17648E-02   -1.5465    
  17  norm          5.7319        3.3861        .16778E-03   -1.5229    
  18  Normalizat    1.2540        .14398        .11486E-02   -.84949    
  19  Prefactor     1.0301        .16052E-01    .13066E-03   -.91733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68198e-09
Minuit parameter uncertainties:
  1  11.2362
  2  8.0438e-06
  3  3.80778
  4  6.47865
  5  12.7894
  6  4.05986e-05
  7  8.50508
  8  4.85136
  9  11.2377
  10  1.25405
  11  6.67876e-05
  12  0.145995
  13  8.67988e-06
  14  0.00123044
  15  0.607315
  16  3.22049
  17  3.38618
  18  0.144028
  19  0.0160523
Done.

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

Extracting fit parameters...

4FGL J2000.0+4214
   Spectrum: PowerLaw
353    Prefactor:  1.308e+01  8.505e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.478e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  1.030e+00  1.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
747        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
748        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
742   Normalization:  1.254e+00  1.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.05
Ra Dec: 300.003 42.237
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.15e-05

TS (Fixed Index): 3.05
Ra Dec: 300.003 42.237
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659275/likelihoodResults_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.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): 0
logL (Free Index) = 123884.751285
delta logL = 0.000207346252864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 123884.751163
delta logL = 0.000329332251567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.246       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4670       1.0000          .0000       10.000    
     3 'Normalizat'    1.2544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7570E+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=   123884.8     FROM MIGRAD    STATUS=FAILED       103 CALLS      283 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.251        12.379        .11006E-03    .74375E-04
   2  Index         2.4664        .50141        .14254E-01    .34677E-02
   3  Normalizat    1.2543        .13898        .11485E-02   -.28507E-04
   4  Prefactor     1.0301        .14685E-01    .13066E-03   -.41346E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   123884.8     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      360 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.251        12.379        .12293E-03   -1.4980    
   2  Index         2.4664        .50141        .55135E-03   -.53137    
   3  Normalizat    1.2543        .13898        .26732E-03   -.84940    
   4  Prefactor     1.0301        .14685E-01    .26687E-04   -.91733    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   123884.8     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      389 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.251        10.952        .44023E-05    .74375E-04
   2  Index         2.4664        .44404        .28507E-02    .13574E-03
   3  Normalizat    1.2543        .13889        .45942E-04   -.29299E-04
   4  Prefactor     1.0301        .14683E-01    .52265E-05   -.41068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2506
  Index      = 2.46641
  Normalizat = 1.25432
  Prefactor  = 1.03008
 **********
 **   18 **HESSE 
 **********

 FCN=   123884.8     FROM HESSE     STATUS=OK            25 CALLS      414 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.251        10.603        .88045E-06   -1.4980    
   2  Index         2.4664        .43382        .57015E-03   -.53137    
   3  Normalizat    1.2543        .13890        .91884E-05   -.84940    
   4  Prefactor     1.0301        .14684E-01    .10453E-05   -.91733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33112e-12
Minuit parameter uncertainties:
  1  10.6041
  2  0.434554
  3  0.138943
  4  0.0146841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659275': 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) = 123884.75116
delta logL = 0.000332542258548

Extracting fit parameters...

4FGL J2000.0+4214
   Spectrum: PowerLaw
353    Prefactor:  1.325e+01  1.060e+01  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.466e+00  4.346e-01  0.000e+00  1.000e+01 (-1.000e+00)
355        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  1.030e+00  1.468e-02  0.000e+00  1.000e+01 ( 1.000e+00)
747        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
748        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
742   Normalization:  1.254e+00  1.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 300.003 42.237
Photon Index (Free Index): 2.47 +/- 0.43
Photon Flux (Free Index): 5.90e-08 +/- 4.37e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/659275/cmap_HighResolution_672019201_672624001_4FGL_J2000.0+4214_weekly_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='1.78e-05', photon_flux_error='3.87e-08', dlogl='3.33e-04', energy_flux='1.77e-05', photon_flux2='5.90e-08', job_status='DONE', time_completed='2022-04-26 04:07:59.633202', photon_index_error2='0.43', photon_index2='2.47', ts='3.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.17e-05', EG='1.25', time_epoch_completed='1650971279.63', return_code='0', job_id='659275', GAL2='1.03', EG2='1.25', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.37e-08', ts2='3.05', photon_index='2.48' WHERE bin_id='716' AND source_name='4FGL J2000.0+4214' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 26 04:07:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 659275: <4FGL_J2000.0+4214_weekly_bin716> in cluster <slac> Done

Job <4FGL_J2000.0+4214_weekly_bin716> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 26 00:50:26 2022
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 26 01:18:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 26 01:18:57 2022
Terminated at Tue Apr 26 04:08:02 2022
Results reported at Tue Apr 26 04:08:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9934.00 sec.
    Max Memory :                                 1273 MB
    Average Memory :                             556.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   5 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10144 sec.
    Turnaround time :                            11856 sec.

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

