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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin735
RA = 173.196, Dec = 0.5737
tmin = 429840001, tmax = 430099201
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='919884', job_status='RUN', time_executed='2021-09-04 03:38:35.656779', time_epoch_executed='1630751915.66' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919884

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919884/ft1_4FGL_J1132.7+0034_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919884/ft2_4FGL_J1132.7+0034_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919884/ft1_4FGL_J1132.7+0034_daily_bin735.fits outfile=/scratch/kocevski/919884/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin735.fits ra=173.196 dec=0.5737 rad=12.0 tmin=429840001.0 tmax=430099201.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 6.02
user 5.62
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919884/ft2_4FGL_J1132.7+0034_daily_bin735.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/919884/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/919884/ft1_filtered_4FGL_J1132.7+0034_daily_bin735.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919884/ft1_filtered_4FGL_J1132.7+0034_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/919884/ft2_4FGL_J1132.7+0034_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/919884/ltcube_429840001_430099201_4FGL_J1132.7+0034_daily_bin735.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/919884/ft2_4FGL_J1132.7+0034_daily_bin735.fits
.....................!
real 12.98
user 12.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919884/ft1_filtered_4FGL_J1132.7+0034_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/919884/ft2_4FGL_J1132.7+0034_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/919884/ltcube_429840001_430099201_4FGL_J1132.7+0034_daily_bin735.fits outfile=/scratch/kocevski/919884/expmap_429840001_430099201_4FGL_J1132.7+0034_daily_bin735.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/919884/ltcube_429840001_430099201_4FGL_J1132.7+0034_daily_bin735.fits
.....................!
real 190.65
user 185.47
sys 4.34

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/919884/ft1_filtered_4FGL_J1132.7+0034_daily_bin735.fits scfile=/scratch/kocevski/919884/ft2_4FGL_J1132.7+0034_daily_bin735.fits outfile=/scratch/kocevski/919884/cmap_429840001_430099201_4FGL_J1132.7+0034_daily_bin735.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.57
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919884/ft1_filtered_4FGL_J1132.7+0034_daily_bin735.fits scfile=/scratch/kocevski/919884/ft2_4FGL_J1132.7+0034_daily_bin735.fits outfile=/scratch/kocevski/919884/cmap_HighResolution_429840001_430099201_4FGL_J1132.7+0034_daily_bin735.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919884/ft1_filtered_4FGL_J1132.7+0034_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/919884/ft2_4FGL_J1132.7+0034_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919884/Model_4FGL_J1132.7+0034_daily_bin735.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/919884/ft1_filtered_4FGL_J1132.7+0034_daily_bin735.fits......................!
real 46.48
user 45.08
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.904       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.028       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0297       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8735       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8307       1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4849       1.0000         .10000E-03   10000.    
    11 'norm      '    64.093       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1086       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.7975       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2345       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71246       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.216       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12455E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3967       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74492       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=   4120.062     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3743 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4113       -.99775E-08** at limit **
   2  norm          .10000E-03    .50049       -.50916E-07** at limit **
   3  Prefactor     16.906        14.494        .46722E-06    .25707E-04
   4  Prefactor     46.033        35.281        .20787E-06   -.12717E-04
   5  Prefactor     2.0113        108.41        .70589E-05   -.29589E-04
   6  Prefactor     2.8745        39.802       -.36076E-05   -.57886E-04
   7  Prefactor     .10000E-03    4.5481       -.35873E-07** at limit **
   8  Prefactor     6.9546        303.80        .29483E-04    .52485E-04
   9  norm          .10000E-03    6.1038        .79255E-07** at limit **
  10  Prefactor     2.4847        5.7798        .23533E-06   -.78268E-04
  11  norm          64.089        39.445       -.34918E-06   -.14644E-04
  12  Prefactor     6.1087        3.7278        .93702E-07   -.47471E-04
  13  Prefactor     .10000E-03    13.419        .55336E-06** at limit **
  14  norm          6.8094        17.699        .98233E-05   -.25863E-03
  15  Prefactor     2.2307        9.2933       -.58498E-05   -.30378E-03
  16  Prefactor     38.133        32.871        .18381E-06   -.22197E-04
  17  Prefactor     .10000E-03    41.482       -.56820E-06** at limit **
  18  Prefactor     2.4040        8.0476        .76190E-06   -.39902E-04
  19  Prefactor     .10000E-03    44.449        .71282E-06** at limit **
  20  Prefactor     .70794        14.966        .45088E-05   -.16538E-03
  21  Prefactor     12.189        29.063        .12272E-05    .19886E-04
  22  Prefactor     .10000E-03    36.939        .31977E-06** at limit **
  23  Prefactor     .10000E-03    21.293       -.37562E-07** at limit **
  24  Prefactor     .10024E-03    31.742        .69283E-06** at limit **
  25  Prefactor     .10000E-03    13.782       -.67059E-06** at limit **
  26  Prefactor     .10000E-03    10.983       -.27089E-07** at limit **
  27  norm          .10000E-03    .90670       -.68834E-08** at limit **
  28  Normalizat    1.3969        .27464        .15987E-06   -.13708E-03
  29  Prefactor     .74463        .20583       -.31162E-05   -.16096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.9059
  Prefactor  = 46.0334
  Prefactor  = 2.0113
  Prefactor  = 2.87451
  Prefactor  = 0.0001
  Prefactor  = 6.95464
  norm       = 0.0001
  Prefactor  = 2.48472
  norm       = 64.0886
  Prefactor  = 6.10867
  Prefactor  = 0.0001
  norm       = 6.80936
  Prefactor  = 2.23074
  Prefactor  = 38.133
  Prefactor  = 0.0001
  Prefactor  = 2.40405
  Prefactor  = 0.0001
  Prefactor  = 0.707939
  Prefactor  = 12.1892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.39689
  Prefactor  = 0.744626
 **********
 **   18 **HESSE 
 **********

 FCN=   4120.062     FROM HESSE     STATUS=OK           553 CALLS     4296 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4124        .11578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .76931        .80485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.906        13.314        .97416E-04   -1.4885    
   4  Prefactor     46.033        35.345        .59098E-04   -1.4350    
   5  Prefactor     2.0113        91.910        .29038E-03   -1.5424    
   6  Prefactor     2.8745        33.568        .23978E-03   -1.5369    
   7  Prefactor     .10000E-03    4.5879        .13354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.9546        318.72        .15352E-03   -1.5180    
   9  norm          .10000E-03    6.1086        .15480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4847        5.7305        .21433E-03   -1.5393    
  11  norm          64.089        39.404        .50126E-04   -1.4105    
  12  Prefactor     6.1087        3.7308        .92864E-04   -1.5214    
  13  Prefactor     .10000E-03    13.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.8094        17.720        .76947E-03   -1.5186    
  15  Prefactor     2.2307        8.9328        .25672E-03   -1.5409    
  16  Prefactor     38.133        32.769        .64890E-04   -1.4472    
  17  Prefactor     .10000E-03    41.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4040        8.0354        .26409E-03   -1.5398    
  19  Prefactor     .10000E-03    44.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .70794        15.064        .46992E-03   -1.5540    
  21  Prefactor     12.189        28.838        .11461E-03   -1.5010    
  22  Prefactor     .10000E-03    36.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10024E-03    310.57        .66325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .90862        .59674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3969        .32340        .26340E-03   -.80719    
  29  Prefactor     .74463        .24029        .26895E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58887e-09
