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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin610
RA = 173.196, Dec = 0.5737
tmin = 397440001, tmax = 397699201
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='919694', job_status='RUN', time_executed='2021-09-04 03:40:24.849523', time_epoch_executed='1630752024.85' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919694/ft1_4FGL_J1132.7+0034_daily_bin610.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919694/ft2_4FGL_J1132.7+0034_daily_bin610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919694/ft1_4FGL_J1132.7+0034_daily_bin610.fits outfile=/scratch/kocevski/919694/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin610.fits ra=173.196 dec=0.5737 rad=12.0 tmin=397440001.0 tmax=397699201.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 4.57
user 4.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919694/ft2_4FGL_J1132.7+0034_daily_bin610.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/919694/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin610.fits evtable="EVENTS" outfile="/scratch/kocevski/919694/ft1_filtered_4FGL_J1132.7+0034_daily_bin610.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919694/ft1_filtered_4FGL_J1132.7+0034_daily_bin610.fits" evtable="EVENTS" scfile=/scratch/kocevski/919694/ft2_4FGL_J1132.7+0034_daily_bin610.fits sctable="SC_DATA" outfile=/scratch/kocevski/919694/ltcube_397440001_397699201_4FGL_J1132.7+0034_daily_bin610.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/919694/ft2_4FGL_J1132.7+0034_daily_bin610.fits
.....................!
real 11.92
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919694/ft1_filtered_4FGL_J1132.7+0034_daily_bin610.fits evtable="EVENTS" scfile=/scratch/kocevski/919694/ft2_4FGL_J1132.7+0034_daily_bin610.fits sctable="SC_DATA" expcube=/scratch/kocevski/919694/ltcube_397440001_397699201_4FGL_J1132.7+0034_daily_bin610.fits outfile=/scratch/kocevski/919694/expmap_397440001_397699201_4FGL_J1132.7+0034_daily_bin610.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/919694/ltcube_397440001_397699201_4FGL_J1132.7+0034_daily_bin610.fits
.....................!
real 189.94
user 185.46
sys 4.12

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/919694/ft1_filtered_4FGL_J1132.7+0034_daily_bin610.fits scfile=/scratch/kocevski/919694/ft2_4FGL_J1132.7+0034_daily_bin610.fits outfile=/scratch/kocevski/919694/cmap_397440001_397699201_4FGL_J1132.7+0034_daily_bin610.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/919694/ft1_filtered_4FGL_J1132.7+0034_daily_bin610.fits scfile=/scratch/kocevski/919694/ft2_4FGL_J1132.7+0034_daily_bin610.fits outfile=/scratch/kocevski/919694/cmap_HighResolution_397440001_397699201_4FGL_J1132.7+0034_daily_bin610.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919694/ft1_filtered_4FGL_J1132.7+0034_daily_bin610.fits evtable="EVENTS" scfile=/scratch/kocevski/919694/ft2_4FGL_J1132.7+0034_daily_bin610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919694/Model_4FGL_J1132.7+0034_daily_bin610.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/919694/ft1_filtered_4FGL_J1132.7+0034_daily_bin610.fits.....................!
real 50.15
user 48.85
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .23933       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4502       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.282       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8779       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.7758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.418       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3331       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.280       1.0000         .10000E-03   10000.    
    14 'norm      '    4.8735       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6025       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0888       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    103.98       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.960       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18037E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.0620       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86106       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1091       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=   5078.672     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3680 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3722        .13904E-06** at limit **
   2  norm          .23902        .75508        .31149E-06    .52678E-03
   3  Prefactor     4.4553        13.062       -.12003E-06    .46872E-05
   4  Prefactor     .10000E-03    9.2161        .11724E-05** at limit **
   5  Prefactor     27.286        25.570       -.94382E-06   -.24133E-04
   6  Prefactor     2.8756        17.176        .98288E-06    .16717E-04
   7  Prefactor     .10000E-03    3.2862       -.13218E-06** at limit **
   8  Prefactor     .10000E-03    29.101       -.29757E-06** at limit **
   9  norm          5.7767        9.7155        .22894E-05   -.12860E-04
  10  Prefactor     .10000E-03    5.0875       -.12103E-05** at limit **
  11  norm          12.395        25.829        .48517E-05    .64767E-04
  12  Prefactor     4.3334        2.6197        .96810E-07   -.18356E-04
  13  Prefactor     57.276        38.694       -.48762E-06    .45347E-04
  14  norm          4.8680        10.766       -.11701E-05   -.75724E-04
  15  Prefactor     3.6115        8.4812        .56502E-05   -.28138E-03
  16  Prefactor     7.0891        15.066        .13640E-05   -.72907E-05
  17  Prefactor     .10000E-03    43.076       -.40232E-06** at limit **
  18  Prefactor     .10000E-03    5.5407        .82706E-06** at limit **
  19  Prefactor     103.94        80.132        .51181E-05    .79460E-04
  20  Prefactor     .10000E-03    7.7122       -.22975E-06** at limit **
  21  Prefactor     22.940        24.662        .19878E-07    .66068E-04
  22  Prefactor     .10000E-03    43.530       -.14584E-05** at limit **
  23  Prefactor     .10000E-03    16.889        .22185E-05** at limit **
  24  Prefactor     .10000E-03    10.140       -.77728E-07** at limit **
  25  Prefactor     .10000E-03    13.740       -.19394E-05** at limit **
  26  Prefactor     .10000E-03    5.7966       -.29219E-06** at limit **
  27  norm          1.0632        2.5554       -.15916E-06   -.35385E-03
  28  Normalizat    .86057        .22000       -.19950E-05   -.61389E-04
  29  Prefactor     1.1095        .17896       -.74809E-06   -.14891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.239021
  Prefactor  = 4.45531
  Prefactor  = 0.0001
  Prefactor  = 27.286
  Prefactor  = 2.87562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.77674
  Prefactor  = 0.000100001
  norm       = 12.3947
  Prefactor  = 4.33343
  Prefactor  = 57.276
  norm       = 4.86796
  Prefactor  = 3.6115
  Prefactor  = 7.0891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.935
  Prefactor  = 0.0001
  Prefactor  = 22.9402
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06324
  Normalizat = 0.860569
  Prefactor  = 1.10949
 **********
 **   18 **HESSE 
 **********

 FCN=   5078.672     FROM HESSE     STATUS=OK           557 CALLS     4237 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3877        .14550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .23902        .69309        .70023E-03   -1.5610    
   3  Prefactor     4.4553        12.792        .19088E-03   -1.5286    
   4  Prefactor     .10000E-03    9.2352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.286        25.178        .76699E-04   -1.4663    
   6  Prefactor     2.8756        16.498        .23959E-03   -1.5369    
   7  Prefactor     .10000E-03    3.3086        .12599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7767        9.6660        .83560E-03   -1.5227    
  10  Prefactor     .10000E-03    5.1639        .15664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.395        25.862        .11367E-03   -1.5004    
  12  Prefactor     4.3334        2.6189        .86185E-04   -1.5292    
  13  Prefactor     57.276        38.607        .53006E-04   -1.4193    
  14  norm          4.8680        10.579        .91105E-03   -1.5267    
  15  Prefactor     3.6115        8.5076        .10644E-02   -1.5328    
  16  Prefactor     7.0891        15.059        .75334E-03   -1.5175    
  17  Prefactor     .10000E-03    43.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.5632        .16385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     103.94        80.095        .19716E-03   -1.3665    
  20  Prefactor     .10000E-03    7.8722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.940        24.670        .83594E-04   -1.4750    
  22  Prefactor     .10000E-03    43.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.8084        .16746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.0632        2.2021        .17121E-02   -1.5502    
  28  Normalizat    .86057        .25233        .30076E-03   -.97860    
  29  Prefactor     1.1095        .20607        .22208E-03   -.89164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33209e-10
