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


Performing analysis on: 4FGL_J2157.5+3127_monthly_bin168
RA = 329.386, Dec = 31.4552
tmin = 672451201, tmax = 675043201
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='651246', job_status='RUN', time_executed='2022-05-24 04:17:16.347311', time_epoch_executed='1653391036.35' WHERE source_name='4FGL J2157.5+3127' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/651246

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/651246/ft1_4FGL_J2157.5+3127_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/651246/ft1_4FGL_J2157.5+3127_monthly_bin168.fits outfile=/scratch/kocevski/651246/ft1_filteredMKT_4FGL_J2157.5+3127_monthly_bin168.fits ra=329.386 dec=31.4552 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.75
user 27.94
sys 0.62

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.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/651246/ft1_filteredMKT_4FGL_J2157.5+3127_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/651246/ft1_filtered_4FGL_J2157.5+3127_monthly_bin168.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.87
user 0.67
sys 0.17

Number of photons that the gtmktime cut: 14815

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/651246/ft1_filtered_4FGL_J2157.5+3127_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/651246/ltcube_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.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/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.fits
.....................!
real 121.07
user 120.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/651246/ft1_filtered_4FGL_J2157.5+3127_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/651246/ltcube_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.fits outfile=/scratch/kocevski/651246/expmap_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.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/651246/ltcube_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.fits
.....................!
real 192.84
user 186.98
sys 4.67

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 186 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 J2157.5+3127 @ 329.386 31.4552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/651246/ft1_filtered_4FGL_J2157.5+3127_monthly_bin168.fits scfile=/scratch/kocevski/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.fits outfile=/scratch/kocevski/651246/cmap_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.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=329.386 yref=31.4552 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.80
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/651246/ft1_filtered_4FGL_J2157.5+3127_monthly_bin168.fits scfile=/scratch/kocevski/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.fits outfile=/scratch/kocevski/651246/cmap_HighResolution_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.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=329.386 yref=31.4552 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.80
user 0.63
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/651246/ft1_filtered_4FGL_J2157.5+3127_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/651246/Model_4FGL_J2157.5+3127_monthly_bin168.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/651246/ft1_filtered_4FGL_J2157.5+3127_monthly_bin168.fits.....................!
real 2542.81
user 2526.66
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/651246/ft1_filtered_4FGL_J2157.5+3127_monthly_bin168.fits', '/scratch/kocevski/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.fits', expMap='/scratch/kocevski/651246/expmap_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.fits', expCube='/scratch/kocevski/651246/ltcube_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/651246/Model_4FGL_J2157.5+3127_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2157.5+3127'

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.006e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
369        alpha:  2.171e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
370         beta:  1.366e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
371           Eb:  6.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/651246/ft1_filtered_4FGL_J2157.5+3127_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/651246/ft2_4FGL_J2157.5+3127_monthly_bin168.fits
Exposure map: /scratch/kocevski/651246/expmap_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.fits
Exposure cube: /scratch/kocevski/651246/ltcube_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/651246/Model_4FGL_J2157.5+3127_monthly_bin168.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) = 150948.512113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .86110       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4998       1.0000         .10000E-03   10000.    
     4 'norm      '    .74254E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2361       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.694       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.670       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12899E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.770       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.742       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5377       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5137       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .96125       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98594       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   150948.5     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2005 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5225        7.2979         .0000        .22007E-03
   2  Prefactor     .86129        .91939         .0000        .17706E-01
   3  norm          2.4998        1.2352         .0000        .91486E-02
   4  norm          .74241E-01    .12524         .0000        .40569E-01
   5  norm          4.2361        2.3767         .0000        .27895E-01
   6  Prefactor     10.694        15.122         .0000        .52024E-04
   7  Prefactor     .10000E-03    .34903         .0000    ** at limit **
   8  norm          .10000E-03    .23737E-01     .0000    ** at limit **
   9  Prefactor     .10000E-03    3.2524         .0000    ** at limit **
  10  norm          10.670        .38343         .0000       -.33605E-03
  11  Prefactor     .10000E-03    1.4001         .0000    ** at limit **
  12  Prefactor     2.2192        2.4282         .0000        .48342E-01
  13  Prefactor     30.770        19.510         .0000        .74784E-03
  14  Prefactor     16.742        4.6619         .0000        .43553E-02
  15  norm          2.5377        .34568         .0000        .39928E-02
  16  Prefactor     .10000E-03    3.4301         .0000    ** at limit **
  17  Prefactor     2.5139        3.1751         .0000        .23113E-02
  18  Normalizat    .96123        .61493E-01     .0000        .56660E-03
  19  Prefactor     .98595        .19837E-01     .0000       -.23403E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.52247
  Prefactor  = 0.861289
  norm       = 2.49977
  norm       = 0.0742409
  norm       = 4.2361
  Prefactor  = 10.6943
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6697
  Prefactor  = 0.0001
  Prefactor  = 2.21921
  Prefactor  = 30.7702
  Prefactor  = 16.7419
  norm       = 2.53767
  Prefactor  = 0.0001
  Prefactor  = 2.51389
  Normalizat = 0.961231
  Prefactor  = 0.985946
 **********
 **   18 **HESSE 
 **********

 FCN=   150948.5     FROM HESSE     STATUS=OK           288 CALLS     2293 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5225        7.2940        .12987E-03   -1.5091    
   2  Prefactor     .86129        1.2327        .31880E-02   -1.5522    
   3  norm          2.4998        1.1959        .25848E-03   -1.5392    
   4  norm          .74241E-01    .14749        .17311E-02   -1.5654    
   5  norm          4.2361        2.3765        .97889E-03   -1.5296    
   6  Prefactor     10.694        15.119        .12252E-03   -1.5054    
   7  Prefactor     .10000E-03    .35424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .49090E-01    .11585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.670        .38426        .42393E-04   -1.5055    
  11  Prefactor     .10000E-03    1.4446        .16248       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2192        2.4183        .13804E-02   -1.5410    
  13  Prefactor     30.770        19.516        .72231E-04   -1.4598    
  14  Prefactor     16.742        4.6698        .48943E-03   -1.4889    
  15  norm          2.5377        .34469        .79874E-04   -1.5389    
  16  Prefactor     .10000E-03    3.4365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5139        3.1601        .25770E-03   -1.5391    
  18  Normalizat    .96123        .66865E-01    .46589E-03   -.94341    
  19  Prefactor     .98595        .21909E-01    .15241E-03   -.93199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91448e-07
