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


Performing analysis on: 4FGL_J2112.7+0819_daily_bin682
RA = 318.185, Dec = 8.3195
tmin = 416102401, tmax = 416361601
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='360389', job_status='RUN', time_executed='2021-09-26 06:01:16.630474', time_epoch_executed='1632661276.63' WHERE source_name='4FGL J2112.7+0819' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360389/ft1_4FGL_J2112.7+0819_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360389/ft2_4FGL_J2112.7+0819_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360389/ft1_4FGL_J2112.7+0819_daily_bin682.fits outfile=/scratch/kocevski/360389/ft1_filteredMKT_4FGL_J2112.7+0819_daily_bin682.fits ra=318.185 dec=8.3195 rad=12.0 tmin=416102401.0 tmax=416361601.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.52
user 6.17
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360389/ft2_4FGL_J2112.7+0819_daily_bin682.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/360389/ft1_filteredMKT_4FGL_J2112.7+0819_daily_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/360389/ft1_filtered_4FGL_J2112.7+0819_daily_bin682.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.55
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360389/ft1_filtered_4FGL_J2112.7+0819_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/360389/ft2_4FGL_J2112.7+0819_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/360389/ltcube_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.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/360389/ft2_4FGL_J2112.7+0819_daily_bin682.fits
.....................!
real 14.93
user 14.07
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360389/ft1_filtered_4FGL_J2112.7+0819_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/360389/ft2_4FGL_J2112.7+0819_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/360389/ltcube_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.fits outfile=/scratch/kocevski/360389/expmap_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.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/360389/ltcube_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.fits
.....................!
real 193.13
user 185.16
sys 5.58

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/360389/ft1_filtered_4FGL_J2112.7+0819_daily_bin682.fits scfile=/scratch/kocevski/360389/ft2_4FGL_J2112.7+0819_daily_bin682.fits outfile=/scratch/kocevski/360389/cmap_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360389/ft1_filtered_4FGL_J2112.7+0819_daily_bin682.fits scfile=/scratch/kocevski/360389/ft2_4FGL_J2112.7+0819_daily_bin682.fits outfile=/scratch/kocevski/360389/cmap_HighResolution_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360389/ft1_filtered_4FGL_J2112.7+0819_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/360389/ft2_4FGL_J2112.7+0819_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360389/Model_4FGL_J2112.7+0819_daily_bin682.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/360389/ft1_filtered_4FGL_J2112.7+0819_daily_bin682.fits.....................!
real 69.76
user 67.63
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/360389/ft1_filtered_4FGL_J2112.7+0819_daily_bin682.fits', '/scratch/kocevski/360389/ft2_4FGL_J2112.7+0819_daily_bin682.fits', expMap='/scratch/kocevski/360389/expmap_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.fits', expCube='/scratch/kocevski/360389/ltcube_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/360389/Model_4FGL_J2112.7+0819_daily_bin682.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/360389/ft1_filtered_4FGL_J2112.7+0819_daily_bin682.fits
Spacecraft file(s): /scratch/kocevski/360389/ft2_4FGL_J2112.7+0819_daily_bin682.fits
Exposure map: /scratch/kocevski/360389/expmap_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.fits
Exposure cube: /scratch/kocevski/360389/ltcube_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/360389/Model_4FGL_J2112.7+0819_daily_bin682.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) = 6574.5299163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6255       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.832       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2448       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1061       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0110       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.904       1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.342       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.141       1.0000         .10000E-03   10000.    
    15 'norm      '    5.1361       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2267       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8876       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .63372E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7535       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0799       1.0000         .10000E-03   10000.    
    25 'norm      '    6.4793       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.0026       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1055       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79694       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=   6574.509     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3496 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6243        10.718        .69085E-08    .26950E-05
   2  Prefactor     16.833        18.243        .69921E-07    .26033E-05
   3  norm          3.2446        1.0852        .64282E-08    .30772E-04
   4  Prefactor     .10000E-03    13.217       -.23555E-06** at limit **
   5  norm          3.1051        5.7508        .10494E-06    .77365E-05
   6  norm          .10000E-03    28.635        .21318E-05** at limit **
   7  Prefactor     9.0101        21.418        .74129E-06    .76528E-05
   8  Prefactor     11.170        7.2825        .13957E-06   -.11287E-05
   9  Prefactor     .10000E-03    14.966        .95625E-06** at limit **
  10  Prefactor     34.907        26.636       -.17142E-06    .94097E-05
  11  Prefactor     49.338        30.890        .28788E-06   -.37980E-05
  12  Prefactor     .10000E-03    22.277        .21433E-06** at limit **
  13  Prefactor     .10000E-03    35.382       -.32206E-06** at limit **
  14  Prefactor     16.136        43.689        .11604E-05   -.94199E-06
  15  norm          5.1354        7.7572        .12705E-05    .13555E-03
  16  Prefactor     6.2279        46.277        .12023E-05    .41989E-05
  17  Prefactor     .10000E-03    18.220       -.13929E-05** at limit **
  18  Prefactor     .10000E-03    3.5921        .54617E-07** at limit **
  19  Prefactor     3.8896        11.752        .26768E-05    .85380E-04
  20  Prefactor     .59576E-01    2.0071       -.42310E-06    .71563E-03
  21  Prefactor     9.7940        38.323       -.61965E-05    .10403E-04
  22  Prefactor     .10000E-03    39.771       -.23047E-05** at limit **
  23  Prefactor     .10000E-03    75.538        .97218E-06** at limit **
  24  norm          1.0804        3.5759        .38461E-06    .31743E-04
  25  norm          6.4822        25.672        .46036E-06    .52735E-05
  26  Prefactor     2.0028        8.4898        .71238E-06    .23364E-04
  27  Normalizat    1.1050        .31398       -.33045E-05    .16316E-05
  28  Prefactor     .79712        .10892        .10248E-05   -.10285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.62432
  Prefactor  = 16.8331
  norm       = 3.24462
  Prefactor  = 0.0001
  norm       = 3.10514
  norm       = 0.0001
  Prefactor  = 9.01008
  Prefactor  = 11.1698
  Prefactor  = 0.0001
  Prefactor  = 34.9067
  Prefactor  = 49.3383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.136
  norm       = 5.13539
  Prefactor  = 6.22792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.88963
  Prefactor  = 0.0595759
  Prefactor  = 9.79397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08038
  norm       = 6.48218
  Prefactor  = 2.00281
  Normalizat = 1.10502
  Prefactor  = 0.797124
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.509     FROM HESSE     STATUS=OK           531 CALLS     4027 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6243        10.690        .13649E-03   -1.5121    
   2  Prefactor     16.833        18.306        .97623E-04   -1.4887    
   3  norm          3.2446        1.0917        .42438E-04   -1.5348    
   4  Prefactor     .10000E-03    13.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1051        5.7373        .23008E-03   -1.5356    
   6  norm          .10000E-03    28.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0101        21.409        .66759E-03   -1.5108    
   8  Prefactor     11.170        7.2880        .11987E-03   -1.5039    
   9  Prefactor     .10000E-03    14.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.907        26.699        .67831E-04   -1.4526    
  11  Prefactor     49.338        30.888        .57088E-04   -1.4302    
  12  Prefactor     .10000E-03    22.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.136        43.691        .99690E-04   -1.4904    
  15  norm          5.1354        7.8344        .88699E-03   -1.5255    
  16  Prefactor     6.2279        46.376        .16087E-03   -1.5209    
  17  Prefactor     .10000E-03    18.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6041        .15003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8896        11.746        .10232E-02   -1.5313    
  20  Prefactor     .59576E-01    28.674        .20673E-02   -1.5659    
  21  Prefactor     9.7940        39.367        .12831E-03   -1.5082    
  22  Prefactor     .10000E-03    39.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    75.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0804        3.5101        .24675E-03   -1.5500    
  25  norm          6.4822        25.297        .15767E-03   -1.5199    
  26  Prefactor     2.0028        8.4506        .29264E-03   -1.5425    
  27  Normalizat    1.1050        .35818        .38792E-03   -.89591    
  28  Prefactor     .79712        .12806        .17498E-03   -.99834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01443e-09
