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


Performing analysis on: 4FGL_J2112.7+0819_daily_bin728
RA = 318.185, Dec = 8.3195
tmin = 428025601, tmax = 428284801
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='360462', job_status='RUN', time_executed='2021-09-26 06:02:39.005600', time_epoch_executed='1632661359.01' WHERE source_name='4FGL J2112.7+0819' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360462

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360462/ft1_4FGL_J2112.7+0819_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360462/ft2_4FGL_J2112.7+0819_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360462/ft1_4FGL_J2112.7+0819_daily_bin728.fits outfile=/scratch/kocevski/360462/ft1_filteredMKT_4FGL_J2112.7+0819_daily_bin728.fits ra=318.185 dec=8.3195 rad=12.0 tmin=428025601.0 tmax=428284801.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.88
user 5.35
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/360462/ft2_4FGL_J2112.7+0819_daily_bin728.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360462/ft2_4FGL_J2112.7+0819_daily_bin728.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/360462/ft1_filteredMKT_4FGL_J2112.7+0819_daily_bin728.fits evtable="EVENTS" outfile="/scratch/kocevski/360462/ft1_filtered_4FGL_J2112.7+0819_daily_bin728.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.94
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360462/ft1_filtered_4FGL_J2112.7+0819_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/360462/ft2_4FGL_J2112.7+0819_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/360462/ltcube_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.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/360462/ft2_4FGL_J2112.7+0819_daily_bin728.fits
.....................!
real 14.17
user 13.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360462/ft1_filtered_4FGL_J2112.7+0819_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/360462/ft2_4FGL_J2112.7+0819_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/360462/ltcube_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.fits outfile=/scratch/kocevski/360462/expmap_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.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/360462/ltcube_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.fits
.....................!
real 191.52
user 186.51
sys 4.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
Added 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J2112.7+0819 @ 318.185 8.3195

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/360462/ft1_filtered_4FGL_J2112.7+0819_daily_bin728.fits scfile=/scratch/kocevski/360462/ft2_4FGL_J2112.7+0819_daily_bin728.fits outfile=/scratch/kocevski/360462/cmap_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.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=318.185 yref=8.3195 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360462/ft1_filtered_4FGL_J2112.7+0819_daily_bin728.fits scfile=/scratch/kocevski/360462/ft2_4FGL_J2112.7+0819_daily_bin728.fits outfile=/scratch/kocevski/360462/cmap_HighResolution_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.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=318.185 yref=8.3195 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360462/ft1_filtered_4FGL_J2112.7+0819_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/360462/ft2_4FGL_J2112.7+0819_daily_bin728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360462/Model_4FGL_J2112.7+0819_daily_bin728.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/360462/ft1_filtered_4FGL_J2112.7+0819_daily_bin728.fits.....................!
real 73.98
user 72.60
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/360462/ft1_filtered_4FGL_J2112.7+0819_daily_bin728.fits', '/scratch/kocevski/360462/ft2_4FGL_J2112.7+0819_daily_bin728.fits', expMap='/scratch/kocevski/360462/expmap_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.fits', expCube='/scratch/kocevski/360462/ltcube_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/360462/Model_4FGL_J2112.7+0819_daily_bin728.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2112.7+0819'

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  3.173e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
331        Index:  1.907e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
332        Scale:  3.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/360462/ft1_filtered_4FGL_J2112.7+0819_daily_bin728.fits
Spacecraft file(s): /scratch/kocevski/360462/ft2_4FGL_J2112.7+0819_daily_bin728.fits
Exposure map: /scratch/kocevski/360462/expmap_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.fits
Exposure cube: /scratch/kocevski/360462/ltcube_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/360462/Model_4FGL_J2112.7+0819_daily_bin728.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) = 6819.89100607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.028       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0692       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3248       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8924       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4502       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .43927       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.208       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    132.10       1.0000         .10000E-03   10000.    
    24 'norm      '    .22423E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .13036E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2301       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6819.887     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3507 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.032        15.435        .20678E-06   -.79748E-05
   2  Prefactor     .10000E-03    23.437       -.47292E-07** at limit **
   3  norm          3.0696        1.1160       -.18085E-09   -.18342E-03
   4  Prefactor     .10000E-03    27.687       -.14159E-06** at limit **
   5  norm          1.3226        17.338        .36892E-05    .26301E-04
   6  norm          .10000E-03    29.682       -.47739E-07** at limit **
   7  Prefactor     .10000E-03    7.2318       -.20048E-07** at limit **
   8  Prefactor     4.8928        5.3146        .37894E-06    .39330E-04
   9  Prefactor     .10000E-03    19.400       -.83703E-07** at limit **
  10  Prefactor     .10000E-03    7.1283       -.13633E-06** at limit **
  11  Prefactor     .10000E-03    80.179       -.23133E-06** at limit **
  12  Prefactor     .10000E-03    20.890       -.92686E-07** at limit **
  13  Prefactor     .10000E-03    53.970       -.65522E-06** at limit **
  14  Prefactor     .10000E-03    21.303        .48462E-08** at limit **
  15  norm          4.4505        5.0610        .18962E-06   -.11748E-04
  16  Prefactor     .10000E-03    8.1110        .32569E-07** at limit **
  17  Prefactor     .10000E-03    18.280       -.97894E-08** at limit **
  18  Prefactor     .44169        5.4960        .13468E-05   -.33182E-03
  19  Prefactor     .10000E-03    6.0484       -.13314E-06** at limit **
  20  Prefactor     .10000E-03    1.7542        .24755E-06** at limit **
  21  Prefactor     23.219        40.602        .51431E-06   -.13006E-04
  22  Prefactor     .10000E-03    73.646        .17797E-06** at limit **
  23  Prefactor     132.16        76.604        .49906E-07    .15996E-04
  24  norm          .10000E-03    1.7667        .16778E-06** at limit **
  25  norm          .10000E-03    102.25        .57520E-05** at limit **
  26  Prefactor     .10000E-03    15.645        .44904E-05** at limit **
  27  Normalizat    1.2303        .30081       -.38821E-05   -.17177E-03
  28  Prefactor     .84208        .11262        .99724E-06   -.56689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0322
  Prefactor  = 0.0001
  norm       = 3.06962
  Prefactor  = 0.0001
  norm       = 1.32263
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.89277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.45051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.441689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2193
  Prefactor  = 0.0001
  Prefactor  = 132.161
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23031
  Prefactor  = 0.84208
 **********
 **   18 **HESSE 
 **********

 FCN=   6819.887     FROM HESSE     STATUS=OK           515 CALLS     4022 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.032        15.406        .11097E-03   -1.4986    
   2  Prefactor     .10000E-03    23.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0696        1.1116        .23154E-04   -1.5358    
   4  Prefactor     .10000E-03    27.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3226        17.599        .38196E-03   -1.5478    
   6  norm          .10000E-03    29.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8928        5.3123        .18185E-03   -1.5266    
   9  Prefactor     .10000E-03    19.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    81.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4505        5.0609        .19088E-03   -1.5286    
  16  Prefactor     .10000E-03    8.1161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .44169        13.668        .34657E-02   -1.5575    
  19  Prefactor     .10000E-03    6.0851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3569        .20990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.219        40.193        .83148E-04   -1.4744    
  22  Prefactor     .10000E-03    73.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     132.16        76.278        .17517E-03   -1.3404    
  24  norm          .10000E-03    13.447        .20741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    104.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2303        .34610        .37457E-03   -.85671    
  28  Prefactor     .84208        .13363        .17458E-03   -.98195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78656e-10
