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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin397
RA = 173.196, Dec = 0.5737
tmin = 342230401, tmax = 342489601
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='918387', job_status='RUN', time_executed='2021-09-04 03:35:10.396353', time_epoch_executed='1630751710.4' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918387

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918387/ft1_4FGL_J1132.7+0034_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918387/ft2_4FGL_J1132.7+0034_daily_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918387/ft1_4FGL_J1132.7+0034_daily_bin397.fits outfile=/scratch/kocevski/918387/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin397.fits ra=173.196 dec=0.5737 rad=12.0 tmin=342230401.0 tmax=342489601.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.50
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918387/ft1_filtered_4FGL_J1132.7+0034_daily_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/918387/ft2_4FGL_J1132.7+0034_daily_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/918387/ltcube_342230401_342489601_4FGL_J1132.7+0034_daily_bin397.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/918387/ft2_4FGL_J1132.7+0034_daily_bin397.fits
.....................!
real 11.85
user 11.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918387/ft1_filtered_4FGL_J1132.7+0034_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/918387/ft2_4FGL_J1132.7+0034_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/918387/ltcube_342230401_342489601_4FGL_J1132.7+0034_daily_bin397.fits outfile=/scratch/kocevski/918387/expmap_342230401_342489601_4FGL_J1132.7+0034_daily_bin397.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/918387/ltcube_342230401_342489601_4FGL_J1132.7+0034_daily_bin397.fits
.....................!
real 189.79
user 184.63
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/918387/ft1_filtered_4FGL_J1132.7+0034_daily_bin397.fits scfile=/scratch/kocevski/918387/ft2_4FGL_J1132.7+0034_daily_bin397.fits outfile=/scratch/kocevski/918387/cmap_342230401_342489601_4FGL_J1132.7+0034_daily_bin397.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918387/ft1_filtered_4FGL_J1132.7+0034_daily_bin397.fits scfile=/scratch/kocevski/918387/ft2_4FGL_J1132.7+0034_daily_bin397.fits outfile=/scratch/kocevski/918387/cmap_HighResolution_342230401_342489601_4FGL_J1132.7+0034_daily_bin397.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918387/ft1_filtered_4FGL_J1132.7+0034_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/918387/ft2_4FGL_J1132.7+0034_daily_bin397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918387/Model_4FGL_J1132.7+0034_daily_bin397.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/918387/ft1_filtered_4FGL_J1132.7+0034_daily_bin397.fits.....................!
real 54.28
user 52.94
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.516       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7405       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.322       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8062       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2640       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4477       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5774       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.651       1.0000         .10000E-03   10000.    
    14 'norm      '    7.4918       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13980E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4988       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.496       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13262E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10758E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .61862       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3129       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=   5752.812     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3692 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.521        11.079       -.24860E-05   -.32762E-03
   2  norm          1.4289        .60113        .31740E-08   -.81129E-03
   3  Prefactor     .10000E-03    5.4920       -.19888E-07** at limit **
   4  Prefactor     1.7515        47.494        .64014E-04   -.13075E-03
   5  Prefactor     11.317        18.998       -.13895E-05   -.82540E-04
   6  Prefactor     3.8032        14.782        .33811E-05   -.11931E-03
   7  Prefactor     4.2644        5.1898        .18061E-05   -.33941E-03
   8  Prefactor     8.4810        164.51        .11521E-04   -.31143E-05
   9  norm          .10000E-03    5.0968        .13933E-06** at limit **
  10  Prefactor     .10000E-03    2.0840        .59789E-06** at limit **
  11  norm          .10000E-03    12.469        .99813E-06** at limit **
  12  Prefactor     3.5772        2.4038        .33240E-06   -.66827E-04
  13  Prefactor     14.675        27.285       -.23371E-04   -.50921E-04
  14  norm          7.4895        6.7965       -.14797E-05   -.12513E-03
  15  Prefactor     .10000E-03    4.0287        .50598E-06** at limit **
  16  Prefactor     .10000E-03    14.617       -.26105E-05** at limit **
  17  Prefactor     .10003E-03    1004.1       -.95614E-04** at limit **
  18  Prefactor     .10000E-03    3.8255        .27670E-07** at limit **
  19  Prefactor     .10000E-03    15.891        .34102E-05** at limit **
  20  Prefactor     6.5009        9.3230        .65552E-06   -.74275E-04
  21  Prefactor     .10000E-03    5.7730        .21936E-06** at limit **
  22  Prefactor     .10000E-03    9.3172        .28820E-07** at limit **
  23  Prefactor     29.496        34.863        .84041E-06    .71734E-04
  24  Prefactor     .10000E-03    31.391        .23225E-05** at limit **
  25  Prefactor     .10000E-03    21.672       -.20980E-05** at limit **
  26  Prefactor     .10000E-03    4.9732       -.57087E-07** at limit **
  27  norm          .10000E-03    .80186       -.28438E-07** at limit **
  28  Normalizat    .61859        .21595       -.17838E-05   -.20616E-03
  29  Prefactor     1.3130        .17279        .23588E-07   -.29511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5207
  norm       = 1.42886
  Prefactor  = 0.0001
  Prefactor  = 1.75146
  Prefactor  = 11.3172
  Prefactor  = 3.80323
  Prefactor  = 4.2644
  Prefactor  = 8.48101
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 3.57716
  Prefactor  = 14.6751
  norm       = 7.48951
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.50089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.4957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.618586
  Prefactor  = 1.31302
 **********
 **   18 **HESSE 
 **********

 FCN=   5752.812     FROM HESSE     STATUS=OK           547 CALLS     4239 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.521        11.078        .95699E-04   -1.4871    
   2  norm          1.4289        .59731        .36298E-04   -1.5469    
   3  Prefactor     .10000E-03    5.5308        .17333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7515        45.928        .31800E-03   -1.5443    
   5  Prefactor     11.317        18.601        .11906E-03   -1.5035    
   6  Prefactor     3.8032        14.440        .20689E-03   -1.5318    
   7  Prefactor     4.2644        5.1541        .17651E-03   -1.5295    
   8  Prefactor     8.4810        164.26        .13792E-03   -1.5125    
   9  norm          .10000E-03    5.1190        .16707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1000        .10679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5772        2.4017        .92060E-04   -1.5330    
  13  Prefactor     14.675        27.333        .10464E-03   -1.4942    
  14  norm          7.4895        6.7735        .14652E-03   -1.5161    
  15  Prefactor     .10000E-03    4.1782        .29620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    1025.8        .36371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8356        .14488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5009        9.2986        .15743E-03   -1.5198    
  21  Prefactor     .10000E-03    5.7925        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.3176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.496        34.889        .73770E-04   -1.4621    
  24  Prefactor     .10000E-03    31.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.9884        .16518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .80470        .66324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .61859        .24671        .34172E-03   -1.0720    
  29  Prefactor     1.3130        .20087        .20560E-03   -.82921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19886e-09
