/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 181 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 = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin390
RA = 173.196, Dec = 0.5737
tmin = 340416001, tmax = 340675201
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='918376', job_status='RUN', time_executed='2021-09-04 03:35:34.339306', time_epoch_executed='1630751734.34' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918376

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918376/ft1_4FGL_J1132.7+0034_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918376/ft2_4FGL_J1132.7+0034_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918376/ft1_4FGL_J1132.7+0034_daily_bin390.fits outfile=/scratch/kocevski/918376/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin390.fits ra=173.196 dec=0.5737 rad=12.0 tmin=340416001.0 tmax=340675201.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 6.72
user 6.43
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918376/ft1_filtered_4FGL_J1132.7+0034_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/918376/ft2_4FGL_J1132.7+0034_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/918376/ltcube_340416001_340675201_4FGL_J1132.7+0034_daily_bin390.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/918376/ft2_4FGL_J1132.7+0034_daily_bin390.fits
.....................!
real 11.18
user 10.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918376/ft1_filtered_4FGL_J1132.7+0034_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/918376/ft2_4FGL_J1132.7+0034_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/918376/ltcube_340416001_340675201_4FGL_J1132.7+0034_daily_bin390.fits outfile=/scratch/kocevski/918376/expmap_340416001_340675201_4FGL_J1132.7+0034_daily_bin390.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/918376/ltcube_340416001_340675201_4FGL_J1132.7+0034_daily_bin390.fits
.....................!
real 190.98
user 186.01
sys 4.20

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/918376/ft1_filtered_4FGL_J1132.7+0034_daily_bin390.fits scfile=/scratch/kocevski/918376/ft2_4FGL_J1132.7+0034_daily_bin390.fits outfile=/scratch/kocevski/918376/cmap_340416001_340675201_4FGL_J1132.7+0034_daily_bin390.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918376/ft1_filtered_4FGL_J1132.7+0034_daily_bin390.fits scfile=/scratch/kocevski/918376/ft2_4FGL_J1132.7+0034_daily_bin390.fits outfile=/scratch/kocevski/918376/cmap_HighResolution_340416001_340675201_4FGL_J1132.7+0034_daily_bin390.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.789       1.0000         .10000E-03   10000.    
     2 'norm      '    4.6923       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14704       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.604       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.982       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9418       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    27.255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12605       1.0000         .10000E-03   10000.    
    11 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4720       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.5790       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5188       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.770       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89489       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.357       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4134       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .42710       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4817       1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.225       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4477       1.0000         .10000E-03   10000.    
    27 'norm      '    5.6858       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2154       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .58416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6114.812     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     3125 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.796        1.8550       -.73473E-06   -.16268E-02
   2  norm          4.6995        .86531        .88139E-07   -.22502E-02
   3  Prefactor     .10384E-03    2023.4       -.30605E-03** at limit **
   4  Prefactor     32.618        3.3958       -.17295E-05    .49024E-02
   5  Prefactor     .10000E-03    7.7376       -.24368E-05** at limit **
   6  Prefactor     10.981        4.1657        .10008E-06   -.68719E-03
   7  Prefactor     3.9390        5.7733       -.59382E-05   -.53576E-03
   8  Prefactor     .10000E-03    16.326        .20172E-05** at limit **
   9  norm          27.218        6.2724        .24709E-05    .52541E-02
  10  Prefactor     .17631        16.565        .15528E-04    .97808E-03
  11  norm          .10030E-03    9.9093        .97545E-05** at limit **
  12  Prefactor     2.4722        1.6421       -.42377E-06   -.17766E-03
  13  Prefactor     .10017E-03    9.7469        .11664E-04** at limit **
  14  norm          9.5786        6.0369       -.67720E-06   -.11665E-02
  15  Prefactor     1.5191        3.2504        .66479E-05   -.24317E-03
  16  Prefactor     19.773        1.1912       -.21943E-06    .11149E-02
  17  Prefactor     .10092E-03    22.944       -.11503E-04** at limit **
  18  Prefactor     .89692        3.0586       -.15245E-04   -.86025E-03
  19  Prefactor     30.350        2.0356       -.30219E-06   -.41546E-02
  20  Prefactor     2.4188        7.1398        .19726E-04    .10041E-02
  21  Prefactor     .48322        57.049       -.47751E-04    .10233E-02
  22  Prefactor     7.4594        5.5760       -.95777E-05    .93029E-03
  23  Prefactor     44.241        2.6267        .13635E-05    .72144E-03
  24  Prefactor     .10032E-03    15.406       -.15290E-04** at limit **
  25  Prefactor     .10099E-03    15.739        .14928E-04** at limit **
  26  Prefactor     4.4509        1.2151        .77499E-07   -.21064E-03
  27  norm          5.6864        3.4003        .21092E-06   -.18608E-03
  28  Normalizat    1.2150        .22516       -.60965E-05   -.15566E-03
  29  Prefactor     .58424        .17069        .65504E-05   -.12713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7962
  norm       = 4.69947
  Prefactor  = 0.000103843
  Prefactor  = 32.6176
  Prefactor  = 0.0001
  Prefactor  = 10.9814
  Prefactor  = 3.93897
  Prefactor  = 0.0001
  norm       = 27.2178
  Prefactor  = 0.176314
  norm       = 0.000100296
  Prefactor  = 2.47225
  Prefactor  = 0.000100171
  norm       = 9.57862
  Prefactor  = 1.51907
  Prefactor  = 19.7728
  Prefactor  = 0.000100923
  Prefactor  = 0.896922
  Prefactor  = 30.3502
  Prefactor  = 2.41876
  Prefactor  = 0.483216
  Prefactor  = 7.45944
  Prefactor  = 44.2415
  Prefactor  = 0.000100317
  Prefactor  = 0.000100991
  Prefactor  = 4.45087
  norm       = 5.68635
  Normalizat = 1.21503
  Prefactor  = 0.584241
 **********
 **   18 **HESSE 
 **********

 FCN=   6114.812     FROM HESSE     STATUS=OK           635 CALLS     3760 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.796        10.578        .21961E-02   -1.4796    
   2  norm          4.6995        .98971        .46443E-02   -1.5274    
   3  Prefactor     .10384E-03    7.0153        .97332E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.618        19.884        .17544E-02   -1.4565    
   5  Prefactor     .10000E-03    7.7260        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.981        12.203        .30225E-02   -1.5045    
   7  Prefactor     3.9390        6.3622        .50795E-02   -1.5311    
   8  Prefactor     .10000E-03    16.344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          27.218        13.682        .19184E-02   -1.4664    
  10  Prefactor     .17631        2.4560        .69171E-01   -1.5624    
  11  norm          .10030E-03    29.207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4722        1.6412        .65017E-02   -1.5393    
  13  Prefactor     .10017E-03    28.766        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.5786        6.1143        .32370E-02   -1.5089    
  15  Prefactor     1.5191        3.3017        .86690E-02   -1.5461    
  16  Prefactor     19.773        25.452        .22520E-02   -1.4818    
  17  Prefactor     .10092E-03    41.260        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .89692        20.020        .12789E-01   -1.5519    
  19  Prefactor     30.350        29.460        .18180E-02   -1.4606    
  20  Prefactor     2.4188        8.0087        .65876E-02   -1.5397    
  21  Prefactor     .48322        12.016        .10969       -1.5569    
  22  Prefactor     7.4594        100.48        .36656E-02   -1.5162    
  23  Prefactor     44.241        46.212        .15072E-02   -1.4377    
  24  Prefactor     .10032E-03    35.504        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10099E-03    25.649        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.4509        15.158        .47734E-02   -1.5286    
  27  norm          5.6864        4.1755        .42114E-02   -1.5231    
  28  Normalizat    1.2150        .20193        .58301E-01   -.86139    
  29  Prefactor     .58424        .14864        .62610E-01   -1.0825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1422e-06
