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


Performing analysis on: 4FGL_J2114.8+2831_monthly_bin169
RA = 318.716, Dec = 28.5222
tmin = 675043201, tmax = 677635201
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='189048', job_status='RUN', time_executed='2022-06-23 03:08:27.190983', time_epoch_executed='1655978907.19' WHERE source_name='4FGL J2114.8+2831' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189048

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189048/ft1_4FGL_J2114.8+2831_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189048/ft1_4FGL_J2114.8+2831_monthly_bin169.fits outfile=/scratch/kocevski/189048/ft1_filteredMKT_4FGL_J2114.8+2831_monthly_bin169.fits ra=318.716 dec=28.5222 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.76
user 26.94
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.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/189048/ft1_filteredMKT_4FGL_J2114.8+2831_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/189048/ft1_filtered_4FGL_J2114.8+2831_monthly_bin169.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.91
user 0.70
sys 0.19

Number of photons that the gtmktime cut: 22004

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189048/ft1_filtered_4FGL_J2114.8+2831_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/189048/ltcube_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.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/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.fits
.....................!
real 153.97
user 153.25
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189048/ft1_filtered_4FGL_J2114.8+2831_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/189048/ltcube_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.fits outfile=/scratch/kocevski/189048/expmap_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.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/189048/ltcube_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.fits
.....................!
real 196.04
user 188.41
sys 6.21

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 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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 205 point sources and 3 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 J2114.8+2831 @ 318.716 28.5222

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/189048/ft1_filtered_4FGL_J2114.8+2831_monthly_bin169.fits scfile=/scratch/kocevski/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.fits outfile=/scratch/kocevski/189048/cmap_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.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=318.716 yref=28.5222 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.66
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189048/ft1_filtered_4FGL_J2114.8+2831_monthly_bin169.fits scfile=/scratch/kocevski/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.fits outfile=/scratch/kocevski/189048/cmap_HighResolution_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.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=318.716 yref=28.5222 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.83
user 0.65
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/189048/ft1_filtered_4FGL_J2114.8+2831_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189048/Model_4FGL_J2114.8+2831_monthly_bin169.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 GAL_V02
adding source gamma Cygni
Working on...
/scratch/kocevski/189048/ft1_filtered_4FGL_J2114.8+2831_monthly_bin169.fits.....................!
real 4505.74
user 4494.27
sys 2.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/189048/ft1_filtered_4FGL_J2114.8+2831_monthly_bin169.fits', '/scratch/kocevski/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.fits', expMap='/scratch/kocevski/189048/expmap_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.fits', expCube='/scratch/kocevski/189048/ltcube_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/189048/Model_4FGL_J2114.8+2831_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2114.8+2831'

4FGL J2114.8+2831
   Spectrum: PowerLaw
465    Prefactor:  1.040e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
466        Index:  2.712e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
467        Scale:  7.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/189048/ft1_filtered_4FGL_J2114.8+2831_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/189048/ft2_4FGL_J2114.8+2831_monthly_bin169.fits
Exposure map: /scratch/kocevski/189048/expmap_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.fits
Exposure cube: /scratch/kocevski/189048/ltcube_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/189048/Model_4FGL_J2114.8+2831_monthly_bin169.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) = 220282.969146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7272       1.0000         .10000E-03   10000.    
     3 'norm      '    .98013       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2864       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0276       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6652       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.431       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18412       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8861       1.0000         .10000E-03   10000.    
    12 'norm      '    .49535E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3266       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5758       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8684       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2364       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   220282.0     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1723 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3860        .37469E-08** at limit **
   2  norm          1.7273        .74419       -.41052E-07   -.95899E-03
   3  norm          .98006        .71377       -.42944E-07   -.54757E-03
   4  Prefactor     2.2863        .88596       -.23475E-07   -.53880E-03
   5  norm          3.0241        3.3844       -.13916E-06   -.32697E-03
   6  Prefactor     4.6646        3.3474       -.22414E-07    .16794E-02
   7  Prefactor     .10000E-03    62.342        .15966E-08** at limit **
   8  Prefactor     13.410        7.2135        .43351E-07   -.23758E-02
   9  Prefactor     .21203        .81810       -.10723E-06   -.20100E-03
  10  Prefactor     .10000E-03    .29358        .16039E-08** at limit **
  11  norm          1.8858        .85893       -.19629E-07   -.45303E-03
  12  norm          .49600E-01    .85610E-01   -.51979E-07    .52029E-03
  13  norm          1.3264        .70465       -.21194E-07   -.53599E-03
  14  norm          1.5757        1.3916       -.10822E-07   -.72119E-04
  15  Prefactor     .10000E-03    3.7753       -.32729E-09** at limit **
  16  Prefactor     1.8684        1.2721       -.31049E-07   -.30614E-03
  17  norm          .10000E-03    .22096E-01   -.29131E-09** at limit **
  18  Normalizat    1.2363        .60446E-01    .63181E-08    .11160E-03
  19  Prefactor     .96192        .12969E-01    .12679E-07    .41450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.72734
  norm       = 0.980064
  Prefactor  = 2.28632
  norm       = 3.02411
  Prefactor  = 4.66456
  Prefactor  = 0.0001
  Prefactor  = 13.4096
  Prefactor  = 0.212028
  Prefactor  = 0.0001
  norm       = 1.88582
  norm       = 0.0496005
  norm       = 1.32637
  norm       = 1.57575
  Prefactor  = 0.0001
  Prefactor  = 1.86836
  norm       = 0.0001
  Normalizat = 1.23632
  Prefactor  = 0.961923
 **********
 **   18 **HESSE 
 **********

 FCN=   220282.0     FROM HESSE     STATUS=OK           292 CALLS     2015 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7273        .80186        .27263E-03   -1.5445    
   3  norm          .98006        .86583        .34560E-02   -1.5510    
   4  Prefactor     2.2863        .90492        .27149E-03   -1.5406    
   5  norm          3.0241        3.6449        .11661E-02   -1.5360    
   6  Prefactor     4.6646        3.3458        .18632E-03   -1.5276    
   7  Prefactor     .10000E-03    64.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.410        7.1966        .10930E-03   -1.4975    
   9  Prefactor     .21203        .89477        .16702       -1.5616    
  10  Prefactor     .10000E-03    .30486        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8858        .86705        .28849E-03   -1.5433    
  12  norm          .49600E-01    .19491        .21501E-02   -1.5663    
  13  norm          1.3264        .70741        .28302E-03   -1.5478    
  14  norm          1.5757        1.3922        .33849E-03   -1.5457    
  15  Prefactor     .10000E-03    3.7770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8684        1.2856        .30474E-03   -1.5435    
  17  norm          .10000E-03    .58937E-01    .13487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2363        .63416E-01    .56118E-03   -.85488    
  19  Prefactor     .96192        .13935E-01    .13591E-03   -.94010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65878e-07
