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


Performing analysis on: 4FGL_J1112.5+3448_daily_bin39
RA = 168.147, Dec = 34.8022
tmin = 249436801, tmax = 249696001
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='600966', job_status='RUN', time_executed='2021-09-03 12:34:50.799118', time_epoch_executed='1630697690.8' WHERE source_name='4FGL J1112.5+3448' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600966/ft1_4FGL_J1112.5+3448_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600966/ft2_4FGL_J1112.5+3448_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600966/ft1_4FGL_J1112.5+3448_daily_bin39.fits outfile=/scratch/kocevski/600966/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin39.fits ra=168.147 dec=34.8022 rad=12.0 tmin=249436801.0 tmax=249696001.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 1.45
user 1.27
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600966/ft2_4FGL_J1112.5+3448_daily_bin39.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/600966/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin39.fits evtable="EVENTS" outfile="/scratch/kocevski/600966/ft1_filtered_4FGL_J1112.5+3448_daily_bin39.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.52
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600966/ft1_filtered_4FGL_J1112.5+3448_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/600966/ft2_4FGL_J1112.5+3448_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/600966/ltcube_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.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/600966/ft2_4FGL_J1112.5+3448_daily_bin39.fits
.....................!
real 17.42
user 17.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600966/ft1_filtered_4FGL_J1112.5+3448_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/600966/ft2_4FGL_J1112.5+3448_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/600966/ltcube_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.fits outfile=/scratch/kocevski/600966/expmap_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.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/600966/ltcube_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.fits
.....................!
real 191.48
user 187.07
sys 3.98

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/600966/ft1_filtered_4FGL_J1112.5+3448_daily_bin39.fits scfile=/scratch/kocevski/600966/ft2_4FGL_J1112.5+3448_daily_bin39.fits outfile=/scratch/kocevski/600966/cmap_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.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.57
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600966/ft1_filtered_4FGL_J1112.5+3448_daily_bin39.fits scfile=/scratch/kocevski/600966/ft2_4FGL_J1112.5+3448_daily_bin39.fits outfile=/scratch/kocevski/600966/cmap_HighResolution_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.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.56
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/600966/ft1_filtered_4FGL_J1112.5+3448_daily_bin39.fits', '/scratch/kocevski/600966/ft2_4FGL_J1112.5+3448_daily_bin39.fits', expMap='/scratch/kocevski/600966/expmap_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.fits', expCube='/scratch/kocevski/600966/ltcube_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/600966/Model_4FGL_J1112.5+3448_daily_bin39.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/600966/ft1_filtered_4FGL_J1112.5+3448_daily_bin39.fits
Spacecraft file(s): /scratch/kocevski/600966/ft2_4FGL_J1112.5+3448_daily_bin39.fits
Exposure map: /scratch/kocevski/600966/expmap_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.fits
Exposure cube: /scratch/kocevski/600966/ltcube_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/600966/Model_4FGL_J1112.5+3448_daily_bin39.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) = 4922.35180736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4622       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29492       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17607E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5772       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.1218       1.0000         .10000E-03   10000.    
    16 'norm      '    9.9294       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.462       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28369E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .27377       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7154       1.0000         .10000E-03   10000.    
    26 'norm      '    .39172E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.465       1.0000         .10000E-03   10000.    
    29 'norm      '    4.2561       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86766       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1430       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=   4922.260     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     3738 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4672        5.8478        .66798E-06    .14899E-02
   2  norm          .10000E-03    3.2813        .47616E-07** at limit **
   3  Prefactor     .10000E-03    23.791        .11207E-05** at limit **
   4  Prefactor     .10000E-03    22.847       -.14074E-05** at limit **
   5  Prefactor     .28399        3.7362        .15408E-05   -.23264E-03
   6  Prefactor     .10641E-03    7.5994       -.38911E-05** at limit **
   7  Prefactor     .10001E-03    55.646       -.66567E-05** at limit **
   8  Prefactor     .10000E-03    8.3480        .11076E-06** at limit **
   9  Prefactor     2.9497        467.42        .22810E-04    .30064E-04
  10  Prefactor     .10000E-03    7.9056        .93067E-06** at limit **
  11  norm          1.5772        .37218        .28487E-09    .12024E-03
  12  Prefactor     .10000E-03    .80700       -.89671E-08** at limit **
  13  Prefactor     .10000E-03    4.4121       -.62808E-06** at limit **
  14  Prefactor     .10000E-03    4.6623        .58461E-06** at limit **
  15  norm          8.1212        8.7918        .19860E-06    .50338E-04
  16  norm          9.9284        12.688        .26942E-06    .27801E-04
  17  Prefactor     .10000E-03    1.8584       -.74148E-09** at limit **
  18  Prefactor     .10001E-03    69.436        .66584E-05** at limit **
  19  Prefactor     37.457        19.849        .43511E-06    .79555E-04
  20  norm          .10000E-03    1.2649        .72172E-08** at limit **
  21  Prefactor     .10000E-03    4.1051        .13068E-06** at limit **
  22  Prefactor     .10000E-03    4.1113        .18094E-05** at limit **
  23  Prefactor     .10001E-03    41.853       -.55240E-05** at limit **
  24  norm          .27424        .83497        .34284E-06    .71516E-03
  25  Prefactor     2.7187        34.753        .63735E-06    .14964E-04
  26  norm          .10000E-03    9.4282        .45643E-05** at limit **
  27  Prefactor     .10000E-03    7.4777       -.75854E-06** at limit **
  28  Prefactor     30.470        30.945       -.53484E-06   -.46487E-04
  29  norm          4.2561        1.6804        .27009E-07    .11445E-04
  30  Prefactor     .10000E-03    30.814        .47359E-05** at limit **
  31  Normalizat    .86744        .18959       -.13724E-05    .15873E-03
  32  Prefactor     1.1432        .21320        .61696E-06    .76050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.46725
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.283991
  Prefactor  = 0.000106407
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 2.94972
  Prefactor  = 0.0001
  norm       = 1.57723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.12121
  norm       = 9.92837
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 37.4574
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  norm       = 0.274243
  Prefactor  = 2.71874
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 30.4704
  norm       = 4.2561
  Prefactor  = 0.000100004
  Normalizat = 0.867438
  Prefactor  = 1.14316
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.260     FROM HESSE     STATUS=OK           657 CALLS     4395 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4672        6.3164        .78940E-03   -1.5199    
   2  norm          .10000E-03    3.2832        .12411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .28399        27.912        .23446E-02   -1.5601    
   6  Prefactor     .10641E-03    105.86        .24728E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    56.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.3525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9497        478.63        .23568E-03   -1.5364    
  10  Prefactor     .10000E-03    7.9938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5772        .37289        .20104E-04   -1.5457    
  12  Prefactor     .10000E-03    .81029        .61535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4212        .14398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6678        .14801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.1212        8.7920        .14068E-03   -1.5138    
  16  norm          9.9284        12.689        .12717E-03   -1.5078    
  17  Prefactor     .10000E-03    1.9292        .18642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    70.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.457        19.833        .65482E-04   -1.4483    
  20  norm          .10000E-03    1.2978        .15393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1075        .13878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.6171        .25412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    42.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .27424        .81894        .10564E-03   -1.5603    
  25  Prefactor     2.7187        34.697        .24716E-03   -1.5378    
  26  norm          .10000E-03    13.745        .32693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.4888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     30.470        30.861        .72591E-04   -1.4603    
  29  norm          4.2561        1.6774        .54452E-04   -1.5295    
  30  Prefactor     .10000E-03    31.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .86744        .22283        .24572E-03   -.97614    
  32  Prefactor     1.1432        .25203        .26157E-03   -.88099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72611e-08