Minuit parameter uncertainties:
  1  10.5786
  2  0.989711
  3  0.0103858
  4  19.8877
  5  6.00617e-05
  6  12.2059
  7  6.36324
  8  3.68537e-06
  9  13.684
  10  1.31578
  11  0.00587936
  12  1.64124
  13  0.00443293
  14  6.11469
  15  3.30209
  16  25.4663
  17  0.0123533
  18  8.47776
  19  29.4745
  20  8.01225
  21  4.81987
  22  54.8673
  23  46.2493
  24  0.00671664
  25  0.0100869
  26  15.1709
  27  4.17572
  28  0.202059
  29  0.148736
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.472e+00  1.641e+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:  5.842e-01  1.487e-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.215e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.06
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.24e-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) = 6114.69958055
delta logL = 0.112900313937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6114.69642616
delta logL = 0.116054701949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6730       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8424       1.0000          .0000       10.000    
     3 'Normalizat'    1.2272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57919       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=   6114.696     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      240 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6730        68.498        .62316E-02   -.64907E-03
   2  Index         1.8424        5.2721        .18873        .45014E-06
   3  Normalizat    1.2272        .29310        .58046E-01    .60799E-05
   4  Prefactor     .57920        .14878        .62860E-01    .24640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67299
  Index      = 1.84245
  Normalizat = 1.2272
  Prefactor  = 0.579197
 **********
 **   18 **HESSE 
 **********

 FCN=   6114.696     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6730        1.8396        .85338E-04   -1.5381    
   2  Index         1.8424        .58420        .96881E-02   -.68350    
   3  Normalizat    1.2272        .21999        .25670E-03   -.85766    
   4  Prefactor     .57920        .16937        .27813E-03   -1.0847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87563e-11
Minuit parameter uncertainties:
  1  1.8396
  2  0.586429
  3  0.220161
  4  0.169515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918376': 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) = 6114.69642616
delta logL = 0.116054704031

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.673e+00  1.840e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.842e+00  5.864e-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:  5.792e-01  1.695e-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.227e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.27
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.84 +/- 0.59
Photon Flux (Free Index): 2.64e-08 +/- 2.56e-08
Energy Flux (Free Index): 2.78e-05 +/- 3.41e-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/918376/cmap_HighResolution_340416001_340675201_4FGL_J1132.7+0034_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='2.78e-05', photon_flux_error='2.43e-08', dlogl='1.16e-01', energy_flux='1.87e-05', photon_flux2='2.64e-08', job_status='DONE', time_completed='2021-09-04 03:47:41.856842', photon_index_error2='0.59', photon_index2='1.84', ts='8.06', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='3.41e-05', EG='1.22', time_epoch_completed='1630752461.86', return_code='0', job_id='918376', GAL2='0.58', EG2='1.23', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='2.56e-08', ts2='8.27', photon_index='2.14' WHERE bin_id='390' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:47:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 918376: <4FGL_J1132.7+0034_daily_bin390> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin390 173.196 0.5737 340416001 340675201 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 :                                   708.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             227.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

