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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin497
RA = 173.196, Dec = 0.5737
tmin = 368150401, tmax = 368409601
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='919529', job_status='RUN', time_executed='2021-09-04 03:38:52.669805', time_epoch_executed='1630751932.67' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919529

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919529/ft1_4FGL_J1132.7+0034_daily_bin497.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919529/ft2_4FGL_J1132.7+0034_daily_bin497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919529/ft1_4FGL_J1132.7+0034_daily_bin497.fits outfile=/scratch/kocevski/919529/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin497.fits ra=173.196 dec=0.5737 rad=12.0 tmin=368150401.0 tmax=368409601.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.30
user 3.08
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919529/ft1_filtered_4FGL_J1132.7+0034_daily_bin497.fits" evtable="EVENTS" scfile=/scratch/kocevski/919529/ft2_4FGL_J1132.7+0034_daily_bin497.fits sctable="SC_DATA" outfile=/scratch/kocevski/919529/ltcube_368150401_368409601_4FGL_J1132.7+0034_daily_bin497.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/919529/ft2_4FGL_J1132.7+0034_daily_bin497.fits
.....................!
real 12.08
user 11.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919529/ft1_filtered_4FGL_J1132.7+0034_daily_bin497.fits evtable="EVENTS" scfile=/scratch/kocevski/919529/ft2_4FGL_J1132.7+0034_daily_bin497.fits sctable="SC_DATA" expcube=/scratch/kocevski/919529/ltcube_368150401_368409601_4FGL_J1132.7+0034_daily_bin497.fits outfile=/scratch/kocevski/919529/expmap_368150401_368409601_4FGL_J1132.7+0034_daily_bin497.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/919529/ltcube_368150401_368409601_4FGL_J1132.7+0034_daily_bin497.fits
.....................!
real 193.46
user 187.87
sys 5.21

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/919529/ft1_filtered_4FGL_J1132.7+0034_daily_bin497.fits scfile=/scratch/kocevski/919529/ft2_4FGL_J1132.7+0034_daily_bin497.fits outfile=/scratch/kocevski/919529/cmap_368150401_368409601_4FGL_J1132.7+0034_daily_bin497.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919529/ft1_filtered_4FGL_J1132.7+0034_daily_bin497.fits evtable="EVENTS" scfile=/scratch/kocevski/919529/ft2_4FGL_J1132.7+0034_daily_bin497.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919529/Model_4FGL_J1132.7+0034_daily_bin497.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/919529/ft1_filtered_4FGL_J1132.7+0034_daily_bin497.fits....................!
real 66.32
user 64.08
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.383       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8406       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.580       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .82827E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1972       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15124E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12279E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5047       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.132       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8103       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4936       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.257       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3183       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.6625       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86288       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.5103       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=   6995.952     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3668 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.376        14.479        .16965E-06    .15554E-07
   2  norm          2.8406        .79396        .35623E-07    .36953E-04
   3  Prefactor     .10000E-03    6.1645        .31665E-06** at limit **
   4  Prefactor     .10000E-03    13.715        .61010E-06** at limit **
   5  Prefactor     16.589        18.110       -.90343E-07    .29823E-04
   6  Prefactor     .10000E-03    10.735       -.11841E-06** at limit **
   7  Prefactor     .10000E-03    3.2110        .10610E-05** at limit **
   8  Prefactor     .10000E-03    36.245       -.74143E-06** at limit **
   9  norm          4.2169        9.8501        .22453E-06    .16513E-03
  10  Prefactor     .10008E-03    5.9869       -.26459E-05** at limit **
  11  norm          .10004E-03    66.161        .39114E-05** at limit **
  12  Prefactor     4.5054        2.4966        .21467E-07    .58903E-04
  13  Prefactor     .10000E-03    49.851        .38451E-06** at limit **
  14  norm          20.128        9.3829        .34790E-07    .16746E-03
  15  Prefactor     .10000E-03    2.5542        .14120E-07** at limit **
  16  Prefactor     .10000E-03    6.1131       -.14688E-06** at limit **
  17  Prefactor     .10000E-03    41.480       -.84899E-06** at limit **
  18  Prefactor     3.8060        12.931        .70885E-06    .69755E-05
  19  Prefactor     .10000E-03    40.749       -.90607E-06** at limit **
  20  Prefactor     6.4915        8.1641        .35233E-05    .33075E-03
  21  Prefactor     .10000E-03    6.2524       -.20337E-06** at limit **
  22  Prefactor     .10000E-03    28.370        .57906E-06** at limit **
  23  Prefactor     29.269        39.789       -.67908E-06    .96499E-04
  24  Prefactor     7.3141        15.660        .27478E-05    .83787E-04
  25  Prefactor     .10002E-03    119.91       -.32580E-05** at limit **
  26  Prefactor     .10000E-03    23.401        .75030E-06** at limit **
  27  norm          4.6631        3.0177        .10456E-06    .51140E-04
  28  Normalizat    .86297        .23566       -.12325E-05    .10069E-03
  29  Prefactor     1.5104        .18650       -.12476E-06    .15517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3756
  norm       = 2.84059
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.5894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.21689
  Prefactor  = 0.000100082
  norm       = 0.000100038
  Prefactor  = 4.50544
  Prefactor  = 0.000100001
  norm       = 20.1279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.80596
  Prefactor  = 0.000100002
  Prefactor  = 6.49146
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 29.269
  Prefactor  = 7.31413
  Prefactor  = 0.000100022
  Prefactor  = 0.000100001
  norm       = 4.66314
  Normalizat = 0.862968
  Prefactor  = 1.5104
 **********
 **   18 **HESSE 
 **********

 FCN=   6995.952     FROM HESSE     STATUS=OK           549 CALLS     4217 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.376        14.469        .70414E-04   -1.4569    
   2  norm          2.8406        .79321        .37484E-04   -1.5371    
   3  Prefactor     .10000E-03    6.1983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.589        18.019        .98363E-04   -1.4893    
   6  Prefactor     .10000E-03    10.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.314        .26855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2169        9.5072        .19671E-03   -1.5297    
  10  Prefactor     .10008E-03    16.576        .32439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10004E-03    67.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5054        2.4968        .94642E-04   -1.5283    
  13  Prefactor     .10000E-03    50.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.128        9.3554        .89267E-04   -1.4810    
  15  Prefactor     .10000E-03    2.5844        .13025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8060        12.925        .20678E-03   -1.5318    
  19  Prefactor     .10000E-03    40.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4915        8.3264        .78746E-03   -1.5198    
  21  Prefactor     .10000E-03    6.2703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.269        39.837        .74070E-04   -1.4625    
  24  Prefactor     7.3141        15.700        .74132E-03   -1.5167    
  25  Prefactor     .10002E-03    122.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    23.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.6631        3.0060        .11321E-03   -1.5276    
  28  Normalizat    .86297        .27213        .37180E-03   -.97774    
  29  Prefactor     1.5104        .21909        .23937E-03   -.77249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10767e-09
