/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 0 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2157.5+3127_daily_bin104
RA = 329.386, Dec = 31.4552
tmin = 266284801, tmax = 266544001
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='37895', job_status='RUN', time_executed='2021-09-27 21:06:27.658713', time_epoch_executed='1632801987.66' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/37895

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/37895/ft1_4FGL_J2157.5+3127_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/37895/ft2_4FGL_J2157.5+3127_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/37895/ft1_4FGL_J2157.5+3127_daily_bin104.fits outfile=/scratch/kocevski/37895/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin104.fits ra=329.386 dec=31.4552 rad=12.0 tmin=266284801.0 tmax=266544001.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 1.50
user 1.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/37895/ft2_4FGL_J2157.5+3127_daily_bin104.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/37895/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin104.fits evtable="EVENTS" outfile="/scratch/kocevski/37895/ft1_filtered_4FGL_J2157.5+3127_daily_bin104.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/37895/ft1_filtered_4FGL_J2157.5+3127_daily_bin104.fits" evtable="EVENTS" scfile=/scratch/kocevski/37895/ft2_4FGL_J2157.5+3127_daily_bin104.fits sctable="SC_DATA" outfile=/scratch/kocevski/37895/ltcube_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.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/37895/ft2_4FGL_J2157.5+3127_daily_bin104.fits
.....................!
real 14.69
user 14.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/37895/ft1_filtered_4FGL_J2157.5+3127_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/37895/ft2_4FGL_J2157.5+3127_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/37895/ltcube_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.fits outfile=/scratch/kocevski/37895/expmap_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.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/37895/ltcube_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.fits
.....................!
real 191.88
user 186.12
sys 5.06

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/37895/ft1_filtered_4FGL_J2157.5+3127_daily_bin104.fits scfile=/scratch/kocevski/37895/ft2_4FGL_J2157.5+3127_daily_bin104.fits outfile=/scratch/kocevski/37895/cmap_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/37895/ft1_filtered_4FGL_J2157.5+3127_daily_bin104.fits scfile=/scratch/kocevski/37895/ft2_4FGL_J2157.5+3127_daily_bin104.fits outfile=/scratch/kocevski/37895/cmap_HighResolution_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/37895/ft1_filtered_4FGL_J2157.5+3127_daily_bin104.fits', '/scratch/kocevski/37895/ft2_4FGL_J2157.5+3127_daily_bin104.fits', expMap='/scratch/kocevski/37895/expmap_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.fits', expCube='/scratch/kocevski/37895/ltcube_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/37895/Model_4FGL_J2157.5+3127_daily_bin104.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/37895/ft1_filtered_4FGL_J2157.5+3127_daily_bin104.fits
Spacecraft file(s): /scratch/kocevski/37895/ft2_4FGL_J2157.5+3127_daily_bin104.fits
Exposure map: /scratch/kocevski/37895/expmap_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.fits
Exposure cube: /scratch/kocevski/37895/ltcube_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/37895/Model_4FGL_J2157.5+3127_daily_bin104.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) = 10030.2601797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .94323       1.0000         .10000E-03   10000.    
     3 'norm      '    7.9547       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.575       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1788       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8078       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0014       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.405       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1403       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .70525       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98268       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10030.24     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1987 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.052        30.481       -.95544E-07   -.10794E-04
   2  Prefactor     .95554        6.1638        .67049E-05   -.13183E-03
   3  norm          7.9417        5.9156       -.19105E-05   -.81191E-03
   4  norm          .10000E-03    .63105        .93514E-07** at limit **
   5  norm          .10000E-03    5.0812        .85232E-07** at limit **
   6  Prefactor     17.283        226.67       -.72605E-05   -.25580E-04
   7  Prefactor     .10000E-03    5.2422        .40012E-06** at limit **
   8  norm          .10000E-03    .29572        .19942E-06** at limit **
   9  Prefactor     .10000E-03    39.663       -.25041E-07** at limit **
  10  norm          4.1787        1.0187        .19431E-07    .10039E-03
  11  Prefactor     .10000E-03    19.641        .48902E-07** at limit **
  12  Prefactor     .10000E-03    6.9807        .11702E-06** at limit **
  13  Prefactor     .10000E-03    107.32        .74273E-06** at limit **
  14  Prefactor     6.8037        15.409        .45758E-05   -.18347E-03
  15  norm          2.0014        .98846       -.10109E-07   -.34357E-03
  16  Prefactor     36.315        76.683        .23129E-06   -.34558E-04
  17  Prefactor     1.1553        38.752        .51053E-05   -.39775E-04
  18  Normalizat    .70501        .21589       -.45496E-05   -.14427E-03
  19  Prefactor     .98274        .74569E-01    .60953E-06   -.73197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0519
  Prefactor  = 0.955541
  norm       = 7.94172
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.2828
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.17874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.80365
  norm       = 2.00141
  Prefactor  = 36.3153
  Prefactor  = 1.15531
  Normalizat = 0.705012
  Prefactor  = 0.982741
 **********
 **   18 **HESSE 
 **********

 FCN=   10030.24     FROM HESSE     STATUS=OK           268 CALLS     2255 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.052        30.550        .80025E-04   -1.4707    
   2  Prefactor     .95554        6.2418        .40767E-03   -1.5512    
   3  norm          7.9417        5.8809        .14216E-03   -1.5144    
   4  norm          .10000E-03    1.3584        .15489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.0896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.283        231.75        .47769E-03   -1.4876    
   7  Prefactor     .10000E-03    5.2843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .30785        .10627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1787        1.0210        .19715E-04   -1.5299    
  11  Prefactor     .10000E-03    19.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    107.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8037        15.281        .76888E-03   -1.5186    
  15  norm          2.0014        .97826        .65511E-04   -1.5425    
  16  Prefactor     36.315        76.819        .66422E-04   -1.4502    
  17  Prefactor     1.1553        39.106        .43544E-03   -1.5493    
  18  Normalizat    .70501        .22932        .47777E-03   -1.0370    
  19  Prefactor     .98274        .80133E-01    .14256E-03   -.93307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36182e-10
