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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin480
RA = 173.196, Dec = 0.5737
tmin = 363744001, tmax = 364003201
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='919503', job_status='RUN', time_executed='2021-09-04 03:36:24.625441', time_epoch_executed='1630751784.63' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919503/ft1_4FGL_J1132.7+0034_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919503/ft2_4FGL_J1132.7+0034_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919503/ft1_4FGL_J1132.7+0034_daily_bin480.fits outfile=/scratch/kocevski/919503/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin480.fits ra=173.196 dec=0.5737 rad=12.0 tmin=363744001.0 tmax=364003201.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.25
user 3.06
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919503/ft1_filtered_4FGL_J1132.7+0034_daily_bin480.fits" evtable="EVENTS" scfile=/scratch/kocevski/919503/ft2_4FGL_J1132.7+0034_daily_bin480.fits sctable="SC_DATA" outfile=/scratch/kocevski/919503/ltcube_363744001_364003201_4FGL_J1132.7+0034_daily_bin480.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/919503/ft2_4FGL_J1132.7+0034_daily_bin480.fits
.....................!
real 13.51
user 13.17
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919503/ft1_filtered_4FGL_J1132.7+0034_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/919503/ft2_4FGL_J1132.7+0034_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/919503/ltcube_363744001_364003201_4FGL_J1132.7+0034_daily_bin480.fits outfile=/scratch/kocevski/919503/expmap_363744001_364003201_4FGL_J1132.7+0034_daily_bin480.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/919503/ltcube_363744001_364003201_4FGL_J1132.7+0034_daily_bin480.fits
.....................!
real 194.94
user 189.78
sys 4.74

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/919503/ft1_filtered_4FGL_J1132.7+0034_daily_bin480.fits scfile=/scratch/kocevski/919503/ft2_4FGL_J1132.7+0034_daily_bin480.fits outfile=/scratch/kocevski/919503/cmap_363744001_364003201_4FGL_J1132.7+0034_daily_bin480.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919503/ft1_filtered_4FGL_J1132.7+0034_daily_bin480.fits scfile=/scratch/kocevski/919503/ft2_4FGL_J1132.7+0034_daily_bin480.fits outfile=/scratch/kocevski/919503/cmap_HighResolution_363744001_364003201_4FGL_J1132.7+0034_daily_bin480.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/919503/ft1_filtered_4FGL_J1132.7+0034_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/919503/ft2_4FGL_J1132.7+0034_daily_bin480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919503/Model_4FGL_J1132.7+0034_daily_bin480.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/919503/ft1_filtered_4FGL_J1132.7+0034_daily_bin480.fits.....................!
real 58.78
user 57.45
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.687       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9547       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.872       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.843       1.0000         .10000E-03   10000.    
     8 'Prefactor '    79.821       1.0000         .10000E-03   10000.    
     9 'norm      '    25.184       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11770E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9776       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.666       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2388       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9957       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7796       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1927       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.833       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.252       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8289       1.0000         .10000E-03   10000.    
    27 'norm      '    .11290E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0178       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0181       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=   5952.644     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3655 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.686        12.095        .25135E-08   -.31395E-04
   2  norm          1.9548        .75199        .81286E-08   -.26408E-03
   3  Prefactor     .10000E-03    5.9144        .67573E-06** at limit **
   4  Prefactor     18.868        27.252        .10996E-05    .87666E-05
   5  Prefactor     .10000E-03    6.1197       -.90634E-06** at limit **
   6  Prefactor     .10000E-03    3.9746       -.23820E-07** at limit **
   7  Prefactor     13.844        7.5217        .18253E-06    .20034E-05
   8  Prefactor     79.818        94.612        .10640E-05    .73573E-05
   9  norm          25.187        12.695        .21128E-06    .10305E-04
  10  Prefactor     .10000E-03    7.3144        .58695E-06** at limit **
  11  norm          .10000E-03    9.9195        .31994E-06** at limit **
  12  Prefactor     3.9769        3.2660        .18205E-06   -.70841E-05
  13  Prefactor     44.680        38.588       -.18496E-05   -.60345E-04
  14  norm          5.2394        7.3226       -.29092E-07   -.37489E-05
  15  Prefactor     9.9958        6.0233        .41163E-06   -.68634E-04
  16  Prefactor     .10000E-03    7.8365        .62264E-06** at limit **
  17  Prefactor     .10000E-03    43.314       -.67390E-05** at limit **
  18  Prefactor     4.7790        7.1039        .95653E-07   -.12919E-05
  19  Prefactor     .10000E-03    18.283        .13382E-05** at limit **
  20  Prefactor     .10000E-03    2.7579       -.48098E-07** at limit **
  21  Prefactor     4.1915        12.966        .29341E-05   -.31601E-04
  22  Prefactor     13.834        25.179       -.45311E-06   -.75491E-05
  23  Prefactor     .10000E-03    55.497        .61343E-05** at limit **
  24  Prefactor     43.248        28.035       -.32497E-06   -.48684E-04
  25  Prefactor     .10000E-03    12.443       -.99161E-06** at limit **
  26  Prefactor     2.8173        11.189        .42845E-05   -.15801E-03
  27  norm          .10000E-03    1.5961       -.30516E-06** at limit **
  28  Normalizat    1.0182        .23352       -.12842E-05   -.85035E-04
  29  Prefactor     1.0178        .18079       -.75777E-08   -.97645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.686
  norm       = 1.9548
  Prefactor  = 0.0001
  Prefactor  = 18.8675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8436
  Prefactor  = 79.8177
  norm       = 25.1875
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.97687
  Prefactor  = 44.6796
  norm       = 5.23937
  Prefactor  = 9.9958
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.77902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19154
  Prefactor  = 13.8338
  Prefactor  = 0.0001
  Prefactor  = 43.2475
  Prefactor  = 0.0001
  Prefactor  = 2.81727
  norm       = 0.0001
  Normalizat = 1.01818
  Prefactor  = 1.01775
 **********
 **   18 **HESSE 
 **********

 FCN=   5952.644     FROM HESSE     STATUS=OK           555 CALLS     4210 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.686        12.096        .82304E-04   -1.4734    
   2  norm          1.9548        .75010        .39352E-04   -1.5428    
   3  Prefactor     .10000E-03    5.9351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.868        27.278        .92196E-04   -1.4839    
   5  Prefactor     .10000E-03    6.1270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9784        .15021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.844        7.5167        .10765E-03   -1.4964    
   8  Prefactor     79.818        94.835        .44952E-04   -1.3919    
   9  norm          25.187        12.679        .79824E-04   -1.4704    
  10  Prefactor     .10000E-03    7.4482        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.9271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9769        3.2669        .11836E-03   -1.5309    
  13  Prefactor     44.680        38.579        .59989E-04   -1.4370    
  14  norm          5.2394        7.2948        .17562E-03   -1.5250    
  15  Prefactor     9.9958        5.9919        .63370E-03   -1.5076    
  16  Prefactor     .10000E-03    7.8420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7790        7.0974        .18403E-03   -1.5271    
  19  Prefactor     .10000E-03    18.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7633        .12512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1915        12.830        .98409E-03   -1.5298    
  22  Prefactor     13.834        25.170        .10770E-03   -1.4964    
  23  Prefactor     .10000E-03    55.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     43.248        27.972        .60958E-04   -1.4392    
  25  Prefactor     .10000E-03    12.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.8173        11.561        .12090E-02   -1.5372    
  27  norm          .10000E-03    3.3017        .18560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0182        .26903        .31288E-03   -.92424    
  29  Prefactor     1.0178        .20895        .25038E-03   -.92140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87881e-10
