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


Performing analysis on: 4FGL_J1112.5+3448_daily_bin73
RA = 168.147, Dec = 34.8022
tmin = 258249601, tmax = 258508801
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='601020', job_status='RUN', time_executed='2021-09-03 12:35:22.364253', time_epoch_executed='1630697722.36' WHERE source_name='4FGL J1112.5+3448' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601020

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601020/ft1_4FGL_J1112.5+3448_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601020/ft2_4FGL_J1112.5+3448_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601020/ft1_4FGL_J1112.5+3448_daily_bin73.fits outfile=/scratch/kocevski/601020/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin73.fits ra=168.147 dec=34.8022 rad=12.0 tmin=258249601.0 tmax=258508801.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.17
user 0.99
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601020/ft1_filtered_4FGL_J1112.5+3448_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/601020/ft2_4FGL_J1112.5+3448_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/601020/ltcube_258249601_258508801_4FGL_J1112.5+3448_daily_bin73.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/601020/ft2_4FGL_J1112.5+3448_daily_bin73.fits
.....................!
real 13.56
user 13.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601020/ft1_filtered_4FGL_J1112.5+3448_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/601020/ft2_4FGL_J1112.5+3448_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/601020/ltcube_258249601_258508801_4FGL_J1112.5+3448_daily_bin73.fits outfile=/scratch/kocevski/601020/expmap_258249601_258508801_4FGL_J1112.5+3448_daily_bin73.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/601020/ltcube_258249601_258508801_4FGL_J1112.5+3448_daily_bin73.fits
.....................!
real 192.21
user 186.45
sys 4.96

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/601020/ft1_filtered_4FGL_J1112.5+3448_daily_bin73.fits scfile=/scratch/kocevski/601020/ft2_4FGL_J1112.5+3448_daily_bin73.fits outfile=/scratch/kocevski/601020/cmap_258249601_258508801_4FGL_J1112.5+3448_daily_bin73.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601020/ft1_filtered_4FGL_J1112.5+3448_daily_bin73.fits scfile=/scratch/kocevski/601020/ft2_4FGL_J1112.5+3448_daily_bin73.fits outfile=/scratch/kocevski/601020/cmap_HighResolution_258249601_258508801_4FGL_J1112.5+3448_daily_bin73.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.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1171       1.0000         .10000E-03   10000.    
     2 'norm      '    14.973       1.0000         .10000E-03   10000.    
     3 'Prefactor '    190.87       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1501       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6672       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1683       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9082       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2455       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5062       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18816E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4340       1.0000         .10000E-03   10000.    
    20 'norm      '    4.5841       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3512       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.820       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0122       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    50.419       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.5409       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .58696       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1560       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=   3543.643     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4338 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1171        6.0267        .28399E-06   -.29429E-04
   2  norm          14.973        14.650        .19325E-08    .43411E-04
   3  Prefactor     190.87        103.02        .31646E-06    .16780E-04
   4  Prefactor     .10000E-03    37.930       -.27567E-04** at limit **
   5  Prefactor     7.1501        5.1094       -.13368E-06    .55850E-04
   6  Prefactor     6.6670        7.3552        .11794E-05    .23243E-03
   7  Prefactor     .10000E-03    12.016       -.12399E-07** at limit **
   8  Prefactor     .10000E-03    19.899       -.12079E-04** at limit **
   9  Prefactor     .10000E-03    47.940        .51936E-05** at limit **
  10  Prefactor     .10000E-03    4.4902       -.13157E-06** at limit **
  11  norm          1.1683        .38967        .13993E-08    .15382E-02
  12  Prefactor     1.9082        2.3202       -.59004E-08   -.25065E-04
  13  Prefactor     .10000E-03    42.531       -.11262E-04** at limit **
  14  Prefactor     .10000E-03    6.9798        .36725E-07** at limit **
  15  norm          5.2437        16.098       -.19064E-06    .64027E-04
  16  norm          5.8577        12.742       -.32583E-06   -.86286E-04
  17  Prefactor     1.5029        2.2537        .20916E-07    .23166E-03
  18  Prefactor     .10000E-03    111.74       -.44215E-04** at limit **
  19  Prefactor     7.4316        18.592       -.38730E-05   -.83168E-03
  20  norm          4.5785        3.0316        .13156E-06    .74065E-03
  21  Prefactor     .10000E-03    5.7782        .86213E-07** at limit **
  22  Prefactor     3.3510        4.6010        .41084E-06   -.11485E-03
  23  Prefactor     21.818        35.129       -.10286E-05   -.14123E-05
  24  norm          2.0125        1.3914       -.53957E-07   -.41273E-03
  25  Prefactor     .10000E-03    21.575        .13669E-04** at limit **
  26  norm          .10000E-03    26.435        .10013E-04** at limit **
  27  Prefactor     50.416        39.703       -.22192E-05   -.15501E-03
  28  Prefactor     .10000E-03    28.704       -.14143E-05** at limit **
  29  norm          5.5411        2.2882        .57520E-08   -.43283E-03
  30  Prefactor     .10000E-03    59.773        .50005E-04** at limit **
  31  Normalizat    .58697        .22221        .56198E-06    .27346E-04
  32  Prefactor     1.1560        .25492        .30420E-06    .47938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11712
  norm       = 14.9726
  Prefactor  = 190.868
  Prefactor  = 0.0001
  Prefactor  = 7.15007
  Prefactor  = 6.66703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1683
  Prefactor  = 1.90823
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.2437
  norm       = 5.85774
  Prefactor  = 1.5029
  Prefactor  = 0.000100002
  Prefactor  = 7.43158
  norm       = 4.57847
  Prefactor  = 0.0001
  Prefactor  = 3.35097
  Prefactor  = 21.8183
  norm       = 2.01253
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 50.4157
  Prefactor  = 0.0001
  norm       = 5.54106
  Prefactor  = 0.0001
  Normalizat = 0.58697
  Prefactor  = 1.15602
 **********
 **   18 **HESSE 
 **********

 FCN=   3543.643     FROM HESSE     STATUS=OK           655 CALLS     4993 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1171        6.0194        .13766E-03   -1.5213    
   2  norm          14.973        14.638        .10351E-03   -1.4934    
   3  Prefactor     190.87        103.09        .29233E-04   -1.2936    
   4  Prefactor     .10000E-03    37.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.1501        5.1089        .10878E-03   -1.5173    
   6  Prefactor     6.6670        7.3451        .15541E-03   -1.5191    
   7  Prefactor     .10000E-03    12.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    47.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4939        .12319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1683        .38998        .20667E-04   -1.5492    
  12  Prefactor     1.9082        2.3106        .96380E-04   -1.5432    
  13  Prefactor     .10000E-03    43.905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9830        .15360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2437        16.037        .17550E-03   -1.5250    
  16  norm          5.8577        12.739        .16593E-03   -1.5224    
  17  Prefactor     1.5029        2.2146        .10405E-03   -1.5463    
  18  Prefactor     .10000E-03    112.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4316        18.926        .73548E-03   -1.5163    
  20  norm          4.5785        3.0217        .80127E-04   -1.5280    
  21  Prefactor     .10000E-03    5.7829        .13972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3510        4.5866        .14392E-03   -1.5342    
  23  Prefactor     21.818        35.211        .85748E-04   -1.4773    
  24  norm          2.0125        1.3873        .54330E-04   -1.5424    
  25  Prefactor     .10000E-03    21.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    26.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     50.416        39.761        .56478E-04   -1.4287    
  28  Prefactor     .10000E-03    28.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.5411        2.2884        .55525E-04   -1.5237    
  30  Prefactor     .10000E-03    59.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .58697        .25717        .28756E-03   -1.0854    
  32  Prefactor     1.1560        .29784        .25801E-03   -.87696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65198e-09
