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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin786
RA = 173.196, Dec = 0.5737
tmin = 443059201, tmax = 443318401
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='921240', job_status='RUN', time_executed='2021-09-04 03:43:49.844870', time_epoch_executed='1630752229.84' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921240/ft1_4FGL_J1132.7+0034_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921240/ft2_4FGL_J1132.7+0034_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921240/ft1_4FGL_J1132.7+0034_daily_bin786.fits outfile=/scratch/kocevski/921240/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin786.fits ra=173.196 dec=0.5737 rad=12.0 tmin=443059201.0 tmax=443318401.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.81
user 3.56
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921240/ft1_filtered_4FGL_J1132.7+0034_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/921240/ft2_4FGL_J1132.7+0034_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/921240/ltcube_443059201_443318401_4FGL_J1132.7+0034_daily_bin786.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/921240/ft2_4FGL_J1132.7+0034_daily_bin786.fits
.....................!
real 12.11
user 11.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921240/ft1_filtered_4FGL_J1132.7+0034_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/921240/ft2_4FGL_J1132.7+0034_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/921240/ltcube_443059201_443318401_4FGL_J1132.7+0034_daily_bin786.fits outfile=/scratch/kocevski/921240/expmap_443059201_443318401_4FGL_J1132.7+0034_daily_bin786.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/921240/ltcube_443059201_443318401_4FGL_J1132.7+0034_daily_bin786.fits
.....................!
real 190.75
user 185.07
sys 4.94

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/921240/ft1_filtered_4FGL_J1132.7+0034_daily_bin786.fits scfile=/scratch/kocevski/921240/ft2_4FGL_J1132.7+0034_daily_bin786.fits outfile=/scratch/kocevski/921240/cmap_443059201_443318401_4FGL_J1132.7+0034_daily_bin786.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921240/ft1_filtered_4FGL_J1132.7+0034_daily_bin786.fits scfile=/scratch/kocevski/921240/ft2_4FGL_J1132.7+0034_daily_bin786.fits outfile=/scratch/kocevski/921240/cmap_HighResolution_443059201_443318401_4FGL_J1132.7+0034_daily_bin786.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921240/ft1_filtered_4FGL_J1132.7+0034_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/921240/ft2_4FGL_J1132.7+0034_daily_bin786.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921240/Model_4FGL_J1132.7+0034_daily_bin786.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/921240/ft1_filtered_4FGL_J1132.7+0034_daily_bin786.fits.....................!
real 54.41
user 52.03
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.805       1.0000         .10000E-03   10000.    
     2 'norm      '    .65401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23595E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.0243       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7998       1.0000         .10000E-03   10000.    
    11 'norm      '    .17585E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1503       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.815       1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.205       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.230       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.549       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.3727       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .55495       1.0000         .10000E-03   10000.    
    27 'norm      '    .18642E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1107       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0080       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=   5540.965     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3713 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.804        7.7201       -.59038E-07    .38079E-04
   2  norm          .65391        .46435       -.11153E-07    .10307E-02
   3  Prefactor     .10055E-03    5.2858       -.10512E-05** at limit **
   4  Prefactor     .10000E-03    7.9767        .37360E-05** at limit **
   5  Prefactor     .10000E-03    6.9678        .18255E-05** at limit **
   6  Prefactor     .10000E-03    8.9494       -.29238E-05** at limit **
   7  Prefactor     .10000E-03    5.2285        .10244E-05** at limit **
   8  Prefactor     .10000E-03    20.010       -.69602E-05** at limit **
   9  norm          5.0243        7.5930       -.44973E-06   -.11329E-03
  10  Prefactor     3.7906        4.8537       -.13609E-05   -.53454E-03
  11  norm          .10001E-03    64.858        .61150E-05** at limit **
  12  Prefactor     6.1503        3.2739       -.11224E-06   -.12243E-03
  13  Prefactor     11.795        21.631       -.45547E-05   -.45303E-04
  14  norm          .10000E-03    1.8359        .73708E-07** at limit **
  15  Prefactor     .10000E-03    2.4714        .26300E-06** at limit **
  16  Prefactor     .10000E-03    11.034       -.43007E-05** at limit **
  17  Prefactor     37.204        69.053       -.34455E-06   -.22847E-07
  18  Prefactor     .10000E-03    2.6890       -.25998E-07** at limit **
  19  Prefactor     20.211        41.627       -.25570E-04   -.53672E-05
  20  Prefactor     .10000E-03    2.2252        .74231E-09** at limit **
  21  Prefactor     .10000E-03    3.5143        .83888E-07** at limit **
  22  Prefactor     30.557        37.701        .10822E-04    .11283E-04
  23  Prefactor     .10000E-03    32.382        .47538E-05** at limit **
  24  Prefactor     .10000E-03    13.589        .79355E-05** at limit **
  25  Prefactor     7.3731        25.510       -.26194E-06   -.13895E-04
  26  Prefactor     .56400        12.155       -.92749E-06    .16793E-04
  27  norm          .10001E-03    2.2030       -.90021E-06** at limit **
  28  Normalizat    1.1108        .20565        .81072E-06    .15656E-03
  29  Prefactor     1.0078        .16692        .12696E-05    .16182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8044
  norm       = 0.653905
  Prefactor  = 0.000100547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.02426
  Prefactor  = 3.79055
  norm       = 0.000100006
  Prefactor  = 6.15031
  Prefactor  = 11.7952
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.2045
  Prefactor  = 0.0001
  Prefactor  = 20.2113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.5568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37309
  Prefactor  = 0.564003
  norm       = 0.000100014
  Normalizat = 1.11079
  Prefactor  = 1.00785
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.965     FROM HESSE     STATUS=OK           559 CALLS     4272 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.804        7.7175        .11660E-03   -1.5021    
   2  norm          .65391        .46575        .39813E-04   -1.5546    
   3  Prefactor     .10055E-03    5.3550        .54190E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.9821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.9886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.1646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4366        .33160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.0243        7.5525        .17940E-03   -1.5260    
  10  Prefactor     3.7906        4.8277        .16776E-03   -1.5319    
  11  norm          .10001E-03    65.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1503        3.2789        .93006E-04   -1.5212    
  13  Prefactor     11.795        21.566        .11654E-03   -1.5021    
  14  norm          .10000E-03    1.8397        .98496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5249        .11423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.204        69.206        .65707E-04   -1.4487    
  18  Prefactor     .10000E-03    2.6903        .11921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.211        41.545        .89051E-04   -1.4809    
  20  Prefactor     .10000E-03    2.2288        .10844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5173        .13628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.557        37.649        .72492E-04   -1.4602    
  23  Prefactor     .10000E-03    32.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.3731        25.502        .14771E-03   -1.5165    
  26  Prefactor     .56400        50.510        .44282E-02   -1.5558    
  27  norm          .10001E-03    6.4142        .18980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1108        .24118        .26767E-03   -.89406    
  29  Prefactor     1.0078        .19608        .22980E-03   -.92468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98118e-09
