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


Performing analysis on: 4FGL_J1112.5+3448_daily_bin57
RA = 168.147, Dec = 34.8022
tmin = 254102401, tmax = 254361601
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='600996', job_status='RUN', time_executed='2021-09-03 12:35:21.334243', time_epoch_executed='1630697721.33' WHERE source_name='4FGL J1112.5+3448' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600996/ft1_4FGL_J1112.5+3448_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600996/ft2_4FGL_J1112.5+3448_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600996/ft1_4FGL_J1112.5+3448_daily_bin57.fits outfile=/scratch/kocevski/600996/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin57.fits ra=168.147 dec=34.8022 rad=12.0 tmin=254102401.0 tmax=254361601.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 2.03
user 1.85
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/600996/ft2_4FGL_J1112.5+3448_daily_bin57.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600996/ft2_4FGL_J1112.5+3448_daily_bin57.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/600996/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin57.fits evtable="EVENTS" outfile="/scratch/kocevski/600996/ft1_filtered_4FGL_J1112.5+3448_daily_bin57.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.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600996/ft1_filtered_4FGL_J1112.5+3448_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/600996/ft2_4FGL_J1112.5+3448_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/600996/ltcube_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.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/600996/ft2_4FGL_J1112.5+3448_daily_bin57.fits
.....................!
real 17.13
user 16.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600996/ft1_filtered_4FGL_J1112.5+3448_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/600996/ft2_4FGL_J1112.5+3448_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/600996/ltcube_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.fits outfile=/scratch/kocevski/600996/expmap_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.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/600996/ltcube_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.fits
.....................!
real 191.92
user 187.14
sys 4.33

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1112.5+3448 @ 168.147 34.8022

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/600996/ft1_filtered_4FGL_J1112.5+3448_daily_bin57.fits scfile=/scratch/kocevski/600996/ft2_4FGL_J1112.5+3448_daily_bin57.fits outfile=/scratch/kocevski/600996/cmap_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.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=168.147 yref=34.8022 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.59
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600996/ft1_filtered_4FGL_J1112.5+3448_daily_bin57.fits scfile=/scratch/kocevski/600996/ft2_4FGL_J1112.5+3448_daily_bin57.fits outfile=/scratch/kocevski/600996/cmap_HighResolution_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.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=168.147 yref=34.8022 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/600996/ft1_filtered_4FGL_J1112.5+3448_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/600996/ft2_4FGL_J1112.5+3448_daily_bin57.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/600996/Model_4FGL_J1112.5+3448_daily_bin57.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/600996/ft1_filtered_4FGL_J1112.5+3448_daily_bin57.fits.....................!
real 42.49
user 41.11
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/600996/ft1_filtered_4FGL_J1112.5+3448_daily_bin57.fits', '/scratch/kocevski/600996/ft2_4FGL_J1112.5+3448_daily_bin57.fits', expMap='/scratch/kocevski/600996/expmap_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.fits', expCube='/scratch/kocevski/600996/ltcube_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/600996/Model_4FGL_J1112.5+3448_daily_bin57.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1112.5+3448'

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  9.204e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.369e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  1.454e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  4.627e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/600996/ft1_filtered_4FGL_J1112.5+3448_daily_bin57.fits
Spacecraft file(s): /scratch/kocevski/600996/ft2_4FGL_J1112.5+3448_daily_bin57.fits
Exposure map: /scratch/kocevski/600996/expmap_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.fits
Exposure cube: /scratch/kocevski/600996/ltcube_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/600996/Model_4FGL_J1112.5+3448_daily_bin57.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) = 4148.01894877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.220       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.307       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0405       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .66643E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2271       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.232       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8874       1.0000         .10000E-03   10000.    
    15 'norm      '    38.217       1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.230       1.0000         .10000E-03   10000.    
    20 'norm      '    .55269       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.348       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4345       1.0000         .10000E-03   10000.    
    23 'Prefactor '    172.03       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.589       1.0000         .10000E-03   10000.    
    26 'norm      '    10.030       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13451E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.3801       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12248E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0244       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .61902       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4147.948     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4579 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.225        8.0389       -.42021E-06   -.66454E-03
   2  norm          .10000E-03    4.9564       -.10165E-06** at limit **
   3  Prefactor     .10000E-03    38.081        .12910E-05** at limit **
   4  Prefactor     18.312        24.394        .83056E-06    .26620E-04
   5  Prefactor     5.0432        5.0225       -.21634E-06   -.35600E-03
   6  Prefactor     .10000E-03    2.0064       -.78619E-08** at limit **
   7  Prefactor     .10000E-03    37.883        .13137E-05** at limit **
   8  Prefactor     .10000E-03    27.180        .79339E-07** at limit **
   9  Prefactor     .10001E-03    67.644       -.61047E-05** at limit **
  10  Prefactor     .17337        7.7942        .19505E-05   -.41265E-03
  11  norm          1.2272        .39742       -.74855E-08   -.93464E-03
  12  Prefactor     .10000E-03    1.1423       -.26802E-07** at limit **
  13  Prefactor     23.247        28.114        .95194E-06   -.81196E-04
  14  Prefactor     5.8887        16.771       -.19098E-06   -.50472E-04
  15  norm          38.223        26.387       -.31770E-06   -.17192E-03
  16  norm          .10000E-03    5.4057        .47964E-08** at limit **
  17  Prefactor     .10000E-03    .94014        .12496E-07** at limit **
  18  Prefactor     .10000E-03    16.756       -.63195E-07** at limit **
  19  Prefactor     30.240        28.544        .99056E-06   -.14136E-04
  20  norm          .55286        1.8428        .16781E-05   -.31971E-04
  21  Prefactor     12.353        18.999       -.97662E-07   -.59553E-04
  22  Prefactor     6.4374        5.6868       -.14344E-06   -.32420E-03
  23  Prefactor     172.08        66.509       -.10824E-05   -.62754E-03
  24  norm          .10001E-03    1.2987        .23845E-05** at limit **
  25  Prefactor     28.604        25.874        .13691E-05    .76947E-04
  26  norm          10.028        10.675       -.88544E-06   -.36462E-03
  27  Prefactor     .10000E-03    140.34        .10521E-05** at limit **
  28  Prefactor     .10000E-03    40.066       -.31388E-05** at limit **
  29  norm          4.3810        1.9396        .49430E-07   -.25201E-03
  30  Prefactor     .10003E-03    90.896        .13663E-04** at limit **
  31  Normalizat    1.0238        .21385       -.37642E-05   -.82803E-03
  32  Prefactor     .61925        .22716        .19285E-05   -.55030E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2248
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3118
  Prefactor  = 5.04324
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.173368
  norm       = 1.22718
  Prefactor  = 0.0001
  Prefactor  = 23.2466
  Prefactor  = 5.88875
  norm       = 38.2227
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2396
  norm       = 0.552862
  Prefactor  = 12.3528
  Prefactor  = 6.43745
  Prefactor  = 172.075
  norm       = 0.000100005
  Prefactor  = 28.604
  norm       = 10.0279
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.38099
  Prefactor  = 0.000100033
  Normalizat = 1.02383
  Prefactor  = 0.619251
 **********
 **   18 **HESSE 
 **********

 FCN=   4147.948     FROM HESSE     STATUS=OK           653 CALLS     5232 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.225        8.1101        .91358E-04   -1.4831    
   2  norm          .10000E-03    4.9631        .14001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.312        24.370        .93607E-04   -1.4852    
   5  Prefactor     5.0432        5.0359        .13835E-03   -1.5259    
   6  Prefactor     .10000E-03    2.0084        .88928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    68.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .17337        112.90        .33609E-02   -1.5625    
  11  norm          1.2272        .39886        .21541E-04   -1.5486    
  12  Prefactor     .10000E-03    1.1494        .67150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.247        28.145        .83103E-04   -1.4743    
  14  Prefactor     5.8887        16.757        .16551E-03   -1.5223    
  15  norm          38.223        26.372        .64833E-04   -1.4471    
  16  norm          .10000E-03    5.4271        .14624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .94482        .60928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.240        28.538        .72872E-04   -1.4608    
  20  norm          .55286        1.8624        .15299E-03   -1.5559    
  21  Prefactor     12.353        18.957        .11400E-03   -1.5005    
  22  Prefactor     6.4374        5.6798        .13776E-03   -1.5200    
  23  Prefactor     172.08        68.835        .15381E-03   -1.3077    
  24  norm          .10001E-03    1.8877        .12197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.604        25.964        .74928E-04   -1.4638    
  26  norm          10.028        10.696        .12652E-03   -1.5075    
  27  Prefactor     .10000E-03    144.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    40.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.3810        1.9389        .57079E-04   -1.5289    
  30  Prefactor     .10003E-03    95.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0238        .24631        .23091E-03   -.92236    
  32  Prefactor     .61925        .25973        .32935E-03   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1108e-08
