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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin785
RA = 173.196, Dec = 0.5737
tmin = 442800001, tmax = 443059201
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='921239', job_status='RUN', time_executed='2021-09-04 03:41:49.083937', time_epoch_executed='1630752109.08' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921239

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921239/ft1_4FGL_J1132.7+0034_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921239/ft2_4FGL_J1132.7+0034_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921239/ft1_4FGL_J1132.7+0034_daily_bin785.fits outfile=/scratch/kocevski/921239/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin785.fits ra=173.196 dec=0.5737 rad=12.0 tmin=442800001.0 tmax=443059201.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.44
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921239/ft1_filtered_4FGL_J1132.7+0034_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/921239/ft2_4FGL_J1132.7+0034_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/921239/ltcube_442800001_443059201_4FGL_J1132.7+0034_daily_bin785.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/921239/ft2_4FGL_J1132.7+0034_daily_bin785.fits
.....................!
real 11.98
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921239/ft1_filtered_4FGL_J1132.7+0034_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/921239/ft2_4FGL_J1132.7+0034_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/921239/ltcube_442800001_443059201_4FGL_J1132.7+0034_daily_bin785.fits outfile=/scratch/kocevski/921239/expmap_442800001_443059201_4FGL_J1132.7+0034_daily_bin785.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/921239/ltcube_442800001_443059201_4FGL_J1132.7+0034_daily_bin785.fits
.....................!
real 190.25
user 185.24
sys 4.54

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/921239/ft1_filtered_4FGL_J1132.7+0034_daily_bin785.fits scfile=/scratch/kocevski/921239/ft2_4FGL_J1132.7+0034_daily_bin785.fits outfile=/scratch/kocevski/921239/cmap_442800001_443059201_4FGL_J1132.7+0034_daily_bin785.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3921       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7203       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    100.60       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.6054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9054       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.126       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.951       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11173E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.397       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.304       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.005       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.9723       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3470       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86183       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=   5792.905     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3702 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3909        2.0980        .19446E-06   -.10481E-02
   2  norm          1.7204        .66397       -.21257E-08   -.82385E-05
   3  Prefactor     .10000E-03    7.7776       -.70995E-07** at limit **
   4  Prefactor     .10000E-03    39.128       -.42435E-06** at limit **
   5  Prefactor     .10000E-03    21.766        .16987E-05** at limit **
   6  Prefactor     .10000E-03    5.5405        .16144E-07** at limit **
   7  Prefactor     .10000E-03    4.7633        .19052E-07** at limit **
   8  Prefactor     100.60        88.003       -.53104E-05   -.16648E-04
   9  norm          1.6226        9.7169       -.11357E-06   -.59786E-04
  10  Prefactor     .10000E-03    1.8425        .13951E-07** at limit **
  11  norm          8.6056        13.188       -.25549E-06   -.16190E-04
  12  Prefactor     4.8631        2.5743       -.23867E-07   -.39482E-04
  13  Prefactor     .10000E-03    26.169        .56658E-05** at limit **
  14  norm          .10000E-03    3.9667        .71550E-08** at limit **
  15  Prefactor     4.9014        4.7756        .81776E-07   -.57013E-04
  16  Prefactor     13.121        26.979        .72697E-05    .10444E-04
  17  Prefactor     15.660        97.764       -.18735E-05    .16553E-05
  18  Prefactor     .10000E-03    7.0571        .12120E-07** at limit **
  19  Prefactor     .10000E-03    78.805        .11057E-06** at limit **
  20  Prefactor     .10000E-03    2.3892       -.14030E-07** at limit **
  21  Prefactor     28.391        19.208       -.53518E-06   -.16360E-04
  22  Prefactor     .10000E-03    16.368       -.73811E-07** at limit **
  23  Prefactor     .10000E-03    25.134       -.68295E-05** at limit **
  24  Prefactor     15.304        20.163       -.10378E-05   -.55726E-05
  25  Prefactor     17.007        42.110        .23662E-05    .77642E-05
  26  Prefactor     .10000E-03    7.6884        .64674E-07** at limit **
  27  norm          1.9722        1.8438        .14349E-07    .22976E-04
  28  Normalizat    1.3471        .21709       -.23965E-06   -.13406E-04
  29  Prefactor     .86180        .17186        .86785E-07   -.31712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39092
  norm       = 1.72039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.603
  norm       = 1.62264
  Prefactor  = 0.0001
  norm       = 8.6056
  Prefactor  = 4.86309
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.90145
  Prefactor  = 13.1209
  Prefactor  = 15.6597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3037
  Prefactor  = 17.0067
  Prefactor  = 0.0001
  norm       = 1.97215
  Normalizat = 1.34707
  Prefactor  = 0.861802
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.905     FROM HESSE     STATUS=OK           551 CALLS     4253 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3909        7.6575        .13240E-02   -1.5399    
   2  norm          1.7204        .66246        .36913E-04   -1.5446    
   3  Prefactor     .10000E-03    7.8411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5534        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9586        .32353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     100.60        88.138        .40083E-04   -1.3699    
   9  norm          1.6226        9.7166        .33193E-03   -1.5453    
  10  Prefactor     .10000E-03    1.8537        .10079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.6056        13.180        .13665E-03   -1.5121    
  12  Prefactor     4.8631        2.5774        .85424E-04   -1.5267    
  13  Prefactor     .10000E-03    26.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.9785        .14780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9014        4.7637        .15468E-03   -1.5265    
  16  Prefactor     13.121        26.977        .11056E-03   -1.4983    
  17  Prefactor     15.660        98.042        .10028E-03   -1.4916    
  18  Prefactor     .10000E-03    7.1211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    79.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3927        .11489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.391        19.246        .75182E-04   -1.4642    
  22  Prefactor     .10000E-03    16.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.304        20.162        .10238E-03   -1.4925    
  25  Prefactor     17.007        42.196        .97124E-04   -1.4883    
  26  Prefactor     .10000E-03    7.7226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.9722        1.8543        .97166E-04   -1.5427    
  28  Normalizat    1.3471        .25746        .26156E-03   -.82172    
  29  Prefactor     .86180        .20148        .25642E-03   -.97489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65543e-09
