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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin871
RA = 173.196, Dec = 0.5737
tmin = 465091201, tmax = 465350401
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='921374', job_status='RUN', time_executed='2021-09-04 03:42:03.390398', time_epoch_executed='1630752123.39' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='871'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921374/ft1_4FGL_J1132.7+0034_daily_bin871.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921374/ft2_4FGL_J1132.7+0034_daily_bin871.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921374/ft1_4FGL_J1132.7+0034_daily_bin871.fits outfile=/scratch/kocevski/921374/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin871.fits ra=173.196 dec=0.5737 rad=12.0 tmin=465091201.0 tmax=465350401.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.40
user 3.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921374/ft1_filtered_4FGL_J1132.7+0034_daily_bin871.fits" evtable="EVENTS" scfile=/scratch/kocevski/921374/ft2_4FGL_J1132.7+0034_daily_bin871.fits sctable="SC_DATA" outfile=/scratch/kocevski/921374/ltcube_465091201_465350401_4FGL_J1132.7+0034_daily_bin871.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/921374/ft2_4FGL_J1132.7+0034_daily_bin871.fits
.....................!
real 11.89
user 11.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921374/ft1_filtered_4FGL_J1132.7+0034_daily_bin871.fits evtable="EVENTS" scfile=/scratch/kocevski/921374/ft2_4FGL_J1132.7+0034_daily_bin871.fits sctable="SC_DATA" expcube=/scratch/kocevski/921374/ltcube_465091201_465350401_4FGL_J1132.7+0034_daily_bin871.fits outfile=/scratch/kocevski/921374/expmap_465091201_465350401_4FGL_J1132.7+0034_daily_bin871.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/921374/ltcube_465091201_465350401_4FGL_J1132.7+0034_daily_bin871.fits
.....................!
real 190.52
user 185.58
sys 4.46

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/921374/ft1_filtered_4FGL_J1132.7+0034_daily_bin871.fits scfile=/scratch/kocevski/921374/ft2_4FGL_J1132.7+0034_daily_bin871.fits outfile=/scratch/kocevski/921374/cmap_465091201_465350401_4FGL_J1132.7+0034_daily_bin871.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/921374/ft1_filtered_4FGL_J1132.7+0034_daily_bin871.fits scfile=/scratch/kocevski/921374/ft2_4FGL_J1132.7+0034_daily_bin871.fits outfile=/scratch/kocevski/921374/cmap_HighResolution_465091201_465350401_4FGL_J1132.7+0034_daily_bin871.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/921374/ft1_filtered_4FGL_J1132.7+0034_daily_bin871.fits evtable="EVENTS" scfile=/scratch/kocevski/921374/ft2_4FGL_J1132.7+0034_daily_bin871.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921374/Model_4FGL_J1132.7+0034_daily_bin871.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/921374/ft1_filtered_4FGL_J1132.7+0034_daily_bin871.fits.....................!
real 58.11
user 56.48
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .48171       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14795E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.365       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.962       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3856       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12972E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2921       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1156       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.320       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4326       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.716       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.172       1.0000         .10000E-03   10000.    
    17 'Prefactor '    216.82       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7958       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1687       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.909       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.479       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.4684       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2010       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0858       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.219     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3772 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5343        .23217E-07** at limit **
   2  norm          .48104        .54773        .17934E-06   -.19983E-02
   3  Prefactor     .10024E-03    7.4282        .20956E-05** at limit **
   4  Prefactor     43.371        29.104        .57490E-06   -.10294E-03
   5  Prefactor     34.980        21.397       -.15659E-05   -.17374E-03
   6  Prefactor     .10000E-03    5.0429       -.17010E-06** at limit **
   7  Prefactor     .10000E-03    4.7845       -.36725E-06** at limit **
   8  Prefactor     .10000E-03    35.632       -.23127E-05** at limit **
   9  norm          3.3868        8.5636        .97718E-05   -.14552E-03
  10  Prefactor     .10676E-03    4.3218        .50718E-06** at limit **
  11  norm          3.2337        51.603       -.27440E-05   -.53127E-06
  12  Prefactor     3.1160        2.2954        .46624E-06   -.14168E-03
  13  Prefactor     12.304        37.523       -.18721E-05   -.15630E-04
  14  norm          5.4321        8.4053        .28799E-06   -.14792E-04
  15  Prefactor     10.714        6.6512        .48467E-06   -.26523E-05
  16  Prefactor     18.169        23.519        .24145E-06   -.68383E-05
  17  Prefactor     216.88        152.45        .48590E-05    .57437E-04
  18  Prefactor     10.336        10.262        .17207E-07   -.18796E-04
  19  Prefactor     4.8164        276.94       -.16592E-05   -.46354E-05
  20  Prefactor     4.1692        6.7150        .40718E-06   -.32401E-05
  21  Prefactor     .10000E-03    27.632       -.15504E-05** at limit **
  22  Prefactor     19.754        54.723       -.12261E-04   -.25597E-03
  23  Prefactor     .10000E-03    12.682        .58466E-06** at limit **
  24  Prefactor     45.482        32.346        .54000E-06   -.43785E-05
  25  Prefactor     .10000E-03    14.993       -.49216E-06** at limit **
  26  Prefactor     .10000E-03    10.678       -.13543E-06** at limit **
  27  norm          6.4678        4.4281        .93223E-07    .10687E-04
  28  Normalizat    1.2004        .24167       -.49148E-05   -.14973E-03
  29  Prefactor     1.0864        .18743        .21531E-05   -.45268E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.481045
  Prefactor  = 0.000100237
  Prefactor  = 43.3715
  Prefactor  = 34.9796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.38685
  Prefactor  = 0.000106756
  norm       = 3.23366
  Prefactor  = 3.11596
  Prefactor  = 12.3041
  norm       = 5.43212
  Prefactor  = 10.7141
  Prefactor  = 18.1691
  Prefactor  = 216.88
  Prefactor  = 10.3361
  Prefactor  = 4.81636
  Prefactor  = 4.1692
  Prefactor  = 0.000100002
  Prefactor  = 19.7538
  Prefactor  = 0.0001
  Prefactor  = 45.4819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.46777
  Normalizat = 1.20036
  Prefactor  = 1.08643
 **********
 **   18 **HESSE 
 **********

 FCN=   5952.219     FROM HESSE     STATUS=OK           565 CALLS     4337 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5540        .14163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .48104        .47555        .53450E-03   -1.5569    
   3  Prefactor     .10024E-03    31.740        .36715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.371        29.195        .60878E-04   -1.4390    
   5  Prefactor     34.980        21.434        .67775E-04   -1.4524    
   6  Prefactor     .10000E-03    5.0491        .16913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9186        .32921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3868        8.8758        .10995E-02   -1.5340    
  10  Prefactor     .10676E-03    13.179        .41749E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2337        52.519        .22315E-03   -1.5348    
  12  Prefactor     3.1160        2.2931        .48365E-03   -1.5355    
  13  Prefactor     12.304        37.353        .11413E-03   -1.5006    
  14  norm          5.4321        8.3688        .17240E-03   -1.5242    
  15  Prefactor     10.714        6.6028        .12239E-03   -1.5053    
  16  Prefactor     18.169        23.515        .93955E-04   -1.4855    
  17  Prefactor     216.88        153.38        .13732E-03   -1.2752    
  18  Prefactor     10.336        10.264        .12464E-03   -1.5065    
  19  Prefactor     4.8164        268.15        .18371E-03   -1.5269    
  20  Prefactor     4.1692        6.7022        .19740E-03   -1.5300    
  21  Prefactor     .10000E-03    28.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.754        56.359        .89765E-04   -1.4819    
  23  Prefactor     .10000E-03    12.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     45.482        32.327        .59453E-04   -1.4358    
  25  Prefactor     .10000E-03    14.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.4678        4.4205        .12628E-03   -1.5199    
  28  Normalizat    1.2004        .28387        .30077E-03   -.86592    
  29  Prefactor     1.0864        .22171        .25451E-03   -.89901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25231e-08
