/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 2 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1112.5+3448_daily_bin261
RA = 168.147, Dec = 34.8022
tmin = 306979201, tmax = 307238401
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='602334', job_status='RUN', time_executed='2021-09-03 12:36:48.551898', time_epoch_executed='1630697808.55' WHERE source_name='4FGL J1112.5+3448' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602334/ft1_4FGL_J1112.5+3448_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602334/ft2_4FGL_J1112.5+3448_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602334/ft1_4FGL_J1112.5+3448_daily_bin261.fits outfile=/scratch/kocevski/602334/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin261.fits ra=168.147 dec=34.8022 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.66
user 14.09
sys 0.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602334/ft1_filtered_4FGL_J1112.5+3448_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/602334/ft2_4FGL_J1112.5+3448_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/602334/ltcube_306979201_307238401_4FGL_J1112.5+3448_daily_bin261.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/602334/ft2_4FGL_J1112.5+3448_daily_bin261.fits
.....................!
real 14.98
user 14.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602334/ft1_filtered_4FGL_J1112.5+3448_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/602334/ft2_4FGL_J1112.5+3448_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/602334/ltcube_306979201_307238401_4FGL_J1112.5+3448_daily_bin261.fits outfile=/scratch/kocevski/602334/expmap_306979201_307238401_4FGL_J1112.5+3448_daily_bin261.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/602334/ltcube_306979201_307238401_4FGL_J1112.5+3448_daily_bin261.fits
.....................!
real 192.13
user 186.37
sys 5.15

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/602334/ft1_filtered_4FGL_J1112.5+3448_daily_bin261.fits scfile=/scratch/kocevski/602334/ft2_4FGL_J1112.5+3448_daily_bin261.fits outfile=/scratch/kocevski/602334/cmap_306979201_307238401_4FGL_J1112.5+3448_daily_bin261.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602334/ft1_filtered_4FGL_J1112.5+3448_daily_bin261.fits scfile=/scratch/kocevski/602334/ft2_4FGL_J1112.5+3448_daily_bin261.fits outfile=/scratch/kocevski/602334/cmap_HighResolution_306979201_307238401_4FGL_J1112.5+3448_daily_bin261.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5473       1.0000         .10000E-03   10000.    
     2 'norm      '    .24292E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3188       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.465       1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.614       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13914E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3502       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7115       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      '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38547       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .12333E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6341       1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.650       1.0000         .10000E-03   10000.    
    24 'norm      '    1.8424       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3863       1.0000         .10000E-03   10000.    
    26 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.904       1.0000         .10000E-03   10000.    
    29 'norm      '    13.930       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .21839E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1080       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1082       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=   4763.901     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     4390 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5488        4.5045        .17975E-05    .13439E-03
   2  norm          .10020E-03    10.007        .31932E-05** at limit **
   3  Prefactor     .10000E-03    43.204       -.11876E-06** at limit **
   4  Prefactor     .10000E-03    20.538       -.38633E-06** at limit **
   5  Prefactor     1.3224        4.7657        .23719E-05   -.18399E-04
   6  Prefactor     .10000E-03    7.2193       -.45144E-06** at limit **
   7  Prefactor     44.444        43.136       -.53195E-06   -.20372E-03
   8  Prefactor     48.625        42.800        .79363E-06   -.12057E-04
   9  Prefactor     .10000E-03    45.508       -.14510E-06** at limit **
  10  Prefactor     .10000E-03    56.250        .51009E-06** at limit **
  11  norm          1.3503        .37719       -.25686E-08   -.14186E-02
  12  Prefactor     1.7093        3.9716        .13679E-05    .23455E-03
  13  Prefactor     .10000E-03    7.1070        .17137E-07** at limit **
  14  Prefactor     .10000E-03    6.0335        .25485E-07** at limit **
  15  norm          .10000E-03    45.122       -.41059E-06** at limit **
  16  norm          .10000E-03    20.371       -.44541E-06** at limit **
  17  Prefactor     .38675        2.5200        .12806E-05    .58933E-04
  18  Prefactor     .10000E-03    17.762        .10433E-06** at limit **
  19  Prefactor     .10000E-03    50.792       -.83530E-06** at limit **
  20  norm          .10000E-03    2.7188        .17344E-05** at limit **
  21  Prefactor     .10000E-03    18.778       -.55428E-06** at limit **
  22  Prefactor     1.6307        7.9615        .18882E-05   -.11931E-04
  23  Prefactor     37.699        52.773       -.51029E-06   -.68858E-04
  24  norm          1.8425        1.4740       -.65089E-07   -.10550E-02
  25  Prefactor     1.2890        184.26        .10814E-05   -.28951E-04
  26  norm          .10000E-03    9.7891       -.72698E-08** at limit **
  27  Prefactor     .10000E-03    43.890       -.23560E-06** at limit **
  28  Prefactor     20.896        63.931        .11589E-05   -.38110E-04
  29  norm          13.929        3.5386       -.89838E-07   -.52576E-03
  30  Prefactor     .10000E-03    106.35        .16788E-05** at limit **
  31  Normalizat    1.1081        .22113       -.31181E-05   -.66574E-03
  32  Prefactor     1.1079        .24267       -.19906E-08   -.60145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.5488
  norm       = 0.000100197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.32239
  Prefactor  = 0.0001
  Prefactor  = 44.4442
  Prefactor  = 48.6253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3503
  Prefactor  = 1.70932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.386747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.63066
  Prefactor  = 37.6991
  norm       = 1.84253
  Prefactor  = 1.28905
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8961
  norm       = 13.929
  Prefactor  = 0.000100004
  Normalizat = 1.1081
  Prefactor  = 1.10789
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.901     FROM HESSE     STATUS=OK           647 CALLS     5037 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5488        4.5242        .23809E-03   -1.5459    
   2  norm          .10020E-03    30.503        .34551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3224        4.6894        .25559E-03   -1.5478    
   6  Prefactor     .10000E-03    7.4031        .36105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.444        42.701        .60124E-04   -1.4374    
   8  Prefactor     48.625        42.878        .57512E-04   -1.4312    
   9  Prefactor     .10000E-03    45.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    57.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3503        .37836        .21681E-04   -1.5476    
  12  Prefactor     1.7093        3.9784        .19955E-03   -1.5446    
  13  Prefactor     .10000E-03    7.1162        .17970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0411        .16558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    46.215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .38675        2.3426        .20440E-03   -1.5584    
  18  Prefactor     .10000E-03    17.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.2736        .20023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.6307        7.7813        .33071E-03   -1.5453    
  23  Prefactor     37.699        52.451        .65319E-04   -1.4479    
  24  norm          1.8425        1.4712        .63149E-04   -1.5436    
  25  Prefactor     1.2890        189.79        .36934E-03   -1.5481    
  26  norm          .10000E-03    9.8271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    44.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     20.896        64.226        .87604E-04   -1.4793    
  29  norm          13.929        3.5212        .62107E-04   -1.4961    
  30  Prefactor     .10000E-03    107.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1081        .26528        .25337E-03   -.89492    
  32  Prefactor     1.1079        .29311        .29688E-03   -.89215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84642e-09