Minuit parameter uncertainties:
  1  7.71814
  2  0.465753
  3  0.00342224
  4  9.64224e-06
  5  6.17775e-06
  6  2.49449e-05
  7  2.73302e-05
  8  2.38873e-06
  9  7.55391
  10  4.82822
  11  0.00126463
  12  3.279
  13  21.58
  14  9.38515e-06
  15  4.20069e-05
  16  3.52127e-06
  17  69.356
  18  1.34684e-06
  19  41.6049
  20  1.33026e-06
  21  7.28517e-06
  22  37.6787
  23  5.05535e-05
  24  5.30065e-06
  25  25.5394
  26  10.6831
  27  0.000608726
  28  0.241416
  29  0.196215
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  6.150e+00  3.279e+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.008e+00  1.962e-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.111e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.13
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 9.12e-08 +/- 4.86e-08
Energy Flux (Fixed Index): 4.64e-05 +/- 2.48e-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) = 5540.54473111
delta logL = 0.419893575838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5540.53260581
delta logL = 0.432018874825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3070       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5653       1.0000          .0000       10.000    
     3 'Normalizat'    1.0582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0359       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=   5540.533     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3059        31.158        .48528E-02    .21579E-03
   2  Index         2.5660        2.7720        .10404        .13513E-03
   3  Normalizat    1.0580        .97042E-01    .61743E-01    .11219E-04
   4  Prefactor     1.0359        .70148E-01    .40820E-01    .58891E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.30593
  Index      = 2.56597
  Normalizat = 1.05802
  Prefactor  = 1.03586
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.533     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3059        3.5918        .66558E-04   -1.5293    
   2  Index         2.5660        .53446        .40798E-02   -.50843    
   3  Normalizat    1.0580        .24442        .27308E-03   -.91111    
   4  Prefactor     1.0359        .19767        .22695E-03   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39747e-09
Minuit parameter uncertainties:
  1  3.59194
  2  0.535807
  3  0.244676
  4  0.19781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921240': 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) = 5540.53260359
delta logL = 0.432021097217

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.306e+00  3.592e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.566e+00  5.358e-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.036e+00  1.978e-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.058e+00  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.05
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.57 +/- 0.54
Photon Flux (Free Index): 1.30e-07 +/- 6.76e-08
Energy Flux (Free Index): 3.53e-05 +/- 1.90e-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/921240/cmap_HighResolution_443059201_443318401_4FGL_J1132.7+0034_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.12e-08', energy_flux2='3.53e-05', photon_flux_error='4.86e-08', dlogl='4.32e-01', energy_flux='4.64e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-04 03:55:46.605092', photon_index_error2='0.54', photon_index2='2.57', ts='8.13', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='1.11', time_epoch_completed='1630752946.61', return_code='0', job_id='921240', GAL2='1.04', EG2='1.06', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='6.76e-08', ts2='9.05', photon_index='2.14' WHERE bin_id='786' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:55:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 921240: <4FGL_J1132.7+0034_daily_bin786> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin786 173.196 0.5737 443059201 443318401 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 :                                   713.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

