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


Performing analysis on: 4FGL_J1112.5+3448_daily_bin1402
RA = 168.147, Dec = 34.8022
tmin = 602726401, tmax = 602985601
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='608388', job_status='RUN', time_executed='2021-09-03 13:02:14.638606', time_epoch_executed='1630699334.64' WHERE source_name='4FGL J1112.5+3448' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608388

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608388/ft1_4FGL_J1112.5+3448_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608388/ft2_4FGL_J1112.5+3448_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608388/ft1_4FGL_J1112.5+3448_daily_bin1402.fits outfile=/scratch/kocevski/608388/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin1402.fits ra=168.147 dec=34.8022 rad=12.0 tmin=602726401.0 tmax=602985601.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 3.15
user 2.91
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/608388/ft2_4FGL_J1112.5+3448_daily_bin1402.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/608388/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/608388/ft1_filtered_4FGL_J1112.5+3448_daily_bin1402.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.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/608388/ft1_filtered_4FGL_J1112.5+3448_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/608388/ft2_4FGL_J1112.5+3448_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/608388/ltcube_602726401_602985601_4FGL_J1112.5+3448_daily_bin1402.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/608388/ft2_4FGL_J1112.5+3448_daily_bin1402.fits
.....................!
real 19.68
user 19.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608388/ft1_filtered_4FGL_J1112.5+3448_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/608388/ft2_4FGL_J1112.5+3448_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/608388/ltcube_602726401_602985601_4FGL_J1112.5+3448_daily_bin1402.fits outfile=/scratch/kocevski/608388/expmap_602726401_602985601_4FGL_J1112.5+3448_daily_bin1402.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/608388/ltcube_602726401_602985601_4FGL_J1112.5+3448_daily_bin1402.fits
.....................!
real 195.32
user 190.28
sys 4.45

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/608388/ft1_filtered_4FGL_J1112.5+3448_daily_bin1402.fits scfile=/scratch/kocevski/608388/ft2_4FGL_J1112.5+3448_daily_bin1402.fits outfile=/scratch/kocevski/608388/cmap_602726401_602985601_4FGL_J1112.5+3448_daily_bin1402.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608388/ft1_filtered_4FGL_J1112.5+3448_daily_bin1402.fits scfile=/scratch/kocevski/608388/ft2_4FGL_J1112.5+3448_daily_bin1402.fits outfile=/scratch/kocevski/608388/cmap_HighResolution_602726401_602985601_4FGL_J1112.5+3448_daily_bin1402.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.58
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'norm      '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29721E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16179E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12194E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.166       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12051E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.329       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9993       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18020E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    90.610       1.0000         .10000E-03   10000.    
    24 'norm      '    .97105       1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.549       1.0000         .10000E-03   10000.    
    26 'norm      '    .11821E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    180.56       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .27083E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.6569       1.0000         .10000E-03   10000.    
    30 'Prefactor '    60.698       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .33586       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .75177       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=   600.1069     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     5304 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        8365.8        .44052E-05** at limit **
   2  norm         10000.0        8715.0        .45376E-05** at limit **
   3  Prefactor     .10000E-03    8680.6       -.57655E-06** at limit **
   4  Prefactor     .10006E-03    9375.2       -.47197E-05** at limit **
   5  Prefactor    10000.0        1688.8       -.16890E-06** at limit **
   6  Prefactor     .10002E-03    6566.8       -.25771E-05** at limit **
   7  Prefactor     .10001E-03    6273.3       -.22048E-05** at limit **
   8  Prefactor     .10000E-03    277.23        .90105E-07** at limit **
   9  Prefactor     .10000E-03    1109.5        .58615E-06** at limit **
  10  Prefactor     .10000E-03    58.399       -.77514E-07** at limit **
  11  norm          .10000E-03    1.3037       -.41481E-08** at limit **
  12  Prefactor     .10000E-03    11.442        .56591E-07** at limit **
  13  Prefactor     .10000E-03    55.321        .12897E-06** at limit **
  14  Prefactor     .10000E-03    112.79       -.40041E-07** at limit **
  15  norm          .10000E-03    49.261        .96993E-07** at limit **
  16  norm          .10000E-03    19.622        .40054E-07** at limit **
  17  Prefactor     19.169        20.132       -.21562E-06   -.99127E-04
  18  Prefactor     .10000E-03    1088.4       -.32070E-06** at limit **
  19  Prefactor     41.150        73.727       -.32526E-05   -.14140E-04
  20  norm          3.0075        16.803        .48264E-06   -.86300E-04
  21  Prefactor     .10000E-03    292.66        .14612E-04** at limit **
  22  Prefactor     .10000E-03    38.602        .10926E-05** at limit **
  23  Prefactor     90.801        180.04       -.10038E-04   -.19090E-04
  24  norm          .95928        4.4717        .31262E-05   -.12683E-04
  25  Prefactor     31.511        56.450        .37140E-06   -.71705E-05
  26  norm          .10000E-03    90.749       -.96342E-06** at limit **
  27  Prefactor     180.52        113.02       -.14509E-05   -.23797E-04
  28  Prefactor     .10000E-03    395.10       -.29965E-05** at limit **
  29  norm          3.6546        3.4418        .12833E-06   -.10109E-03
  30  Prefactor     60.661        82.533       -.11398E-06   -.13852E-04
  31  Normalizat    .33637        .82873        .81358E-05   -.38302E-04
  32  Prefactor     .75199        .73221       -.10684E-04   -.78325E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.000100059
  Prefactor  = 10000
  Prefactor  = 0.00010002
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.1688
  Prefactor  = 0.000100001
  Prefactor  = 41.1498
  norm       = 3.00748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.8009
  norm       = 0.959276
  Prefactor  = 31.5115
  norm       = 0.0001
  Prefactor  = 180.525
  Prefactor  = 0.000100001
  norm       = 3.65459
  Prefactor  = 60.661
  Normalizat = 0.336368
  Prefactor  = 0.751986
 **********
 **   18 **HESSE 
 **********

 FCN=   600.1069     FROM HESSE     STATUS=OK           641 CALLS     5945 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        8361.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        8711.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8680.5        .21394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    9372.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1688.8        .21369E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    6563.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    6271.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    277.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1109.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    58.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3177        .27323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.450        .80960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    55.317        .17816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    112.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    49.263        .16811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.624        .10605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.169        19.703        .82940E-04   -1.4832    
  18  Prefactor     .10000E-03    1089.0        .20635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.150        72.527        .62354E-04   -1.4424    
  20  norm          3.0075        15.928        .14294E-03   -1.5361    
  21  Prefactor     .10000E-03    300.12        .40641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.934        .14863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     90.801        177.99        .21107E-03   -1.3799    
  24  norm          .95928        3.9974        .77456E-04   -1.5512    
  25  Prefactor     31.511        56.081        .71336E-04   -1.4585    
  26  norm          .10000E-03    92.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     180.52        110.55        .15020E-03   -1.3013    
  28  Prefactor     .10000E-03    396.87        .21432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.6546        3.4169        .40124E-04   -1.5326    
  30  Prefactor     60.661        81.509        .51500E-04   -1.4149    
  31  Normalizat    .33637        .77636        .43291E-03   -1.2073    
  32  Prefactor     .75199        .74288        .30319E-03   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39985e-10
