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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin496
RA = 173.196, Dec = 0.5737
tmin = 367891201, tmax = 368150401
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='919528', job_status='RUN', time_executed='2021-09-04 03:38:45.978401', time_epoch_executed='1630751925.98' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919528/ft1_4FGL_J1132.7+0034_daily_bin496.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919528/ft2_4FGL_J1132.7+0034_daily_bin496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919528/ft1_4FGL_J1132.7+0034_daily_bin496.fits outfile=/scratch/kocevski/919528/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin496.fits ra=173.196 dec=0.5737 rad=12.0 tmin=367891201.0 tmax=368150401.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.37
user 3.12
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919528/ft1_filtered_4FGL_J1132.7+0034_daily_bin496.fits" evtable="EVENTS" scfile=/scratch/kocevski/919528/ft2_4FGL_J1132.7+0034_daily_bin496.fits sctable="SC_DATA" outfile=/scratch/kocevski/919528/ltcube_367891201_368150401_4FGL_J1132.7+0034_daily_bin496.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/919528/ft2_4FGL_J1132.7+0034_daily_bin496.fits
.....................!
real 12.08
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919528/ft1_filtered_4FGL_J1132.7+0034_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/919528/ft2_4FGL_J1132.7+0034_daily_bin496.fits sctable="SC_DATA" expcube=/scratch/kocevski/919528/ltcube_367891201_368150401_4FGL_J1132.7+0034_daily_bin496.fits outfile=/scratch/kocevski/919528/expmap_367891201_368150401_4FGL_J1132.7+0034_daily_bin496.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/919528/ltcube_367891201_368150401_4FGL_J1132.7+0034_daily_bin496.fits
.....................!
real 193.03
user 187.55
sys 5.10

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/919528/ft1_filtered_4FGL_J1132.7+0034_daily_bin496.fits scfile=/scratch/kocevski/919528/ft2_4FGL_J1132.7+0034_daily_bin496.fits outfile=/scratch/kocevski/919528/cmap_367891201_368150401_4FGL_J1132.7+0034_daily_bin496.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919528/ft1_filtered_4FGL_J1132.7+0034_daily_bin496.fits scfile=/scratch/kocevski/919528/ft2_4FGL_J1132.7+0034_daily_bin496.fits outfile=/scratch/kocevski/919528/cmap_HighResolution_367891201_368150401_4FGL_J1132.7+0034_daily_bin496.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2120       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8216       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.620       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.2291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3247       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1359       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.157       1.0000         .10000E-03   10000.    
    14 'norm      '    .24678       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15134       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    171.23       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4673       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2707       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.1598       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2321       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0889       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=   6948.976     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3655 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2154        10.382        .46219E-05   -.10518E-03
   2  norm          1.8218        .67928       -.41333E-07    .11782E-04
   3  Prefactor     .10000E-03    5.0087       -.79401E-07** at limit **
   4  Prefactor     16.612        21.089        .13033E-05    .10144E-03
   5  Prefactor     15.959        13.668       -.43723E-07    .64843E-04
   6  Prefactor     .10000E-03    9.3752       -.62142E-06** at limit **
   7  Prefactor     .10000E-03    1.7341        .12986E-07** at limit **
   8  Prefactor     .10000E-03    21.783       -.19195E-06** at limit **
   9  norm          4.2316        8.4732        .10344E-06    .65603E-04
  10  Prefactor     7.3233        5.3419        .73464E-06   -.27309E-03
  11  norm          .10000E-03    22.991        .11006E-05** at limit **
  12  Prefactor     3.1363        2.1283        .33447E-07   -.12450E-04
  13  Prefactor     10.157        18.134       -.30231E-06   -.87789E-05
  14  norm          .26891        5.3832        .33771E-07   -.12648E-03
  15  Prefactor     .16733        2.2142        .26870E-06   -.20372E-03
  16  Prefactor     .10000E-03    14.987       -.44267E-06** at limit **
  17  Prefactor     171.25        113.27       -.27167E-05   -.88522E-04
  18  Prefactor     1.4693        18.936        .19408E-05    .32715E-04
  19  Prefactor     .10000E-03    16.481       -.13427E-05** at limit **
  20  Prefactor     .10000E-03    4.1216        .42838E-07** at limit **
  21  Prefactor     5.2669        17.238        .18989E-05    .56664E-04
  22  Prefactor     .10000E-03    15.262       -.71011E-06** at limit **
  23  Prefactor     .10000E-03    11.362        .86682E-06** at limit **
  24  Prefactor     .10000E-03    12.131        .77406E-06** at limit **
  25  Prefactor     .10000E-03    12.750        .79390E-06** at limit **
  26  Prefactor     .10000E-03    6.1933        .16749E-06** at limit **
  27  norm          1.1596        2.1399        .58270E-07   -.11515E-03
  28  Normalizat    1.2319        .21124       -.10690E-05   -.42647E-05
  29  Prefactor     1.0889        .16304       -.58569E-07    .29113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21542
  norm       = 1.82176
  Prefactor  = 0.0001
  Prefactor  = 16.6117
  Prefactor  = 15.9591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.23162
  Prefactor  = 7.32328
  norm       = 0.0001
  Prefactor  = 3.13626
  Prefactor  = 10.1568
  norm       = 0.268913
  Prefactor  = 0.167329
  Prefactor  = 0.0001
  Prefactor  = 171.248
  Prefactor  = 1.46931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15958
  Normalizat = 1.23194
  Prefactor  = 1.08886
 **********
 **   18 **HESSE 
 **********

 FCN=   6948.976     FROM HESSE     STATUS=OK           557 CALLS     4212 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2154        10.427        .11303E-02   -1.5349    
   2  norm          1.8218        .67912        .39635E-04   -1.5438    
   3  Prefactor     .10000E-03    5.0265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.612        21.130        .98242E-04   -1.4893    
   5  Prefactor     15.959        13.619        .10028E-03   -1.4909    
   6  Prefactor     .10000E-03    9.3861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7444        .10712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2316        8.4542        .19594E-03   -1.5297    
  10  Prefactor     7.3233        5.3324        .73921E-03   -1.5167    
  11  norm          .10000E-03    23.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1363        2.1285        .96561E-04   -1.5354    
  13  Prefactor     10.157        18.103        .12572E-03   -1.5070    
  14  norm          .26891        25.953        .34124E-02   -1.5604    
  15  Prefactor     .16733        26.268        .21661E-02   -1.5626    
  16  Prefactor     .10000E-03    15.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     171.25        114.18        .15417E-03   -1.3083    
  18  Prefactor     1.4693        19.138        .35491E-03   -1.5466    
  19  Prefactor     .10000E-03    16.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1445        .16526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2669        17.272        .17508E-03   -1.5249    
  22  Prefactor     .10000E-03    15.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.2018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.1596        2.0899        .16088E-03   -1.5493    
  28  Normalizat    1.2319        .24872        .29525E-03   -.85622    
  29  Prefactor     1.0889        .19351        .24782E-03   -.89823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41985e-08