Minuit parameter uncertainties:
  1  15.4107
  2  1.41539e-05
  3  1.11158
  4  2.14074e-05
  5  9.65233
  6  8.85893e-06
  7  1.0893e-05
  8  5.31281
  9  1.54435e-05
  10  7.54864e-06
  11  0.00034084
  12  1.89811e-07
  13  0.00019176
  14  5.49015e-06
  15  5.06135
  16  3.23875e-06
  17  1.33553e-05
  18  4.91476
  19  5.2596e-07
  20  4.6437e-05
  21  40.2399
  22  0.000194583
  23  76.3348
  24  4.91334e-05
  25  0.000250366
  26  0.000134089
  27  0.346747
  28  0.133684
Done.

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

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  1.000e-04  1.898e-07  1.000e-04  1.000e+04 ( 1.000e-14)
331        Index:  1.907e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
332        Scale:  3.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  8.421e-01  1.337e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.230e+00  3.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 318.185 8.319
Photon Flux Upper Limit: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360462/likelihoodResults_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.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) = 6819.88699349
delta logL = -0.000227613049901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6819.88676586
delta logL = 1.79416019819e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9993       1.0000          .0000       10.000    
     3 'Normalizat'    1.2303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84208       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6819.887     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      383 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.167        .90712E-02** at limit **
   2  Index         2.0022        5.1166        .50000       -.12256E-05
   3  Normalizat    1.2303        .13021E-01    .84597E-01   -.76679E-05
   4  Prefactor     .84208        .51561E-02    .44262E-01   -.41929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0022
  Normalizat = 1.23031
  Prefactor  = 0.842081
 **********
 **   18 **HESSE 
 **********

 FCN=   6819.887     FROM HESSE     STATUS=OK            33 CALLS      416 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0022        5.2263        .50000       -.64295    
   3  Normalizat    1.2303        .33131        .37457E-03   -.85671    
   4  Prefactor     .84208        .13158        .17458E-03   -.98195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02864e-11
Minuit parameter uncertainties:
  1  4.3195e-05
  2  6.95106
  3  0.331878
  4  0.131626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360462': 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) = 6819.88676585
delta logL = 1.94750100491e-08

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  1.000e-04  4.320e-05  1.000e-04  1.000e+04 ( 1.000e-14)
331        Index:  2.002e+00  6.951e+00  0.000e+00  1.000e+01 (-1.000e+00)
332        Scale:  3.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  8.421e-01  1.316e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.230e+00  3.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 318.185 8.319

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/360462/cmap_HighResolution_428025601_428284801_4FGL_J2112.7+0819_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-26 06:17:13.571961', job_id='360462', GAL2='0.84', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632662233.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.91' WHERE bin_id='728' AND source_name='4FGL J2112.7+0819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 06:17:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 360462: <4FGL_J2112.7+0819_daily_bin728> in cluster <slac> Done

Job <4FGL_J2112.7+0819_daily_bin728> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 06:00:42 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 06:02:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 06:02:26 2021
Terminated at Sun Sep 26 06:17:14 2021
Results reported at Sun Sep 26 06:17:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2112.7+0819_daily_bin728 318.185 8.3195 428025601 428284801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2112.7+0819 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   868.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            992 sec.

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

