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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin627
RA = 173.196, Dec = 0.5737
tmin = 401846401, tmax = 402105601
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='919719', job_status='RUN', time_executed='2021-09-04 03:38:29.211058', time_epoch_executed='1630751909.21' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919719

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919719/ft1_4FGL_J1132.7+0034_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919719/ft2_4FGL_J1132.7+0034_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919719/ft1_4FGL_J1132.7+0034_daily_bin627.fits outfile=/scratch/kocevski/919719/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin627.fits ra=173.196 dec=0.5737 rad=12.0 tmin=401846401.0 tmax=402105601.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.45
user 3.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919719/ft2_4FGL_J1132.7+0034_daily_bin627.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/919719/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin627.fits evtable="EVENTS" outfile="/scratch/kocevski/919719/ft1_filtered_4FGL_J1132.7+0034_daily_bin627.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919719/ft1_filtered_4FGL_J1132.7+0034_daily_bin627.fits" evtable="EVENTS" scfile=/scratch/kocevski/919719/ft2_4FGL_J1132.7+0034_daily_bin627.fits sctable="SC_DATA" outfile=/scratch/kocevski/919719/ltcube_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.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/919719/ft2_4FGL_J1132.7+0034_daily_bin627.fits
.....................!
real 11.92
user 11.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919719/ft1_filtered_4FGL_J1132.7+0034_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/919719/ft2_4FGL_J1132.7+0034_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/919719/ltcube_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.fits outfile=/scratch/kocevski/919719/expmap_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.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/919719/ltcube_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.fits
.....................!
real 190.28
user 185.46
sys 4.29

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/919719/ft1_filtered_4FGL_J1132.7+0034_daily_bin627.fits scfile=/scratch/kocevski/919719/ft2_4FGL_J1132.7+0034_daily_bin627.fits outfile=/scratch/kocevski/919719/cmap_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919719/ft1_filtered_4FGL_J1132.7+0034_daily_bin627.fits scfile=/scratch/kocevski/919719/ft2_4FGL_J1132.7+0034_daily_bin627.fits outfile=/scratch/kocevski/919719/cmap_HighResolution_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919719/ft1_filtered_4FGL_J1132.7+0034_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/919719/ft2_4FGL_J1132.7+0034_daily_bin627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919719/Model_4FGL_J1132.7+0034_daily_bin627.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/919719/ft1_filtered_4FGL_J1132.7+0034_daily_bin627.fits.....................!
real 53.69
user 52.26
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/919719/ft1_filtered_4FGL_J1132.7+0034_daily_bin627.fits', '/scratch/kocevski/919719/ft2_4FGL_J1132.7+0034_daily_bin627.fits', expMap='/scratch/kocevski/919719/expmap_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.fits', expCube='/scratch/kocevski/919719/ltcube_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/919719/Model_4FGL_J1132.7+0034_daily_bin627.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/919719/ft1_filtered_4FGL_J1132.7+0034_daily_bin627.fits
Spacecraft file(s): /scratch/kocevski/919719/ft2_4FGL_J1132.7+0034_daily_bin627.fits
Exposure map: /scratch/kocevski/919719/expmap_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.fits
Exposure cube: /scratch/kocevski/919719/ltcube_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/919719/Model_4FGL_J1132.7+0034_daily_bin627.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) = 5539.76501962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3319       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2336       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.596       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1067       1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.774       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0557       1.0000         .10000E-03   10000.    
    11 'norm      '    24.989       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.706       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.889       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    21.977       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98216       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3045       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=   5539.756     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3673 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3322        7.1034        .39505E-06   -.30344E-04
   2  norm          1.2337        .63516       -.42075E-07   -.10966E-02
   3  Prefactor     .10000E-03    11.413        .12552E-05** at limit **
   4  Prefactor     17.594        19.676        .23750E-06   -.15467E-04
   5  Prefactor     .10000E-03    10.193       -.96421E-06** at limit **
   6  Prefactor     .10000E-03    9.7764       -.88120E-06** at limit **
   7  Prefactor     1.1054        6.3923        .43830E-06    .11493E-04
   8  Prefactor     48.758        58.715        .20751E-05    .35522E-05
   9  norm          .10000E-03    5.1052        .52434E-07** at limit **
  10  Prefactor     4.0601        7.3043        .38436E-05   -.11478E-03
  11  norm          24.983        35.441       -.37714E-05   -.24723E-04
  12  Prefactor     2.0364        1.8966        .15992E-07   -.31634E-04
  13  Prefactor     .10000E-03    39.637        .15356E-05** at limit **
  14  norm          .10000E-03    4.7241       -.13975E-07** at limit **
  15  Prefactor     .10000E-03    4.5900        .10939E-06** at limit **
  16  Prefactor     .10000E-03    18.409       -.13579E-05** at limit **
  17  Prefactor     .10000E-03    108.10        .24642E-05** at limit **
  18  Prefactor     .10000E-03    7.8234       -.45127E-06** at limit **
  19  Prefactor     .10000E-03    28.313        .11400E-05** at limit **
  20  Prefactor     13.706        10.457        .23277E-07    .14408E-04
  21  Prefactor     .10000E-03    8.6420        .13601E-05** at limit **
  22  Prefactor     .10000E-03    16.553        .12627E-05** at limit **
  23  Prefactor     16.877        40.568        .27166E-05    .65349E-05
  24  Prefactor     .10000E-03    27.608        .76288E-06** at limit **
  25  Prefactor     .10000E-03    18.177       -.11904E-05** at limit **
  26  Prefactor     .10000E-03    47.652       -.34883E-05** at limit **
  27  norm          21.982        6.2072        .34264E-06    .73112E-03
  28  Normalizat    .98200        .23971       -.23077E-05   -.38327E-04
  29  Prefactor     1.3046        .19472        .34821E-06   -.77596E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33225
  norm       = 1.23365
  Prefactor  = 0.0001
  Prefactor  = 17.5945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10544
  Prefactor  = 48.758
  norm       = 0.0001
  Prefactor  = 4.06013
  norm       = 24.9833
  Prefactor  = 2.03641
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.9816
  Normalizat = 0.982
  Prefactor  = 1.30463
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.756     FROM HESSE     STATUS=OK           545 CALLS     4218 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3322        7.0767        .26854E-03   -1.5403    
   2  norm          1.2337        .62936        .40780E-04   -1.5486    
   3  Prefactor     .10000E-03    11.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.594        19.690        .95479E-04   -1.4869    
   5  Prefactor     .10000E-03    10.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.8414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1054        6.3217        .34635E-03   -1.5498    
   8  Prefactor     48.758        58.780        .57418E-04   -1.4310    
   9  norm          .10000E-03    5.1161        .16416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0601        7.3227        .10011E-02   -1.5305    
  11  norm          24.983        35.548        .80134E-04   -1.4708    
  12  Prefactor     2.0364        1.9064        .95696E-04   -1.5423    
  13  Prefactor     .10000E-03    39.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.7514        .15794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6866        .15559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    108.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.8712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.706        10.454        .10819E-03   -1.4967    
  21  Prefactor     .10000E-03    8.6567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.877        40.610        .97457E-04   -1.4886    
  24  Prefactor     .10000E-03    27.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    48.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          21.982        6.2173        .42720E-03   -1.4770    
  28  Normalizat    .98200        .28652        .31628E-03   -.93636    
  29  Prefactor     1.3046        .23549        .23436E-03   -.83169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5337e-10
