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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin164
RA = 173.196, Dec = 0.5737
tmin = 281836801, tmax = 282096001
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='918056', job_status='RUN', time_executed='2021-09-04 03:34:53.463860', time_epoch_executed='1630751693.46' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918056/ft1_4FGL_J1132.7+0034_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918056/ft2_4FGL_J1132.7+0034_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918056/ft1_4FGL_J1132.7+0034_daily_bin164.fits outfile=/scratch/kocevski/918056/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin164.fits ra=173.196 dec=0.5737 rad=12.0 tmin=281836801.0 tmax=282096001.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 4.12
user 3.76
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918056/ft2_4FGL_J1132.7+0034_daily_bin164.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/918056/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin164.fits evtable="EVENTS" outfile="/scratch/kocevski/918056/ft1_filtered_4FGL_J1132.7+0034_daily_bin164.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.63
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918056/ft1_filtered_4FGL_J1132.7+0034_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/918056/ft2_4FGL_J1132.7+0034_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/918056/ltcube_281836801_282096001_4FGL_J1132.7+0034_daily_bin164.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/918056/ft2_4FGL_J1132.7+0034_daily_bin164.fits
.....................!
real 12.19
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918056/ft1_filtered_4FGL_J1132.7+0034_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/918056/ft2_4FGL_J1132.7+0034_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/918056/ltcube_281836801_282096001_4FGL_J1132.7+0034_daily_bin164.fits outfile=/scratch/kocevski/918056/expmap_281836801_282096001_4FGL_J1132.7+0034_daily_bin164.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/918056/ltcube_281836801_282096001_4FGL_J1132.7+0034_daily_bin164.fits
.....................!
real 189.86
user 184.62
sys 4.77

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/918056/ft1_filtered_4FGL_J1132.7+0034_daily_bin164.fits scfile=/scratch/kocevski/918056/ft2_4FGL_J1132.7+0034_daily_bin164.fits outfile=/scratch/kocevski/918056/cmap_281836801_282096001_4FGL_J1132.7+0034_daily_bin164.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/918056/ft1_filtered_4FGL_J1132.7+0034_daily_bin164.fits scfile=/scratch/kocevski/918056/ft2_4FGL_J1132.7+0034_daily_bin164.fits outfile=/scratch/kocevski/918056/cmap_HighResolution_281836801_282096001_4FGL_J1132.7+0034_daily_bin164.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918056/ft1_filtered_4FGL_J1132.7+0034_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/918056/ft2_4FGL_J1132.7+0034_daily_bin164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918056/Model_4FGL_J1132.7+0034_daily_bin164.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/918056/ft1_filtered_4FGL_J1132.7+0034_daily_bin164.fits.....................!
real 51.19
user 49.82
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.915       1.0000         .10000E-03   10000.    
     2 'norm      '    .10779E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.723       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6017       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1336       1.0000         .10000E-03   10000.    
     8 'Prefactor '    151.31       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7868       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9734       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.370       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.945       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.272       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .99929E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    61.087       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.6427       1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5148       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .66428       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=   4985.778     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3718 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.913        11.663       -.15742E-09   -.23998E-04
   2  norm          .10000E-03    .86077        .13339E-06** at limit **
   3  Prefactor     35.676        17.530       -.20220E-06   -.18354E-03
   4  Prefactor     .10000E-03    6.5232        .85170E-07** at limit **
   5  Prefactor     5.6069        10.685       -.23567E-06   -.82924E-05
   6  Prefactor     .10000E-03    5.1883       -.41552E-06** at limit **
   7  Prefactor     6.1316        6.4536       -.97467E-06   -.74338E-04
   8  Prefactor     151.13        120.05       -.27262E-05   -.22546E-03
   9  norm          3.7864        7.6710        .70474E-05   -.18796E-03
  10  Prefactor     .10000E-03    1.4343       -.12678E-06** at limit **
  11  norm          .10000E-03    7.8727       -.59436E-07** at limit **
  12  Prefactor     6.9733        3.8119       -.77947E-08    .17737E-05
  13  Prefactor     .10000E-03    25.307        .14711E-06** at limit **
  14  norm          12.370        8.0619       -.14373E-06   -.31946E-05
  15  Prefactor     14.941        6.5766        .41156E-06   -.72768E-04
  16  Prefactor     .10000E-03    7.5656        .60094E-07** at limit **
  17  Prefactor     .10000E-03    51.403       -.16685E-06** at limit **
  18  Prefactor     .10000E-03    3.1278        .30660E-07** at limit **
  19  Prefactor     .10000E-03    14.554       -.32387E-07** at limit **
  20  Prefactor     .10000E-03    3.4774       -.96622E-07** at limit **
  21  Prefactor     .10000E-03    15.644        .54531E-06** at limit **
  22  Prefactor     .10000E-03    13.038        .68068E-07** at limit **
  23  Prefactor     29.235        44.011       -.57994E-06   -.83334E-04
  24  Prefactor     .10000E-03    81.363        .19198E-05** at limit **
  25  Prefactor     61.097        53.073        .84254E-07    .23588E-04
  26  Prefactor     9.6580        14.051        .20579E-06   -.60336E-05
  27  norm          .10000E-03    1.2461        .46131E-07** at limit **
  28  Normalizat    1.5149        .24572        .11564E-05   -.12645E-03
  29  Prefactor     .66432        .18700       -.18941E-05   -.27287E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9125
  norm       = 0.0001
  Prefactor  = 35.6759
  Prefactor  = 0.0001
  Prefactor  = 5.6069
  Prefactor  = 0.0001
  Prefactor  = 6.13156
  Prefactor  = 151.133
  norm       = 3.78644
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.97325
  Prefactor  = 0.0001
  norm       = 12.3698
  Prefactor  = 14.941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.235
  Prefactor  = 0.0001
  Prefactor  = 61.0967
  Prefactor  = 9.65799
  norm       = 0.0001
  Normalizat = 1.51489
  Prefactor  = 0.664317
 **********
 **   18 **HESSE 
 **********

 FCN=   4985.778     FROM HESSE     STATUS=OK           545 CALLS     4263 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.913        11.684        .97382E-04   -1.4885    
   2  norm          .10000E-03    1.4036        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.676        15.269        .67051E-04   -1.4513    
   4  Prefactor     .10000E-03    6.5272        .17614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.6069        10.670        .16974E-03   -1.5234    
   6  Prefactor     .10000E-03    5.1985        .15712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1316        6.4463        .16210E-03   -1.5213    
   8  Prefactor     151.13        120.23        .16384E-03   -1.3243    
   9  norm          3.7864        7.6718        .10372E-02   -1.5319    
  10  Prefactor     .10000E-03    1.4371        .82584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.8737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9733        3.8327        .95992E-04   -1.5180    
  13  Prefactor     .10000E-03    25.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.370        8.0609        .11389E-03   -1.5004    
  15  Prefactor     14.941        6.5759        .51803E-03   -1.4935    
  16  Prefactor     .10000E-03    7.5678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1291        .12196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.4853        .12857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.235        44.138        .74051E-04   -1.4626    
  24  Prefactor     .10000E-03    83.858        .36292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     61.097        53.127        .25668E-03   -1.4143    
  26  Prefactor     9.6580        14.021        .12905E-03   -1.5086    
  27  norm          .10000E-03    1.2489        .76804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5149        .29035        .25899E-03   -.77361    
  29  Prefactor     .66432        .21753        .29339E-03   -1.0494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90217e-10
