/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 6 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2157.5+3127_daily_bin282
RA = 329.386, Dec = 31.4552
tmin = 312422401, tmax = 312681601
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='39148', job_status='RUN', time_executed='2021-09-27 21:10:39.569462', time_epoch_executed='1632802239.57' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39148/ft1_4FGL_J2157.5+3127_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39148/ft2_4FGL_J2157.5+3127_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39148/ft1_4FGL_J2157.5+3127_daily_bin282.fits outfile=/scratch/kocevski/39148/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin282.fits ra=329.386 dec=31.4552 rad=12.0 tmin=312422401.0 tmax=312681601.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 3.87
user 3.63
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39148/ft1_filtered_4FGL_J2157.5+3127_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/39148/ft2_4FGL_J2157.5+3127_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/39148/ltcube_312422401_312681601_4FGL_J2157.5+3127_daily_bin282.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/39148/ft2_4FGL_J2157.5+3127_daily_bin282.fits
.....................!
real 13.46
user 13.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39148/ft1_filtered_4FGL_J2157.5+3127_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/39148/ft2_4FGL_J2157.5+3127_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/39148/ltcube_312422401_312681601_4FGL_J2157.5+3127_daily_bin282.fits outfile=/scratch/kocevski/39148/expmap_312422401_312681601_4FGL_J2157.5+3127_daily_bin282.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/39148/ltcube_312422401_312681601_4FGL_J2157.5+3127_daily_bin282.fits
.....................!
real 191.41
user 184.55
sys 6.48

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/39148/ft1_filtered_4FGL_J2157.5+3127_daily_bin282.fits scfile=/scratch/kocevski/39148/ft2_4FGL_J2157.5+3127_daily_bin282.fits outfile=/scratch/kocevski/39148/cmap_312422401_312681601_4FGL_J2157.5+3127_daily_bin282.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/39148/ft1_filtered_4FGL_J2157.5+3127_daily_bin282.fits scfile=/scratch/kocevski/39148/ft2_4FGL_J2157.5+3127_daily_bin282.fits outfile=/scratch/kocevski/39148/cmap_HighResolution_312422401_312681601_4FGL_J2157.5+3127_daily_bin282.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12313E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16171E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.0958       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7911       1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
     8 'norm      '    .71676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17831E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3896       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .63397E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3211       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.055       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3882       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88593       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=   11134.89     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1636 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.732        .28500E-05** at limit **
   2  Prefactor     .10000E-03    2.4747        .28036E-06** at limit **
   3  norm          5.0995        4.1235       -.72273E-06   -.23348E-02
   4  norm          1.7916        1.8582       -.16964E-06   -.92543E-03
   5  norm          .10000E-03    3.6136        .36522E-07** at limit **
   6  Prefactor     .10000E-03    67.352       -.25133E-04** at limit **
   7  Prefactor     10.283        6.7413        .59872E-06   -.11224E-04
   8  norm          .71713        .77968       -.14450E-06   -.17250E-02
   9  Prefactor     .10000E-03    133.64        .13277E-03** at limit **
  10  norm          1.3898        .65235       -.15939E-07   -.43775E-03
  11  Prefactor     .10000E-03    13.973        .16243E-05** at limit **
  12  Prefactor     .10000E-03    16.366        .19300E-05** at limit **
  13  Prefactor     .10014E-03    383.47       -.51859E-03** at limit **
  14  Prefactor     .10000E-03    10.987       -.18504E-06** at limit **
  15  norm          3.3191        1.3335       -.85671E-07    .28683E-02
  16  Prefactor     .10000E-03    16.247       -.45202E-05** at limit **
  17  Prefactor     12.069        15.388        .56882E-05    .10136E-03
  18  Normalizat    1.3879        .20317        .84938E-06    .54116E-03
  19  Prefactor     .88595        .66409E-01   -.11125E-06    .68517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.09953
  norm       = 1.79161
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2833
  norm       = 0.717127
  Prefactor  = 0.000100004
  norm       = 1.38982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100138
  Prefactor  = 0.0001
  norm       = 3.31906
  Prefactor  = 0.0001
  Prefactor  = 12.069
  Normalizat = 1.38786
  Prefactor  = 0.885946
 **********
 **   18 **HESSE 
 **********

 FCN=   11134.89     FROM HESSE     STATUS=OK           266 CALLS     1902 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.7087        .30900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.0995        3.9788        .89055E-03   -1.5256    
   4  norm          1.7916        1.8444        .14179E-03   -1.5440    
   5  norm          .10000E-03    3.6167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    67.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.283        6.7243        .12495E-03   -1.5067    
   8  norm          .71713        .68436        .92487E-03   -1.5539    
   9  Prefactor     .10000E-03    134.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3898        .65082        .56428E-04   -1.5472    
  11  Prefactor     .10000E-03    14.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10014E-03    383.80        .18856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3191        1.3355        .72364E-04   -1.5344    
  16  Prefactor     .10000E-03    16.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.069        15.394        .11538E-03   -1.5013    
  18  Normalizat    1.3879        .22762        .38842E-03   -.80980    
  19  Prefactor     .88595        .75082E-01    .15608E-03   -.96634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41875e-09