Minuit parameter uncertainties:
  1  12.0977
  2  0.7501
  3  1.15948e-05
  4  27.2963
  5  1.64083e-05
  6  2.99659e-07
  7  7.51717
  8  95.015
  9  12.6803
  10  7.84764e-05
  11  2.34825e-05
  12  3.26707
  13  38.6009
  14  7.29603
  15  5.99226
  16  1.34778e-05
  17  0.00032798
  18  7.09866
  19  3.73843e-05
  20  9.15817e-07
  21  12.8384
  22  25.189
  23  0.00031083
  24  27.98
  25  2.62558e-05
  26  11.4175
  27  7.2031e-05
  28  0.269386
  29  0.209114
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.977e+00  3.267e+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.018e+00  2.091e-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.018e+00  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 4.84e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 2.47e-05

TS (Fixed Index): 2.37
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919503/likelihoodResults_363744001_364003201_4FGL_J1132.7+0034_daily_bin480.txt

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) = 5950.20268437
delta logL = 2.44104359515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5950.18282955
delta logL = 2.46089841644

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0027       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6128       1.0000          .0000       10.000    
     3 'Normalizat'    .81086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1235       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=   5950.183     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0026        5.3728        .70018E-02    .16051E-02
   2  Index         3.6129        2.1179        .74691E-01    .26873E-03
   3  Normalizat    .81079        .79866E-01    .78035E-01    .51392E-04
   4  Prefactor     1.1235        .62633E-01    .54211E-01   -.29142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00259
  Index      = 3.61287
  Normalizat = 0.810785
  Prefactor  = 1.1235
 **********
 **   18 **HESSE 
 **********

 FCN=   5950.183     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0026        8.2346        .31253E-04   -1.5508    
   2  Index         3.6129        2.7972        .30733E-02   -.28111    
   3  Normalizat    .81079        .30025        .34544E-03   -.99670    
   4  Prefactor     1.1235        .24221        .23969E-03   -.88719    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65344e-10
Minuit parameter uncertainties:
  1  5.74743
  2  2.98581
  3  0.30087
  4  0.242446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919503': 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): 102
logL (Free Index) = 5950.1828295
delta logL = 2.46089845936

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.003e+00  5.747e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  3.613e+00  2.986e+00  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.124e+00  2.424e-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.108e-01  3.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.99
Ra Dec: 173.196 0.574
Photon Index (Free Index): 3.61 +/- 2.99
Photon Flux (Free Index): 2.25e-07 +/- 1.21e-07
Energy Flux (Free Index): 3.63e-05 +/- 2.16e-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/919503/cmap_HighResolution_363744001_364003201_4FGL_J1132.7+0034_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='3.63e-05', photon_flux_error='4.84e-08', dlogl='2.46e+00', energy_flux='3.00e-05', photon_flux2='2.25e-07', job_status='DONE', time_completed='2021-09-04 03:51:27.714338', photon_index_error2='2.99', photon_index2='3.61', ts='2.37', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='2.16e-05', EG='1.02', time_epoch_completed='1630752687.71', return_code='0', job_id='919503', GAL2='1.12', EG2='0.81', return_code2='102', energy_flux_error='2.47e-05', photon_flux_error2='1.21e-07', ts2='7.99', photon_index='2.14' WHERE bin_id='480' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 919503: <4FGL_J1132.7+0034_daily_bin480> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin480 173.196 0.5737 363744001 364003201 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 :                                   852.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