Minuit parameter uncertainties:
  1  5.69792e-06
  2  0.693112
  3  12.7998
  4  2.40096e-05
  5  25.1874
  6  13.7813
  7  6.65525e-06
  8  5.0503e-06
  9  9.66857
  10  0.000112308
  11  25.8854
  12  2.619
  13  38.6239
  14  10.5827
  15  8.51046
  16  15.0666
  17  1.22969e-05
  18  1.41213e-05
  19  80.1787
  20  1.92415e-05
  21  24.6805
  22  0.000421086
  23  5.07518e-05
  24  1.99297e-06
  25  2.42489e-05
  26  5.90418e-06
  27  2.20227
  28  0.252676
  29  0.206221
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.333e+00  2.619e+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.109e+00  2.062e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  8.606e-01  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.74
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.42e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 3.27e-05 +/- 1.98e-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) = 5078.63412978
delta logL = 0.0380490918242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5078.6296279
delta logL = 0.0425509693032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5899       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0036       1.0000          .0000       10.000    
     3 'Normalizat'    .86821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1066       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=   5078.630     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      233 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5901        2.9000        .90653E-04   -.21459E-02
   2  Index         2.0035        .45042        .63938E-02   -.31757E-03
   3  Normalizat    .86820        .24403        .29959E-03    .97451E-04
   4  Prefactor     1.1066        .20221        .22234E-03    .14182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.59009
  Index      = 2.00347
  Normalizat = 0.8682
  Prefactor  = 1.10662
 **********
 **   18 **HESSE 
 **********

 FCN=   5078.630     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5901        2.8824        .18131E-04   -1.5279    
   2  Index         2.0035        .44754        .25575E-03   -.64263    
   3  Normalizat    .86820        .24417        .11983E-04   -.97587    
   4  Prefactor     1.1066        .20235        .44469E-04   -.89255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80786e-09
Minuit parameter uncertainties:
  1  2.88247
  2  0.448475
  3  0.244484
  4  0.202492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919694': 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) = 5078.62962787
delta logL = 0.042551006215

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.590e+00  2.882e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.003e+00  4.485e-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.107e+00  2.025e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  8.682e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.81
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.00 +/- 0.45
Photon Flux (Free Index): 5.60e-08 +/- 4.46e-08
Energy Flux (Free Index): 3.84e-05 +/- 3.28e-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/919694/cmap_HighResolution_397440001_397699201_4FGL_J1132.7+0034_daily_bin610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.42e-08', energy_flux2='3.84e-05', photon_flux_error='3.88e-08', dlogl='4.26e-02', energy_flux='3.27e-05', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-09-04 03:51:31.082998', photon_index_error2='0.45', photon_index2='2.00', ts='7.74', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.86', time_epoch_completed='1630752691.08', return_code='0', job_id='919694', GAL2='1.11', EG2='0.87', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.46e-08', ts2='7.81', photon_index='2.14' WHERE bin_id='610' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 919694: <4FGL_J1132.7+0034_daily_bin610> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin610> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 03:36:20 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:36:21 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:36:21 2021
Terminated at Sat Sep  4 03:51:31 2021
Results reported at Sat Sep  4 03:51:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin610 173.196 0.5737 397440001 397699201 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 :                                   665.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            911 sec.

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

