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


Performing analysis on: 4FGL_J2157.5+3127_daily_bin770
RA = 329.386, Dec = 31.4552
tmin = 438912001, tmax = 439171201
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='40944', job_status='RUN', time_executed='2021-09-27 21:19:30.427363', time_epoch_executed='1632802770.43' WHERE source_name='4FGL J2157.5+3127' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40944

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40944/ft1_4FGL_J2157.5+3127_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40944/ft2_4FGL_J2157.5+3127_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40944/ft1_4FGL_J2157.5+3127_daily_bin770.fits outfile=/scratch/kocevski/40944/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin770.fits ra=329.386 dec=31.4552 rad=12.0 tmin=438912001.0 tmax=439171201.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 6.17
user 5.89
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/40944/ft2_4FGL_J2157.5+3127_daily_bin770.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/40944/ft1_filteredMKT_4FGL_J2157.5+3127_daily_bin770.fits evtable="EVENTS" outfile="/scratch/kocevski/40944/ft1_filtered_4FGL_J2157.5+3127_daily_bin770.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/40944/ft1_filtered_4FGL_J2157.5+3127_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/40944/ft2_4FGL_J2157.5+3127_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/40944/ltcube_438912001_439171201_4FGL_J2157.5+3127_daily_bin770.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/40944/ft2_4FGL_J2157.5+3127_daily_bin770.fits
.....................!
real 15.18
user 14.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40944/ft1_filtered_4FGL_J2157.5+3127_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/40944/ft2_4FGL_J2157.5+3127_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/40944/ltcube_438912001_439171201_4FGL_J2157.5+3127_daily_bin770.fits outfile=/scratch/kocevski/40944/expmap_438912001_439171201_4FGL_J2157.5+3127_daily_bin770.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/40944/ltcube_438912001_439171201_4FGL_J2157.5+3127_daily_bin770.fits
.....................!
real 196.28
user 189.84
sys 5.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/40944/ft1_filtered_4FGL_J2157.5+3127_daily_bin770.fits scfile=/scratch/kocevski/40944/ft2_4FGL_J2157.5+3127_daily_bin770.fits outfile=/scratch/kocevski/40944/cmap_438912001_439171201_4FGL_J2157.5+3127_daily_bin770.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40944/ft1_filtered_4FGL_J2157.5+3127_daily_bin770.fits scfile=/scratch/kocevski/40944/ft2_4FGL_J2157.5+3127_daily_bin770.fits outfile=/scratch/kocevski/40944/cmap_HighResolution_438912001_439171201_4FGL_J2157.5+3127_daily_bin770.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.785       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18904E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5628       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5065       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.270       1.0000         .10000E-03   10000.    
    13 'Prefactor '    152.02       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0195       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8028       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.679       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.8033       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .68248       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=   5402.201     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1842 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.795        41.235        .12172E-04   -.36182E-05
   2  Prefactor     .10000E-03    6.4491       -.39968E-07** at limit **
   3  norm          .10000E-03    4.0495       -.33296E-07** at limit **
   4  norm          .10000E-03    1.5666       -.66530E-08** at limit **
   5  norm          .10000E-03    7.7183        .42481E-06** at limit **
   6  Prefactor     .10463E-03    7059.7       -.26415E-02** at limit **
   7  Prefactor     .10000E-03    4.8597        .22404E-07** at limit **
   8  norm          1.5627        1.4113       -.79936E-07   -.41813E-03
   9  Prefactor     .10000E-03    49.187       -.29379E-04** at limit **
  10  norm          3.5067        1.5737        .14162E-06   -.35247E-04
  11  Prefactor     .10000E-03    28.669       -.10982E-04** at limit **
  12  Prefactor     56.261        48.779       -.11573E-04    .17640E-03
  13  Prefactor     152.35        195.47        .26882E-03    .29351E-04
  14  Prefactor     2.9974        140.05       -.92639E-04   -.11917E-04
  15  norm          1.8019        1.6735       -.15879E-05   -.11574E-02
  16  Prefactor     .10000E-03    39.263        .38885E-04** at limit **
  17  Prefactor     25.684        38.726        .59602E-05   -.10947E-05
  18  Normalizat    1.8036        .35155       -.99130E-05    .72243E-03
  19  Prefactor     .68238        .89609E-01    .29992E-06    .83218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.7947
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000104634
  Prefactor  = 0.0001
  norm       = 1.56266
  Prefactor  = 0.0001
  norm       = 3.50666
  Prefactor  = 0.0001
  Prefactor  = 56.2609
  Prefactor  = 152.353
  Prefactor  = 2.99742
  norm       = 1.80192
  Prefactor  = 0.0001
  Prefactor  = 25.6839
  Normalizat = 1.80364
  Prefactor  = 0.682377
 **********
 **   18 **HESSE 
 **********

 FCN=   5402.201     FROM HESSE     STATUS=OK           258 CALLS     2100 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.795        41.363        .63548E-04   -1.4445    
   2  Prefactor     .10000E-03    6.5916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.0854        .14440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6020        .89750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.7238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10463E-03    7067.8        .18234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8667        .15824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5627        1.3973        .80150E-04   -1.5458    
   9  Prefactor     .10000E-03    49.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5067        1.5728        .59395E-04   -1.5333    
  11  Prefactor     .10000E-03    28.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     56.261        48.707        .53477E-04   -1.4206    
  13  Prefactor     152.35        195.91        .16346E-03   -1.3233    
  14  Prefactor     2.9974        141.94        .23355E-03   -1.5362    
  15  norm          1.8019        1.6639        .87510E-04   -1.5439    
  16  Prefactor     .10000E-03    39.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.684        38.742        .79052E-04   -1.4694    
  18  Normalizat    1.8036        .40327        .40632E-03   -.69569    
  19  Prefactor     .68238        .10288        .16336E-03   -1.0422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10886e-09
