/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 5 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 = 7547
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2157.5+3127_daily_bin672
RA = 329.386, Dec = 31.4552
tmin = 413510401, tmax = 413769601
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='40797', job_status='RUN', time_executed='2021-09-27 21:17:51.117098', time_epoch_executed='1632802671.12' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40797/ft1_4FGL_J2157.5+3127_daily_bin672.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40797/ft2_4FGL_J2157.5+3127_daily_bin672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40797/ft1_4FGL_J2157.5+3127_daily_bin672.fits outfile=/scratch/kocevski/40797/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin672.fits ra=329.386 dec=31.4552 rad=12.0 tmin=413510401.0 tmax=413769601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.52
user 5.23
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/40797/ft2_4FGL_J2157.5+3127_daily_bin672.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/40797/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin672.fits evtable="EVENTS" outfile="/scratch/kocevski/40797/ft1_filtered_4FGL_J2157.5+3127_daily_bin672.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.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40797/ft1_filtered_4FGL_J2157.5+3127_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/40797/ft2_4FGL_J2157.5+3127_daily_bin672.fits sctable="SC_DATA" expcube=/scratch/kocevski/40797/ltcube_413510401_413769601_4FGL_J2157.5+3127_daily_bin672.fits outfile=/scratch/kocevski/40797/expmap_413510401_413769601_4FGL_J2157.5+3127_daily_bin672.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/40797/ltcube_413510401_413769601_4FGL_J2157.5+3127_daily_bin672.fits
.....................!
real 191.28
user 186.22
sys 4.61

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/40797/ft1_filtered_4FGL_J2157.5+3127_daily_bin672.fits scfile=/scratch/kocevski/40797/ft2_4FGL_J2157.5+3127_daily_bin672.fits outfile=/scratch/kocevski/40797/cmap_413510401_413769601_4FGL_J2157.5+3127_daily_bin672.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40797/ft1_filtered_4FGL_J2157.5+3127_daily_bin672.fits scfile=/scratch/kocevski/40797/ft2_4FGL_J2157.5+3127_daily_bin672.fits outfile=/scratch/kocevski/40797/cmap_HighResolution_413510401_413769601_4FGL_J2157.5+3127_daily_bin672.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.001       1.0000         .10000E-03   10000.    
     3 'norm      '    .62874       1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13550       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7307       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29778E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4514       1.0000         .10000E-03   10000.    
    16 'Prefactor '    55.151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.554       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .63028       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1019       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5499.986     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     2243 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.756        .18142E-02** at limit **
   2  Prefactor     9.9720        9.2103        .12671E-03   -.10111E-02
   3  norm          .64332        31.457        .30715E-02   -.71353E-03
   4  norm          .10000E-03    2.1105        .20541E-02** at limit **
   5  norm          3.0308        70.671        .11655E-02    .86091E-04
   6  Prefactor     .10002E-03    115.31        .18142E-02** at limit **
   7  Prefactor     .16141        18.379        .68393E-01   -.23882E-03
   8  norm          .10000E-03    1.4307        .12518E-02** at limit **
   9  Prefactor     .10000E-03    33.479        .18142E-02** at limit **
  10  norm          2.7278        1.2405        .53272E-04   -.14401E-02
  11  Prefactor     .10180E-03    341.29        .86348E-02** at limit **
  12  Prefactor     .10000E-03    16.891        .18142E-02** at limit **
  13  Prefactor     .10000E-03    58.091        .18142E-02** at limit **
  14  Prefactor     .10000E-03    11.745        .18142E-02** at limit **
  15  norm          1.4517        1.6646        .95926E-04    .86634E-04
  16  Prefactor     55.156        66.834        .27007E-03   -.23851E-04
  17  Prefactor     19.555        23.577        .90576E-04   -.95392E-05
  18  Normalizat    .63011        .32899        .54268E-03   -.26408E-03
  19  Prefactor     1.1018        .11602        .14524E-03   -.10422E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 9.97197
  norm       = 0.643321
  norm       = 0.0001
  norm       = 3.03079
  Prefactor  = 0.000100018
  Prefactor  = 0.161405
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.7278
  Prefactor  = 0.000101804
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.45172
  Prefactor  = 55.1556
  Prefactor  = 19.5555
  Normalizat = 0.630106
  Prefactor  = 1.10184
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.986     FROM HESSE     STATUS=OK           262 CALLS     2505 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.9720        8.9133        .50683E-05   -1.5076    
   3  norm          .64332        29.487        .12286E-03   -1.5548    
   4  norm          .10000E-03    2.1160        .41081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0308        70.577        .46621E-04   -1.5360    
   6  Prefactor     .10002E-03    115.31        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16141        15.133        .77061E-01   -1.5628    
   8  norm          .10000E-03    1.4348        .25036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.480        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7278        1.2375        .21309E-05   -1.5378    
  11  Prefactor     .10180E-03    353.81        .34539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    58.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4517        1.6644        .38371E-05   -1.5467    
  16  Prefactor     55.156        66.832        .54014E-04   -1.4221    
  17  Prefactor     19.555        23.577        .36230E-05   -1.4823    
  18  Normalizat    .63011        .32866        .21707E-04   -1.0672    
  19  Prefactor     1.1018        .11581        .29048E-04   -.89408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11823e-08
