/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 129 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 = 7429
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin500
RA = 173.196, Dec = 0.5737
tmin = 368928001, tmax = 369187201
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='919533', job_status='RUN', time_executed='2021-09-04 03:38:29.049716', time_epoch_executed='1630751909.05' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919533

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919533/ft1_4FGL_J1132.7+0034_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919533/ft2_4FGL_J1132.7+0034_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919533/ft1_4FGL_J1132.7+0034_daily_bin500.fits outfile=/scratch/kocevski/919533/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin500.fits ra=173.196 dec=0.5737 rad=12.0 tmin=368928001.0 tmax=369187201.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.32
user 3.10
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919533/ft2_4FGL_J1132.7+0034_daily_bin500.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/919533/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin500.fits evtable="EVENTS" outfile="/scratch/kocevski/919533/ft1_filtered_4FGL_J1132.7+0034_daily_bin500.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919533/ft1_filtered_4FGL_J1132.7+0034_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/919533/ft2_4FGL_J1132.7+0034_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/919533/ltcube_368928001_369187201_4FGL_J1132.7+0034_daily_bin500.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/919533/ft2_4FGL_J1132.7+0034_daily_bin500.fits
.....................!
real 11.94
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919533/ft1_filtered_4FGL_J1132.7+0034_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/919533/ft2_4FGL_J1132.7+0034_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/919533/ltcube_368928001_369187201_4FGL_J1132.7+0034_daily_bin500.fits outfile=/scratch/kocevski/919533/expmap_368928001_369187201_4FGL_J1132.7+0034_daily_bin500.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/919533/ltcube_368928001_369187201_4FGL_J1132.7+0034_daily_bin500.fits
.....................!
real 190.52
user 185.73
sys 4.29

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/919533/ft1_filtered_4FGL_J1132.7+0034_daily_bin500.fits scfile=/scratch/kocevski/919533/ft2_4FGL_J1132.7+0034_daily_bin500.fits outfile=/scratch/kocevski/919533/cmap_368928001_369187201_4FGL_J1132.7+0034_daily_bin500.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919533/ft1_filtered_4FGL_J1132.7+0034_daily_bin500.fits scfile=/scratch/kocevski/919533/ft2_4FGL_J1132.7+0034_daily_bin500.fits outfile=/scratch/kocevski/919533/cmap_HighResolution_368928001_369187201_4FGL_J1132.7+0034_daily_bin500.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/919533/ft1_filtered_4FGL_J1132.7+0034_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/919533/ft2_4FGL_J1132.7+0034_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919533/Model_4FGL_J1132.7+0034_daily_bin500.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/919533/ft1_filtered_4FGL_J1132.7+0034_daily_bin500.fits.....................!
real 58.60
user 57.16
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19727E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .22590E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.199       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.410       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5418       1.0000         .10000E-03   10000.    
    11 'norm      '    41.536       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    101.67       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.2205       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.5395       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88210       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.5727       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=   5921.990     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3803 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    11.643       -.43384E-05** at limit **
   2  norm          .21978E-01    .52485        .39868E-06   -.26632E-03
   3  Prefactor     27.204        12.687       -.84134E-06   -.72348E-03
   4  Prefactor     33.365        30.005       -.68476E-06   -.88044E-04
   5  Prefactor     .10000E-03    4.6996        .16551E-06** at limit **
   6  Prefactor     .10000E-03    4.1925        .20931E-06** at limit **
   7  Prefactor     .10000E-03    1.4942        .20061E-06** at limit **
   8  Prefactor     .10000E-03    32.493        .30980E-06** at limit **
   9  norm          .10000E-03    2.8712        .11767E-06** at limit **
  10  Prefactor     4.5413        5.4669        .33979E-06    .30467E-03
  11  norm          41.531        40.927        .10337E-06   -.98516E-06
  12  Prefactor     .10000E-03    1.3236        .41908E-06** at limit **
  13  Prefactor     .10000E-03    12.903        .34613E-06** at limit **
  14  norm          .10000E-03    7.2227        .14743E-05** at limit **
  15  Prefactor     .10000E-03    1.1954        .21201E-06** at limit **
  16  Prefactor     .10000E-03    11.139        .20223E-06** at limit **
  17  Prefactor     101.64        102.58       -.13226E-05   -.56196E-04
  18  Prefactor     .10000E-03    2.2681       -.55923E-07** at limit **
  19  Prefactor     .10000E-03    41.014        .67367E-06** at limit **
  20  Prefactor     .10000E-03    3.5628       -.30452E-06** at limit **
  21  Prefactor     .10000E-03    9.9723        .56974E-06** at limit **
  22  Prefactor     .10000E-03    18.582        .81847E-07** at limit **
  23  Prefactor     9.1893        34.325       -.11776E-05   -.52930E-04
  24  Prefactor     .10000E-03    13.402        .37099E-06** at limit **
  25  Prefactor     .10000E-03    31.401       -.66526E-06** at limit **
  26  Prefactor     .10000E-03    8.6529       -.75058E-07** at limit **
  27  norm          1.5392        2.4882        .23739E-06    .27045E-03
  28  Normalizat    .88223        .25582        .57536E-05    .29303E-04
  29  Prefactor     1.5727        .21253       -.39526E-05   -.26412E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100092
  norm       = 0.021978
  Prefactor  = 27.2036
  Prefactor  = 33.3652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.54135
  norm       = 41.5306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.18931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.53922
  Normalizat = 0.882232
  Prefactor  = 1.57268
 **********
 **   18 **HESSE 
 **********

 FCN=   5921.990     FROM HESSE     STATUS=OK           543 CALLS     4346 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    22.922        .32597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .21978E-01    2.1126        .95979E-03   -1.5678    
   3  Prefactor     27.204        12.586        .76815E-04   -1.4664    
   4  Prefactor     33.365        30.065        .69326E-04   -1.4552    
   5  Prefactor     .10000E-03    4.7064        .16297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2078        .15396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5008        .91948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.8751        .12736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5413        5.4691        .16659E-03   -1.5282    
  11  norm          41.531        40.946        .62199E-04   -1.4418    
  12  Prefactor     .10000E-03    1.3506        .86821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.6714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2029        .82267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     101.64        102.74        .19937E-03   -1.3688    
  18  Prefactor     .10000E-03    2.2688        .11319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5897        .14197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.1893        34.430        .13199E-03   -1.5102    
  24  Prefactor     .10000E-03    13.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    31.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.6988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.5392        2.4626        .15008E-03   -1.5460    
  28  Normalizat    .88223        .27908        .34117E-03   -.97087    
  29  Prefactor     1.5727        .23500        .22705E-03   -.75524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90502e-08