Minuit parameter uncertainties:
  1  7.29465
  2  1.2327
  3  1.19596
  4  0.147496
  5  2.37657
  6  15.1246
  7  8.12518e-07
  8  3.29035e-09
  9  3.61705e-06
  10  0.384259
  11  1.74469e-06
  12  2.41842
  13  19.5199
  14  4.66992
  15  0.344687
  16  1.28769e-05
  17  3.16035
  18  0.0668705
  19  0.0219096
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.000e-04  3.290e-09  1.000e-04  1.000e+04 ( 1.000e-11)
369        alpha:  2.171e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
370         beta:  1.366e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
371           Eb:  6.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.859e-01  2.191e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.612e-01  6.687e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 329.386 31.455
Photon Flux Upper Limit: 9.11e-09 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/651246/likelihoodResults_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.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) = 150948.510931
delta logL = -4.97894943692e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 150948.510724
delta logL = 0.000157351285452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10456E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5222       1.0000          .0000       5.0000    
     3 'Normalizat'    .96122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   150948.5     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      269 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .28241E-01    .17889E-01** at limit **
   2  alpha         2.7488        3.2641        .41154        .85569E-05
   3  Normalizat    .96123        .19371E-02    .10511        .61276E-03
   4  Prefactor     .98595        .64424E-03    .34490E-01   -.90708E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.74883
  Normalizat = 0.961226
  Prefactor  = 0.985947
 **********
 **   18 **HESSE 
 **********

 FCN=   150948.5     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      302 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1517        .10608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7488        2.8175        .50000        .99697E-01
   3  Normalizat    .96123        .18031E-01    .46589E-03   -.94341    
   4  Prefactor     .98595        .60173E-02    .15241E-03   -.93199    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32822e-06
Minuit parameter uncertainties:
  1  4.70055e-06
  2  233.798
  3  0.0180313
  4  0.00601731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/651246': 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) = 150948.510651
delta logL = 0.000229912460782

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.000e-04  4.701e-06  1.000e-04  1.000e+04 ( 1.000e-11)
369        alpha:  2.749e+00  2.338e+02  0.000e+00  5.000e+00 ( 1.000e+00)
370         beta:  1.366e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
371           Eb:  6.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.859e-01  6.017e-03  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.612e-01  1.803e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 329.386 31.455

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/651246/cmap_HighResolution_672451201_675043201_4FGL_J2157.5+3127_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-06', job_status='DONE', photon_flux_upper_limit='9.11e-09', time_completed='2022-05-24 07:07:13.715269', job_id='651246', GAL2='0.99', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1653401233.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.30e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='168' AND source_name='4FGL J2157.5+3127' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:07:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 651246: <4FGL_J2157.5+3127_monthly_bin168> in cluster <slac> Done

Job <4FGL_J2157.5+3127_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 04:10:28 2022
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 04:13:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 04:13:54 2022
Terminated at Tue May 24 07:07:15 2022
Results reported at Tue May 24 07:07:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2157.5+3127_monthly_bin168 329.386 31.4552 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2157.5+3127 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10111.00 sec.
    Max Memory :                                 648 MB
    Average Memory :                             534.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10400 sec.
    Turnaround time :                            10607 sec.

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

