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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin344
RA = 173.196, Dec = 0.5737
tmin = 328492801, tmax = 328752001
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='918304', job_status='RUN', time_executed='2021-09-04 03:36:19.763539', time_epoch_executed='1630751779.76' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918304

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918304/ft1_4FGL_J1132.7+0034_daily_bin344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918304/ft2_4FGL_J1132.7+0034_daily_bin344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918304/ft1_4FGL_J1132.7+0034_daily_bin344.fits outfile=/scratch/kocevski/918304/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin344.fits ra=173.196 dec=0.5737 rad=12.0 tmin=328492801.0 tmax=328752001.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.73
user 2.51
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918304/ft1_filtered_4FGL_J1132.7+0034_daily_bin344.fits" evtable="EVENTS" scfile=/scratch/kocevski/918304/ft2_4FGL_J1132.7+0034_daily_bin344.fits sctable="SC_DATA" outfile=/scratch/kocevski/918304/ltcube_328492801_328752001_4FGL_J1132.7+0034_daily_bin344.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/918304/ft2_4FGL_J1132.7+0034_daily_bin344.fits
.....................!
real 9.41
user 9.10
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918304/ft1_filtered_4FGL_J1132.7+0034_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/918304/ft2_4FGL_J1132.7+0034_daily_bin344.fits sctable="SC_DATA" expcube=/scratch/kocevski/918304/ltcube_328492801_328752001_4FGL_J1132.7+0034_daily_bin344.fits outfile=/scratch/kocevski/918304/expmap_328492801_328752001_4FGL_J1132.7+0034_daily_bin344.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/918304/ltcube_328492801_328752001_4FGL_J1132.7+0034_daily_bin344.fits
.....................!
real 143.16
user 138.45
sys 4.41

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/918304/ft1_filtered_4FGL_J1132.7+0034_daily_bin344.fits scfile=/scratch/kocevski/918304/ft2_4FGL_J1132.7+0034_daily_bin344.fits outfile=/scratch/kocevski/918304/cmap_328492801_328752001_4FGL_J1132.7+0034_daily_bin344.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.51
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918304/ft1_filtered_4FGL_J1132.7+0034_daily_bin344.fits scfile=/scratch/kocevski/918304/ft2_4FGL_J1132.7+0034_daily_bin344.fits outfile=/scratch/kocevski/918304/cmap_HighResolution_328492801_328752001_4FGL_J1132.7+0034_daily_bin344.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.49
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918304/ft1_filtered_4FGL_J1132.7+0034_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/918304/ft2_4FGL_J1132.7+0034_daily_bin344.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918304/Model_4FGL_J1132.7+0034_daily_bin344.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/918304/ft1_filtered_4FGL_J1132.7+0034_daily_bin344.fits.....................!
real 42.02
user 40.72
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.568       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0954       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.106       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.2729       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4490       1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.986       1.0000         .10000E-03   10000.    
    14 'norm      '    .20720       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.218       1.0000         .10000E-03   10000.    
    17 'Prefactor '    86.139       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12366E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.745       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14131E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2752       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84221       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=   5428.167     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3772 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.569        11.352        .43591E-07    .30834E-05
   2  norm          3.0954        .79112       -.81224E-08   -.10220E-03
   3  Prefactor     .10000E-03    2.7010        .80573E-07** at limit **
   4  Prefactor     .10000E-03    40.851        .11077E-05** at limit **
   5  Prefactor     .10000E-03    24.026        .87129E-07** at limit **
   6  Prefactor     12.101        19.689        .13669E-06    .92342E-05
   7  Prefactor     .10000E-03    4.0537        .44929E-06** at limit **
   8  Prefactor     .10000E-03    33.379        .10898E-05** at limit **
   9  norm          9.2703        15.622        .66235E-08   -.31437E-04
  10  Prefactor     .10000E-03    6.5701        .75317E-06** at limit **
  11  norm          .10000E-03    54.235       -.65773E-06** at limit **
  12  Prefactor     2.4490        2.6521        .19127E-07   -.47841E-04
  13  Prefactor     51.993        36.031       -.17613E-06    .25045E-06
  14  norm          .19951        5.6872        .23060E-06    .12608E-04
  15  Prefactor     .10000E-03    1.7514        .16689E-06** at limit **
  16  Prefactor     20.219        19.765       -.17358E-07   -.79859E-05
  17  Prefactor     86.217        141.67       -.17014E-05   -.29673E-05
  18  Prefactor     .10000E-03    78.832        .34681E-05** at limit **
  19  Prefactor     .10000E-03    13.264        .33317E-07** at limit **
  20  Prefactor     .10000E-03    4.2781        .27859E-06** at limit **
  21  Prefactor     .10000E-03    19.777        .92472E-06** at limit **
  22  Prefactor     36.759        39.180        .22948E-06   -.26227E-04
  23  Prefactor     .10000E-03    190.43        .16021E-05** at limit **
  24  Prefactor     .10000E-03    37.634        .10771E-05** at limit **
  25  Prefactor     .10000E-03    35.337        .86822E-06** at limit **
  26  Prefactor     .10000E-03    3.6544        .10837E-06** at limit **
  27  norm          .10000E-03    1.2277        .11862E-06** at limit **
  28  Normalizat    1.2751        .26599        .36557E-05   -.71438E-04
  29  Prefactor     .84222        .20116       -.43498E-05   -.21394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5689
  norm       = 3.09543
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.1011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.27035
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 2.44901
  Prefactor  = 51.9934
  norm       = 0.199506
  Prefactor  = 0.0001
  Prefactor  = 20.2185
  Prefactor  = 86.2173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.7591
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.27514
  Prefactor  = 0.842225
 **********
 **   18 **HESSE 
 **********

 FCN=   5428.167     FROM HESSE     STATUS=OK           549 CALLS     4321 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.569        11.356        .88316E-04   -1.4801    
   2  norm          3.0954        .79161        .31819E-04   -1.5356    
   3  Prefactor     .10000E-03    2.7039        .11824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.101        19.501        .11513E-03   -1.5012    
   7  Prefactor     .10000E-03    4.1260        .14494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.2703        15.435        .13161E-03   -1.5099    
  10  Prefactor     .10000E-03    6.7251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    54.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4490        2.6445        .11896E-03   -1.5395    
  13  Prefactor     51.993        35.882        .55625E-04   -1.4265    
  14  norm          .19951        31.977        .33143E-02   -1.5619    
  15  Prefactor     .10000E-03    1.7664        .95270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.219        19.766        .89076E-04   -1.4808    
  17  Prefactor     86.217        140.84        .21643E-03   -1.3848    
  18  Prefactor     .10000E-03    77.524        .48409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2985        .14896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.759        39.131        .66115E-04   -1.4495    
  23  Prefactor     .10000E-03    195.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    35.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.6586        .13758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.2711        .15963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2751        .26740        .26851E-03   -.84312    
  29  Prefactor     .84222        .20224        .25537E-03   -.98190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11466e-10
