/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 128 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 = 7670
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin175
RA = 173.196, Dec = 0.5737
tmin = 284688001, tmax = 284947201
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='918079', job_status='RUN', time_executed='2021-09-04 03:34:09.906729', time_epoch_executed='1630751649.91' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918079

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918079/ft1_4FGL_J1132.7+0034_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918079/ft2_4FGL_J1132.7+0034_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918079/ft1_4FGL_J1132.7+0034_daily_bin175.fits outfile=/scratch/kocevski/918079/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin175.fits ra=173.196 dec=0.5737 rad=12.0 tmin=284688001.0 tmax=284947201.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.60
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918079/ft1_filtered_4FGL_J1132.7+0034_daily_bin175.fits" evtable="EVENTS" scfile=/scratch/kocevski/918079/ft2_4FGL_J1132.7+0034_daily_bin175.fits sctable="SC_DATA" outfile=/scratch/kocevski/918079/ltcube_284688001_284947201_4FGL_J1132.7+0034_daily_bin175.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/918079/ft2_4FGL_J1132.7+0034_daily_bin175.fits
.....................!
real 11.74
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918079/ft1_filtered_4FGL_J1132.7+0034_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/918079/ft2_4FGL_J1132.7+0034_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/918079/ltcube_284688001_284947201_4FGL_J1132.7+0034_daily_bin175.fits outfile=/scratch/kocevski/918079/expmap_284688001_284947201_4FGL_J1132.7+0034_daily_bin175.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/918079/ltcube_284688001_284947201_4FGL_J1132.7+0034_daily_bin175.fits
.....................!
real 190.11
user 185.19
sys 4.45

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/918079/ft1_filtered_4FGL_J1132.7+0034_daily_bin175.fits scfile=/scratch/kocevski/918079/ft2_4FGL_J1132.7+0034_daily_bin175.fits outfile=/scratch/kocevski/918079/cmap_284688001_284947201_4FGL_J1132.7+0034_daily_bin175.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/918079/ft1_filtered_4FGL_J1132.7+0034_daily_bin175.fits scfile=/scratch/kocevski/918079/ft2_4FGL_J1132.7+0034_daily_bin175.fits outfile=/scratch/kocevski/918079/cmap_HighResolution_284688001_284947201_4FGL_J1132.7+0034_daily_bin175.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918079/ft1_filtered_4FGL_J1132.7+0034_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/918079/ft2_4FGL_J1132.7+0034_daily_bin175.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918079/Model_4FGL_J1132.7+0034_daily_bin175.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/918079/ft1_filtered_4FGL_J1132.7+0034_daily_bin175.fits.....................!
real 60.43
user 58.93
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2546       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5204       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11902E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.366       1.0000         .10000E-03   10000.    
     9 'norm      '    26.560       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .88124E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9387       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30707E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6676       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.869       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0289       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.286       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.431       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.030       1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.084       1.0000         .10000E-03   10000.    
    27 'norm      '    3.8154       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .64342       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2496       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=   6494.997     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     4314 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2556        20.461        .82862E-06    .14548E-04
   2  norm          1.5204        .67148        .13889E-08    .39516E-03
   3  Prefactor     .46899        10.316       -.32913E-06    .33250E-04
   4  Prefactor     .10000E-03    7.6046        .29838E-07** at limit **
   5  Prefactor     .10000E-03    7.5674       -.21889E-07** at limit **
   6  Prefactor     .10000E-03    4.4909       -.22101E-07** at limit **
   7  Prefactor     .10000E-03    2.7469       -.31332E-06** at limit **
   8  Prefactor     45.374        54.390       -.94320E-06    .31667E-04
   9  norm          26.625        12.626        .50098E-06    .45399E-03
  10  Prefactor     .13574E-01    3.2347       -.47581E-06    .78665E-04
  11  norm          2.1690        72.969        .27464E-05    .41393E-04
  12  Prefactor     1.9387        1.6643        .20385E-07    .66366E-04
  13  Prefactor     .10036E-03    32.298        .59270E-06** at limit **
  14  norm          8.6727        7.7292       -.13544E-06    .10608E-03
  15  Prefactor     .10000E-03    2.0606        .56914E-08** at limit **
  16  Prefactor     .10000E-03    5.3049       -.57373E-08** at limit **
  17  Prefactor     54.822        91.866        .49943E-05   -.27438E-04
  18  Prefactor     .10000E-03    3.4848       -.97275E-07** at limit **
  19  Prefactor     .10000E-03    15.835        .38133E-06** at limit **
  20  Prefactor     4.0272        7.1946        .14672E-05    .32826E-05
  21  Prefactor     21.286        14.284        .81074E-07    .24683E-04
  22  Prefactor     .10000E-03    17.073       -.58261E-06** at limit **
  23  Prefactor     .10000E-03    12.960       -.64533E-07** at limit **
  24  Prefactor     21.428        30.407        .42167E-06   -.72297E-05
  25  Prefactor     10.036        26.542        .72454E-06   -.92120E-05
  26  Prefactor     27.080        16.963       -.18963E-06    .57371E-05
  27  norm          3.8152        3.2350        .27294E-08   -.85827E-05
  28  Normalizat    .64392        .21182        .32016E-06    .16840E-03
  29  Prefactor     1.2494        .16776       -.35532E-06    .25376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25556
  norm       = 1.52038
  Prefactor  = 0.46899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.3745
  norm       = 26.625
  Prefactor  = 0.0135742
  norm       = 2.16896
  Prefactor  = 1.93865
  Prefactor  = 0.000100357
  norm       = 8.6727
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 54.8215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02725
  Prefactor  = 21.2862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4278
  Prefactor  = 10.0359
  Prefactor  = 27.08
  norm       = 3.81524
  Normalizat = 0.643919
  Prefactor  = 1.24936
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.997     FROM HESSE     STATUS=OK           575 CALLS     4889 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2556        19.471        .39884E-03   -1.5484    
   2  norm          1.5204        .68392        .36086E-04   -1.5461    
   3  Prefactor     .46899        44.539        .40009E-02   -1.5571    
   4  Prefactor     .10000E-03    7.6146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5001        .16675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9627        .24095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.374        54.169        .59527E-04   -1.4360    
   9  norm          26.625        13.439        .77732E-04   -1.4676    
  10  Prefactor     .13574E-01    15.319        .35798E-01   -1.5685    
  11  norm          2.1690        78.808        .28914E-03   -1.5413    
  12  Prefactor     1.9387        1.6674        .92857E-04   -1.5429    
  13  Prefactor     .10036E-03    41.769        .98529E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6727        7.2083        .13615E-03   -1.5119    
  15  Prefactor     .10000E-03    22.659        .20576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3059        .18129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.822        87.751        .54151E-04   -1.4226    
  18  Prefactor     .10000E-03    3.4903        .14695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0272        7.2196        .10045E-02   -1.5307    
  21  Prefactor     21.286        14.238        .86816E-04   -1.4785    
  22  Prefactor     .10000E-03    17.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.428        30.197        .86521E-04   -1.4782    
  25  Prefactor     10.036        26.470        .12653E-03   -1.5074    
  26  Prefactor     27.080        16.934        .76978E-04   -1.4667    
  27  norm          3.8152        3.2285        .12156E-03   -1.5317    
  28  Normalizat    .64392        .23812        .34332E-03   -1.0615    
  29  Prefactor     1.2494        .18930        .21106E-03   -.84825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19963e-09