Minuit parameter uncertainties:
  1  2.50676e-07
  2  0.475552
  3  0.00549015
  4  29.2048
  5  21.4385
  6  3.89271e-06
  7  4.89131e-05
  8  0.000309498
  9  8.87927
  10  0.0188763
  11  26.0904
  12  2.29313
  13  37.4242
  14  8.37056
  15  6.6033
  16  23.5269
  17  153.661
  18  10.2658
  19  72.2177
  20  6.70344
  21  0.000425273
  22  56.5113
  23  3.69255e-05
  24  32.3392
  25  4.85117e-05
  26  8.313e-06
  27  4.42073
  28  0.284234
  29  0.221896
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.116e+00  2.293e+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.086e+00  2.219e-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.200e+00  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.97
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.73e-05

TS (Fixed Index): 3.97
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/921374/likelihoodResults_465091201_465350401_4FGL_J1132.7+0034_daily_bin871.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) = 5951.70315542
delta logL = 0.515969551251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5951.61649918
delta logL = 0.602625788959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1832       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6494       1.0000          .0000       10.000    
     3 'Normalizat'    1.2204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0733       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=   5951.616     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1841        3.7434        .49262E-02    .33921E-04
   2  Index         1.6493        .47169        .17915       -.18237E-04
   3  Normalizat    1.2205        .22204        .67468E-01    .43740E-05
   4  Prefactor     1.0732        .18053        .57818E-01    .49233E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18409
  Index      = 1.64933
  Normalizat = 1.22048
  Prefactor  = 1.07316
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.616     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1841        2.7976        .10253E-03   -1.5299    
   2  Index         1.6493        .39115        .71363E-02   -.73439    
   3  Normalizat    1.2205        .26106        .29849E-03   -.85972    
   4  Prefactor     1.0732        .21256        .25567E-03   -.90329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59669e-13
Minuit parameter uncertainties:
  1  2.79773
  2  0.391875
  3  0.261339
  4  0.212724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921374': 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) = 5951.61649896
delta logL = 0.602626005998

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.184e+00  2.798e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.649e+00  3.919e-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.073e+00  2.127e-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.220e+00  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.65 +/- 0.39
Photon Flux (Free Index): 3.34e-08 +/- 2.58e-08
Energy Flux (Free Index): 6.42e-05 +/- 7.17e-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/921374/cmap_HighResolution_465091201_465350401_4FGL_J1132.7+0034_daily_bin871.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.68e-03', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='6.42e-05', photon_flux_error='3.40e-08', dlogl='6.03e-01', energy_flux='2.35e-05', photon_flux2='3.34e-08', job_status='DONE', time_completed='2021-09-04 03:56:15.418804', photon_index_error2='0.39', photon_index2='1.65', ts='3.97', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='7.17e-05', EG='1.20', time_epoch_completed='1630752975.42', return_code='0', job_id='921374', GAL2='1.07', EG2='1.22', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='2.58e-08', ts2='5.19', photon_index='2.14' WHERE bin_id='871' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:56:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 921374: <4FGL_J1132.7+0034_daily_bin871> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin871 173.196 0.5737 465091201 465350401 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 :                                   845.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