Minuit parameter uncertainties:
  1  8.11052
  2  7.13056e-06
  3  0.000275085
  4  24.3837
  5  5.03635
  6  9.98005e-07
  7  0.000323425
  8  5.75017e-05
  9  0.00134156
  10  8.86266
  11  0.398861
  12  3.78238e-07
  13  28.161
  14  16.7701
  15  26.3795
  16  6.3308e-06
  17  2.41964e-06
  18  2.54317e-05
  19  28.5511
  20  1.86258
  21  18.9666
  22  5.6803
  23  68.8673
  24  0.000203414
  25  25.9745
  26  10.6984
  27  0.000474259
  28  0.000644555
  29  1.93894
  30  0.00357378
  31  0.246584
  32  0.260237
Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  3.822e+01  2.638e+01  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.369e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  1.454e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  4.627e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  6.193e-01  2.602e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.024e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 168.147 34.802
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 8.96e-08 +/- 6.18e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.85e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4146.49036845
delta logL = 1.45809003725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4146.41186337
delta logL = 1.53659511484

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4146.412     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      258 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3767        82.430        .34609E-02    .10260E-03
   2  alpha         4.3475        4.2348        .31739        .69160E-05
   3  Normalizat    .92127        .10991        .45174E-01   -.17534E-05
   4  Prefactor     .72261        .12742        .69467E-01    .81408E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.37672
  alpha      = 4.34748
  Normalizat = 0.921267
  Prefactor  = 0.722607
 **********
 **   18 **HESSE 
 **********

 FCN=   4146.412     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3767        16.894        .83123E-04   -1.5129    
   2  alpha         4.3475        1.4013        .14953E-01    .83157    
   3  Normalizat    .92127        .23125        .24120E-03   -.95717    
   4  Prefactor     .72261        .26062        .30740E-03   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30801e-12
