/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 71 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin129
RA = 173.196, Dec = 0.5737
tmin = 272764801, tmax = 273024001
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='917986', job_status='RUN', time_executed='2021-09-04 03:33:21.794360', time_epoch_executed='1630751601.79' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917986/ft1_4FGL_J1132.7+0034_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917986/ft2_4FGL_J1132.7+0034_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917986/ft1_4FGL_J1132.7+0034_daily_bin129.fits outfile=/scratch/kocevski/917986/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin129.fits ra=173.196 dec=0.5737 rad=12.0 tmin=272764801.0 tmax=273024001.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.74
user 1.55
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917986/ft2_4FGL_J1132.7+0034_daily_bin129.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/917986/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin129.fits evtable="EVENTS" outfile="/scratch/kocevski/917986/ft1_filtered_4FGL_J1132.7+0034_daily_bin129.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917986/ft1_filtered_4FGL_J1132.7+0034_daily_bin129.fits" evtable="EVENTS" scfile=/scratch/kocevski/917986/ft2_4FGL_J1132.7+0034_daily_bin129.fits sctable="SC_DATA" outfile=/scratch/kocevski/917986/ltcube_272764801_273024001_4FGL_J1132.7+0034_daily_bin129.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/917986/ft2_4FGL_J1132.7+0034_daily_bin129.fits
.....................!
real 14.83
user 14.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917986/ft1_filtered_4FGL_J1132.7+0034_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/917986/ft2_4FGL_J1132.7+0034_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/917986/ltcube_272764801_273024001_4FGL_J1132.7+0034_daily_bin129.fits outfile=/scratch/kocevski/917986/expmap_272764801_273024001_4FGL_J1132.7+0034_daily_bin129.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/917986/ltcube_272764801_273024001_4FGL_J1132.7+0034_daily_bin129.fits
.....................!
real 190.07
user 185.10
sys 4.53

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/917986/ft1_filtered_4FGL_J1132.7+0034_daily_bin129.fits scfile=/scratch/kocevski/917986/ft2_4FGL_J1132.7+0034_daily_bin129.fits outfile=/scratch/kocevski/917986/cmap_272764801_273024001_4FGL_J1132.7+0034_daily_bin129.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.54
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917986/ft1_filtered_4FGL_J1132.7+0034_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/917986/ft2_4FGL_J1132.7+0034_daily_bin129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917986/Model_4FGL_J1132.7+0034_daily_bin129.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/917986/ft1_filtered_4FGL_J1132.7+0034_daily_bin129.fits.....................!
real 60.49
user 59.05
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.826       1.0000         .10000E-03   10000.    
     2 'norm      '    .68343       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.917       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9210       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4407       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67136       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.268       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.620       1.0000         .10000E-03   10000.    
    11 'norm      '    .52492E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7535       1.0000         .10000E-03   10000.    
    14 'norm      '    12.479       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2166       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8454       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7940       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.098       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12059E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1187       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.831       1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.341       1.0000         .10000E-03   10000.    
    27 'norm      '    3.7526       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0717       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91353       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=   6324.297     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3838 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.821        9.1996        .51282E-06   -.20946E-03
   2  norm          .68338        .58593        .61694E-08    .27585E-04
   3  Prefactor     12.785        11.756       -.22698E-06    .12530E-03
   4  Prefactor     28.896        28.218       -.68222E-06    .10826E-03
   5  Prefactor     3.9209        7.9704        .48478E-06   -.10862E-04
   6  Prefactor     2.4395        5.9730        .54767E-06    .16534E-03
   7  Prefactor     .66768        7.4693        .53267E-05    .52847E-03
   8  Prefactor     .10000E-03    32.767       -.26166E-06** at limit **
   9  norm          24.274        12.959       -.10264E-05    .11968E-03
  10  Prefactor     15.616        8.5317       -.12220E-05   -.68556E-03
  11  norm          .10024E-03    60.653       -.35964E-05** at limit **
  12  Prefactor     4.1424        2.6457       -.14726E-07    .34940E-03
  13  Prefactor     7.7932        54.563       -.10480E-04   -.34646E-04
  14  norm          12.483        6.6481       -.91306E-07    .64442E-04
  15  Prefactor     .10000E-03    1.7555        .24810E-06** at limit **
  16  Prefactor     .10000E-03    5.9765       -.14790E-07** at limit **
  17  Prefactor     .10000E-03    58.511        .13672E-05** at limit **
  18  Prefactor     6.2165        8.3751        .17539E-06   -.21267E-04
  19  Prefactor     6.8464        51.903        .45297E-07   -.92252E-05
  20  Prefactor     3.7940        4.4319        .12106E-06   -.24746E-03
  21  Prefactor     17.118        16.656       -.63331E-07    .42605E-04
  22  Prefactor     .10000E-03    45.439        .45939E-06** at limit **
  23  Prefactor     1.0284        105.22        .20693E-04   -.13475E-03
  24  Prefactor     .10000E-03    7.5136       -.22208E-07** at limit **
  25  Prefactor     35.843        61.270       -.39448E-05    .24581E-05
  26  Prefactor     39.338        18.842        .11678E-06   -.10750E-03
  27  norm          3.7525        3.1688       -.17921E-07    .19497E-04
  28  Normalizat    1.0719        .22440        .11706E-05   -.51394E-03
  29  Prefactor     .91340        .16717       -.10720E-05   -.61088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8214
  norm       = 0.683377
  Prefactor  = 12.7847
  Prefactor  = 28.8964
  Prefactor  = 3.92085
  Prefactor  = 2.43954
  Prefactor  = 0.667684
  Prefactor  = 0.0001
  norm       = 24.2738
  Prefactor  = 15.6159
  norm       = 0.000100236
  Prefactor  = 4.1424
  Prefactor  = 7.79316
  norm       = 12.483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.2165
  Prefactor  = 6.84643
  Prefactor  = 3.79397
  Prefactor  = 17.1182
  Prefactor  = 0.0001
  Prefactor  = 1.02838
  Prefactor  = 0.0001
  Prefactor  = 35.8433
  Prefactor  = 39.338
  norm       = 3.75249
  Normalizat = 1.07193
  Prefactor  = 0.913398
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.297     FROM HESSE     STATUS=OK           573 CALLS     4411 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.821        9.1951        .11185E-03   -1.4992    
   2  norm          .68338        .57592        .47430E-04   -1.5543    
   3  Prefactor     12.785        11.749        .11204E-03   -1.4993    
   4  Prefactor     28.896        28.246        .74504E-04   -1.4632    
   5  Prefactor     3.9209        7.9488        .20374E-03   -1.5312    
   6  Prefactor     2.4395        5.9955        .26189E-03   -1.5396    
   7  Prefactor     .66768        16.252        .25237E-02   -1.5545    
   8  Prefactor     .10000E-03    32.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.274        13.038        .81313E-04   -1.4722    
  10  Prefactor     15.616        8.5267        .10134E-03   -1.4917    
  11  norm          .10024E-03    250.78        .81951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1424        2.6479        .98362E-04   -1.5301    
  13  Prefactor     7.7932        53.210        .14401E-03   -1.5150    
  14  norm          12.483        6.5354        .11339E-03   -1.5001    
  15  Prefactor     .10000E-03    15.881        .19791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    58.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2165        8.3747        .16101E-03   -1.5209    
  19  Prefactor     6.8464        50.987        .15335E-03   -1.5185    
  20  Prefactor     3.7940        4.4272        .17563E-03   -1.5318    
  21  Prefactor     17.118        16.626        .96860E-04   -1.4880    
  22  Prefactor     .10000E-03    45.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0284        166.36        .72264E-02   -1.5505    
  24  Prefactor     .10000E-03    7.5192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     35.843        61.132        .66950E-04   -1.4510    
  26  Prefactor     39.338        18.852        .63904E-04   -1.4453    
  27  norm          3.7525        3.1678        .11729E-03   -1.5321    
  28  Normalizat    1.0719        .25592        .29315E-03   -.90658    
  29  Prefactor     .91340        .19190        .25338E-03   -.95674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26394e-09
