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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin306
RA = 173.196, Dec = 0.5737
tmin = 318643201, tmax = 318902401
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='918244', job_status='RUN', time_executed='2021-09-04 03:35:44.438139', time_epoch_executed='1630751744.44' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918244/ft1_4FGL_J1132.7+0034_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918244/ft2_4FGL_J1132.7+0034_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918244/ft1_4FGL_J1132.7+0034_daily_bin306.fits outfile=/scratch/kocevski/918244/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin306.fits ra=173.196 dec=0.5737 rad=12.0 tmin=318643201.0 tmax=318902401.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.53
user 3.13
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918244/ft2_4FGL_J1132.7+0034_daily_bin306.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/918244/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin306.fits evtable="EVENTS" outfile="/scratch/kocevski/918244/ft1_filtered_4FGL_J1132.7+0034_daily_bin306.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.61
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918244/ft1_filtered_4FGL_J1132.7+0034_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/918244/ft2_4FGL_J1132.7+0034_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/918244/ltcube_318643201_318902401_4FGL_J1132.7+0034_daily_bin306.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/918244/ft2_4FGL_J1132.7+0034_daily_bin306.fits
.....................!
real 12.34
user 11.93
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918244/ft1_filtered_4FGL_J1132.7+0034_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/918244/ft2_4FGL_J1132.7+0034_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/918244/ltcube_318643201_318902401_4FGL_J1132.7+0034_daily_bin306.fits outfile=/scratch/kocevski/918244/expmap_318643201_318902401_4FGL_J1132.7+0034_daily_bin306.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/918244/ltcube_318643201_318902401_4FGL_J1132.7+0034_daily_bin306.fits
.....................!
real 192.63
user 187.84
sys 4.42

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/918244/ft1_filtered_4FGL_J1132.7+0034_daily_bin306.fits scfile=/scratch/kocevski/918244/ft2_4FGL_J1132.7+0034_daily_bin306.fits outfile=/scratch/kocevski/918244/cmap_318643201_318902401_4FGL_J1132.7+0034_daily_bin306.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.13

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918244/ft1_filtered_4FGL_J1132.7+0034_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/918244/ft2_4FGL_J1132.7+0034_daily_bin306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918244/Model_4FGL_J1132.7+0034_daily_bin306.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/918244/ft1_filtered_4FGL_J1132.7+0034_daily_bin306.fits.....................!
real 47.51
user 46.15
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .81520       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24549E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53342       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    95.621       1.0000         .10000E-03   10000.    
     9 'norm      '    12.728       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12916E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    29.984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.514       1.0000         .10000E-03   10000.    
    14 'norm      '    3.9280       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12975E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    67.355       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.853       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13458E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.7785       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4133       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63665       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=   4775.159     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3742 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1018       -.12536E-06** at limit **
   2  norm          .81615        .56240        .10554E-06    .35770E-02
   3  Prefactor     .10004E-03    13.651        .29723E-05** at limit **
   4  Prefactor     .39608        81.543        .16108E-04   -.13231E-03
   5  Prefactor     .10000E-03    7.8589       -.21969E-06** at limit **
   6  Prefactor     .10000E-03    4.6664       -.97999E-07** at limit **
   7  Prefactor     .10000E-03    4.2757       -.20741E-06** at limit **
   8  Prefactor     95.620        67.591        .95708E-07    .14006E-04
   9  norm          12.744        10.739        .74731E-06    .13056E-03
  10  Prefactor     .10000E-03    15.969        .56124E-05** at limit **
  11  norm          30.039        27.517        .86093E-06    .66093E-04
  12  Prefactor     4.6047        2.5023        .41848E-07    .73205E-04
  13  Prefactor     12.545        34.917        .44770E-05    .41096E-04
  14  norm          3.9281        4.8382        .28276E-06    .12656E-03
  15  Prefactor     1.4428        3.8212       -.15983E-05   -.37916E-03
  16  Prefactor     .10001E-03    114.10       -.26487E-05** at limit **
  17  Prefactor     .10000E-03    43.505        .85893E-06** at limit **
  18  Prefactor     .10000E-03    3.1734        .52031E-07** at limit **
  19  Prefactor     .10000E-03    18.393       -.71386E-07** at limit **
  20  Prefactor     .10000E-03    5.4959        .24605E-05** at limit **
  21  Prefactor     .10000E-03    13.944       -.59287E-06** at limit **
  22  Prefactor     .10000E-03    38.026       -.38344E-06** at limit **
  23  Prefactor     67.276        55.985        .95372E-06    .13258E-03
  24  Prefactor     20.841        21.724       -.82091E-07   -.28186E-04
  25  Prefactor     .10002E-03    143.44        .10209E-04** at limit **
  26  Prefactor     .10000E-03    6.2086        .25733E-06** at limit **
  27  norm          2.7787        2.5850       -.53941E-07    .88990E-05
  28  Normalizat    1.4142        .24568       -.31817E-05    .63556E-03
  29  Prefactor     .63610        .19038        .49059E-05    .13497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.816148
  Prefactor  = 0.000100038
  Prefactor  = 0.396084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.6201
  norm       = 12.7442
  Prefactor  = 0.0001
  norm       = 30.0389
  Prefactor  = 4.60474
  Prefactor  = 12.5454
  norm       = 3.92811
  Prefactor  = 1.4428
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.2764
  Prefactor  = 20.8407
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 2.7787
  Normalizat = 1.41416
  Prefactor  = 0.636096
 **********
 **   18 **HESSE 
 **********

 FCN=   4775.159     FROM HESSE     STATUS=OK           551 CALLS     4293 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1105        .11885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .81615        .51659        .38288E-04   -1.5527    
   3  Prefactor     .10004E-03    40.771        .37265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .39608        173.21        .49721E-02   -1.5582    
   5  Prefactor     .10000E-03    7.8766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6728        .14578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3651        .13927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     95.620        67.587        .41103E-04   -1.3749    
   9  norm          12.744        10.735        .11228E-03   -1.4994    
  10  Prefactor     .10000E-03    30.425        .23848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          30.039        27.536        .73169E-04   -1.4611    
  12  Prefactor     4.6047        2.5037        .77620E-04   -1.5279    
  13  Prefactor     12.545        34.927        .11324E-03   -1.4999    
  14  norm          3.9281        4.8132        .15893E-03   -1.5312    
  15  Prefactor     1.4428        3.8341        .20711E-03   -1.5468    
  16  Prefactor     .10001E-03    117.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1753        .12022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5827        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     67.276        56.160        .24453E-03   -1.4066    
  24  Prefactor     20.841        21.733        .87711E-04   -1.4795    
  25  Prefactor     .10002E-03    145.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.2200        .16809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.7787        2.5766        .10382E-03   -1.5375    
  28  Normalizat    1.4142        .26382        .23665E-03   -.80220    
  29  Prefactor     .63610        .20081        .26884E-03   -1.0609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20804e-09
