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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin76
RA = 173.196, Dec = 0.5737
tmin = 259027201, tmax = 259286401
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='917878', job_status='RUN', time_executed='2021-09-04 03:33:03.914067', time_epoch_executed='1630751583.91' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917878/ft1_4FGL_J1132.7+0034_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917878/ft2_4FGL_J1132.7+0034_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917878/ft1_4FGL_J1132.7+0034_daily_bin76.fits outfile=/scratch/kocevski/917878/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin76.fits ra=173.196 dec=0.5737 rad=12.0 tmin=259027201.0 tmax=259286401.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.44
user 1.27
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/917878/ft2_4FGL_J1132.7+0034_daily_bin76.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917878/ft2_4FGL_J1132.7+0034_daily_bin76.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/917878/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/917878/ft1_filtered_4FGL_J1132.7+0034_daily_bin76.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917878/ft1_filtered_4FGL_J1132.7+0034_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/917878/ft2_4FGL_J1132.7+0034_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/917878/ltcube_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.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/917878/ft2_4FGL_J1132.7+0034_daily_bin76.fits
.....................!
real 12.61
user 12.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917878/ft1_filtered_4FGL_J1132.7+0034_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/917878/ft2_4FGL_J1132.7+0034_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/917878/ltcube_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.fits outfile=/scratch/kocevski/917878/expmap_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.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/917878/ltcube_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.fits
.....................!
real 190.42
user 185.14
sys 4.86

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

Setting source of interest to:
4FGL J1132.7+0034 @ 173.196 0.5737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/917878/ft1_filtered_4FGL_J1132.7+0034_daily_bin76.fits scfile=/scratch/kocevski/917878/ft2_4FGL_J1132.7+0034_daily_bin76.fits outfile=/scratch/kocevski/917878/cmap_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.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=173.196 yref=0.5737 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917878/ft1_filtered_4FGL_J1132.7+0034_daily_bin76.fits scfile=/scratch/kocevski/917878/ft2_4FGL_J1132.7+0034_daily_bin76.fits outfile=/scratch/kocevski/917878/cmap_HighResolution_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.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=173.196 yref=0.5737 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917878/ft1_filtered_4FGL_J1132.7+0034_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/917878/ft2_4FGL_J1132.7+0034_daily_bin76.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917878/Model_4FGL_J1132.7+0034_daily_bin76.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/917878/ft1_filtered_4FGL_J1132.7+0034_daily_bin76.fits.....................!
real 57.88
user 56.46
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/917878/ft1_filtered_4FGL_J1132.7+0034_daily_bin76.fits', '/scratch/kocevski/917878/ft2_4FGL_J1132.7+0034_daily_bin76.fits', expMap='/scratch/kocevski/917878/expmap_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.fits', expCube='/scratch/kocevski/917878/ltcube_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/917878/Model_4FGL_J1132.7+0034_daily_bin76.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1132.7+0034'

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.058e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/917878/ft1_filtered_4FGL_J1132.7+0034_daily_bin76.fits
Spacecraft file(s): /scratch/kocevski/917878/ft2_4FGL_J1132.7+0034_daily_bin76.fits
Exposure map: /scratch/kocevski/917878/expmap_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.fits
Exposure cube: /scratch/kocevski/917878/ltcube_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/917878/Model_4FGL_J1132.7+0034_daily_bin76.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) = 6144.32876025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8075       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.945       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.495       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.726       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9291       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2767       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.119       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.665       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.006       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.412       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4909       1.0000         .10000E-03   10000.    
    27 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86569       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6144.307     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3123 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2107       -.80911E-06** at limit **
   2  norm          2.8075        .86753       -.36309E-07    .14881E-03
   3  Prefactor     17.943        11.537       -.12850E-06    .24039E-04
   4  Prefactor     .10000E-03    6.8577       -.15767E-05** at limit **
   5  Prefactor     36.485        18.036       -.23034E-05   -.18196E-04
   6  Prefactor     7.6362        10.412        .11661E-05   -.16364E-03
   7  Prefactor     .10000E-03    1.5530        .51359E-07** at limit **
   8  Prefactor     .10000E-03    14.766        .50416E-05** at limit **
   9  norm          10.724        9.0359       -.13038E-06    .32303E-04
  10  Prefactor     2.9308        4.4144       -.16229E-05   -.32059E-04
  11  norm          .10000E-03    5.9391        .18947E-05** at limit **
  12  Prefactor     3.2765        2.0253       -.66843E-07    .58820E-04
  13  Prefactor     .10000E-03    21.497       -.71062E-05** at limit **
  14  norm          .10000E-03    4.1384        .58383E-07** at limit **
  15  Prefactor     .10004E-03    1.4870        .29872E-06** at limit **
  16  Prefactor     .10000E-03    24.756        .44703E-05** at limit **
  17  Prefactor     .10000E-03    43.218       -.18172E-04** at limit **
  18  Prefactor     .10000E-03    19.045       -.11729E-04** at limit **
  19  Prefactor     .10000E-03    33.937        .17612E-04** at limit **
  20  Prefactor     23.118        9.4857        .52276E-06    .35170E-04
  21  Prefactor     14.660        14.902       -.84765E-06   -.12670E-03
  22  Prefactor     .10000E-03    25.152        .55245E-05** at limit **
  23  Prefactor     43.993        32.221       -.10237E-04   -.16924E-04
  24  Prefactor     10.413        12.554        .10753E-06    .34075E-04
  25  Prefactor     .10000E-03    24.431        .28404E-05** at limit **
  26  Prefactor     1.4991        2.1176        .64170E-06   -.20415E-02
  27  norm          .10000E-03    1.1185       -.63064E-06** at limit **
  28  Normalizat    .86600        .19392        .31867E-05    .70396E-04
  29  Prefactor     .91404        .14886       -.44820E-06    .21908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.80752
  Prefactor  = 17.9432
  Prefactor  = 0.0001
  Prefactor  = 36.485
  Prefactor  = 7.63619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7237
  Prefactor  = 2.93078
  norm       = 0.0001
  Prefactor  = 3.27645
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1177
  Prefactor  = 14.6596
  Prefactor  = 0.0001
  Prefactor  = 43.9935
  Prefactor  = 10.4133
  Prefactor  = 0.0001
  Prefactor  = 1.4991
  norm       = 0.0001
  Normalizat = 0.866
  Prefactor  = 0.914039
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.307     FROM HESSE     STATUS=OK           553 CALLS     3676 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2334        .17470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8075        .87929        .34929E-04   -1.5373    
   3  Prefactor     17.943        11.695        .94548E-04   -1.4861    
   4  Prefactor     .10000E-03    6.8730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.485        18.026        .66340E-04   -1.4499    
   6  Prefactor     7.6362        10.402        .72571E-03   -1.5155    
   7  Prefactor     .10000E-03    1.5613        .95308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.724        8.9904        .12233E-03   -1.5053    
  10  Prefactor     2.9308        4.3860        .18257E-03   -1.5366    
  11  norm          .10000E-03    5.9429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2765        2.0236        .84463E-04   -1.5346    
  13  Prefactor     .10000E-03    21.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.2062        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10004E-03    17.365        .18178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.118        9.4941        .83306E-04   -1.4746    
  21  Prefactor     14.660        14.800        .10459E-03   -1.4942    
  22  Prefactor     .10000E-03    25.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     43.993        32.264        .60435E-04   -1.4380    
  24  Prefactor     10.413        12.551        .12417E-03   -1.5062    
  25  Prefactor     .10000E-03    24.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.4991        6.6581        .17554E-02   -1.5463    
  27  norm          .10000E-03    1.8107        .16125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .86600        .22736        .28658E-03   -.97665    
  29  Prefactor     .91404        .17404        .22520E-03   -.95652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37154e-08
