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


Performing analysis on: 4FGL_J2157.5+3127_daily_bin478
RA = 329.386, Dec = 31.4552
tmin = 363225601, tmax = 363484801
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='39436', job_status='RUN', time_executed='2021-09-27 21:11:32.008854', time_epoch_executed='1632802292.01' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39436

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39436/ft1_4FGL_J2157.5+3127_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39436/ft2_4FGL_J2157.5+3127_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39436/ft1_4FGL_J2157.5+3127_daily_bin478.fits outfile=/scratch/kocevski/39436/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin478.fits ra=329.386 dec=31.4552 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.17
user 6.85
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39436/ft1_filtered_4FGL_J2157.5+3127_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/39436/ft2_4FGL_J2157.5+3127_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/39436/ltcube_363225601_363484801_4FGL_J2157.5+3127_daily_bin478.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/39436/ft2_4FGL_J2157.5+3127_daily_bin478.fits
.....................!
real 14.22
user 13.75
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39436/ft1_filtered_4FGL_J2157.5+3127_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/39436/ft2_4FGL_J2157.5+3127_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/39436/ltcube_363225601_363484801_4FGL_J2157.5+3127_daily_bin478.fits outfile=/scratch/kocevski/39436/expmap_363225601_363484801_4FGL_J2157.5+3127_daily_bin478.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/39436/ltcube_363225601_363484801_4FGL_J2157.5+3127_daily_bin478.fits
.....................!
real 192.26
user 186.51
sys 5.22

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/39436/ft1_filtered_4FGL_J2157.5+3127_daily_bin478.fits scfile=/scratch/kocevski/39436/ft2_4FGL_J2157.5+3127_daily_bin478.fits outfile=/scratch/kocevski/39436/cmap_363225601_363484801_4FGL_J2157.5+3127_daily_bin478.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39436/ft1_filtered_4FGL_J2157.5+3127_daily_bin478.fits scfile=/scratch/kocevski/39436/ft2_4FGL_J2157.5+3127_daily_bin478.fits outfile=/scratch/kocevski/39436/cmap_HighResolution_363225601_363484801_4FGL_J2157.5+3127_daily_bin478.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.696       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3917       1.0000         .10000E-03   10000.    
     3 'norm      '    4.8103       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.943       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45721E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .57075       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10576E-01   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4872       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .73414       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=   6428.753     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1906 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.681        43.997        .27820E-05    .26467E-03
   2  Prefactor     8.3892        5.4786        .12250E-06    .12069E-03
   3  norm          4.8106        4.6866       -.63967E-06    .13998E-02
   4  norm          .10000E-03    1.2261       -.14928E-07** at limit **
   5  norm          21.936        17.856       -.12868E-06   -.10439E-04
   6  Prefactor     .10000E-03    60.291       -.17554E-05** at limit **
   7  Prefactor     .10000E-03    8.2542       -.14620E-06** at limit **
   8  norm          .10000E-03    .40689        .91647E-08** at limit **
   9  Prefactor     .10000E-03    17.383       -.24693E-07** at limit **
  10  norm          3.1119        1.1900       -.12021E-07    .12794E-02
  11  Prefactor     .10002E-03    77.439       -.84398E-05** at limit **
  12  Prefactor     .10000E-03    19.164        .52956E-05** at limit **
  13  Prefactor     .10002E-03    68.037       -.72959E-05** at limit **
  14  Prefactor     .10002E-03    45.380        .86378E-05** at limit **
  15  norm          .57037        1.3073       -.82466E-06   -.23352E-03
  16  Prefactor     .10000E-03    35.643       -.25796E-05** at limit **
  17  Prefactor     .10005E-03    111.37       -.36035E-04** at limit **
  18  Normalizat    1.4874        .26826       -.28337E-06    .30463E-04
  19  Prefactor     .73420        .84285E-01    .29584E-06    .39928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.6808
  Prefactor  = 8.38922
  norm       = 4.81057
  norm       = 0.0001
  norm       = 21.9365
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.11194
  Prefactor  = 0.000100025
  Prefactor  = 0.000100003
  Prefactor  = 0.000100023
  Prefactor  = 0.000100018
  norm       = 0.570374
  Prefactor  = 0.000100003
  Prefactor  = 0.000100048
  Normalizat = 1.48744
  Prefactor  = 0.734201
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.753     FROM HESSE     STATUS=OK           268 CALLS     2174 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.681        44.388        .62835E-04   -1.4431    
   2  Prefactor     8.3892        5.4776        .13839E-03   -1.5129    
   3  norm          4.8106        4.8008        .82682E-03   -1.5269    
   4  norm          .10000E-03    1.2437        .86651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.936        17.884        .85508E-04   -1.4771    
   6  Prefactor     .10000E-03    60.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .66569        .98964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1119        1.1894        .51952E-04   -1.5355    
  11  Prefactor     .10002E-03    79.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    104.08        .63552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    69.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    47.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .57037        1.2653        .12999E-03   -1.5557    
  16  Prefactor     .10000E-03    35.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    112.39        .61628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4874        .30373        .35576E-03   -.78132    
  19  Prefactor     .73420        .97760E-01    .15549E-03   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99713e-09