Minuit parameter uncertainties:
  1  11.6859
  2  5.69508e-06
  3  15.271
  4  1.12801e-06
  5  10.6739
  6  1.27824e-05
  7  6.44706
  8  120.425
  9  7.67382
  10  3.80992e-06
  11  1.08997e-05
  12  3.83281
  13  7.79305e-06
  14  8.06159
  15  6.57626
  16  4.97962e-06
  17  8.56602e-05
  18  1.01357e-07
  19  2.53628e-05
  20  1.89714e-06
  21  2.81338e-06
  22  1.23851e-05
  23  44.1869
  24  0.000120064
  25  53.1681
  26  14.0253
  27  8.27726e-07
  28  0.290669
  29  0.217808
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  6.973e+00  3.833e+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:  6.643e-01  2.178e-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.515e+00  2.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.46
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 5.68e-08
Energy Flux (Fixed Index): 5.26e-05 +/- 2.89e-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) = 4985.05811882
delta logL = 0.720016382798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4985.05362947
delta logL = 0.724505730358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0242       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6572       1.0000          .0000       10.000    
     3 'Normalizat'    1.4265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70227       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=   4985.054     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0245        3.4819        .63293E-04   -.12681E-02
   2  Index         2.6574        .45295        .36942E-02   -.23660E-03
   3  Normalizat    1.4263        .28567        .26501E-03    .10762E-03
   4  Prefactor     .70230        .21760        .28565E-03    .14984E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.02447
  Index      = 2.65738
  Normalizat = 1.42633
  Prefactor  = 0.7023
 **********
 **   18 **HESSE 
 **********

 FCN=   4985.054     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0245        3.2718        .25317E-05   -1.5260    
   2  Index         2.6574        .42516        .14777E-03   -.48762    
   3  Normalizat    1.4263        .28555        .53002E-04   -.79870    
   4  Prefactor     .70230        .21760        .11426E-04   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34019e-10
Minuit parameter uncertainties:
  1  3.27192
  2  0.425816
  3  0.285867
  4  0.217861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918056': 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) = 4985.05362906
delta logL = 0.724506145108

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  5.024e+00  3.272e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.657e+00  4.258e-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:  7.023e-01  2.179e-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.426e+00  2.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.01
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.66 +/- 0.43
Photon Flux (Free Index): 1.79e-07 +/- 9.14e-08
Energy Flux (Free Index): 4.45e-05 +/- 1.95e-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/918056/cmap_HighResolution_281836801_282096001_4FGL_J1132.7+0034_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='4.45e-05', photon_flux_error='5.68e-08', dlogl='7.25e-01', energy_flux='5.26e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-04 03:46:17.915658', photon_index_error2='0.43', photon_index2='2.66', ts='12.46', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.51', time_epoch_completed='1630752377.92', return_code='0', job_id='918056', GAL2='0.70', EG2='1.43', return_code2='0', energy_flux_error='2.89e-05', photon_flux_error2='9.14e-08', ts2='14.01', photon_index='2.14' WHERE bin_id='164' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:46:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 918056: <4FGL_J1132.7+0034_daily_bin164> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin164 173.196 0.5737 281836801 282096001 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 :                                   680.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            869 sec.

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