Minuit parameter uncertainties:
  1  7.07925
  2  0.629364
  3  4.38898e-06
  4  19.6972
  5  1.62025e-06
  6  2.08352e-06
  7  5.28765
  8  58.8499
  9  6.96532e-06
  10  7.32431
  11  35.5785
  12  1.90643
  13  4.27238e-05
  14  1.97095e-06
  15  5.12201e-06
  16  1.00071e-05
  17  5.05679e-05
  18  7.6207e-06
  19  2.89072e-06
  20  10.4552
  21  1.32236e-06
  22  4.18816e-07
  23  40.6762
  24  4.49819e-07
  25  9.54108e-06
  26  2.769e-05
  27  6.21752
  28  0.286971
  29  0.235679
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.036e+00  1.906e+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:  1.305e+00  2.357e-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:  9.820e-01  2.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.67
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.44e-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) = 5539.5731235
delta logL = 0.18293876333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5539.56730733
delta logL = 0.188754935121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8325       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6474       1.0000          .0000       10.000    
     3 'Normalizat'    .99943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2985       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.

 FCN=   5539.567     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8323        2.8789        .77067E-02   -.81079E-03
   2  Index         1.6473        .84862        .28319        .81664E-04
   3  Normalizat    .99942        .23059        .70918E-01    .14311E-04
   4  Prefactor     1.2985        .19241        .53113E-01    .15202E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83226
  Index      = 1.64734
  Normalizat = 0.999425
  Prefactor  = 1.29846
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.567     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8323        2.0425        .96917E-04   -1.5437    
   2  Index         1.6473        .75833        .10393E-01   -.73493    
   3  Normalizat    .99942        .27509        .31375E-03   -.93050    
   4  Prefactor     1.2985        .23180        .23483E-03   -.83353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97451e-10
Minuit parameter uncertainties:
  1  2.04261
  2  0.763711
  3  0.275477
  4  0.231986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919719': 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) = 5539.56730732
delta logL = 0.188754944142

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.832e+00  2.043e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.647e+00  7.637e-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:  1.298e+00  2.320e-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:  9.994e-01  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.03
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.65 +/- 0.76
Photon Flux (Free Index): 1.46e-08 +/- 2.29e-08
Energy Flux (Free Index): 2.83e-05 +/- 4.58e-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/919719/cmap_HighResolution_401846401_402105601_4FGL_J1132.7+0034_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='2.83e-05', photon_flux_error='2.83e-08', dlogl='1.89e-01', energy_flux='1.54e-05', photon_flux2='1.46e-08', job_status='DONE', time_completed='2021-09-04 03:50:05.976541', photon_index_error2='0.76', photon_index2='1.65', ts='5.67', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='4.58e-05', EG='0.98', time_epoch_completed='1630752605.98', return_code='0', job_id='919719', GAL2='1.30', EG2='1.00', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='2.29e-08', ts2='6.03', photon_index='2.14' WHERE bin_id='627' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:50:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 919719: <4FGL_J1132.7+0034_daily_bin627> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin627> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 03:36:22 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:36:23 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:36:23 2021
Terminated at Sat Sep  4 03:50:06 2021
Results reported at Sat Sep  4 03:50:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin627 173.196 0.5737 401846401 402105601 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 :                                   692.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            824 sec.

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

