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


Performing analysis on: 4FGL_J2157.5+3127_daily_bin13
RA = 329.386, Dec = 31.4552
tmin = 242697601, tmax = 242956801
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='37759', job_status='RUN', time_executed='2021-09-27 21:08:46.707127', time_epoch_executed='1632802126.71' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/37759

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/37759/ft1_4FGL_J2157.5+3127_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/37759/ft2_4FGL_J2157.5+3127_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/37759/ft1_4FGL_J2157.5+3127_daily_bin13.fits outfile=/scratch/kocevski/37759/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin13.fits ra=329.386 dec=31.4552 rad=12.0 tmin=242697601.0 tmax=242956801.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.44
user 1.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/37759/ft1_filtered_4FGL_J2157.5+3127_daily_bin13.fits" evtable="EVENTS" scfile=/scratch/kocevski/37759/ft2_4FGL_J2157.5+3127_daily_bin13.fits sctable="SC_DATA" outfile=/scratch/kocevski/37759/ltcube_242697601_242956801_4FGL_J2157.5+3127_daily_bin13.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/37759/ft2_4FGL_J2157.5+3127_daily_bin13.fits
.....................!
real 15.22
user 14.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/37759/ft1_filtered_4FGL_J2157.5+3127_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/37759/ft2_4FGL_J2157.5+3127_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/37759/ltcube_242697601_242956801_4FGL_J2157.5+3127_daily_bin13.fits outfile=/scratch/kocevski/37759/expmap_242697601_242956801_4FGL_J2157.5+3127_daily_bin13.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/37759/ltcube_242697601_242956801_4FGL_J2157.5+3127_daily_bin13.fits
.....................!
real 191.74
user 186.93
sys 4.19

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/37759/ft1_filtered_4FGL_J2157.5+3127_daily_bin13.fits scfile=/scratch/kocevski/37759/ft2_4FGL_J2157.5+3127_daily_bin13.fits outfile=/scratch/kocevski/37759/cmap_242697601_242956801_4FGL_J2157.5+3127_daily_bin13.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/37759/ft1_filtered_4FGL_J2157.5+3127_daily_bin13.fits scfile=/scratch/kocevski/37759/ft2_4FGL_J2157.5+3127_daily_bin13.fits outfile=/scratch/kocevski/37759/cmap_HighResolution_242697601_242956801_4FGL_J2157.5+3127_daily_bin13.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.332       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77433       1.0000         .10000E-03   10000.    
     3 'norm      '    .12471E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5552       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.281       1.0000         .10000E-03   10000.    
    10 'norm      '    .30576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.322       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1209       1.0000         .10000E-03   10000.    
    15 'norm      '    .79842       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30182E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6294       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76259       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=   8636.935     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1919 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.338        32.508        .31860E-06    .32201E-05
   2  Prefactor     .77441        5.0490        .47043E-05   -.67024E-04
   3  norm          .10000E-03    3.7169       -.14759E-05** at limit **
   4  norm          .10000E-03    .70981        .28983E-07** at limit **
   5  norm          .10000E-03    6.7095        .35585E-07** at limit **
   6  Prefactor     .10000E-03    145.39        .38988E-06** at limit **
   7  Prefactor     .10000E-03    10.888        .13498E-06** at limit **
   8  norm          1.5553        1.0736        .57801E-07   -.49908E-04
   9  Prefactor     14.284        27.514        .19296E-06   -.14511E-05
  10  norm          .30568        .58349        .39152E-06    .37780E-03
  11  Prefactor     29.326        27.243       -.36280E-06   -.26706E-04
  12  Prefactor     .10000E-03    27.363       -.30668E-06** at limit **
  13  Prefactor     .10000E-03    147.77        .22771E-06** at limit **
  14  Prefactor     8.1360        21.488        .39624E-06   -.21938E-04
  15  norm          .79852        .83587        .45028E-07    .46303E-04
  16  Prefactor     .10003E-03    424.21       -.82711E-05** at limit **
  17  Prefactor     .10000E-03    7.6986        .27055E-07** at limit **
  18  Normalizat    1.6293        .23339       -.51278E-06    .16451E-04
  19  Prefactor     .76255        .73523E-01   -.62556E-06    .25074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.3376
  Prefactor  = 0.77441
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55525
  Prefactor  = 14.2841
  norm       = 0.305685
  Prefactor  = 29.3256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.136
  norm       = 0.798523
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Normalizat = 1.62928
  Prefactor  = 0.762548
 **********
 **   18 **HESSE 
 **********

 FCN=   8636.935     FROM HESSE     STATUS=OK           268 CALLS     2187 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.338        32.521        .73976E-04   -1.4624    
   2  Prefactor     .77441        5.0675        .39207E-03   -1.5532    
   3  norm          .10000E-03    14.021        .32746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .72060        .76440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.7249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    145.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5553        1.0745        .34139E-04   -1.5459    
   9  Prefactor     14.284        27.513        .10599E-03   -1.4952    
  10  norm          .30568        .53259        .93727E-03   -1.5597    
  11  Prefactor     29.326        26.981        .73988E-04   -1.4624    
  12  Prefactor     .10000E-03    27.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    148.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1360        21.694        .14069E-03   -1.5137    
  15  norm          .79852        .82438        .84005E-04   -1.5529    
  16  Prefactor     .10003E-03    430.87        .19822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.6293        .26874        .35675E-03   -.74208    
  19  Prefactor     .76255        .83939E-01    .15804E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58184e-10
