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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin40
RA = 173.196, Dec = 0.5737
tmin = 249696001, tmax = 249955201
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='919417', job_status='RUN', time_executed='2021-09-04 03:36:20.683169', time_epoch_executed='1630751780.68' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919417

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919417/ft1_4FGL_J1132.7+0034_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919417/ft2_4FGL_J1132.7+0034_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919417/ft1_4FGL_J1132.7+0034_daily_bin40.fits outfile=/scratch/kocevski/919417/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin40.fits ra=173.196 dec=0.5737 rad=12.0 tmin=249696001.0 tmax=249955201.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 1.49
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919417/ft1_filtered_4FGL_J1132.7+0034_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/919417/ft2_4FGL_J1132.7+0034_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/919417/ltcube_249696001_249955201_4FGL_J1132.7+0034_daily_bin40.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/919417/ft2_4FGL_J1132.7+0034_daily_bin40.fits
.....................!
real 12.83
user 12.28
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919417/ft1_filtered_4FGL_J1132.7+0034_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/919417/ft2_4FGL_J1132.7+0034_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/919417/ltcube_249696001_249955201_4FGL_J1132.7+0034_daily_bin40.fits outfile=/scratch/kocevski/919417/expmap_249696001_249955201_4FGL_J1132.7+0034_daily_bin40.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/919417/ltcube_249696001_249955201_4FGL_J1132.7+0034_daily_bin40.fits
.....................!
real 191.55
user 185.56
sys 5.53

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/919417/ft1_filtered_4FGL_J1132.7+0034_daily_bin40.fits scfile=/scratch/kocevski/919417/ft2_4FGL_J1132.7+0034_daily_bin40.fits outfile=/scratch/kocevski/919417/cmap_249696001_249955201_4FGL_J1132.7+0034_daily_bin40.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919417/ft1_filtered_4FGL_J1132.7+0034_daily_bin40.fits scfile=/scratch/kocevski/919417/ft2_4FGL_J1132.7+0034_daily_bin40.fits outfile=/scratch/kocevski/919417/cmap_HighResolution_249696001_249955201_4FGL_J1132.7+0034_daily_bin40.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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919417/ft1_filtered_4FGL_J1132.7+0034_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/919417/ft2_4FGL_J1132.7+0034_daily_bin40.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919417/Model_4FGL_J1132.7+0034_daily_bin40.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/919417/ft1_filtered_4FGL_J1132.7+0034_daily_bin40.fits.....................!
real 57.52
user 55.92
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7394       1.0000         .10000E-03   10000.    
     2 'norm      '    .68459       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.443       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.109       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.371       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    77.387       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.526       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.299       1.0000         .10000E-03   10000.    
    14 'norm      '    21.170       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1695       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.024       1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.963       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8048       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    63.259       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.124       1.0000         .10000E-03   10000.    
    27 'norm      '    1.5894       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .58679       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2426       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=   6079.689     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3676 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7406        8.5055        .17141E-06   -.34701E-04
   2  norm          .68460        .58722        .23633E-07   -.14494E-03
   3  Prefactor     13.444        10.561       -.45118E-07   -.34495E-05
   4  Prefactor     26.110        18.263       -.67149E-07   -.48469E-05
   5  Prefactor     .10000E-03    12.343        .52543E-06** at limit **
   6  Prefactor     12.373        9.1529        .32346E-06    .68323E-04
   7  Prefactor     .10000E-03    1.5706       -.83377E-09** at limit **
   8  Prefactor     77.398        67.671        .76672E-06    .43838E-04
   9  norm          .10000E-03    3.1906        .21959E-08** at limit **
  10  Prefactor     .10000E-03    3.1395       -.23104E-05** at limit **
  11  norm          14.457        16.523        .27093E-05    .44175E-03
  12  Prefactor     .10000E-03    .66619        .28863E-08** at limit **
  13  Prefactor     35.253        26.787        .76265E-06    .11737E-03
  14  norm          21.170        9.1135       -.25038E-06    .86801E-04
  15  Prefactor     1.1696        4.0402        .13459E-05   -.14125E-03
  16  Prefactor     21.025        17.328       -.11647E-06    .23528E-04
  17  Prefactor     55.936        80.028       -.82618E-06   -.43503E-04
  18  Prefactor     .10000E-03    4.3087       -.64258E-07** at limit **
  19  Prefactor     .10000E-03    27.597        .20899E-07** at limit **
  20  Prefactor     .10000E-03    11.018       -.33101E-06** at limit **
  21  Prefactor     3.8082        12.542       -.21613E-06   -.26996E-04
  22  Prefactor     .10000E-03    19.489       -.19206E-06** at limit **
  23  Prefactor     .10000E-03    50.953       -.49155E-06** at limit **
  24  Prefactor     .10000E-03    6.0969        .21205E-07** at limit **
  25  Prefactor     63.243        48.541       -.28655E-06   -.65329E-04
  26  Prefactor     15.124        12.485       -.10846E-06    .61655E-06
  27  norm          1.5895        2.3740        .12170E-06   -.61133E-04
  28  Normalizat    .58676        .20635        .13794E-05    .13041E-03
  29  Prefactor     1.2425        .16939       -.74068E-06    .30947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.74057
  norm       = 0.684599
  Prefactor  = 13.4438
  Prefactor  = 26.1097
  Prefactor  = 0.0001
  Prefactor  = 12.3726
  Prefactor  = 0.0001
  Prefactor  = 77.3979
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 14.4566
  Prefactor  = 0.0001
  Prefactor  = 35.2528
  norm       = 21.1703
  Prefactor  = 1.16964
  Prefactor  = 21.0251
  Prefactor  = 55.9356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.80817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.2431
  Prefactor  = 15.1235
  norm       = 1.58954
  Normalizat = 0.586758
  Prefactor  = 1.24254
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.689     FROM HESSE     STATUS=OK           547 CALLS     4223 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7406        8.4757        .18483E-03   -1.5272    
   2  norm          .68460        .58780        .47310E-04   -1.5542    
   3  Prefactor     13.444        10.555        .10924E-03   -1.4974    
   4  Prefactor     26.110        18.264        .78400E-04   -1.4686    
   5  Prefactor     .10000E-03    12.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.373        9.1475        .11389E-03   -1.5004    
   7  Prefactor     .10000E-03    1.5853        .95378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     77.398        67.616        .45648E-04   -1.3946    
   9  norm          .10000E-03    3.2022        .13598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0505        .23986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.457        17.575        .10509E-03   -1.4947    
  12  Prefactor     .10000E-03    .67476        .62122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     35.253        26.811        .67451E-04   -1.4520    
  14  norm          21.170        8.9191        .87052E-04   -1.4787    
  15  Prefactor     1.1696        3.8770        .24986E-03   -1.5492    
  16  Prefactor     21.025        17.323        .87355E-04   -1.4791    
  17  Prefactor     55.936        80.027        .53622E-04   -1.4211    
  18  Prefactor     .10000E-03    4.3239        .15805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.8082        12.460        .20693E-03   -1.5318    
  22  Prefactor     .10000E-03    19.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    51.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.1016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     63.243        48.512        .50454E-04   -1.4116    
  26  Prefactor     15.124        12.388        .10299E-03   -1.4930    
  27  norm          1.5895        2.3325        .13448E-03   -1.5456    
  28  Normalizat    .58676        .22520        .34697E-03   -1.0855    
  29  Prefactor     1.2425        .18704        .20914E-03   -.85032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02922e-09