Minuit parameter uncertainties:
  1  10.6929
  2  18.3118
  3  1.09169
  4  1.00904e-06
  5  5.7383
  6  5.06776e-05
  7  21.4273
  8  7.2886
  9  2.02056e-05
  10  26.7077
  11  30.8977
  12  2.53849e-05
  13  7.2762e-06
  14  43.7776
  15  7.83598
  16  34.0266
  17  3.86975e-05
  18  1.66705e-06
  19  11.7526
  20  2.61307
  21  39.3161
  22  6.31319e-05
  23  5.79401e-05
  24  3.51075
  25  25.3386
  26  8.22978
  27  0.358968
  28  0.128112
Done.

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

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  1.000e-04  2.538e-05  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:  7.971e-01  1.281e-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.105e+00  3.590e-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: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360389/likelihoodResults_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.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) = 6574.50907425
delta logL = -0.0002137521642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6574.50886275
delta logL = -2.24382074521e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17533E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0150       1.0000          .0000       10.000    
     3 'Normalizat'    1.1050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79712       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=   6574.509     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6305        .90712E-02** at limit **
   2  Index         1.9800        5.5951        .50000        .12716E-04
   3  Normalizat    1.1050        .35871E-02    .87598E-01   -.31960E-04
   4  Prefactor     .79712        .14041E-02    .43680E-01   -.11290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98
  Normalizat = 1.10502
  Prefactor  = 0.797124
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.509     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      265 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9800        6.5517        .50000       -.64851    
   3  Normalizat    1.1050        .11547E-01    .38793E-03   -.89591    
   4  Prefactor     .79712        .45284E-02    .17497E-03   -.99834    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.76054e-08
Minuit parameter uncertainties:
  1  0.000285663
  2  85.1153
  3  0.0115471
  4  0.00452841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360389': 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): 102
logL (Free Index) = 6574.5088607
delta logL = -1.98916495719e-07

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  1.000e-04  2.857e-04  1.000e-04  1.000e+04 ( 1.000e-14)
331        Index:  1.980e+00  8.512e+01  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:  7.971e-01  4.528e-03  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.105e+00  1.155e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/360389/cmap_HighResolution_416102401_416361601_4FGL_J2112.7+0819_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='9.09e-08', time_completed='2021-09-26 06:15:25.695414', job_id='360389', GAL2='0.80', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632662125.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-1.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.91' WHERE bin_id='682' AND source_name='4FGL J2112.7+0819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 06:15:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 360389: <4FGL_J2112.7+0819_daily_bin682> in cluster <slac> Done

Job <4FGL_J2112.7+0819_daily_bin682> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 06:00:36 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 06:01:00 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:01:00 2021
Terminated at Sun Sep 26 06:15:26 2021
Results reported at Sun Sep 26 06:15:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2112.7+0819_daily_bin682 318.185 8.3195 416102401 416361601 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 :                                   837.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            890 sec.

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