Minuit parameter uncertainties:
  1  32.5404
  2  3.96221
  3  0.000256487
  4  4.31331e-07
  5  3.83597e-06
  6  0.000385015
  7  1.24337e-05
  8  1.0745
  9  27.5369
  10  0.532597
  11  26.9926
  12  6.87112e-05
  13  0.000228443
  14  21.7154
  15  0.824391
  16  0.00680537
  17  2.93256e-06
  18  0.268978
  19  0.0839528
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.555e+00  1.075e+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

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  7.625e-01  8.395e-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.629e+00  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.31
Ra Dec: 329.386 31.455
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 6.76e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.89e-05

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) = 8636.44557065
delta logL = 0.489049602882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8636.44156816
delta logL = 0.493052097099

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0516       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0369       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77789       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=   8636.442     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0517        6.3511        .11091E-01    .10104E-03
   2  alpha         3.0369        3.9142        .38480        .94571E-04
   3  Normalizat    1.5471        .70357E-01    .82254E-01   -.31775E-05
   4  Prefactor     .77793        .21201E-01    .43429E-01   -.30797E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05166
  alpha      = 3.03688
  Normalizat = 1.54705
  Prefactor  = 0.777927
 **********
 **   18 **HESSE 
 **********

 FCN=   8636.442     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0517        1.6865        .49904E-04   -1.5503    
   2  alpha         3.0369        1.3648        .13604E-01    .21644    
   3  Normalizat    1.5471        .28308        .36408E-03   -.76465    
   4  Prefactor     .77793        .86033E-01    .15661E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04219e-09
Minuit parameter uncertainties:
  1  1.68656
  2  1.44826
  3  0.283372
  4  0.0860477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/37759': 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) = 8636.44156741
delta logL = 0.493052843933

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.052e+00  1.687e+00  1.000e-04  1.000e+04 ( 1.000e-11)
369        alpha:  3.037e+00  1.448e+00  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.779e-01  8.605e-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.547e+00  2.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.43
Ra Dec: 329.386 31.455
Photon Index (Free Index): 3.04 +/- 1.45
Photon Flux (Free Index): 1.30e-07 +/- 9.39e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.60e-05

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/37759/cmap_HighResolution_242697601_242956801_4FGL_J2157.5+3127_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.76e-08', energy_flux2='2.74e-05', photon_flux_error='4.67e-08', dlogl='4.93e-01', energy_flux='2.74e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-27 21:21:29.717814', photon_index_error2='1.45', photon_index2='3.04', ts='4.31', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.63', time_epoch_completed='1632802889.72', return_code='0', job_id='37759', GAL2='0.78', EG2='1.55', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='9.39e-08', ts2='5.43', photon_index='2.17' WHERE bin_id='13' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:21:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 37759: <4FGL_J2157.5+3127_daily_bin13> in cluster <slac> Done

Job <4FGL_J2157.5+3127_daily_bin13> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 21:05:30 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 21:05:57 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:05:57 2021
Terminated at Mon Sep 27 21:21:30 2021
Results reported at Mon Sep 27 21:21:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2157.5+3127_daily_bin13 329.386 31.4552 242697601 242956801 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 :                                   758.19 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             355.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            960 sec.

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

