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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin982
RA = 173.196, Dec = 0.5737
tmin = 493862401, tmax = 494121601
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='921529', job_status='RUN', time_executed='2021-09-04 03:44:23.283235', time_epoch_executed='1630752263.28' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921529

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921529/ft1_4FGL_J1132.7+0034_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921529/ft2_4FGL_J1132.7+0034_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921529/ft1_4FGL_J1132.7+0034_daily_bin982.fits outfile=/scratch/kocevski/921529/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin982.fits ra=173.196 dec=0.5737 rad=12.0 tmin=493862401.0 tmax=494121601.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.61
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/921529/ft2_4FGL_J1132.7+0034_daily_bin982.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/921529/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin982.fits evtable="EVENTS" outfile="/scratch/kocevski/921529/ft1_filtered_4FGL_J1132.7+0034_daily_bin982.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/921529/ft1_filtered_4FGL_J1132.7+0034_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/921529/ft2_4FGL_J1132.7+0034_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/921529/ltcube_493862401_494121601_4FGL_J1132.7+0034_daily_bin982.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/921529/ft2_4FGL_J1132.7+0034_daily_bin982.fits
.....................!
real 11.70
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921529/ft1_filtered_4FGL_J1132.7+0034_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/921529/ft2_4FGL_J1132.7+0034_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/921529/ltcube_493862401_494121601_4FGL_J1132.7+0034_daily_bin982.fits outfile=/scratch/kocevski/921529/expmap_493862401_494121601_4FGL_J1132.7+0034_daily_bin982.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/921529/ltcube_493862401_494121601_4FGL_J1132.7+0034_daily_bin982.fits
.....................!
real 189.31
user 184.72
sys 4.22

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/921529/ft1_filtered_4FGL_J1132.7+0034_daily_bin982.fits scfile=/scratch/kocevski/921529/ft2_4FGL_J1132.7+0034_daily_bin982.fits outfile=/scratch/kocevski/921529/cmap_493862401_494121601_4FGL_J1132.7+0034_daily_bin982.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921529/ft1_filtered_4FGL_J1132.7+0034_daily_bin982.fits scfile=/scratch/kocevski/921529/ft2_4FGL_J1132.7+0034_daily_bin982.fits outfile=/scratch/kocevski/921529/cmap_HighResolution_493862401_494121601_4FGL_J1132.7+0034_daily_bin982.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.69
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921529/ft1_filtered_4FGL_J1132.7+0034_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/921529/ft2_4FGL_J1132.7+0034_daily_bin982.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921529/Model_4FGL_J1132.7+0034_daily_bin982.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/921529/ft1_filtered_4FGL_J1132.7+0034_daily_bin982.fits.....................!
real 54.65
user 52.52
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9846       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4807       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.871       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.019       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19284E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1251       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6229       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7195       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9726       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8144       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4802       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0930       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .72836E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.999       1.0000         .10000E-03   10000.    
    27 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2765       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83611       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=   5200.146     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3688 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9841        6.7886       -.41392E-07   -.17692E-04
   2  norm          1.4804        1.0529       -.14088E-07    .23363E-03
   3  Prefactor     18.878        14.617       -.10598E-06    .40905E-04
   4  Prefactor     .10000E-03    7.6348        .19987E-06** at limit **
   5  Prefactor     13.018        20.280        .78980E-07    .15742E-03
   6  Prefactor     .10000E-03    20.652        .94594E-06** at limit **
   7  Prefactor     .10000E-03    3.2729        .28850E-06** at limit **
   8  Prefactor     .10000E-03    39.178        .56813E-07** at limit **
   9  norm          1.1222        19.605       -.90835E-06    .17654E-03
  10  Prefactor     8.6131        9.0632        .72523E-06    .88271E-04
  11  norm          .10000E-03    10.732       -.12005E-06** at limit **
  12  Prefactor     4.7186        3.1387       -.10653E-06   -.24326E-03
  13  Prefactor     2.0171        330.78       -.12511E-04   -.57834E-05
  14  norm          6.8173        8.7192        .16798E-06   -.10840E-03
  15  Prefactor     2.4824        4.7627       -.68453E-07   -.72705E-04
  16  Prefactor     .10000E-03    10.599        .42980E-07** at limit **
  17  Prefactor     9.3321        296.75        .46542E-05    .16796E-04
  18  Prefactor     .10000E-03    6.7422       -.89734E-06** at limit **
  19  Prefactor     .10000E-03    17.771        .43128E-09** at limit **
  20  Prefactor     .10000E-03    3.1754       -.97469E-07** at limit **
  21  Prefactor     .10000E-03    7.0102        .13250E-06** at limit **
  22  Prefactor     .10000E-03    37.494        .33148E-06** at limit **
  23  Prefactor     .10000E-03    20.602       -.10309E-05** at limit **
  24  Prefactor     .10012E-03    116.11        .32239E-04** at limit **
  25  Prefactor     .10000E-03    11.847       -.62438E-07** at limit **
  26  Prefactor     26.005        14.730       -.46665E-07   -.24919E-03
  27  norm          .10000E-03    1.4469        .82731E-07** at limit **
  28  Normalizat    1.2763        .23747        .57690E-05    .29074E-03
  29  Prefactor     .83614        .17376       -.47869E-05   -.40973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.98406
  norm       = 1.48041
  Prefactor  = 18.8777
  Prefactor  = 0.0001
  Prefactor  = 13.0184
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12219
  Prefactor  = 8.61315
  norm       = 0.0001
  Prefactor  = 4.71862
  Prefactor  = 2.0171
  norm       = 6.81726
  Prefactor  = 2.48243
  Prefactor  = 0.0001
  Prefactor  = 9.3321
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100115
  Prefactor  = 0.0001
  Prefactor  = 26.0055
  norm       = 0.0001
  Normalizat = 1.27635
  Prefactor  = 0.836144
 **********
 **   18 **HESSE 
 **********

 FCN=   5200.146     FROM HESSE     STATUS=OK           549 CALLS     4237 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9841        6.7827        .82068E-03   -1.5219    
   2  norm          1.4804        1.0615        .47565E-04   -1.5465    
   3  Prefactor     18.878        14.934        .92198E-04   -1.4839    
   4  Prefactor     .10000E-03    7.6479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.018        20.302        .11101E-03   -1.4986    
   6  Prefactor     .10000E-03    21.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3070        .12754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1222        20.262        .22086E-02   -1.5496    
  10  Prefactor     8.6131        9.1541        .13651E-03   -1.5121    
  11  norm          .10000E-03    10.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7186        3.1429        .98648E-04   -1.5273    
  13  Prefactor     2.0171        337.91        .29520E-03   -1.5424    
  14  norm          6.8173        8.6242        .15370E-03   -1.5186    
  15  Prefactor     2.4824        4.6948        .19000E-03   -1.5393    
  16  Prefactor     .10000E-03    10.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.3321        297.28        .13291E-03   -1.5097    
  18  Prefactor     .10000E-03    6.8276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1807        .12551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.0411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10012E-03    122.06        .55718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     26.005        14.605        .78565E-04   -1.4688    
  27  norm          .10000E-03    1.4564        .84506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2763        .27994        .26696E-03   -.84275    
  29  Prefactor     .83614        .20676        .25288E-03   -.98409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6176e-09
