/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 69 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin37
RA = 173.196, Dec = 0.5737
tmin = 248918401, tmax = 249177601
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='916588', job_status='RUN', time_executed='2021-09-04 03:27:40.827347', time_epoch_executed='1630751260.83' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916588/ft1_4FGL_J1132.7+0034_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916588/ft2_4FGL_J1132.7+0034_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916588/ft1_4FGL_J1132.7+0034_daily_bin37.fits outfile=/scratch/kocevski/916588/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin37.fits ra=173.196 dec=0.5737 rad=12.0 tmin=248918401.0 tmax=249177601.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 2.09
user 1.75
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916588/ft1_filtered_4FGL_J1132.7+0034_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/916588/ft2_4FGL_J1132.7+0034_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/916588/ltcube_248918401_249177601_4FGL_J1132.7+0034_daily_bin37.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/916588/ft2_4FGL_J1132.7+0034_daily_bin37.fits
.....................!
real 13.37
user 12.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916588/ft1_filtered_4FGL_J1132.7+0034_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/916588/ft2_4FGL_J1132.7+0034_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/916588/ltcube_248918401_249177601_4FGL_J1132.7+0034_daily_bin37.fits outfile=/scratch/kocevski/916588/expmap_248918401_249177601_4FGL_J1132.7+0034_daily_bin37.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/916588/ltcube_248918401_249177601_4FGL_J1132.7+0034_daily_bin37.fits
.....................!
real 193.56
user 185.22
sys 5.79

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/916588/ft1_filtered_4FGL_J1132.7+0034_daily_bin37.fits scfile=/scratch/kocevski/916588/ft2_4FGL_J1132.7+0034_daily_bin37.fits outfile=/scratch/kocevski/916588/cmap_248918401_249177601_4FGL_J1132.7+0034_daily_bin37.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916588/ft1_filtered_4FGL_J1132.7+0034_daily_bin37.fits scfile=/scratch/kocevski/916588/ft2_4FGL_J1132.7+0034_daily_bin37.fits outfile=/scratch/kocevski/916588/cmap_HighResolution_248918401_249177601_4FGL_J1132.7+0034_daily_bin37.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916588/ft1_filtered_4FGL_J1132.7+0034_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/916588/ft2_4FGL_J1132.7+0034_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916588/Model_4FGL_J1132.7+0034_daily_bin37.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/916588/ft1_filtered_4FGL_J1132.7+0034_daily_bin37.fits.....................!
real 67.62
user 66.12
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.779       1.0000         .10000E-03   10000.    
     2 'norm      '    .96963       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.237       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38241       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15690E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4502       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4082       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9538       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .26577E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.260       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9253       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7222       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.899       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.433       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2195       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3908       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97763       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=   6967.034     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3267 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.782        11.684        .65443E-08    .29028E-05
   2  norm          .96950        .68558       -.16056E-07    .31147E-04
   3  Prefactor     18.241        12.717        .11515E-06   -.40255E-05
   4  Prefactor     12.635        17.810       -.79763E-07    .43198E-06
   5  Prefactor     .10000E-03    4.0459       -.13370E-06** at limit **
   6  Prefactor     .43539        15.147       -.41676E-05   -.34145E-04
   7  Prefactor     .54132E-01    3.7692       -.34555E-06   -.22974E-04
   8  Prefactor     .10000E-03    17.809       -.61189E-06** at limit **
   9  norm          6.4165        10.627        .27572E-05    .15614E-04
  10  Prefactor     3.4054        4.1640        .30668E-06    .11991E-03
  11  norm          .10000E-03    17.915       -.20699E-06** at limit **
  12  Prefactor     5.9548        3.8697        .12968E-06    .30957E-04
  13  Prefactor     .10000E-03    10.758        .64211E-06** at limit **
  14  norm          .10002E-03    28.336       -.57951E-05** at limit **
  15  Prefactor     .10000E-03    2.3763       -.59983E-06** at limit **
  16  Prefactor     30.265        24.125       -.13360E-06    .27735E-06
  17  Prefactor     .10000E-03    26.318       -.26638E-05** at limit **
  18  Prefactor     7.9290        13.100       -.33603E-07    .14854E-04
  19  Prefactor     .10000E-03    10.770       -.59122E-06** at limit **
  20  Prefactor     2.7250        4.1278        .92148E-06    .66117E-03
  21  Prefactor     21.909        16.899        .40983E-06    .16536E-03
  22  Prefactor     26.435        28.126       -.10179E-06    .35212E-04
  23  Prefactor     .10000E-03    20.290       -.69981E-07** at limit **
  24  Prefactor     9.2301        23.871       -.82549E-07    .57070E-05
  25  Prefactor     .10000E-03    19.465        .11970E-05** at limit **
  26  Prefactor     .10000E-03    9.5484       -.15669E-07** at limit **
  27  norm          .10000E-03    .90903        .97769E-08** at limit **
  28  Normalizat    1.3903        .22213        .16509E-06    .31689E-03
  29  Prefactor     .97779        .16751        .90150E-06    .16924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.782
  norm       = 0.969502
  Prefactor  = 18.2407
  Prefactor  = 12.6354
  Prefactor  = 0.0001
  Prefactor  = 0.435394
  Prefactor  = 0.0541324
  Prefactor  = 0.0001
  norm       = 6.41652
  Prefactor  = 3.40541
  norm       = 0.0001
  Prefactor  = 5.95478
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 0.000100002
  Prefactor  = 30.2648
  Prefactor  = 0.0001
  Prefactor  = 7.92898
  Prefactor  = 0.0001
  Prefactor  = 2.725
  Prefactor  = 21.9091
  Prefactor  = 26.4347
  Prefactor  = 0.0001
  Prefactor  = 9.23008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.39035
  Prefactor  = 0.977794
 **********
 **   18 **HESSE 
 **********

 FCN=   6967.034     FROM HESSE     STATUS=OK           575 CALLS     3842 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.782        11.707        .11672E-03   -1.5021    
   2  norm          .96950        .67391        .48713E-04   -1.5511    
   3  Prefactor     18.241        12.822        .93787E-04   -1.4854    
   4  Prefactor     12.635        17.822        .11270E-03   -1.4997    
   5  Prefactor     .10000E-03    4.0514        .16395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .43539        62.976        .37246E-02   -1.5576    
   7  Prefactor     .54132E-01    11.739        .40975E-01   -1.5661    
   8  Prefactor     .10000E-03    17.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4165        11.785        .15803E-03   -1.5201    
  10  Prefactor     3.4054        4.1506        .17116E-03   -1.5339    
  11  norm          .10000E-03    17.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9548        3.8911        .12126E-03   -1.5220    
  13  Prefactor     .10000E-03    10.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    3.6836        .51501E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6792        .24122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.265        24.184        .72836E-04   -1.4607    
  17  Prefactor     .10000E-03    26.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9290        13.126        .14243E-03   -1.5145    
  19  Prefactor     .10000E-03    10.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7250        7.4227        .12341E-02   -1.5378    
  21  Prefactor     21.909        16.962        .85593E-04   -1.4771    
  22  Prefactor     26.435        28.120        .77918E-04   -1.4679    
  23  Prefactor     .10000E-03    20.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.2301        23.924        .13199E-03   -1.5100    
  25  Prefactor     .10000E-03    19.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.6501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .91529        .77691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3903        .26816        .28005E-03   -.80908    
  29  Prefactor     .97779        .19539        .25963E-03   -.93473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5035e-08