Minuit parameter uncertainties:
  1  11.0791
  2  0.597312
  3  3.47199e-06
  4  17.9525
  5  18.6104
  6  14.4535
  7  5.15468
  8  74.8857
  9  8.46152e-06
  10  8.49232e-05
  11  0.000254327
  12  2.40173
  13  27.3566
  14  6.77422
  15  0.000104718
  16  2.46521e-05
  17  0.0104898
  18  4.39988e-06
  19  2.66418e-05
  20  9.30069
  21  3.204e-05
  22  6.19509e-06
  23  34.9134
  24  8.47318e-05
  25  9.61486e-06
  26  5.42043e-06
  27  8.91155e-07
  28  0.247154
  29  0.200985
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.577e+00  2.402e+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.313e+00  2.010e-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.186e-01  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.31
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.30e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.81e-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) = 5752.81156092
delta logL = 0.000383855387554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5752.81150297
delta logL = 0.000441806319031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5594       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1518       1.0000          .0000       10.000    
     3 'Normalizat'    .61732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3135       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=   5752.812     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      211 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5594        62.721        .53556E-02    .15842E-03
   2  Index         2.1518        5.9081        .14404        .40654E-04
   3  Normalizat    .61731        .14765        .77254E-01    .31673E-04
   4  Prefactor     1.3136        .79164E-01    .46503E-01   -.20862E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55943
  Index      = 2.15179
  Normalizat = 0.617314
  Prefactor  = 1.31356
 **********
 **   18 **HESSE 
 **********

 FCN=   5752.812     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5594        2.4867        .91280E-04   -1.5331    
   2  Index         2.1518        .55184        .75814E-02   -.60607    
   3  Normalizat    .61731        .23750        .34205E-03   -1.0725    
   4  Prefactor     1.3136        .19902        .20556E-03   -.82905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38614e-12
Minuit parameter uncertainties:
  1  2.48672
  2  0.553517
  3  0.237891
  4  0.199133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918387': 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) = 5752.81150297
delta logL = 0.000441808275355

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.559e+00  2.487e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.152e+00  5.535e-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.314e+00  1.991e-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.173e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.30
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.15 +/- 0.55
Photon Flux (Free Index): 5.41e-08 +/- 4.98e-08
Energy Flux (Free Index): 2.67e-05 +/- 2.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/918387/cmap_HighResolution_342230401_342489601_4FGL_J1132.7+0034_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.30e-08', energy_flux2='2.67e-05', photon_flux_error='3.56e-08', dlogl='4.42e-04', energy_flux='2.70e-05', photon_flux2='5.41e-08', job_status='DONE', time_completed='2021-09-04 03:46:52.354308', photon_index_error2='0.55', photon_index2='2.15', ts='7.31', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='0.62', time_epoch_completed='1630752412.35', return_code='0', job_id='918387', GAL2='1.31', EG2='0.62', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='4.98e-08', ts2='7.30', photon_index='2.14' WHERE bin_id='397' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:46:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 918387: <4FGL_J1132.7+0034_daily_bin397> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin397> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:32:18 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:32: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:32:20 2021
Terminated at Sat Sep  4 03:46:53 2021
Results reported at Sat Sep  4 03:46:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin397 173.196 0.5737 342230401 342489601 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 :                                   698.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