Minuit parameter uncertainties:
  1  7.93096e-07
  2  7.10291e-06
  3  13.3159
  4  35.3607
  5  27.2365
  6  19.6596
  7  1.13529e-05
  8  94.7017
  9  3.05312e-06
  10  5.73175
  11  39.4201
  12  3.73094
  13  1.91407e-05
  14  17.7338
  15  8.93001
  16  32.7841
  17  4.33722e-05
  18  8.03903
  19  4.03716e-05
  20  6.53272
  21  28.871
  22  1.61826e-05
  23  1.74913e-05
  24  0.017389
  25  3.24799e-05
  26  4.72213e-06
  27  2.37724e-07
  28  0.32387
  29  0.240627
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  6.109e+00  3.731e+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:  7.446e-01  2.406e-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:  1.397e+00  3.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.83
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 9.06e-08 +/- 5.53e-08
Energy Flux (Fixed Index): 4.61e-05 +/- 2.82e-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) = 4119.87406942
delta logL = 0.188424334968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4119.86749099
delta logL = 0.19500276368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9891       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4477       1.0000          .0000       10.000    
     3 'Normalizat'    1.3692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75637       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=   4119.867     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      266 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9891        3.8024        .78360E-04   -.33804E-03
   2  Index         2.4477        .52397        .48805E-02   -.80730E-04
   3  Normalizat    1.3692        .30822        .26555E-03   -.22048E-04
   4  Prefactor     .75639        .23572        .26695E-03    .50678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98913
  Index      = 2.44774
  Normalizat = 1.36921
  Prefactor  = 0.756388
 **********
 **   18 **HESSE 
 **********

 FCN=   4119.867     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9891        3.6797        .31344E-05   -1.5261    
   2  Index         2.4477        .50673        .19522E-03   -.53571    
   3  Normalizat    1.3692        .30835        .10622E-04   -.81523    
   4  Prefactor     .75639        .23586        .10678E-04   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90118e-11
Minuit parameter uncertainties:
  1  3.67992
  2  0.507906
  3  0.308766
  4  0.236178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919884': 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) = 4119.86749098
delta logL = 0.195002773524

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.989e+00  3.680e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.448e+00  5.079e-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:  7.564e-01  2.362e-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:  1.369e+00  3.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.20
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.45 +/- 0.51
Photon Flux (Free Index): 1.23e-07 +/- 8.60e-08
Energy Flux (Free Index): 3.79e-05 +/- 2.31e-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/919884/cmap_HighResolution_429840001_430099201_4FGL_J1132.7+0034_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.06e-08', energy_flux2='3.79e-05', photon_flux_error='5.53e-08', dlogl='1.95e-01', energy_flux='4.61e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-04 03:48:58.821236', photon_index_error2='0.51', photon_index2='2.45', ts='6.83', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='2.31e-05', EG='1.40', time_epoch_completed='1630752538.82', return_code='0', job_id='919884', GAL2='0.76', EG2='1.37', return_code2='0', energy_flux_error='2.82e-05', photon_flux_error2='8.60e-08', ts2='7.20', photon_index='2.14' WHERE bin_id='735' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:48:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 919884: <4FGL_J1132.7+0034_daily_bin735> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin735> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 03:36:33 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:36:35 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:35 2021
Terminated at Sat Sep  4 03:48:59 2021
Results reported at Sat Sep  4 03:48:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin735 173.196 0.5737 429840001 430099201 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 :                                   619.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            746 sec.

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