Minuit parameter uncertainties:
  1  30.5694
  2  4.88486
  3  5.88137
  4  1.36141e-05
  5  1.66e-06
  6  127.181
  7  6.82406e-07
  8  6.19846e-08
  9  4.22459e-05
  10  1.021
  11  1.70233e-06
  12  5.46355e-06
  13  5.35072e-05
  14  15.2899
  15  0.978265
  16  77.029
  17  13.452
  18  0.229632
  19  0.0801428
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.000e-04  6.198e-08  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.827e-01  8.014e-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:  7.050e-01  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 329.386 31.455
Photon Flux Upper Limit: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/37895/likelihoodResults_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10030.2507649
delta logL = -0.0154409482475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10030.2353262
delta logL = -2.30343539442e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10029.11     FROM MIGRAD    STATUS=CONVERGED    236 CALLS      388 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35206E-01    .26842E-01    .65499E-07    .14498E-02
   2  alpha         5.0000        3.1567        .12690E-04** at limit **
   3  Normalizat    .58941        .23154       -.66164E-05    .86054E-04
   4  Prefactor     1.0032        .78480E-01    .15084E-05    .19119E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0352061
  alpha      = 5
  Normalizat = 0.589413
  Prefactor  = 1.0032
 **********
 **   18 **HESSE 
 **********

 FCN=   10029.11     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      427 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35206E-01    .81658        .29653E-02   -1.5670    
   2  alpha         5.0000        4.9926        .41591        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .58941        .14241        .11723       -1.0844    
   4  Prefactor     1.0032        .37033E-01    .31955E-01   -.92623    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.503e-08
Minuit parameter uncertainties:
  1  0.338631
  2  9.42352e-06
  3  0.142499
  4  0.0370341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/37895': 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) = 10029.1081796
delta logL = 1.1271442894

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  3.521e-02  3.386e-01  1.000e-04  1.000e+04 ( 1.000e-11)
369        alpha:  5.000e+00  9.424e-06  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:  1.003e+00  3.703e-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:  5.894e-01  1.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 329.386 31.455
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.88e-08 +/- 8.49e-07
Energy Flux (Free Index): 1.22e-05 +/- 1.17e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/37895/cmap_HighResolution_266284801_266544001_4FGL_J2157.5+3127_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.38e-05', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='1.13e+00', photon_flux2='8.88e-08', job_status='DONE', time_completed='2021-09-27 21:22:12.338942', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.87e-08', energy_flux_error2='1.17e-04', EG='0.71', time_epoch_completed='1632802932.34', return_code='0', job_id='37895', GAL2='1.00', EG2='0.59', return_code2='102', photon_flux_error2='8.49e-07', ts2='2.50', photon_index='2.17' WHERE bin_id='104' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:22:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 37895: <4FGL_J2157.5+3127_daily_bin104> in cluster <slac> Done

Job <4FGL_J2157.5+3127_daily_bin104> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 21:05:41 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 21:06:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 21:06:18 2021
Terminated at Mon Sep 27 21:22:13 2021
Results reported at Mon Sep 27 21:22:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2157.5+3127_daily_bin104 329.386 31.4552 266284801 266544001 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 :                                   942.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            992 sec.

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