Minuit parameter uncertainties:
  1  8.47781
  2  0.587804
  3  10.5567
  4  18.2674
  5  3.85224e-05
  6  9.14853
  7  5.5953e-07
  8  67.6835
  9  1.93732e-06
  10  0.00022493
  11  17.5816
  12  3.24446e-07
  13  26.8201
  14  8.91964
  15  3.87786
  16  17.3272
  17  80.1813
  18  5.239e-07
  19  2.74874e-05
  20  4.44066e-05
  21  12.469
  22  8.04408e-05
  23  0.000168271
  24  2.19301e-06
  25  48.5419
  26  12.3901
  27  2.33263
  28  0.225556
  29  0.187136
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  3.244e-07  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.243e+00  1.871e-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:  5.868e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 4.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919417/likelihoodResults_249696001_249955201_4FGL_J1132.7+0034_daily_bin40.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) = 6079.6957395
delta logL = -0.00670201119283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.68903753
delta logL = -4.22887751483e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1260       1.0000          .0000       10.000    
     3 'Normalizat'    .58671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2426       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6079.689     FROM MIGRAD    STATUS=FAILED        83 CALLS      229 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10048E-03    24.142        .62380E-03** at limit **
   2  Index         2.0872        6.0430        .50000        .98885E-04
   3  Normalizat    .58676        .29162E-01    .34696E-03    .36993E-04
   4  Prefactor     1.2425        .24948E-01    .20914E-03    .72688E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6079.689     FROM SIMPLEX   STATUS=UNCHANGED    138 CALLS      367 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10048E-03    24.142        .14606E-03** at limit **
   2  Index         2.0872        6.0430        .43138E-03    .98885E-04
   3  Normalizat    .58676        .29162E-01    .76136E-05    .36993E-04
   4  Prefactor     1.2425        .24948E-01    .30657E-05    .72688E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6079.689     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      409 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    124.36        .12476E-03** at limit **
   2  Index         1.9059        6.7102        .50000        .16169E-06
   3  Normalizat    .58676        .88687E-01    .13878E-04   -.33684E-03
   4  Prefactor     1.2425        .75786E-01    .41828E-04   -.54880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90586
  Normalizat = 0.586758
  Prefactor  = 1.24253
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.689     FROM HESSE     STATUS=OK            29 CALLS      438 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .81862        .24952E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9059        8.6644        .50000       -.66725    
   3  Normalizat    .58676        .21512        .27757E-05   -1.0855    
   4  Prefactor     1.2425        .18418        .83657E-05   -.85032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50881e-10
Minuit parameter uncertainties:
  1  5.93482e-07
  2  42.7678
  3  0.215423
  4  0.184279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919417': 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) = 6079.689034
delta logL = 3.48965295416e-06

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  5.935e-07  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.906e+00  4.277e+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.243e+00  1.843e-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:  5.868e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.196 0.574

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/919417/cmap_HighResolution_249696001_249955201_4FGL_J1132.7+0034_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-03', job_status='DONE', photon_flux_upper_limit='4.79e-08', time_completed='2021-09-04 03:51:12.247684', job_id='919417', GAL2='1.24', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630752672.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='3.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='40' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 919417: <4FGL_J1132.7+0034_daily_bin40> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin40 173.196 0.5737 249696001 249955201 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 :                                   844.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