Minuit parameter uncertainties:
  1  7.66062
  2  0.662462
  3  1.79423e-06
  4  1.13018e-05
  5  0.000114424
  6  8.07583e-06
  7  6.71459e-06
  8  88.253
  9  7.94312
  10  1.99175e-06
  11  13.184
  12  2.57743
  13  9.40564e-06
  14  5.19415e-07
  15  4.76405
  16  27.0024
  17  78.5565
  18  1.82588e-06
  19  3.42232e-05
  20  3.07698e-06
  21  19.25
  22  3.89798e-06
  23  3.17918e-05
  24  20.171
  25  42.2698
  26  2.88186e-06
  27  1.85439
  28  0.257709
  29  0.20165
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.863e+00  2.577e+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.618e-01  2.017e-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.347e+00  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.26
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.21e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 3.67e-05 +/- 1.95e-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) = 5792.55191438
delta logL = 0.353392564769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5792.53515727
delta logL = 0.370149674205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2900       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7886       1.0000          .0000       10.000    
     3 'Normalizat'    1.3744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85024       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=   5792.535     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2894        4.8112        .43688E-02    .58700E-03
   2  Index         1.7879        .56027        .16969       -.88204E-04
   3  Normalizat    1.3742        .21411        .58652E-01    .43887E-03
   4  Prefactor     .85042        .17112        .44368E-01    .55884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28944
  Index      = 1.78789
  Normalizat = 1.3742
  Prefactor  = 0.850424
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.535     FROM HESSE     STATUS=OK            27 CALLS      231 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2894        3.0064        .95846E-04   -1.5248    
   2  Index         1.7879        .39300        .66324E-02   -.69765    
   3  Normalizat    1.3742        .24824        .25938E-03   -.81378    
   4  Prefactor     .85042        .19975        .25802E-03   -.97896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87615e-10
Minuit parameter uncertainties:
  1  3.00645
  2  0.393691
  3  0.248461
  4  0.199919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921239': 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) = 5792.53515501
delta logL = 0.37015193074

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  5.289e+00  3.006e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.788e+00  3.937e-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:  8.504e-01  1.999e-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.374e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.97
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.79 +/- 0.39
Photon Flux (Free Index): 4.89e-08 +/- 3.74e-08
Energy Flux (Free Index): 6.07e-05 +/- 5.34e-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/921239/cmap_HighResolution_442800001_443059201_4FGL_J1132.7+0034_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.21e-08', energy_flux2='6.07e-05', photon_flux_error='3.82e-08', dlogl='3.70e-01', energy_flux='3.67e-05', photon_flux2='4.89e-08', job_status='DONE', time_completed='2021-09-04 03:53:49.283177', photon_index_error2='0.39', photon_index2='1.79', ts='12.26', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='5.34e-05', EG='1.35', time_epoch_completed='1630752829.28', return_code='0', job_id='921239', GAL2='0.85', EG2='1.37', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='3.74e-08', ts2='12.97', photon_index='2.14' WHERE bin_id='785' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:53:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 921239: <4FGL_J1132.7+0034_daily_bin785> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin785> 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) <bullet0264>, 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:53:50 2021
Results reported at Sat Sep  4 03:53:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin785 173.196 0.5737 442800001 443059201 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 :                                   718.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            738 sec.

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