Minuit parameter uncertainties:
  1  0.000450199
  2  8.91451
  3  8.71464
  4  7.34486e-06
  5  29.2894
  6  0.00292635
  7  3.12554
  8  2.79348e-05
  9  0.000279488
  10  1.2375
  11  0.050825
  12  1.52857e-05
  13  0.000367167
  14  9.84964e-06
  15  1.66441
  16  66.9235
  17  23.5882
  18  0.329687
  19  0.115837
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.000e-04  2.793e-05  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:  1.102e+00  1.158e-01  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:  6.301e-01  3.297e-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: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/40797/likelihoodResults_413510401_413769601_4FGL_J2157.5+3127_daily_bin672.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) = 5499.98970142
delta logL = -0.00334363766069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5499.72142639
delta logL = 0.264931386803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27777E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .54530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1169       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5499.721     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      337 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27752E-01    .42690E-01    .17463E-03    .22074E-01
   2  alpha         5.0000        3.8179        .94133E-01** at limit **
   3  Normalizat    .54544        .33717        .58145E-03   -.96392E-05
   4  Prefactor     1.1169        .11314        .14437E-03   -.26460E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0277523
  alpha      = 5
  Normalizat = 0.545436
  Prefactor  = 1.11689
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.721     FROM HESSE     STATUS=OK            25 CALLS      362 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27752E-01    .41778E-01    .34925E-04   -1.5675    
   2  alpha         5.0000        3.8079        .37653E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .54544        .33672        .23258E-04   -1.1035    
   4  Prefactor     1.1169        .11310        .57747E-05   -.88928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43602e-12
Minuit parameter uncertainties:
  1  0.0417778
  2  2.49772e-06
  3  0.337993
  4  0.113119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40797': 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): 0
logL (Free Index) = 5499.72142584
delta logL = 0.264931934254

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  2.775e-02  4.178e-02  1.000e-04  1.000e+04 ( 1.000e-11)
369        alpha:  5.000e+00  2.498e-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.117e+00  1.131e-01  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.454e-01  3.380e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/40797/cmap_HighResolution_413510401_413769601_4FGL_J2157.5+3127_daily_bin672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-05', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-27 21:29:22.244966', job_id='40797', GAL2='1.12', fit_tolerance='1e-08', EG2='0.55', EG='0.63', time_epoch_completed='1632803362.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.65e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='672' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:29:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 40797: <4FGL_J2157.5+3127_daily_bin672> in cluster <slac> Done

Job <4FGL_J2157.5+3127_daily_bin672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 21:15:33 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 21:17:37 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:17:37 2021
Terminated at Mon Sep 27 21:29:23 2021
Results reported at Mon Sep 27 21:29:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2157.5+3127_daily_bin672 329.386 31.4552 413510401 413769601 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 :                                   686.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             349.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            830 sec.

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