Minuit parameter uncertainties:
  1  6.7836
  2  1.06155
  3  14.9371
  4  6.09472e-05
  5  20.3124
  6  0.000498479
  7  6.18977e-05
  8  6.16708e-06
  9  9.54016
  10  9.15554
  11  2.36019e-05
  12  3.14305
  13  52.5175
  14  8.62576
  15  4.69554
  16  8.22565e-06
  17  105.922
  18  0.000198322
  19  2.4927e-05
  20  1.76989e-05
  21  1.00336e-05
  22  0.000252931
  23  0.0004182
  24  0.00751988
  25  1.1258e-05
  26  14.6068
  27  6.25639e-06
  28  0.280277
  29  0.206955
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.719e+00  3.143e+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:  8.361e-01  2.070e-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.276e+00  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.19
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.00e-08 +/- 4.66e-08
Energy Flux (Fixed Index): 3.56e-05 +/- 2.37e-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) = 5199.26680934
delta logL = 0.879023503415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5199.25515825
delta logL = 0.890674596659

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4123       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0629       1.0000          .0000       10.000    
     3 'Normalizat'    1.1288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91000       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5199.255     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      280 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4124        3.3098        .47950E-04    .33667E-04
   2  Index         3.0630        .89246        .36793E-02    .27763E-04
   3  Normalizat    1.1288        .29116        .28092E-03   -.20558E-04
   4  Prefactor     .91000        .21654        .24336E-03    .26254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4124
  Index      = 3.06296
  Normalizat = 1.12877
  Prefactor  = 0.909996
 **********
 **   18 **HESSE 
 **********

 FCN=   5199.255     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4124        2.5720        .19180E-05   -1.5397    
   2  Index         3.0630        .69374        .14717E-03   -.39782    
   3  Normalizat    1.1288        .28398        .11237E-04   -.88833    
   4  Prefactor     .91000        .21297        .97345E-05   -.95793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45322e-11
Minuit parameter uncertainties:
  1  2.57208
  2  0.696388
  3  0.284367
  4  0.213163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921529': 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) = 5199.25515824
delta logL = 0.890674602019

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.412e+00  2.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  3.063e+00  6.964e-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.100e-01  2.132e-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.129e+00  2.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.27
Ra Dec: 173.196 0.574
Photon Index (Free Index): 3.06 +/- 0.70
Photon Flux (Free Index): 1.83e-07 +/- 1.09e-07
Energy Flux (Free Index): 3.54e-05 +/- 1.67e-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/921529/cmap_HighResolution_493862401_494121601_4FGL_J1132.7+0034_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.00e-08', energy_flux2='3.54e-05', photon_flux_error='4.66e-08', dlogl='8.91e-01', energy_flux='3.56e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-09-04 03:55:45.094602', photon_index_error2='0.70', photon_index2='3.06', ts='7.19', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.28', time_epoch_completed='1630752945.09', return_code='0', job_id='921529', GAL2='0.91', EG2='1.13', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='1.09e-07', ts2='9.27', photon_index='2.14' WHERE bin_id='982' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:55:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 921529: <4FGL_J1132.7+0034_daily_bin982> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin982 173.196 0.5737 493862401 494121601 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 :                                   677.21 sec.
    Max Memory :                                 1069 MB
    Average Memory :                             277.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            829 sec.

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

