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


Performing analysis on: 4FGL_J2000.0+4214_weekly_bin718
RA = 300.003, Dec = 42.2371
tmin = 673228801, tmax = 673833601
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='281855', job_status='RUN', time_executed='2022-05-10 01:28:04.639112', time_epoch_executed='1652171284.64' WHERE source_name='4FGL J2000.0+4214' and cadence='weekly' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/281855

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/281855/ft1_4FGL_J2000.0+4214_weekly_bin718.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/281855/ft2_4FGL_J2000.0+4214_weekly_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/281855/ft1_4FGL_J2000.0+4214_weekly_bin718.fits outfile=/scratch/kocevski/281855/ft1_filteredMKT_4FGL_J2000.0+4214_weekly_bin718.fits ra=300.003 dec=42.2371 rad=12.0 tmin=673228801.0 tmax=673833601.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 5.49
user 5.17
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/281855/ft2_4FGL_J2000.0+4214_weekly_bin718.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/281855/ft1_filteredMKT_4FGL_J2000.0+4214_weekly_bin718.fits evtable="EVENTS" outfile="/scratch/kocevski/281855/ft1_filtered_4FGL_J2000.0+4214_weekly_bin718.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.38
sys 0.18

Number of photons that the gtmktime cut: 20716

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/281855/ft1_filtered_4FGL_J2000.0+4214_weekly_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/281855/ft2_4FGL_J2000.0+4214_weekly_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/281855/ltcube_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.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/281855/ft2_4FGL_J2000.0+4214_weekly_bin718.fits
.....................!
real 35.29
user 34.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/281855/ft1_filtered_4FGL_J2000.0+4214_weekly_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/281855/ft2_4FGL_J2000.0+4214_weekly_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/281855/ltcube_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.fits outfile=/scratch/kocevski/281855/expmap_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.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/281855/ltcube_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.fits
.....................!
real 194.41
user 188.58
sys 5.46

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/281855/ft1_filtered_4FGL_J2000.0+4214_weekly_bin718.fits scfile=/scratch/kocevski/281855/ft2_4FGL_J2000.0+4214_weekly_bin718.fits outfile=/scratch/kocevski/281855/cmap_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.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.62
user 0.43
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/281855/ft1_filtered_4FGL_J2000.0+4214_weekly_bin718.fits scfile=/scratch/kocevski/281855/ft2_4FGL_J2000.0+4214_weekly_bin718.fits outfile=/scratch/kocevski/281855/cmap_HighResolution_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.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.63
user 0.45
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/281855/ft1_filtered_4FGL_J2000.0+4214_weekly_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/281855/ft2_4FGL_J2000.0+4214_weekly_bin718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/281855/Model_4FGL_J2000.0+4214_weekly_bin718.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/281855/ft1_filtered_4FGL_J2000.0+4214_weekly_bin718.fits.....................!
real 4187.07
user 4175.79
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/281855/ft1_filtered_4FGL_J2000.0+4214_weekly_bin718.fits', '/scratch/kocevski/281855/ft2_4FGL_J2000.0+4214_weekly_bin718.fits', expMap='/scratch/kocevski/281855/expmap_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.fits', expCube='/scratch/kocevski/281855/ltcube_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/281855/Model_4FGL_J2000.0+4214_weekly_bin718.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/281855/ft1_filtered_4FGL_J2000.0+4214_weekly_bin718.fits
Spacecraft file(s): /scratch/kocevski/281855/ft2_4FGL_J2000.0+4214_weekly_bin718.fits
Exposure map: /scratch/kocevski/281855/expmap_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.fits
Exposure cube: /scratch/kocevski/281855/ltcube_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/281855/Model_4FGL_J2000.0+4214_weekly_bin718.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) = 179127.351658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2809       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8741       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .15869E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.317       1.0000         .10000E-03   10000.    
     8 'norm      '    .11247E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9819       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8350       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6650       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4453       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11284E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5555       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2615       1.0000         .10000E-03   10000.    
    17 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .89401       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0386       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.

 FCN=   179127.3     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1733 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2808        5.1266         .0000        .30929E-01
   2  Prefactor     .10000E-03    90.507         .0000    ** at limit **
   3  Prefactor     .10000E-03    1.8917         .0000    ** at limit **
   4  norm          3.8739        7.2476         .0000        .79581E-02
   5  Prefactor     .10000E-03    4.0258         .0000    ** at limit **
   6  norm          .10000E-03    .35001         .0000    ** at limit **
   7  Prefactor     15.320        7.3702         .0000        .61300E-03
   8  norm          .10000E-03    .76443         .0000    ** at limit **
   9  Prefactor     5.9801        9.1473         .0000       -.99796E-03
  10  norm          3.8350        .94810         .0000        .38408E-02
  11  norm          4.6647        2.1949         .0000        .58954E-01
  12  Prefactor     2.4452        .11844         .0000        .53241E-02
  13  Prefactor     .10000E-03    8.6010         .0000    ** at limit **
  14  norm          .10000E-03    .16180         .0000    ** at limit **
  15  norm          4.5555        2.1517         .0000        .15298E-02
  16  norm          6.2614        2.4681         .0000        .57452E-01
  17  norm          .10000E-03    .36135         .0000    ** at limit **
  18  Normalizat    .89395        .10846         .0000        .99483E-03
  19  Prefactor     1.0386        .13076E-01     .0000        .92966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28082
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 3.87392
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3199
  norm       = 0.000100001
  Prefactor  = 5.98007
  norm       = 3.83502
  norm       = 4.66469
  Prefactor  = 2.44524
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.55549
  norm       = 6.26137
  norm       = 0.0001
  Normalizat = 0.893953
  Prefactor  = 1.03863
 **********
 **   18 **HESSE 
 **********

 FCN=   179127.3     FROM HESSE     STATUS=OK           290 CALLS     2023 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2808        5.0912        .19608E-02   -1.5482    
   2  Prefactor     .10000E-03    90.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8739        7.2493        .10250E-02   -1.5314    
   5  Prefactor     .10000E-03    4.0585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9070        .48349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.320        7.3249        .10234E-03   -1.4925    
   8  norm          .10000E-03    .89065        .15498       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9801        9.1375        .16417E-03   -1.5219    
  10  norm          3.8350        .94731        .19903E-03   -1.5316    
  11  norm          4.6647        2.1917        .93164E-03   -1.5276    
  12  Prefactor     2.4452        .11818        .29984E-04   -1.5395    
  13  Prefactor     .10000E-03    8.6798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4441        .32735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5555        2.1485        .18861E-03   -1.5281    
  16  norm          6.2614        2.4682        .80210E-03   -1.5207    
  17  norm          .10000E-03    1.2123        .49494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .89395        .10383        .11959E-02   -.96673    
  19  Prefactor     1.0386        .12822E-01    .12741E-03   -.91453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77022e-09