Minuit parameter uncertainties:
  1  44.4237
  2  5.47796
  3  4.80121
  4  1.04769e-05
  5  17.8887
  6  0.000581689
  7  1.68306e-05
  8  6.36457e-06
  9  4.874e-06
  10  1.18939
  11  0.00281292
  12  0.0011889
  13  0.00253704
  14  0.00184265
  15  1.26531
  16  0.00065509
  17  0.00463731
  18  0.304107
  19  0.0977831
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.000e-04  6.365e-06  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:  7.342e-01  9.778e-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:  1.487e+00  3.041e-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: 8.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39436/likelihoodResults_363225601_363484801_4FGL_J2157.5+3127_daily_bin478.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) = 6428.76045452
delta logL = -0.00716294975155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6428.75329618
delta logL = -4.61138006358e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10611E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1537       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73424       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6428.753     FROM MIGRAD    STATUS=FAILED       115 CALLS      266 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    144.80        .10792E-02** at limit **
   2  alpha         1.6290        3.2953        .50000       -.64264E-05
   3  Normalizat    1.4874        .12684        .35576E-03   -.17048E-03
   4  Prefactor     .73420        .40866E-01    .15549E-03   -.29645E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6428.753     FROM SIMPLEX   STATUS=UNCHANGED    194 CALLS      460 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    144.80        .13296E-03** at limit **
   2  alpha         1.6290        3.2953        .36771E-06   -.64264E-05
   3  Normalizat    1.4874        .12684        .26266E-07   -.17048E-03
   4  Prefactor     .73420        .40866E-01    .54591E-08   -.29645E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6428.753     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      508 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0224         .0000    ** at limit **
   2  alpha         1.6290        4.0468         .0000       -.64264E-05
   3  Normalizat    1.4874        .29669         .0000       -.17048E-03
   4  Prefactor     .73420        .95567E-01     .0000       -.29663E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62896
  Normalizat = 1.48744
  Prefactor  = 0.7342
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.753     FROM HESSE     STATUS=OK            27 CALLS      535 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .86985        .43168E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6290        3.2095        .50000       -.35588    
   3  Normalizat    1.4874        .29665        .28461E-05   -.78132    
   4  Prefactor     .73420        .95556E-01    .62197E-05   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96978e-08
Minuit parameter uncertainties:
  1  3.89141e-06
  2  62.7092
  3  0.297002
  4  0.0955776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39436': 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) = 6428.75327438
delta logL = 1.71863985088e-05

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.000e-04  3.891e-06  1.000e-04  1.000e+04 ( 1.000e-11)
369        alpha:  1.629e+00  6.271e+01  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:  7.342e-01  9.558e-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:  1.487e+00  2.970e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/39436/cmap_HighResolution_363225601_363484801_4FGL_J2157.5+3127_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-05', job_status='DONE', photon_flux_upper_limit='8.72e-08', time_completed='2021-09-27 21:24:13.234797', job_id='39436', GAL2='0.73', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1632803053.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.72e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='478' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:24:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 39436: <4FGL_J2157.5+3127_daily_bin478> in cluster <slac> Done

Job <4FGL_J2157.5+3127_daily_bin478> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 21:10:38 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 21:11: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:11:18 2021
Terminated at Mon Sep 27 21:24:14 2021
Results reported at Mon Sep 27 21:24:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2157.5+3127_daily_bin478 329.386 31.4552 363225601 363484801 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 :                                   754.52 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             367.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            816 sec.

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

