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


Performing analysis on: 4FGL_J2100.0+2103_monthly_bin170
RA = 315.001, Dec = 21.0615
tmin = 677635201, tmax = 680227201
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='119289', job_status='RUN', time_executed='2022-07-23 02:52:42.157315', time_epoch_executed='1658569962.16' WHERE source_name='4FGL J2100.0+2103' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/119289

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/119289/ft1_4FGL_J2100.0+2103_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/119289/ft1_4FGL_J2100.0+2103_monthly_bin170.fits outfile=/scratch/kocevski/119289/ft1_filteredMKT_4FGL_J2100.0+2103_monthly_bin170.fits ra=315.001 dec=21.0615 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.40
user 31.53
sys 0.75

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.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/119289/ft1_filteredMKT_4FGL_J2100.0+2103_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/119289/ft1_filtered_4FGL_J2100.0+2103_monthly_bin170.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.86
user 0.65
sys 0.18

Number of photons that the gtmktime cut: 13168

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/119289/ft1_filtered_4FGL_J2100.0+2103_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/119289/ltcube_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.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/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.fits
.....................!
real 111.13
user 110.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/119289/ft1_filtered_4FGL_J2100.0+2103_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/119289/ltcube_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.fits outfile=/scratch/kocevski/119289/expmap_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.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/119289/ltcube_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.fits
.....................!
real 190.87
user 185.20
sys 5.05

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 214 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 J2100.0+2103 @ 315.001 21.0615

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/119289/ft1_filtered_4FGL_J2100.0+2103_monthly_bin170.fits scfile=/scratch/kocevski/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.fits outfile=/scratch/kocevski/119289/cmap_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.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=315.001 yref=21.0615 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.79
user 0.63
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/119289/ft1_filtered_4FGL_J2100.0+2103_monthly_bin170.fits scfile=/scratch/kocevski/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.fits outfile=/scratch/kocevski/119289/cmap_HighResolution_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.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=315.001 yref=21.0615 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.79
user 0.63
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/119289/ft1_filtered_4FGL_J2100.0+2103_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/119289/Model_4FGL_J2100.0+2103_monthly_bin170.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/119289/ft1_filtered_4FGL_J2100.0+2103_monthly_bin170.fits.....................!
real 2375.77
user 2368.21
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/119289/ft1_filtered_4FGL_J2100.0+2103_monthly_bin170.fits', '/scratch/kocevski/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.fits', expMap='/scratch/kocevski/119289/expmap_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.fits', expCube='/scratch/kocevski/119289/ltcube_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/119289/Model_4FGL_J2100.0+2103_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2100.0+2103'

4FGL J2100.0+2103
   Spectrum: PowerLaw