Minuit parameter uncertainties:
  1  6.31703
  2  4.28504e-06
  3  0.000160256
  4  0.000125528
  5  5.63264
  6  0.0521793
  7  0.00130123
  8  1.19557e-05
  9  75.7712
  10  7.17128e-05
  11  0.372895
  12  1.35972e-07
  13  3.57674e-05
  14  3.49679e-05
  15  8.79341
  16  12.6922
  17  1.77015e-06
  18  0.00147187
  19  19.8361
  20  4.69363e-07
  21  4.89388e-06
  22  0.000137744
  23  0.000967245
  24  0.818978
  25  19.4384
  26  0.00019443
  27  5.67034e-05
  28  30.8771
  29  1.67742
  30  0.000722319
  31  0.223069
  32  0.252296
Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  8.121e+00  8.793e+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

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.143e+00  2.523e-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:  8.674e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 168.147 34.802
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.90e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 5.68e-06 +/- 6.15e-06

TS (Fixed Index): 2.21
Ra Dec: 168.147 34.802
Photon Flux Upper Limit: 8.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/600966/likelihoodResults_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.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) = 4921.41677528
delta logL = 0.842878222791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4921.36864301
delta logL = 0.891010494001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6856       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0786       1.0000          .0000       5.0000    
     3 'Normalizat'    .88246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1312       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=   4921.369     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6744        5.2501        .42115E-02   -.48598E-04
   2  alpha         1.0772        .48956        .39412       -.35282E-04
   3  Normalizat    .88239        .17478        .44677E-01    .11003E-04
   4  Prefactor     1.1313        .21139        .59375E-01    .56113E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.67443
  alpha      = 1.07725
  Normalizat = 0.882385
  Prefactor  = 1.13125
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.369     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6744        6.8525        .14791E-03   -1.5232    
   2  alpha         1.0772        .68445        .16136E-01   -.60541    
   3  Normalizat    .88239        .20629        .24381E-03   -.97082    
   4  Prefactor     1.1313        .24942        .26257E-03   -.88474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73617e-12
