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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin945
RA = 173.196, Dec = 0.5737
tmin = 484272001, tmax = 484531201
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='921483', job_status='RUN', time_executed='2021-09-04 03:45:00.177472', time_epoch_executed='1630752300.18' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921483

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921483/ft1_4FGL_J1132.7+0034_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921483/ft2_4FGL_J1132.7+0034_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921483/ft1_4FGL_J1132.7+0034_daily_bin945.fits outfile=/scratch/kocevski/921483/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin945.fits ra=173.196 dec=0.5737 rad=12.0 tmin=484272001.0 tmax=484531201.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 5.16
user 4.90
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921483/ft1_filtered_4FGL_J1132.7+0034_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/921483/ft2_4FGL_J1132.7+0034_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/921483/ltcube_484272001_484531201_4FGL_J1132.7+0034_daily_bin945.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/921483/ft2_4FGL_J1132.7+0034_daily_bin945.fits
.....................!
real 11.64
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921483/ft1_filtered_4FGL_J1132.7+0034_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/921483/ft2_4FGL_J1132.7+0034_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/921483/ltcube_484272001_484531201_4FGL_J1132.7+0034_daily_bin945.fits outfile=/scratch/kocevski/921483/expmap_484272001_484531201_4FGL_J1132.7+0034_daily_bin945.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/921483/ltcube_484272001_484531201_4FGL_J1132.7+0034_daily_bin945.fits
.....................!
real 190.30
user 185.40
sys 4.52

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/921483/ft1_filtered_4FGL_J1132.7+0034_daily_bin945.fits scfile=/scratch/kocevski/921483/ft2_4FGL_J1132.7+0034_daily_bin945.fits outfile=/scratch/kocevski/921483/cmap_484272001_484531201_4FGL_J1132.7+0034_daily_bin945.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921483/ft1_filtered_4FGL_J1132.7+0034_daily_bin945.fits scfile=/scratch/kocevski/921483/ft2_4FGL_J1132.7+0034_daily_bin945.fits outfile=/scratch/kocevski/921483/cmap_HighResolution_484272001_484531201_4FGL_J1132.7+0034_daily_bin945.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921483/ft1_filtered_4FGL_J1132.7+0034_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/921483/ft2_4FGL_J1132.7+0034_daily_bin945.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921483/Model_4FGL_J1132.7+0034_daily_bin945.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/921483/ft1_filtered_4FGL_J1132.7+0034_daily_bin945.fits.....................!
real 47.44
user 46.11
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2305       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6622       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.152       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.816       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12430E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2868       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50856E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6856       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13642       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9910       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14853E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.635       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.718       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8694       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80644       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0535       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=   4545.244     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3833 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2294        8.6629       -.91294E-06   -.17953E-03
   2  norm          2.6622        .96679       -.75460E-07   -.12940E-03
   3  Prefactor     16.150        13.979       -.53989E-06   -.40213E-04
   4  Prefactor     22.813        25.994       -.33088E-05    .19838E-04
   5  Prefactor     13.184        19.157       -.87794E-06   -.17109E-03
   6  Prefactor     .10000E-03    7.8865       -.50102E-05** at limit **
   7  Prefactor     .10005E-03    3.7706        .25860E-05** at limit **
   8  Prefactor     .10000E-03    71.525        .61672E-04** at limit **
   9  norm          .10000E-03    5.9041       -.49277E-07** at limit **
  10  Prefactor     4.2839        4.7119       -.90886E-06   -.54588E-03
  11  norm          .10000E-03    10.754        .10745E-05** at limit **
  12  Prefactor     .52234E-01    1.2809       -.11685E-05    .86607E-03
  13  Prefactor     .10000E-03    10.869        .14026E-05** at limit **
  14  norm          8.6848        12.601       -.14358E-06    .15901E-03
  15  Prefactor     .13158        3.9833       -.72689E-06   -.13556E-03
  16  Prefactor     1.9606        112.34        .29794E-05   -.33056E-04
  17  Prefactor     .10000E-03    51.845       -.62205E-04** at limit **
  18  Prefactor     .10000E-03    4.3310       -.81286E-09** at limit **
  19  Prefactor     .10000E-03    203.59       -.89153E-05** at limit **
  20  Prefactor     .10000E-03    2.8369       -.29711E-07** at limit **
  21  Prefactor     33.631        21.032       -.53394E-06    .15246E-03
  22  Prefactor     .10000E-03    16.094       -.17520E-05** at limit **
  23  Prefactor     .10000E-03    37.505        .20770E-04** at limit **
  24  Prefactor     23.716        27.396        .96795E-06    .56455E-04
  25  Prefactor     8.7707        71.447       -.14184E-03    .38483E-05
  26  Prefactor     .10000E-03    9.1849       -.39797E-05** at limit **
  27  norm          .10000E-03    1.5304       -.23633E-07** at limit **
  28  Normalizat    .80657        .22668        .75545E-05    .29114E-04
  29  Prefactor     1.0533        .18032        .42658E-06    .24816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.22944
  norm       = 2.66222
  Prefactor  = 16.1503
  Prefactor  = 22.8129
  Prefactor  = 13.1844
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.28391
  norm       = 0.0001
  Prefactor  = 0.0522344
  Prefactor  = 0.0001
  norm       = 8.68479
  Prefactor  = 0.131581
  Prefactor  = 1.96063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6307
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 23.7162
  Prefactor  = 8.77072
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.806575
  Prefactor  = 1.05335
 **********
 **   18 **HESSE 
 **********

 FCN=   4545.244     FROM HESSE     STATUS=OK           555 CALLS     4388 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2294        8.6425        .19591E-03   -1.5297    
   2  norm          2.6622        .98231        .33608E-04   -1.5382    
   3  Prefactor     16.150        14.199        .99656E-04   -1.4904    
   4  Prefactor     22.813        26.050        .83858E-04   -1.4752    
   5  Prefactor     13.184        19.113        .11024E-03   -1.4982    
   6  Prefactor     .10000E-03    7.9006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    8.0783        .24936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    71.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.9217        .15986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2839        4.6730        .14467E-03   -1.5294    
  11  norm          .10000E-03    10.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .52234E-01    23.191        .14468E-02   -1.5662    
  13  Prefactor     .10000E-03    10.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6848        14.336        .13601E-03   -1.5118    
  15  Prefactor     .13158        81.794        .22074E-02   -1.5635    
  16  Prefactor     1.9606        112.44        .29362E-03   -1.5428    
  17  Prefactor     .10000E-03    51.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3414        .13702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    209.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8415        .11089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.631        21.021        .69095E-04   -1.4547    
  22  Prefactor     .10000E-03    16.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    37.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.716        27.382        .82250E-04   -1.4734    
  25  Prefactor     8.7707        72.074        .13459E-03   -1.5116    
  26  Prefactor     .10000E-03    9.2154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.5422        .81412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .80657        .25843        .29596E-03   -.99825    
  29  Prefactor     1.0533        .20701        .21798E-03   -.90972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48823e-08