486    Prefactor:  2.217e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
487        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
488        Scale:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/119289/ft1_filtered_4FGL_J2100.0+2103_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/119289/ft2_4FGL_J2100.0+2103_monthly_bin170.fits
Exposure map: /scratch/kocevski/119289/expmap_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.fits
Exposure cube: /scratch/kocevski/119289/ltcube_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/119289/Model_4FGL_J2100.0+2103_monthly_bin170.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) = 134749.871062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4091       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1089       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9873       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3807       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.8076       1.0000         .10000E-03   10000.    
     9 'norm      '    12.930       1.0000         .10000E-03   10000.    
    10 'norm      '    15.517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9388       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3640       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0572       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3415       1.0000         .10000E-03   10000.    
    18 'norm      '    .91009       1.0000         .10000E-03   10000.    
    19 'norm      '    .14889       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.013       1.0000         .10000E-03   10000.    
    23 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.046       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0445       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96837       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   134749.0     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     2780 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4092        1.0719       -.12886E-07   -.73087E-05
   2  norm          .10000E-03    .54781        .41254E-08** at limit **
   3  Prefactor     7.1094        3.5445        .10945E-06   -.74093E-03
   4  Prefactor     4.9870        4.4259       -.21285E-06   -.89602E-04
   5  norm          .10000E-03    .38229E-01    .10183E-07** at limit **
   6  Prefactor     3.3808        .61341       -.62328E-08   -.38244E-02
   7  Prefactor     .10000E-03    4.2245       -.68679E-07** at limit **
   8  norm          5.8078        2.3102       -.28291E-07   -.10481E-02
   9  norm          12.930        10.614       -.34438E-06    .58655E-05
  10  norm          15.517        6.0081       -.10172E-07    .49130E-04
  11  Prefactor     1.9388        2.0684       -.42105E-06   -.24035E-04
  12  Prefactor     7.3646        4.4160        .11354E-05    .12155E-04
  13  Prefactor     13.874        15.673       -.46185E-05   -.25335E-04
  14  Prefactor     .10000E-03    1.8534        .59278E-07** at limit **
  15  Prefactor     9.0564        7.5101        .56343E-06    .84864E-05
  16  Prefactor     .10000E-03    .22162        .75530E-07** at limit **
  17  Prefactor     6.3424        7.3258        .68505E-06   -.15423E-06
  18  norm          .90988        .79188       -.16259E-07   -.36725E-03
  19  norm          .15022        .36779       -.28687E-07   -.54276E-03
  20  Prefactor     .10000E-03    .24808       -.24349E-07** at limit **
  21  Prefactor     .10000E-03    .27223       -.23274E-08** at limit **
  22  Prefactor     16.013        15.810        .64154E-07   -.39775E-06
  23  norm          .10000E-03    .10466        .73041E-08** at limit **
  24  Prefactor     13.043        8.9404       -.12416E-06   -.98706E-05
  25  Normalizat    1.0445        .72526E-01    .52001E-08   -.77912E-04
  26  Prefactor     .96837        .18219E-01    .38619E-08   -.23593E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40923
  norm       = 0.0001
  Prefactor  = 7.10942
  Prefactor  = 4.98703
  norm       = 0.0001
  Prefactor  = 3.38077
  Prefactor  = 0.0001
  norm       = 5.80781
  norm       = 12.9302
  norm       = 15.5172
  Prefactor  = 1.93885
  Prefactor  = 7.3646
  Prefactor  = 13.8735
  Prefactor  = 0.0001
  Prefactor  = 9.05641
  Prefactor  = 0.0001
  Prefactor  = 6.34238
  norm       = 0.909878
  norm       = 0.150224
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.0126
  norm       = 0.0001
  Prefactor  = 13.0431
  Normalizat = 1.04451
  Prefactor  = 0.96837
 **********
 **   18 **HESSE 
 **********

 FCN=   134749.0     FROM HESSE     STATUS=OK           488 CALLS     3268 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4092        1.0742        .36505E-04   -1.5471    
   2  norm          .10000E-03    .57057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1094        3.7911        .75226E-03   -1.5175    
   4  Prefactor     4.9870        4.3016        .18008E-03   -1.5261    
   5  norm          .10000E-03    .77896E-01    .13230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3808        .98521        .95352E-03   -1.5340    
   7  Prefactor     .10000E-03    4.2399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.8078        2.5514        .83328E-03   -1.5226    
   9  norm          12.930        10.604        .11140E-03   -1.4989    
  10  norm          15.517        6.0113        .50838E-03   -1.4920    
  11  Prefactor     1.9388        2.0654        .29819E-03   -1.5429    
  12  Prefactor     7.3646        4.4184        .14780E-03   -1.5165    
  13  Prefactor     13.874        15.689        .10753E-03   -1.4963    
  14  Prefactor     .10000E-03    1.9043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0564        7.4819        .13318E-03   -1.5106    
  16  Prefactor     .10000E-03    1.4391        .31237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3424        7.3243        .15939E-03   -1.5204    
  18  norm          .90988        .84736        .27925E-02   -1.5517    
  19  norm          .15022        1.5205        .33053E-02   -1.5630    
  20  Prefactor     .10000E-03    .36255        .63726E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.0693        .36268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.013        15.801        .10009E-03   -1.4907    
  23  norm          .10000E-03    .32267        .22499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.043        8.8102        .11090E-03   -1.4986    
  25  Normalizat    1.0445        .76906E-01    .49000E-03   -.91554    
  26  Prefactor     .96837        .19902E-01    .13795E-03   -.93791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41748e-06