Minuit parameter uncertainties:
  1  5.09288
  2  0.00101459
  3  2.34741e-07
  4  7.25091
  5  5.44483e-06
  6  2.55575e-06
  7  7.32533
  8  6.42905e-05
  9  9.13965
  10  0.947317
  11  2.19174
  12  0.118177
  13  5.79939e-05
  14  4.00138e-06
  15  2.14849
  16  2.46827
  17  3.54471e-07
  18  0.10385
  19  0.0128222
Done.

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

Extracting fit parameters...

4FGL J2000.0+4214
   Spectrum: PowerLaw
353    Prefactor:  1.532e+01  7.325e+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.039e+00  1.282e-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:  8.940e-01  1.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.44
Ra Dec: 300.003 42.237
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 6.97e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 9.93e-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) = 179126.59284
delta logL = 0.669386520429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 179126.589944
delta logL = 0.672282635729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5140       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0852       1.0000          .0000       10.000    
     3 'Normalizat'    .87373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0390       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.

 FCN=   179126.6     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      325 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5123        18.614        .39311E-02    .29758E-02
   2  Index         3.0854        .62087        .21918        .17710E-02
   3  Normalizat    .87373        .28499E-01    .26880        .85162E-03
   4  Prefactor     1.0390        .31847E-02    .28823E-01   -.25099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.51232
  Index      = 3.08538
  Normalizat = 0.873733
  Prefactor  = 1.03904
 **********
 **   18 **HESSE 
 **********

 FCN=   179126.6     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      358 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5123        55.650        .15724E-03   -1.5198    
   2  Index         3.0854        2.7311        .78074E-02   -.39296    
   3  Normalizat    .87373        .11046        .12072E-02   -.97389    
   4  Prefactor     1.0390        .11565E-01    .12738E-03   -.91439    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22551e-08
Minuit parameter uncertainties:
  1  38.1217
  2  2.92221
  3  0.110487
  4  0.0115655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/281855': 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) = 179126.589944
delta logL = 0.672282659187

Extracting fit parameters...

4FGL J2000.0+4214
   Spectrum: PowerLaw
353    Prefactor:  6.512e+00  3.812e+01  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  3.085e+00  2.922e+00  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.039e+00  1.157e-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:  8.737e-01  1.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.92
Ra Dec: 300.003 42.237
Photon Index (Free Index): 3.09 +/- 2.92
Photon Flux (Free Index): 1.04e-07 +/- 6.15e-08
Energy Flux (Free Index): 1.99e-05 +/- 1.86e-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/281855/cmap_HighResolution_673228801_673833601_4FGL_J2000.0+4214_weekly_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.97e-08', energy_flux2='1.99e-05', photon_flux_error='3.33e-08', dlogl='6.72e-01', energy_flux='2.08e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2022-05-10 04:55:30.880421', photon_index_error2='2.92', photon_index2='3.09', ts='5.44', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='0.89', time_epoch_completed='1652183730.88', return_code='0', job_id='281855', GAL2='1.04', EG2='0.87', return_code2='102', energy_flux_error='9.93e-06', photon_flux_error2='6.15e-08', ts2='6.92', photon_index='2.48' WHERE bin_id='718' AND source_name='4FGL J2000.0+4214' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 10 04:55:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 281855: <4FGL_J2000.0+4214_weekly_bin718> in cluster <slac> Done

Job <4FGL_J2000.0+4214_weekly_bin718> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 10 01:25:21 2022
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 10 01:25:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 10 01:25:42 2022
Terminated at Tue May 10 04:55:33 2022
Results reported at Tue May 10 04:55:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2000.0+4214_weekly_bin718 300.003 42.2371 673228801 673833601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2000.0+4214 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12431.00 sec.
    Max Memory :                                 687 MB
    Average Memory :                             649.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12593 sec.
    Turnaround time :                            12612 sec.

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