Minuit parameter uncertainties:
  1  14.4706
  2  0.793214
  3  7.35325e-05
  4  0.000218403
  5  18.0248
  6  3.46304e-05
  7  0.000141801
  8  0.000435354
  9  9.51065
  10  0.00232812
  11  0.00321614
  12  2.49687
  13  0.000430056
  14  9.35609
  15  4.38612e-06
  16  3.24708e-05
  17  0.000561318
  18  12.9346
  19  0.000558624
  20  8.3279
  21  4.63732e-05
  22  0.0003135
  23  39.8735
  24  15.7084
  25  0.00331034
  26  0.000306517
  27  3.00613
  28  0.272565
  29  0.219224
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.505e+00  2.497e+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.510e+00  2.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  8.630e-01  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.01
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.68e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 1.89e-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) = 6995.44169379
delta logL = 0.51030841595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6995.41959317
delta logL = 0.532409039544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3127       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6572       1.0000          .0000       10.000    
     3 'Normalizat'    .89867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4974       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=   6995.420     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3112        2.7579        .48496E-02    .30287E-03
   2  Index         1.6562        .38014        .20222       -.14948E-03
   3  Normalizat    .89855        .22473        .82443E-01   -.89842E-04
   4  Prefactor     1.4976        .18444        .54337E-01   -.80066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.3112
  Index      = 1.65618
  Normalizat = 0.89855
  Prefactor  = 1.49758
 **********
 **   18 **HESSE 
 **********

 FCN=   6995.420     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3112        2.8698        .10174E-03   -1.5293    
   2  Index         1.6562        .45155        .77655E-02   -.73255    
   3  Normalizat    .89855        .26311        .36500E-03   -.96511    
   4  Prefactor     1.4976        .21693        .24023E-03   -.77608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7891e-10
Minuit parameter uncertainties:
  1  2.86988
  2  0.45267
  3  0.263487
  4  0.217065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919529': 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) = 6995.4195897
delta logL = 0.532412512419

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.311e+00  2.870e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.656e+00  4.527e-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.498e+00  2.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  8.985e-01  2.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.04
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.66 +/- 0.45
Photon Flux (Free Index): 3.46e-08 +/- 3.23e-08
Energy Flux (Free Index): 6.51e-05 +/- 6.33e-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/919529/cmap_HighResolution_368150401_368409601_4FGL_J1132.7+0034_daily_bin497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.68e-08', energy_flux2='6.51e-05', photon_flux_error='3.70e-08', dlogl='5.32e-01', energy_flux='3.40e-05', photon_flux2='3.46e-08', job_status='DONE', time_completed='2021-09-04 03:52:11.358498', photon_index_error2='0.45', photon_index2='1.66', ts='10.01', fit_tolerance='1e-08', GAL='1.51', photon_index_error='0.00', energy_flux_error2='6.33e-05', EG='0.86', time_epoch_completed='1630752731.36', return_code='0', job_id='919529', GAL2='1.50', EG2='0.90', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='3.23e-08', ts2='11.04', photon_index='2.14' WHERE bin_id='497' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 919529: <4FGL_J1132.7+0034_daily_bin497> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin497> 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) <bullet0040>, 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:12 2021
Results reported at Sat Sep  4 03:52:12 2021

Your job looked like:

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

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