Minuit parameter uncertainties:
  1  6.02004
  2  14.6414
  3  103.183
  4  0.000122687
  5  5.10923
  6  7.34612
  7  4.85092e-06
  8  4.1361e-06
  9  7.71131e-06
  10  5.54581e-08
  11  0.389983
  12  2.31075
  13  0.000298504
  14  3.16489e-06
  15  16.0504
  16  12.7447
  17  2.21475
  18  0.000833354
  19  18.9412
  20  3.02179
  21  1.47052e-05
  22  4.58707
  23  35.2449
  24  1.38732
  25  2.44361e-05
  26  9.03854e-05
  27  39.7823
  28  7.90561e-06
  29  2.28843
  30  5.7543e-05
  31  0.257697
  32  0.29827
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.156e+00  2.983e-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:  5.870e-01  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 168.147 34.802
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601020/likelihoodResults_258249601_258508801_4FGL_J1112.5+3448_daily_bin73.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) = 3543.49177204
delta logL = 0.15149220066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3543.48305061
delta logL = 0.160213630722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0394       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6222       1.0000          .0000       5.0000    
     3 'Normalizat'    .55976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1764       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=   3543.483     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      225 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0180        298.71        .50158E-02    .27901E-03
   2  alpha         3.6248        2.5209        .48248        .22198E-04
   3  Normalizat    .55974        .69256E-01    .66436E-01    .16799E-04
   4  Prefactor     1.1765        .85350E-01    .57896E-01    .22559E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01802
  alpha      = 3.62483
  Normalizat = 0.559737
  Prefactor  = 1.17647
 **********
 **   18 **HESSE 
 **********

 FCN=   3543.483     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0180        21.876        .18383E-03   -1.5307    
   2  alpha         3.6248        4.2728        .33130E-01    .46669    
   3  Normalizat    .55974        .24762        .29402E-03   -1.0972    
   4  Prefactor     1.1765        .30103        .25601E-03   -.87058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69826e-08
Minuit parameter uncertainties:
  1  18.7611
  2  3.98508
  3  0.248112
  4  0.301469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601020': 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) = 3543.48304857
delta logL = 0.160215676382

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  4.018e+00  1.876e+01  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  3.625e+00  3.985e+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.176e+00  3.015e-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:  5.597e-01  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/601020/cmap_HighResolution_258249601_258508801_4FGL_J1112.5+3448_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-03 12:46:55.257097', job_id='601020', GAL2='1.18', fit_tolerance='1e-08', EG2='0.56', EG='0.59', time_epoch_completed='1630698415.26', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.60e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='73' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 601020: <4FGL_J1112.5+3448_daily_bin73> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1112.5+3448_daily_bin73 168.147 34.8022 258249601 258508801 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 :                                   691.50 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            909 sec.

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