Minuit parameter uncertainties:
  1  11.3572
  2  0.791615
  3  3.18817e-06
  4  0.000473915
  5  8.37886e-05
  6  19.5112
  7  1.75496e-05
  8  3.21554e-05
  9  15.4413
  10  4.14927e-05
  11  0.000350344
  12  2.64464
  13  35.8964
  14  5.05308
  15  6.43784e-06
  16  19.772
  17  141.395
  18  0.000107952
  19  2.76181e-06
  20  8.83886e-06
  21  5.10244e-05
  22  39.1582
  23  0.000962622
  24  0.000195242
  25  1.142e-06
  26  4.5342e-06
  27  5.00806e-06
  28  0.267689
  29  0.202417
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.449e+00  2.645e+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:  8.422e-01  2.024e-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.275e+00  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 2.00e-05

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

Saving results to:
/scratch/kocevski/918304/likelihoodResults_328492801_328752001_4FGL_J1132.7+0034_daily_bin344.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) = 5427.72557698
delta logL = 0.441910074395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5427.72233421
delta logL = 0.445152843065

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5581       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9670       1.0000          .0000       10.000    
     3 'Normalizat'    1.1985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87785       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=   5427.722     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      268 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5578        21.466        .85245E-02    .10925E-02
   2  Index         2.9676        3.2899        .10996        .19221E-03
   3  Normalizat    1.1982        .72401E-01    .62318E-01    .73942E-04
   4  Prefactor     .87808        .53272E-01    .44722E-01   -.11375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55775
  Index      = 2.96762
  Normalizat = 1.19819
  Prefactor  = 0.878076
 **********
 **   18 **HESSE 
 **********

 FCN=   5427.722     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5578        2.9130        .65019E-04   -1.5458    
   2  Index         2.9676        1.1442        .56266E-02   -.41859    
   3  Normalizat    1.1982        .27193        .27565E-03   -.86659    
   4  Prefactor     .87808        .20760        .25062E-03   -.96911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0132e-10
Minuit parameter uncertainties:
  1  2.91325
  2  1.15656
  3  0.272253
  4  0.207786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918304': 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) = 5427.72233324
delta logL = 0.445153818714

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.558e+00  2.913e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.968e+00  1.157e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  8.781e-01  2.078e-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.198e+00  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.97 +/- 1.16
Photon Flux (Free Index): 9.83e-08 +/- 8.87e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.54e-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/918304/cmap_HighResolution_328492801_328752001_4FGL_J1132.7+0034_daily_bin344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='2.00e-05', photon_flux_error='3.92e-08', dlogl='4.45e-01', energy_flux='1.85e-05', photon_flux2='9.83e-08', job_status='DONE', time_completed='2021-09-04 03:47:08.177385', photon_index_error2='1.16', photon_index2='2.97', ts='1.39', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.54e-05', EG='1.28', time_epoch_completed='1630752428.18', return_code='0', job_id='918304', GAL2='0.88', EG2='1.20', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='8.87e-08', ts2='2.34', photon_index='2.14' WHERE bin_id='344' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:47:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 918304: <4FGL_J1132.7+0034_daily_bin344> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin344> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:32:11 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:32:13 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:32:13 2021
Terminated at Sat Sep  4 03:47:08 2021
Results reported at Sat Sep  4 03:47:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin344 173.196 0.5737 328492801 328752001 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 :                                   598.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