Minuit parameter uncertainties:
  1  8.64501
  2  0.982312
  3  14.2017
  4  26.0634
  5  19.1223
  6  3.16331e-05
  7  0.00128097
  8  0.000156349
  9  3.17863e-05
  10  4.67341
  11  2.84943e-06
  12  2.19999
  13  2.12398e-05
  14  14.3417
  15  6.56779
  16  29.7541
  17  9.29431e-05
  18  5.11968e-06
  19  0.000148381
  20  6.54719e-06
  21  21.0256
  22  3.22798e-06
  23  0.000851765
  24  27.3963
  25  50.3675
  26  2.07644e-05
  27  8.68249e-07
  28  0.258821
  29  0.207169
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  5.223e-02  2.200e+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.053e+00  2.072e-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.066e-01  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 8.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/921483/likelihoodResults_484272001_484531201_4FGL_J1132.7+0034_daily_bin945.txt

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): 102
logL (Free Index) = 4545.22214254
delta logL = 0.0222470908011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4545.20118148
delta logL = 0.0432081445433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26480       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9033       1.0000          .0000       10.000    
     3 'Normalizat'    .79164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0576       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=   4545.201     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26529        8.9832        .24719E-01    .99339E-03
   2  Index         2.9018        3.1528        .22338        .27392E-04
   3  Normalizat    .79161        .23779E-01    .67500E-01    .38498E-03
   4  Prefactor     1.0576        .19877E-01    .39483E-01   -.87536E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.26529
  Index      = 2.90184
  Normalizat = 0.791614
  Prefactor  = 1.05764
 **********
 **   18 **HESSE 
 **********

 FCN=   4545.201     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      269 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26529        152.16        .92061E-03   -1.5605    
   2  Index         2.9018        7.9897        .11793E-01   -.43304    
   3  Normalizat    .79161        .21104        .14932E-02   -1.0038    
   4  Prefactor     1.0576        .19581        .21762E-03   -.90832    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36159e-06
Minuit parameter uncertainties:
  1  12.7372
  2  22.5174
  3  0.211258
  4  0.195944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921483': 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): 102
logL (Free Index) = 4545.20118126
delta logL = 0.0432083660025

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.653e-01  1.274e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.902e+00  2.252e+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.058e+00  1.959e-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:  7.916e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 173.196 0.574

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/921483/cmap_HighResolution_484272001_484531201_4FGL_J1132.7+0034_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.98e-08', time_completed='2021-09-04 03:57:19.562768', job_id='921483', GAL2='1.06', fit_tolerance='1e-08', EG2='0.79', EG='0.81', time_epoch_completed='1630753039.56', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.32e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='945' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:57:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 921483: <4FGL_J1132.7+0034_daily_bin945> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin945> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:52 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:53 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:41:53 2021
Terminated at Sat Sep  4 03:57:19 2021
Results reported at Sat Sep  4 03:57:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin945 173.196 0.5737 484272001 484531201 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 :                                   738.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            927 sec.

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

