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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin468
RA = 173.196, Dec = 0.5737
tmin = 360633601, tmax = 360892801
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='919486', job_status='RUN', time_executed='2021-09-04 03:39:57.005255', time_epoch_executed='1630751997.01' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919486

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919486/ft1_4FGL_J1132.7+0034_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919486/ft2_4FGL_J1132.7+0034_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919486/ft1_4FGL_J1132.7+0034_daily_bin468.fits outfile=/scratch/kocevski/919486/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin468.fits ra=173.196 dec=0.5737 rad=12.0 tmin=360633601.0 tmax=360892801.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.16
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919486/ft2_4FGL_J1132.7+0034_daily_bin468.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/919486/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin468.fits evtable="EVENTS" outfile="/scratch/kocevski/919486/ft1_filtered_4FGL_J1132.7+0034_daily_bin468.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919486/ft1_filtered_4FGL_J1132.7+0034_daily_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/919486/ft2_4FGL_J1132.7+0034_daily_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/919486/ltcube_360633601_360892801_4FGL_J1132.7+0034_daily_bin468.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/919486/ft2_4FGL_J1132.7+0034_daily_bin468.fits
.....................!
real 12.74
user 12.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919486/ft1_filtered_4FGL_J1132.7+0034_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/919486/ft2_4FGL_J1132.7+0034_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/919486/ltcube_360633601_360892801_4FGL_J1132.7+0034_daily_bin468.fits outfile=/scratch/kocevski/919486/expmap_360633601_360892801_4FGL_J1132.7+0034_daily_bin468.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/919486/ltcube_360633601_360892801_4FGL_J1132.7+0034_daily_bin468.fits
.....................!
real 190.87
user 185.53
sys 4.98

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/919486/ft1_filtered_4FGL_J1132.7+0034_daily_bin468.fits scfile=/scratch/kocevski/919486/ft2_4FGL_J1132.7+0034_daily_bin468.fits outfile=/scratch/kocevski/919486/cmap_360633601_360892801_4FGL_J1132.7+0034_daily_bin468.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919486/ft1_filtered_4FGL_J1132.7+0034_daily_bin468.fits scfile=/scratch/kocevski/919486/ft2_4FGL_J1132.7+0034_daily_bin468.fits outfile=/scratch/kocevski/919486/cmap_HighResolution_360633601_360892801_4FGL_J1132.7+0034_daily_bin468.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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919486/ft1_filtered_4FGL_J1132.7+0034_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/919486/ft2_4FGL_J1132.7+0034_daily_bin468.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919486/Model_4FGL_J1132.7+0034_daily_bin468.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/919486/ft1_filtered_4FGL_J1132.7+0034_daily_bin468.fits.....................!
real 52.11
user 49.68
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.5395       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2707       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17463E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4852       1.0000         .10000E-03   10000.    
     9 'norm      '    .38383E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.157       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5711       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.739       1.0000         .10000E-03   10000.    
    14 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9538       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.257       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0137       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1722       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.704       1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.842       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.1357       1.0000         .10000E-03   10000.    
    27 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97483       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98425       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=   5170.183     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3741 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8240       -.17156E-06** at limit **
   2  norm          1.5394        .92431        .27024E-06    .34108E-03
   3  Prefactor     7.2693        13.162       -.10861E-05   -.43901E-04
   4  Prefactor     .10000E-03    9.7476        .12792E-06** at limit **
   5  Prefactor     .10022E-03    101.58        .19707E-04** at limit **
   6  Prefactor     .10000E-03    5.2367        .10649E-06** at limit **
   7  Prefactor     .10000E-03    3.9393        .28125E-06** at limit **
   8  Prefactor     1.4397        944.20       -.11237E-04   -.13305E-04
   9  norm          .10005E-03    10.015        .41005E-05** at limit **
  10  Prefactor     .10000E-03    3.2894        .13133E-06** at limit **
  11  norm          19.145        21.828        .26237E-06    .11094E-04
  12  Prefactor     3.5707        2.2368        .11255E-07   -.67647E-04
  13  Prefactor     39.732        34.539        .21052E-06   -.28284E-04
  14  norm          .10000E-03    7.9375        .18908E-06** at limit **
  15  Prefactor     7.9559        5.3394        .11752E-06   -.10033E-03
  16  Prefactor     .10000E-03    6.0759       -.66866E-07** at limit **
  17  Prefactor     .10000E-03    56.237       -.13544E-05** at limit **
  18  Prefactor     10.255        8.5600       -.20211E-07   -.19584E-04
  19  Prefactor     .10000E-03    22.042        .44724E-06** at limit **
  20  Prefactor     1.0034        12.474       -.61147E-06   -.14898E-03
  21  Prefactor     8.1726        17.993        .41120E-06   -.13444E-04
  22  Prefactor     .10000E-03    19.827       -.60353E-06** at limit **
  23  Prefactor     13.838        43.436        .61407E-05    .53346E-04
  24  Prefactor     51.831        33.134       -.98327E-06   -.77049E-04
  25  Prefactor     .10000E-03    29.425        .17292E-06** at limit **
  26  Prefactor     8.1347        15.591        .30719E-06   -.52955E-04
  27  norm          .10000E-03    1.2000       -.24135E-06** at limit **
  28  Normalizat    .97506        .23628        .70088E-06   -.29256E-03
  29  Prefactor     .98417        .18846       -.18006E-05   -.18261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.53938
  Prefactor  = 7.26932
  Prefactor  = 0.0001
  Prefactor  = 0.00010022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4397
  norm       = 0.000100046
  Prefactor  = 0.0001
  norm       = 19.1453
  Prefactor  = 3.5707
  Prefactor  = 39.7317
  norm       = 0.0001
  Prefactor  = 7.95587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2552
  Prefactor  = 0.0001
  Prefactor  = 1.00344
  Prefactor  = 8.17264
  Prefactor  = 0.0001
  Prefactor  = 13.8381
  Prefactor  = 51.8307
  Prefactor  = 0.0001
  Prefactor  = 8.13465
  norm       = 0.0001
  Normalizat = 0.975064
  Prefactor  = 0.984172
 **********
 **   18 **HESSE 
 **********

 FCN=   5170.183     FROM HESSE     STATUS=OK           553 CALLS     4294 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8780        .16940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5394        .94437        .39931E-04   -1.5460    
   3  Prefactor     7.2693        13.495        .74377E-03   -1.5169    
   4  Prefactor     .10000E-03    9.7682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10022E-03    130.19        .51636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2449        .16061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0269        .13921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4397        965.51        .35199E-02   -1.5468    
   9  norm          .10005E-03    17.934        .34615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3168        .12707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.145        21.815        .91509E-04   -1.4833    
  12  Prefactor     3.5707        2.2373        .82054E-04   -1.5330    
  13  Prefactor     39.732        34.447        .63584E-04   -1.4446    
  14  norm          .10000E-03    8.0954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9559        5.3309        .12882E-03   -1.5144    
  16  Prefactor     .10000E-03    6.0763        .17311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    56.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.255        8.5592        .12511E-03   -1.5067    
  19  Prefactor     .10000E-03    22.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0034        12.790        .48151E-03   -1.5508    
  21  Prefactor     8.1726        17.966        .14024E-03   -1.5136    
  22  Prefactor     .10000E-03    19.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.838        44.034        .10820E-03   -1.4964    
  24  Prefactor     51.831        33.080        .55702E-04   -1.4267    
  25  Prefactor     .10000E-03    29.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.1347        15.605        .70281E-03   -1.5137    
  27  norm          .10000E-03    1.2057        .76829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .97506        .26324        .28395E-03   -.93871    
  29  Prefactor     .98417        .20812        .23070E-03   -.93259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63583e-09