Minuit parameter uncertainties:
  1  0.0428399
  2  0.0478861
  3  0.00624114
  4  0.0587162
  5  8.37968e-05
  6  0.0167094
  7  0.0118159
  8  8.96807e-05
  9  0.00182725
  10  5.38964e-05
  11  1.43282e-06
  12  9.7972e-06
  13  8.09134e-05
  14  2.18865e-05
  15  7.02575e-06
  16  7.28817e-06
  17  19.7096
  18  0.00213903
  19  72.6832
  20  13.8478
  21  7.58211e-05
  22  5.41609e-05
  23  179.051
  24  3.91666
  25  56.1748
  26  0.000174071
  27  110.674
  28  0.000974361
  29  3.4171
  30  81.6594
  31  0.80349
  32  0.753069
Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  1.000e-04  7.026e-06  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:  7.520e-01  7.531e-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:  3.364e-01  8.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 168.147 34.802
Photon Flux Upper Limit: 5.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608388/likelihoodResults_602726401_602985601_4FGL_J1112.5+3448_daily_bin1402.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) = 600.106949797
delta logL = -7.86938019246e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 600.106871546
delta logL = -4.42597865913e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8314       1.0000          .0000       5.0000    
     3 'Normalizat'    .33647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75189       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   600.1069     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      245 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    6174.3        .14149E-01** at limit **
   2  alpha         2.5992        2.8773        .20000       -.70273E-08
   3  Normalizat    .33638        .10842        .43294E-03    .20797E-04
   4  Prefactor     .75198        .11289        .30320E-03    .21232E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  alpha      = 2.59923
  Normalizat = 0.336379
  Prefactor  = 0.751978
 **********
 **   18 **HESSE 
 **********

 FCN=   600.1069     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    50.112        .16948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5992        2.5413        .80000E-02    .39701E-01
   3  Normalizat    .33638        .67090        .17318E-04   -1.2073    
   4  Prefactor     .75198        .70746        .12128E-04   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97989e-10
Minuit parameter uncertainties:
  1  0.00129516
  2  1310.7
  3  0.687981
  4  0.716235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608388': 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) = 600.106871087
delta logL = 1.66304516824e-08

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  1.000e-04  1.295e-03  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.599e+00  1.311e+03  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.520e-01  7.162e-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:  3.364e-01  6.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 168.147 34.802

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/608388/cmap_HighResolution_602726401_602985601_4FGL_J1112.5+3448_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-04', job_status='DONE', photon_flux_upper_limit='5.94e-07', time_completed='2021-09-03 13:11:41.165953', job_id='608388', GAL2='0.75', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1630699901.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.66e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1402' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 13:11:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 608388: <4FGL_J1112.5+3448_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1112.5+3448_daily_bin1402> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 12:56:40 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 13:00:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 13:00:06 2021
Terminated at Fri Sep  3 13:11:41 2021
Results reported at Fri Sep  3 13:11:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1112.5+3448_daily_bin1402 168.147 34.8022 602726401 602985601 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 :                                   416.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            901 sec.

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