Minuit parameter uncertainties:
  1  3.00491e-06
  2  8.12275e-05
  3  3.979
  4  1.84441
  5  1.45107e-07
  6  6.47966e-06
  7  6.72483
  8  0.684372
  9  0.00145623
  10  0.650822
  11  2.01e-06
  12  6.56416e-05
  13  0.0146726
  14  7.66531e-06
  15  1.33551
  16  1.0673e-06
  17  15.399
  18  0.227786
  19  0.0750906
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  7.171e-01  6.844e-01  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:  8.859e-01  7.509e-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.388e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 329.386 31.455
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.12e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.21e-05

TS (Fixed Index): 1.79
Ra Dec: 329.386 31.455
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39148/likelihoodResults_312422401_312681601_4FGL_J2157.5+3127_daily_bin282.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) = 11134.8470897
delta logL = 0.0437543130847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11134.845892
delta logL = 0.0449520121565

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11134.85     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      261 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74425        .70025        .94659E-03    .50960E-02
   2  alpha         1.9340        .74806        .27057E-01   -.88780E-04
   3  Normalizat    1.3943        .22346        .38766E-03   -.76249E-06
   4  Prefactor     .88478        .73996E-01    .15617E-03    .29119E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.74425
  alpha      = 1.93396
  Normalizat = 1.39432
  Prefactor  = 0.884776
 **********
 **   18 **HESSE 
 **********

 FCN=   11134.85     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74425        .70042        .18932E-03   -1.5535    
   2  alpha         1.9340        .74871        .54114E-02   -.22840    
   3  Normalizat    1.3943        .22354        .15506E-04   -.80793    
   4  Prefactor     .88478        .74029E-01    .62467E-05   -.96675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75987e-12
Minuit parameter uncertainties:
  1  0.70043
  2  0.761041
  3  0.223694
  4  0.0740376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39148': 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) = 11134.8458907
delta logL = 0.0449533148949

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  7.443e-01  7.004e-01  1.000e-04  1.000e+04 ( 1.000e-11)
369        alpha:  1.934e+00  7.610e-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:  8.848e-01  7.404e-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.394e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 329.386 31.455
Photon Index (Free Index): 1.93 +/- 0.76
Photon Flux (Free Index): 2.60e-08 +/- 2.99e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.52e-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/39148/cmap_HighResolution_312422401_312681601_4FGL_J2157.5+3127_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-05', comment='SUCCESS', photon_flux='3.12e-08', energy_flux2='1.45e-05', photon_flux_error='2.97e-08', dlogl='4.50e-02', energy_flux='1.26e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-09-27 21:26:33.188691', photon_index_error2='0.76', photon_index2='1.93', ts='1.79', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.52e-05', EG='1.39', time_epoch_completed='1632803193.19', return_code='0', job_id='39148', GAL2='0.88', EG2='1.39', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='2.99e-08', ts2='1.88', photon_index='2.17' WHERE bin_id='282' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:26:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 39148: <4FGL_J2157.5+3127_daily_bin282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2157.5+3127_daily_bin282 329.386 31.4552 312422401 312681601 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 :                                   951.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             401.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            976 sec.

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