Minuit parameter uncertainties:
  1  5.22778e-06
  2  0.944382
  3  13.5006
  4  2.1518e-05
  5  0.0107177
  6  9.63974e-06
  7  3.63551e-05
  8  75.8249
  9  0.00182417
  10  1.81378e-05
  11  21.8238
  12  2.23737
  13  34.464
  14  3.48877e-05
  15  5.33118
  16  7.45371e-07
  17  0.000258912
  18  8.56022
  19  3.11996e-05
  20  7.16643
  21  17.9783
  22  3.31501e-05
  23  44.1377
  24  33.0918
  25  8.208e-05
  26  15.6125
  27  3.02628e-06
  28  0.263593
  29  0.208287
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
611   Normalization:  9.751e-01  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.74
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.29e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.69e-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) = 5170.05370973
delta logL = 0.129275031373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5170.04895585
delta logL = 0.134028904361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7746       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8697       1.0000          .0000       10.000    
     3 'Normalizat'    .99046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97833       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=   5170.049     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      197 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7757        80.057        .51948E-02   -.44293E-04
   2  Index         1.8698        5.5503        .20652        .11932E-04
   3  Normalizat    .99050        .18912        .46047E-01    .15429E-04
   4  Prefactor     .97828        .10511        .45996E-01    .58932E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77573
  Index      = 1.86981
  Normalizat = 0.990498
  Prefactor  = 0.978283
 **********
 **   18 **HESSE 
 **********

 FCN=   5170.049     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7757        2.5060        .89742E-04   -1.5319    
   2  Index         1.8698        .51410        .72263E-02   -.67646    
   3  Normalizat    .99050        .24853        .28204E-03   -.93349    
   4  Prefactor     .97828        .20243        .23134E-03   -.93457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01259e-13
Minuit parameter uncertainties:
  1  2.50607
  2  0.515602
  3  0.248824
  4  0.202592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919486': 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) = 5170.04895569
delta logL = 0.13402906954

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.776e+00  2.506e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.870e+00  5.156e-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.783e-01  2.026e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  9.905e-01  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.99
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.87 +/- 0.52
Photon Flux (Free Index): 3.85e-08 +/- 3.69e-08
Energy Flux (Free Index): 3.76e-05 +/- 3.82e-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/919486/cmap_HighResolution_360633601_360892801_4FGL_J1132.7+0034_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.29e-08', energy_flux2='3.76e-05', photon_flux_error='3.32e-08', dlogl='1.34e-01', energy_flux='2.70e-05', photon_flux2='3.85e-08', job_status='DONE', time_completed='2021-09-04 03:51:16.051031', photon_index_error2='0.52', photon_index2='1.87', ts='8.74', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.82e-05', EG='0.98', time_epoch_completed='1630752676.05', return_code='0', job_id='919486', GAL2='0.98', EG2='0.99', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='3.69e-08', ts2='8.99', photon_index='2.14' WHERE bin_id='468' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 919486: <4FGL_J1132.7+0034_daily_bin468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin468 173.196 0.5737 360633601 360892801 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 :                                   676.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