Minuit parameter uncertainties:
  1  6.22415e-06
  2  0.801862
  3  0.865838
  4  0.904922
  5  3.64516
  6  3.34598
  7  2.55779e-05
  8  7.19707
  9  0.870947
  10  3.45959e-08
  11  0.867051
  12  0.194913
  13  0.70741
  14  1.39223
  15  5.8921e-07
  16  1.28564
  17  2.2908e-09
  18  0.0634202
  19  0.0139352
Done.

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

Extracting fit parameters...

4FGL J2114.8+2831
   Spectrum: PowerLaw
465    Prefactor:  1.000e-04  3.460e-08  1.000e-04  1.000e+04 ( 1.000e-12)
466        Index:  2.712e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
467        Scale:  7.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.619e-01  1.394e-02  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
735   Normalization:  1.236e+00  6.342e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 318.716 28.522
Photon Flux Upper Limit: 1.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189048/likelihoodResults_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.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) = 220281.997981
delta logL = -0.0155602882151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 220281.982414
delta logL = 7.14944326319e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6791       1.0000          .0000       10.000    
     3 'Normalizat'    1.2363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   220282.0     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      251 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22034E-01    .90712E-01** at limit **
   2  Index         2.1479        5.4851        .50000       -.41895E-04
   3  Normalizat    1.2363        .70014E-03    .12645        .54379E-03
   4  Prefactor     .96192        .15251E-03    .30758E-01   -.49016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1479
  Normalizat = 1.23632
  Prefactor  = 0.961923
 **********
 **   18 **HESSE 
 **********

 FCN=   220282.0     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      284 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6254        .34865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1479        5.9905        .50000       -.60702    
   3  Normalizat    1.2363        .65998E-02    .56118E-03   -.85488    
   4  Prefactor     .96192        .14440E-02    .13591E-03   -.94010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.1127e-07
Minuit parameter uncertainties:
  1  5.96013e-05
  2  82.433
  3  0.00659983
  4  0.00144396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189048': 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) = 220281.982357
delta logL = 6.35881151538e-05

Extracting fit parameters...

4FGL J2114.8+2831
   Spectrum: PowerLaw
465    Prefactor:  1.000e-04  5.960e-05  1.000e-04  1.000e+04 ( 1.000e-12)
466        Index:  2.148e+00  8.243e+01  0.000e+00  1.000e+01 (-1.000e+00)
467        Scale:  7.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.619e-01  1.444e-03  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
735   Normalization:  1.236e+00  6.600e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 318.716 28.522

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/189048/cmap_HighResolution_675043201_677635201_4FGL_J2114.8+2831_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-03', job_status='DONE', photon_flux_upper_limit='1.52e-08', time_completed='2022-06-23 07:32:08.434128', job_id='189048', GAL2='0.96', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1655994728.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.36e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='169' AND source_name='4FGL J2114.8+2831' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 07:32:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 189048: <4FGL_J2114.8+2831_monthly_bin169> in cluster <slac> Done

Job <4FGL_J2114.8+2831_monthly_bin169> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Jun 23 03:05:29 2022
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 03:08:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 03:08:07 2022
Terminated at Thu Jun 23 07:32:10 2022
Results reported at Thu Jun 23 07:32:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2114.8+2831_monthly_bin169 318.716 28.5222 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2114.8+2831 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   15766.00 sec.
    Max Memory :                                 698 MB
    Average Memory :                             655.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15844 sec.
    Turnaround time :                            16001 sec.

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