Minuit parameter uncertainties:
  1  0.00290976
  2  0.429994
  3  12.587
  4  30.0782
  5  1.66011e-05
  6  2.34027e-05
  7  1.23484e-05
  8  0.000114442
  9  1.01078e-05
  10  5.46972
  11  40.9739
  12  2.41631e-05
  13  7.01494e-05
  14  0.00020837
  15  1.15547e-05
  16  3.46509e-05
  17  102.922
  18  4.47648e-06
  19  0.000234514
  20  2.91006e-05
  21  7.81395e-05
  22  9.28787e-07
  23  34.505
  24  7.71558e-05
  25  0.00016892
  26  2.85512e-05
  27  2.46272
  28  0.279538
  29  0.235166
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.416e-05  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.573e+00  2.352e-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:  8.822e-01  2.795e-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: 8.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919533/likelihoodResults_368928001_369187201_4FGL_J1132.7+0034_daily_bin500.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) = 5921.99304741
delta logL = -0.00348877357555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5921.98955882
delta logL = -1.85315002454e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1344       1.0000          .0000       10.000    
     3 'Normalizat'    .88228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5727       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=   5921.990     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9010        .90712E-02** at limit **
   2  Index         2.1333        7.0923        .50000        .69473E-05
   3  Normalizat    .88223        .68371E-02    .77079E-01    .35967E-04
   4  Prefactor     1.5727        .58743E-02    .51361E-01    .20813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13329
  Normalizat = 0.882227
  Prefactor  = 1.57268
 **********
 **   18 **HESSE 
 **********

 FCN=   5921.990     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.551        .86826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1333        5.1376        .50000       -.61058    
   3  Normalizat    .88223        .27336E-01    .34116E-03   -.97087    
   4  Prefactor     1.5727        .23529E-01    .22705E-03   -.75524    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03297e-07
Minuit parameter uncertainties:
  1  8.05157e-06
  2  187.762
  3  0.0273364
  4  0.0235291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919533': 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): 102
logL (Free Index) = 5921.98955863
delta logL = 4.11000655731e-09

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  8.052e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.133e+00  1.878e+02  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.573e+00  2.353e-02  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:  8.822e-01  2.734e-02  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/919533/cmap_HighResolution_368928001_369187201_4FGL_J1132.7+0034_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.37e-08', time_completed='2021-09-04 03:52:37.267364', job_id='919533', GAL2='1.57', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630752757.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.57', dlogl='4.11e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='500' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 919533: <4FGL_J1132.7+0034_daily_bin500> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin500 173.196 0.5737 368928001 369187201 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 :                                   846.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