Minuit parameter uncertainties:
  1  16.9035
  2  1.65504
  3  0.231495
  4  0.261057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600996': 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) = 4146.41186064
delta logL = 1.53659784414

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  8.377e+00  1.690e+01  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  4.347e+00  1.655e+00  0.000e+00  5.000e+00 ( 1.000e+00)
315         beta:  1.454e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  4.627e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  7.226e-01  2.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.213e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.86
Ra Dec: 168.147 34.802
Photon Index (Free Index): 4.35 +/- 1.66
Photon Flux (Free Index): 1.56e-07 +/- 7.38e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.17e-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/600996/cmap_HighResolution_254102401_254361601_4FGL_J1112.5+3448_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.96e-08', energy_flux2='2.29e-05', photon_flux_error='6.18e-08', dlogl='1.54e+00', energy_flux='2.67e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-03 12:47:02.690417', photon_index_error2='1.66', photon_index2='4.35', ts='4.43', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='1.02', time_epoch_completed='1630698422.69', return_code='0', job_id='600996', GAL2='0.72', EG2='0.92', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='7.38e-08', ts2='7.86', photon_index='2.37' WHERE bin_id='57' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:47:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 600996: <4FGL_J1112.5+3448_daily_bin57> in cluster <slac> Done

Job <4FGL_J1112.5+3448_daily_bin57> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 12:31:46 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:33:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 12:33:15 2021
Terminated at Fri Sep  3 12:47:03 2021
Results reported at Fri Sep  3 12:47:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1112.5+3448_daily_bin57 168.147 34.8022 254102401 254361601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1112.5+3448 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            917 sec.

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