Minuit parameter uncertainties:
  1  41.3931
  2  6.64369e-05
  3  1.97711e-05
  4  5.62277e-06
  5  3.44392e-06
  6  0.300764
  7  1.08709e-05
  8  1.39733
  9  0.000180216
  10  1.57278
  11  2.46416e-05
  12  48.7416
  13  196.754
  14  41.3565
  15  1.66396
  16  9.37936e-06
  17  38.7795
  18  0.404013
  19  0.102912
Done.

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

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.563e+00  1.397e+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:  6.824e-01  1.029e-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:  1.804e+00  4.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.32
Ra Dec: 329.386 31.455
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 6.79e-08 +/- 6.07e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 2.46e-05

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

Saving results to:
/scratch/kocevski/40944/likelihoodResults_438912001_439171201_4FGL_J2157.5+3127_daily_bin770.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) = 5401.77642216
delta logL = 0.424957845287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5401.77448949
delta logL = 0.42689051336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5404       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4944       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67862       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=   5401.774     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5402        1.3260        .85885E-02    .11293E-03
   2  alpha         1.4943        .53256        .42941       -.25430E-04
   3  Normalizat    1.8270        .32969        .91298E-01    .56332E-05
   4  Prefactor     .67867        .87169E-01    .42116E-01    .34362E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54017
  alpha      = 1.49434
  Normalizat = 1.82701
  Prefactor  = 0.678671
 **********
 **   18 **HESSE 
 **********

 FCN=   5401.774     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5402        1.4371        .74758E-04   -1.5460    
   2  alpha         1.4943        .66683        .16457E-01   -.41399    
   3  Normalizat    1.8270        .37200        .40420E-03   -.68961    
   4  Prefactor     .67867        .98482E-01    .16370E-03   -1.0437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07156e-10
Minuit parameter uncertainties:
  1  1.43711
  2  0.676642
  3  0.372583
  4  0.098507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40944': 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) = 5401.77448899
delta logL = 0.426891019993

Extracting fit parameters...

4FGL J2157.5+3127
   Spectrum: LogParabola
368         norm:  1.540e+00  1.437e+00  1.000e-04  1.000e+04 ( 1.000e-11)
369        alpha:  1.494e+00  6.766e-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:  6.787e-01  9.851e-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.827e+00  3.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 329.386 31.455
Photon Index (Free Index): 1.49 +/- 0.68
Photon Flux (Free Index): 4.12e-08 +/- 4.37e-08
Energy Flux (Free Index): 5.07e-05 +/- 5.78e-05

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/40944/cmap_HighResolution_438912001_439171201_4FGL_J2157.5+3127_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.93e-05', comment='SUCCESS', photon_flux='6.79e-08', energy_flux2='5.07e-05', photon_flux_error='6.07e-08', dlogl='4.27e-01', energy_flux='2.75e-05', photon_flux2='4.12e-08', job_status='DONE', time_completed='2021-09-27 21:30:13.199407', photon_index_error2='0.68', photon_index2='1.49', ts='2.32', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='2.20e-07', energy_flux_error2='5.78e-05', EG='1.80', time_epoch_completed='1632803413.2', return_code='0', job_id='40944', GAL2='0.68', EG2='1.83', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='4.37e-08', ts2='3.17', photon_index='2.17' WHERE bin_id='770' AND source_name='4FGL J2157.5+3127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:30:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 40944: <4FGL_J2157.5+3127_daily_bin770> in cluster <slac> Done

Job <4FGL_J2157.5+3127_daily_bin770> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 21:15:46 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 21:19:20 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:19:20 2021
Terminated at Mon Sep 27 21:30:13 2021
Results reported at Mon Sep 27 21:30:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2157.5+3127_daily_bin770 329.386 31.4552 438912001 439171201 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 :                                   637.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             354.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            867 sec.

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