Minuit parameter uncertainties:
  1  6.85341
  2  0.697776
  3  0.20647
  4  0.249675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600966': 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) = 4921.36864115
delta logL = 0.891012349332

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  5.674e+00  6.853e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  1.077e+00  6.978e-01  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:  1.131e+00  2.497e-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:  8.824e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.99
Ra Dec: 168.147 34.802
Photon Index (Free Index): 1.08 +/- 0.70
Photon Flux (Free Index): 9.27e-09 +/- 9.36e-09
Energy Flux (Free Index): 2.14e-05 +/- 3.13e-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/600966/cmap_HighResolution_249436801_249696001_4FGL_J1112.5+3448_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', comment='SUCCESS', photon_flux='1.90e-08', energy_flux2='2.14e-05', photon_flux_error='2.06e-08', dlogl='8.91e-01', energy_flux='5.68e-06', photon_flux2='9.27e-09', job_status='DONE', time_completed='2021-09-03 12:48:14.341476', photon_index_error2='0.70', photon_index2='1.08', ts='2.21', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='8.02e-08', energy_flux_error2='3.13e-05', EG='0.87', time_epoch_completed='1630698494.34', return_code='0', job_id='600966', GAL2='1.13', EG2='0.88', return_code2='0', energy_flux_error='6.15e-06', photon_flux_error2='9.36e-09', ts2='3.99', photon_index='2.37' WHERE bin_id='39' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:48:14 PDT 2021


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

Job <4FGL_J1112.5+3448_daily_bin39> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 12:31:44 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:33:00 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:00 2021
Terminated at Fri Sep  3 12:48:15 2021
Results reported at Fri Sep  3 12:48:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1112.5+3448_daily_bin39 168.147 34.8022 249436801 249696001 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 :                                   801.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            991 sec.

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