Minuit parameter uncertainties:
  1  9.81267e-06
  2  0.879298
  3  11.6962
  4  1.15303e-05
  5  18.0289
  6  10.4043
  7  4.44353e-06
  8  3.2445e-05
  9  8.99156
  10  4.38652
  11  1.43234e-05
  12  2.02365
  13  6.31127e-05
  14  9.32313e-06
  15  0.00176448
  16  2.71766e-05
  17  0.000110845
  18  5.09284e-05
  19  8.45276e-05
  20  9.49473
  21  14.8033
  22  1.0139e-05
  23  32.2767
  24  12.5541
  25  6.88809e-05
  26  6.31956
  27  3.56437e-05
  28  0.227613
  29  0.174148
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.276e+00  2.024e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  9.140e-01  1.741e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  8.660e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.31
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.86e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.53e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6144.28669233
delta logL = 0.0201709389803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6144.28203541
delta logL = 0.0248278562749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4890       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0317       1.0000          .0000       10.000    
     3 'Normalizat'    .87106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91164       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+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=   6144.282     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      239 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4891        2.3306        .87900E-04   -.13398E-02
   2  Index         2.0316        .46440        .66825E-02   -.19318E-03
   3  Normalizat    .87106        .21460        .28581E-03    .81902E-04
   4  Prefactor     .91164        .17306        .22545E-03    .12516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48909
  Index      = 2.03159
  Normalizat = 0.871062
  Prefactor  = 0.911641
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.282     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4891        2.3021        .35160E-05   -1.5334    
   2  Index         2.0316        .45860        .26730E-03   -.63563    
   3  Normalizat    .87106        .21476        .11432E-04   -.97485    
   4  Prefactor     .91164        .17320        .90182E-05   -.95736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77561e-10
Minuit parameter uncertainties:
  1  2.3022
  2  0.459603
  3  0.214966
  4  0.173308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917878': 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) = 6144.2820354
delta logL = 0.0248278638446

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.489e+00  2.302e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.032e+00  4.596e-01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  9.116e-01  1.733e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  8.711e-01  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.33
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.03 +/- 0.46
Photon Flux (Free Index): 4.43e-08 +/- 3.37e-08
Energy Flux (Free Index): 2.84e-05 +/- 2.55e-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/917878/cmap_HighResolution_259027201_259286401_4FGL_J1132.7+0034_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.86e-08', energy_flux2='2.84e-05', photon_flux_error='3.00e-08', dlogl='2.48e-02', energy_flux='2.47e-05', photon_flux2='4.43e-08', job_status='DONE', time_completed='2021-09-04 03:44:45.047446', photon_index_error2='0.46', photon_index2='2.03', ts='6.31', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='0.87', time_epoch_completed='1630752285.05', return_code='0', job_id='917878', GAL2='0.91', EG2='0.87', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='3.37e-08', ts2='6.33', photon_index='2.14' WHERE bin_id='76' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 917878: <4FGL_J1132.7+0034_daily_bin76> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin76> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:31:39 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:31:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 03:31:41 2021
Terminated at Sat Sep  4 03:44:45 2021
Results reported at Sat Sep  4 03:44:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin76 173.196 0.5737 259027201 259286401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1132.7+0034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   694.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            786 sec.

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