Minuit parameter uncertainties:
  1  10.4332
  2  0.679119
  3  8.12211e-06
  4  21.1393
  5  13.6217
  6  4.91335e-07
  7  2.86571e-07
  8  1.00799e-05
  9  8.45654
  10  5.33275
  11  9.94758e-05
  12  2.12858
  13  18.1133
  14  5.28501
  15  4.19363
  16  3.38536e-05
  17  114.332
  18  10.6095
  19  0.000121385
  20  5.10384e-06
  21  17.2886
  22  7.09703e-05
  23  7.03264e-05
  24  4.27847e-05
  25  6.10811e-05
  26  8.01558e-06
  27  2.09007
  28  0.248956
  29  0.193635
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.136e+00  2.129e+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.089e+00  1.936e-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.232e+00  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.64
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.61e-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) = 6948.61372184
delta logL = 0.362112878439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6948.60493446
delta logL = 0.370900256633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4016       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7376       1.0000          .0000       10.000    
     3 'Normalizat'    1.2479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0832       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=   6948.605     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4016        4.1564        .54839E-02    .58135E-02
   2  Index         1.7374        .66274        .21252       -.18970E-04
   3  Normalizat    1.2478        .20312        .66370E-01    .13586E-04
   4  Prefactor     1.0832        .16123        .56168E-01    .58665E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.40161
  Index      = 1.73742
  Normalizat = 1.24783
  Prefactor  = 1.08323
 **********
 **   18 **HESSE 
 **********

 FCN=   6948.605     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4016        2.3884        .10304E-03   -1.5339    
   2  Index         1.7374        .44635        .79877E-02   -.71090    
   3  Normalizat    1.2478        .23774        .29361E-03   -.85137    
   4  Prefactor     1.0832        .18974        .24836E-03   -.90004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71878e-09
Minuit parameter uncertainties:
  1  2.38843
  2  0.447386
  3  0.237952
  4  0.189859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919528': 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) = 6948.60493438
delta logL = 0.370900338487

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.402e+00  2.388e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.737e+00  4.474e-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.083e+00  1.899e-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.248e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.38
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.74 +/- 0.45
Photon Flux (Free Index): 2.97e-08 +/- 2.74e-08
Energy Flux (Free Index): 4.31e-05 +/- 4.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/919528/cmap_HighResolution_367891201_368150401_4FGL_J1132.7+0034_daily_bin496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='4.31e-05', photon_flux_error='3.15e-08', dlogl='3.71e-01', energy_flux='2.37e-05', photon_flux2='2.97e-08', job_status='DONE', time_completed='2021-09-04 03:52:02.706071', photon_index_error2='0.45', photon_index2='1.74', ts='6.64', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='4.50e-05', EG='1.23', time_epoch_completed='1630752722.71', return_code='0', job_id='919528', GAL2='1.08', EG2='1.25', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='2.74e-08', ts2='7.38', photon_index='2.14' WHERE bin_id='496' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 919528: <4FGL_J1132.7+0034_daily_bin496> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin496 173.196 0.5737 367891201 368150401 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 :                                   794.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