Minuit parameter uncertainties:
  1  9.19613
  2  0.57592
  3  11.7515
  4  28.2595
  5  7.95097
  6  5.99694
  7  6.58978
  8  2.9064e-05
  9  13.0394
  10  8.52734
  11  0.0154629
  12  2.64801
  13  40.7791
  14  6.53577
  15  9.25512e-06
  16  3.64769e-07
  17  0.00044904
  18  8.37629
  19  37.4119
  20  4.42754
  21  16.6309
  22  2.57332e-05
  23  26.2325
  24  1.1399e-06
  25  61.239
  26  18.8552
  27  3.16791
  28  0.25622
  29  0.192046
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.142e+00  2.648e+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.134e-01  1.920e-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.072e+00  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.44
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.14e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 3.13e-05 +/- 2.00e-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) = 6324.22781663
delta logL = 0.06931680261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6324.22348744
delta logL = 0.0736459882237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7130       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3776       1.0000          .0000       10.000    
     3 'Normalizat'    1.0449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92626       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=   6324.223     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      265 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7135        42.969        .52393E-02    .29456E-03
   2  Index         2.3779        6.1836        .12502        .13642E-03
   3  Normalizat    1.0450        .13438        .67006E-01    .18808E-04
   4  Prefactor     .92621        .67521E-01    .45339E-01    .10872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.71347
  Index      = 2.37786
  Normalizat = 1.04496
  Prefactor  = 0.92621
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.223     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7135        2.8870        .84859E-04   -1.5323    
   2  Index         2.3779        .67373        .69313E-02   -.55204    
   3  Normalizat    1.0450        .24759        .29643E-03   -.91539    
   4  Prefactor     .92621        .19278        .25180E-03   -.95231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99863e-11
Minuit parameter uncertainties:
  1  2.88714
  2  0.676578
  3  0.24786
  4  0.192926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917986': 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) = 6324.22348723
delta logL = 0.0736461970555

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.713e+00  2.887e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.378e+00  6.766e-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.262e-01  1.929e-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.045e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.55
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.38 +/- 0.68
Photon Flux (Free Index): 8.12e-08 +/- 6.91e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.81e-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/917986/cmap_HighResolution_272764801_273024001_4FGL_J1132.7+0034_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.14e-08', energy_flux2='2.74e-05', photon_flux_error='3.92e-08', dlogl='7.36e-02', energy_flux='3.13e-05', photon_flux2='8.12e-08', job_status='DONE', time_completed='2021-09-04 03:46:45.215196', photon_index_error2='0.68', photon_index2='2.38', ts='8.44', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='1.07', time_epoch_completed='1630752405.22', return_code='0', job_id='917986', GAL2='0.93', EG2='1.04', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='6.91e-08', ts2='8.55', photon_index='2.14' WHERE bin_id='129' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:46:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 917986: <4FGL_J1132.7+0034_daily_bin129> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin129> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:31:46 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:31:47 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:47 2021
Terminated at Sat Sep  4 03:46:45 2021
Results reported at Sat Sep  4 03:46:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin129 173.196 0.5737 272764801 273024001 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 :                                   778.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            899 sec.

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