Minuit parameter uncertainties:
  1  4.52525
  2  0.00490342
  3  8.79854e-05
  4  8.98844e-05
  5  4.6907
  6  3.05895e-05
  7  42.73
  8  42.9056
  9  0.000106277
  10  0.000172487
  11  0.378356
  12  3.97901
  13  1.28566e-08
  14  3.27645e-06
  15  0.000140817
  16  4.99133e-05
  17  1.90354
  18  4.15552e-05
  19  0.000125067
  20  0.000130899
  21  6.81067e-05
  22  7.12551
  23  52.5155
  24  1.47119
  25  31.3831
  26  5.57533e-06
  27  9.81707e-05
  28  64.44
  29  3.52129
  30  0.00131958
  31  0.265599
  32  0.293538
Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  1.000e-04  1.408e-04  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.108e+00  2.935e-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.108e+00  2.656e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/602334/likelihoodResults_306979201_307238401_4FGL_J1112.5+3448_daily_bin261.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4763.90100444
delta logL = -0.00010312825907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4763.59485719
delta logL = 0.30604412102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8439       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4384       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1521       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=   4763.595     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      309 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8438        133.53        .14602E-03    .10010E-02
   2  alpha         4.4391        2.9128        .51413E-01    .30722E-04
   3  Normalizat    1.0422        .26092        .26015E-03    .78616E-04
   4  Prefactor     1.1521        .29833        .29182E-03    .34478E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.8438
  alpha      = 4.43913
  Normalizat = 1.04221
  Prefactor  = 1.15212
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.595     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8438        8.3065        .58406E-05   -1.5371    
   2  alpha         4.4391        4.1076        .20565E-02    .88775    
   3  Normalizat    1.0422        .26090        .10406E-04   -.91630    
   4  Prefactor     1.1521        .29722        .11673E-04   -.87818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9716e-10
Minuit parameter uncertainties:
  1  8.30988
  2  2.24601
  3  0.261221
  4  0.297654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602334': 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) = 4763.59485695
delta logL = 0.306044356403

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  2.844e+00  8.310e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  4.439e+00  2.246e+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:  1.152e+00  2.977e-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.042e+00  2.612e-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/602334/cmap_HighResolution_306979201_307238401_4FGL_J1112.5+3448_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-03 12:51:38.448329', job_id='602334', GAL2='1.15', fit_tolerance='1e-08', EG2='1.04', EG='1.11', time_epoch_completed='1630698698.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.06e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='261' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 602334: <4FGL_J1112.5+3448_daily_bin261> in cluster <slac> Done

Job <4FGL_J1112.5+3448_daily_bin261> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 12:36:23 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:36:38 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:36:38 2021
Terminated at Fri Sep  3 12:51:39 2021
Results reported at Fri Sep  3 12:51:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1112.5+3448_daily_bin261 168.147 34.8022 306979201 307238401 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 :                                   879.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            916 sec.

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