Minuit parameter uncertainties:
  1  9.89224
  2  0.683926
  3  9.14676
  4  1.73225e-06
  5  3.45289e-06
  6  2.00104e-06
  7  4.58354e-05
  8  54.2275
  9  13.4402
  10  0.908871
  11  26.1849
  12  1.66744
  13  0.00772373
  14  7.209
  15  0.000294017
  16  1.62629e-06
  17  87.9587
  18  5.46892e-06
  19  1.14651e-05
  20  7.22113
  21  14.2402
  22  1.6278e-05
  23  1.3467e-05
  24  30.2182
  25  26.5009
  26  16.9375
  27  3.22867
  28  0.238499
  29  0.189405
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.939e+00  1.667e+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.249e+00  1.894e-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:  6.439e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.95
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.87e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.26e-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) = 6494.95649966
delta logL = 0.0400957694865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6494.95519224
delta logL = 0.0414031953578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9739       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9426       1.0000          .0000       10.000    
     3 'Normalizat'    .65090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2470       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=   6494.955     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      233 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9739        1.7790        .98318E-04   -.56035E-03
   2  Index         1.9425        .67559        .90256E-02   -.70247E-04
   3  Normalizat    .65077        .22130        .34159E-03    .21034E-04
   4  Prefactor     1.2471        .18424        .21123E-03    .44554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97392
  Index      = 1.94253
  Normalizat = 0.650771
  Prefactor  = 1.24711
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.955     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9739        1.7848        .39327E-05   -1.5427    
   2  Index         1.9425        .67768        .36103E-03   -.65795    
   3  Normalizat    .65077        .22142        .13664E-04   -1.0587    
   4  Prefactor     1.2471        .18436        .42245E-04   -.84894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29807e-10
Minuit parameter uncertainties:
  1  1.78483
  2  0.681034
  3  0.221723
  4  0.184452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918079': 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) = 6494.95519201
delta logL = 0.0414034230853

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.974e+00  1.785e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.943e+00  6.810e-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.247e+00  1.845e-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:  6.508e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.94 +/- 0.68
Photon Flux (Free Index): 2.22e-08 +/- 3.01e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.10e-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/918079/cmap_HighResolution_284688001_284947201_4FGL_J1132.7+0034_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.87e-08', energy_flux2='1.77e-05', photon_flux_error='2.47e-08', dlogl='4.14e-02', energy_flux='1.46e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-09-04 03:47:53.857287', photon_index_error2='0.68', photon_index2='1.94', ts='4.95', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='0.64', time_epoch_completed='1630752473.86', return_code='0', job_id='918079', GAL2='1.25', EG2='0.65', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.01e-08', ts2='5.03', photon_index='2.14' WHERE bin_id='175' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:47:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 918079: <4FGL_J1132.7+0034_daily_bin175> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin175> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:31:51 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:31:53 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:31:53 2021
Terminated at Sat Sep  4 03:47:57 2021
Results reported at Sat Sep  4 03:47:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin175 173.196 0.5737 284688001 284947201 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 :                                   818.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            966 sec.

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