Minuit parameter uncertainties:
  1  1.07418
  2  4.25577e-08
  3  3.79128
  4  4.30187
  5  1.87706e-07
  6  0.985212
  7  9.24223e-07
  8  2.55142
  9  10.6054
  10  6.01154
  11  2.06545
  12  4.41856
  13  15.6941
  14  1.68958e-06
  15  7.48262
  16  1.34186e-05
  17  7.32533
  18  0.847375
  19  0.955555
  20  3.27305e-05
  21  1.89421e-06
  22  15.8053
  23  1.58718e-08
  24  8.81112
  25  0.0769139
  26  0.0199019
Done.

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

Extracting fit parameters...

4FGL J2100.0+2103
   Spectrum: PowerLaw
486    Prefactor:  7.365e+00  4.419e+00  1.000e-04  1.000e+04 ( 1.000e-13)
487        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
488        Scale:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  9.684e-01  1.990e-02  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  1.045e+00  7.691e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 315.001 21.061
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.94e-08 +/- 1.16e-08
Energy Flux (Fixed Index): 6.15e-06 +/- 3.69e-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) = 134748.674331
delta logL = 0.30447239941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 134748.661182
delta logL = 0.317622238392

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   134748.7     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      308 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6127        16.868        .46820E-02    .28221E-02
   2  Index         2.9673        1.0166        .22187        .11444E-02
   3  Normalizat    1.0277        .15743E-01    .11132        .56408E-03
   4  Prefactor     .97069        .41199E-02    .31184E-01    .20603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.61273
  Index      = 2.96726
  Normalizat = 1.02768
  Prefactor  = 0.970691
 **********
 **   18 **HESSE 
 **********

 FCN=   134748.7     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      341 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6127        53.247        .18728E-03   -1.5278    
   2  Index         2.9673        3.7671        .10668E-01   -.41867    
   3  Normalizat    1.0277        .10873        .49358E-03   -.92109    
   4  Prefactor     .97069        .22193E-01    .13780E-03   -.93713    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.98734e-05
Minuit parameter uncertainties:
  1  31.379
  2  4.42921
  3  0.108754
  4  0.0221932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/119289': 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) = 134748.661178
delta logL = 0.317625404132

Extracting fit parameters...

4FGL J2100.0+2103
   Spectrum: PowerLaw
486    Prefactor:  4.613e+00  3.138e+01  1.000e-04  1.000e+04 ( 1.000e-13)
487        Index:  2.967e+00  4.429e+00  0.000e+00  1.000e+01 (-1.000e+00)
488        Scale:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  9.707e-01  2.219e-02  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  1.028e+00  1.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.92
Ra Dec: 315.001 21.061
Photon Index (Free Index): 2.97 +/- 4.43
Photon Flux (Free Index): 3.31e-08 +/- 6.12e-08
Energy Flux (Free Index): 6.71e-06 +/- 4.72e-06

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/119289/cmap_HighResolution_677635201_680227201_4FGL_J2100.0+2103_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.94e-08', energy_flux2='6.71e-06', photon_flux_error='1.16e-08', dlogl='3.18e-01', energy_flux='6.15e-06', photon_flux2='3.31e-08', job_status='DONE', time_completed='2022-07-23 06:01:30.794825', photon_index_error2='4.43', photon_index2='2.97', ts='4.15', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='4.72e-06', EG='1.04', time_epoch_completed='1658581290.79', return_code='0', job_id='119289', GAL2='0.97', EG2='1.03', return_code2='102', energy_flux_error='3.69e-06', photon_flux_error2='6.12e-08', ts2='4.92', photon_index='2.43' WHERE bin_id='170' AND source_name='4FGL J2100.0+2103' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 06:01:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 119289: <4FGL_J2100.0+2103_monthly_bin170> in cluster <slac> Done

Job <4FGL_J2100.0+2103_monthly_bin170> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jul 23 02:50:30 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 02:50:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 02:50:32 2022
Terminated at Sat Jul 23 06:01:31 2022
Results reported at Sat Jul 23 06:01:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2100.0+2103_monthly_bin170 315.001 21.0615 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2100.0+2103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11258.00 sec.
    Max Memory :                                 645 MB
    Average Memory :                             536.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11460 sec.
    Turnaround time :                            11461 sec.

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