Minuit parameter uncertainties:
  1  2.95509e-06
  2  0.516596
  3  0.00247607
  4  16.612
  5  1.40305e-05
  6  5.52503e-06
  7  5.9617e-06
  8  67.6417
  9  10.7365
  10  0.000126397
  11  27.548
  12  2.50372
  13  34.9838
  14  4.81364
  15  3.83472
  16  0.00163439
  17  0.000264475
  18  2.78441e-06
  19  4.21562e-05
  20  0.000121656
  21  3.23714e-05
  22  6.09519e-05
  23  56.2039
  24  21.7412
  25  0.00350856
  26  1.49945e-05
  27  2.57666
  28  0.264073
  29  0.201033
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.605e+00  2.504e+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.361e-01  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:  1.414e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.32
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.83e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 1.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) = 4774.45483803
delta logL = 0.70465016432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4774.42856425
delta logL = 0.730923947362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9569       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6237       1.0000          .0000       10.000    
     3 'Normalizat'    1.4493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62067       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=   4774.429     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9569        2.9069        .45160E-02   -.46630E-02
   2  Index         1.6238        .36326        .15595       -.14401E-04
   3  Normalizat    1.4492        .21205        .52980E-01    .14566E-04
   4  Prefactor     .62068        .16860        .61461E-01    .10430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.95693
  Index      = 1.62378
  Normalizat = 1.44924
  Prefactor  = 0.620683
 **********
 **   18 **HESSE 
 **********

 FCN=   4774.429     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9569        2.9113        .84997E-04   -1.5263    
   2  Index         1.6238        .39113        .63887E-02   -.74129    
   3  Normalizat    1.4492        .24778        .23424E-03   -.79215    
   4  Prefactor     .62068        .19698        .27190E-03   -1.0672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56294e-09
Minuit parameter uncertainties:
  1  2.91135
  2  0.391864
  3  0.247991
  4  0.197203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918244': 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) = 4774.42856424
delta logL = 0.73092395624

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.957e+00  2.911e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.624e+00  3.919e-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:  6.207e-01  1.972e-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.449e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.81
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.62 +/- 0.39
Photon Flux (Free Index): 3.86e-08 +/- 2.92e-08
Energy Flux (Free Index): 8.08e-05 +/- 7.89e-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/918244/cmap_HighResolution_318643201_318902401_4FGL_J1132.7+0034_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.83e-08', energy_flux2='8.08e-05', photon_flux_error='3.71e-08', dlogl='7.31e-01', energy_flux='3.48e-05', photon_flux2='3.86e-08', job_status='DONE', time_completed='2021-09-04 03:46:47.358109', photon_index_error2='0.39', photon_index2='1.62', ts='14.32', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='7.89e-05', EG='1.41', time_epoch_completed='1630752407.36', return_code='0', job_id='918244', GAL2='0.62', EG2='1.45', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='2.92e-08', ts2='15.81', photon_index='2.14' WHERE bin_id='306' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:46:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 918244: <4FGL_J1132.7+0034_daily_bin306> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin306 173.196 0.5737 318643201 318902401 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