Minuit parameter uncertainties:
  1  11.7088
  2  0.673913
  3  12.8244
  4  17.8296
  5  1.97512e-07
  6  10.4828
  7  1.59317
  8  1.27659e-05
  9  11.7895
  10  4.15098
  11  8.6928e-05
  12  3.89128
  13  9.53641e-06
  14  0.000495452
  15  0.000186903
  16  24.1913
  17  7.8096e-05
  18  13.1311
  19  2.38763e-05
  20  7.42521
  21  16.966
  22  28.1338
  23  7.25937e-07
  24  23.9483
  25  2.82782e-05
  26  2.12471e-05
  27  1.90497e-06
  28  0.268436
  29  0.195531
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  5.955e+00  3.891e+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:  9.778e-01  1.955e-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.390e+00  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 8.83e-08 +/- 5.77e-08
Energy Flux (Fixed Index): 4.50e-05 +/- 2.94e-05

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

Saving results to:
/scratch/kocevski/916588/likelihoodResults_248918401_249177601_4FGL_J1132.7+0034_daily_bin37.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) = 6962.61987061
delta logL = 4.41379185632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6962.53566363
delta logL = 4.49799884045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6648       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4421       1.0000          .0000       10.000    
     3 'Normalizat'    1.1647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0894       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=   6962.536     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6644        6.4102        .76844E-02    .51331E-03
   2  Index         3.4423        1.7867        .62707E-01    .20867E-03
   3  Normalizat    1.1647        .83643E-01    .68012E-01    .14000E-04
   4  Prefactor     1.0893        .66261E-01    .55953E-01    .75030E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66443
  Index      = 3.44227
  Normalizat = 1.16472
  Prefactor  = 1.08934
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.536     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6644        2.6297        .34212E-04   -1.5450    
   2  Index         3.4423        .79101        .26513E-02   -.31682    
   3  Normalizat    1.1647        .25864        .30091E-03   -.87700    
   4  Prefactor     1.0893        .20057        .24741E-03   -.89808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95507e-08
Minuit parameter uncertainties:
  1  2.6299
  2  0.794715
  3  0.25892
  4  0.200713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916588': 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) = 6962.53566352
delta logL = 4.49799895072

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.664e+00  2.630e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  3.442e+00  7.947e-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.089e+00  2.007e-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.165e+00  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.27
Ra Dec: 173.196 0.574
Photon Index (Free Index): 3.44 +/- 0.79
Photon Flux (Free Index): 2.65e-07 +/- 9.36e-08
Energy Flux (Free Index): 4.48e-05 +/- 1.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/916588/cmap_HighResolution_248918401_249177601_4FGL_J1132.7+0034_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', comment='SUCCESS', photon_flux='8.83e-08', energy_flux2='4.48e-05', photon_flux_error='5.77e-08', dlogl='4.50e+00', energy_flux='4.50e-05', photon_flux2='2.65e-07', job_status='DONE', time_completed='2021-09-04 03:42:29.415468', photon_index_error2='0.79', photon_index2='3.44', ts='3.24', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='1.77e-05', EG='1.39', time_epoch_completed='1630752149.42', return_code='0', job_id='916588', GAL2='1.09', EG2='1.16', return_code2='0', energy_flux_error='2.94e-05', photon_flux_error2='9.36e-08', ts2='13.27', photon_index='2.14' WHERE bin_id='37' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:42:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 916588: <4FGL_J1132.7+0034_daily_bin37> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin37> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 03:26:19 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:26:20 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:26:20 2021
Terminated at Sat Sep  4 03:42:30 2021
Results reported at Sat Sep  4 03:42:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin37 173.196 0.5737 248918401 249177601 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 :                                   881.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

