/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 34 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 = 7309
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin955
RA = 173.196, Dec = 0.5737
tmin = 486864001, tmax = 487123201
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='921499', job_status='RUN', time_executed='2021-09-04 03:42:42.262215', time_epoch_executed='1630752162.26' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921499/ft1_4FGL_J1132.7+0034_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921499/ft2_4FGL_J1132.7+0034_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921499/ft1_4FGL_J1132.7+0034_daily_bin955.fits outfile=/scratch/kocevski/921499/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin955.fits ra=173.196 dec=0.5737 rad=12.0 tmin=486864001.0 tmax=487123201.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.60
user 3.32
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921499/ft1_filtered_4FGL_J1132.7+0034_daily_bin955.fits" evtable="EVENTS" scfile=/scratch/kocevski/921499/ft2_4FGL_J1132.7+0034_daily_bin955.fits sctable="SC_DATA" outfile=/scratch/kocevski/921499/ltcube_486864001_487123201_4FGL_J1132.7+0034_daily_bin955.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/921499/ft2_4FGL_J1132.7+0034_daily_bin955.fits
.....................!
real 11.83
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921499/ft1_filtered_4FGL_J1132.7+0034_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/921499/ft2_4FGL_J1132.7+0034_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/921499/ltcube_486864001_487123201_4FGL_J1132.7+0034_daily_bin955.fits outfile=/scratch/kocevski/921499/expmap_486864001_487123201_4FGL_J1132.7+0034_daily_bin955.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/921499/ltcube_486864001_487123201_4FGL_J1132.7+0034_daily_bin955.fits
.....................!
real 190.75
user 185.90
sys 4.45

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/921499/ft1_filtered_4FGL_J1132.7+0034_daily_bin955.fits scfile=/scratch/kocevski/921499/ft2_4FGL_J1132.7+0034_daily_bin955.fits outfile=/scratch/kocevski/921499/cmap_486864001_487123201_4FGL_J1132.7+0034_daily_bin955.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921499/ft1_filtered_4FGL_J1132.7+0034_daily_bin955.fits scfile=/scratch/kocevski/921499/ft2_4FGL_J1132.7+0034_daily_bin955.fits outfile=/scratch/kocevski/921499/cmap_HighResolution_486864001_487123201_4FGL_J1132.7+0034_daily_bin955.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921499/ft1_filtered_4FGL_J1132.7+0034_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/921499/ft2_4FGL_J1132.7+0034_daily_bin955.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921499/Model_4FGL_J1132.7+0034_daily_bin955.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/921499/ft1_filtered_4FGL_J1132.7+0034_daily_bin955.fits.....................!
real 64.28
user 62.49
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .78789       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8576       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9392       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22425E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66419E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0733       1.0000         .10000E-03   10000.    
    11 'norm      '    11.158       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3365       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8375       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0444       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11996E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.838       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7051       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13122E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    3.1933       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1459       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99476       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=   6805.273     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3230 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.2995       -.15356E-05** at limit **
   2  norm          .78785        .58099       -.54101E-06    .10413E-02
   3  Prefactor     1.8589        12.945        .13041E-04    .13189E-03
   4  Prefactor     .10000E-03    26.134       -.70955E-06** at limit **
   5  Prefactor     6.9200        14.029       -.19000E-05   -.47806E-03
   6  Prefactor     .10008E-03    13.883       -.55097E-05** at limit **
   7  Prefactor     .10002E-03    2.4677       -.32095E-06** at limit **
   8  Prefactor     .10000E-03    27.237        .51175E-07** at limit **
   9  norm          12.634        11.569       -.65751E-06   -.39723E-03
  10  Prefactor     2.0739        4.8854        .38181E-06   -.12729E-04
  11  norm          11.159        16.022       -.78878E-07    .16267E-04
  12  Prefactor     4.3366        2.3409        .31074E-07    .24270E-03
  13  Prefactor     .10000E-03    7.8056       -.11766E-06** at limit **
  14  norm          .10000E-03    6.5191       -.30587E-06** at limit **
  15  Prefactor     5.8381        3.6894        .40864E-07    .58766E-04
  16  Prefactor     1.0336        22.490        .31675E-05   -.69320E-04
  17  Prefactor     .10000E-03    112.44        .47288E-06** at limit **
  18  Prefactor     .10000E-03    4.9836        .56311E-07** at limit **
  19  Prefactor     .10000E-03    17.184       -.88420E-07** at limit **
  20  Prefactor     .10000E-03    11.812        .25673E-06** at limit **
  21  Prefactor     .10000E-03    3.3140       -.89111E-07** at limit **
  22  Prefactor     18.849        21.280        .17023E-07   -.10311E-04
  23  Prefactor     .10001E-03    23.767        .15794E-05** at limit **
  24  Prefactor     .10000E-03    7.9364       -.30354E-07** at limit **
  25  Prefactor     3.7483        132.68       -.13033E-05    .60695E-04
  26  Prefactor     .10011E-03    7.0279        .33924E-05** at limit **
  27  norm          3.1944        2.5574        .24288E-07   -.30627E-03
  28  Normalizat    1.1458        .19436       -.59342E-06    .44663E-03
  29  Prefactor     .99472        .15285        .31820E-06    .52090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  norm       = 0.787854
  Prefactor  = 1.85887
  Prefactor  = 0.000100001
  Prefactor  = 6.92003
  Prefactor  = 0.00010008
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 12.6338
  Prefactor  = 2.07394
  norm       = 11.1587
  Prefactor  = 4.33657
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.83812
  Prefactor  = 1.03355
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8489
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 3.74831
  Prefactor  = 0.000100105
  norm       = 3.19437
  Normalizat = 1.14585
  Prefactor  = 0.994717
 **********
 **   18 **HESSE 
 **********

 FCN=   6805.273     FROM HESSE     STATUS=OK           559 CALLS     3789 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    48.025        .38862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .78785        .58441        .44895E-04   -1.5530    
   3  Prefactor     1.8589        14.042        .15289E-02   -1.5435    
   4  Prefactor     .10000E-03    26.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9200        12.720        .15230E-03   -1.5182    
   6  Prefactor     .10008E-03    49.363        .42683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    20.890        .22997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.634        10.831        .11264E-03   -1.4997    
  10  Prefactor     2.0739        4.7486        .23112E-03   -1.5420    
  11  norm          11.159        15.914        .11993E-03   -1.5040    
  12  Prefactor     4.3366        2.3389        .89042E-04   -1.5291    
  13  Prefactor     .10000E-03    7.8136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.7235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8381        3.6745        .12021E-03   -1.5225    
  16  Prefactor     1.0336        142.65        .72534E-02   -1.5505    
  17  Prefactor     .10000E-03    112.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9986        .17985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3224        .14667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.849        21.280        .92280E-04   -1.4839    
  23  Prefactor     .10001E-03    23.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.9551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.7483        132.39        .20980E-03   -1.5321    
  26  Prefactor     .10011E-03    68.266        .37671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.1944        2.4462        .10943E-03   -1.5350    
  28  Normalizat    1.1458        .22413        .27274E-03   -.88293    
  29  Prefactor     .99472        .17965        .23480E-03   -.92906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47214e-08
Minuit parameter uncertainties:
  1  0.00144233
  2  0.584415
  3  10.221
  4  0.000336122
  5  12.7254
  6  0.00398516
  7  0.00119079
  8  0.000130623
  9  10.8328
  10  4.74945
  11  15.9203
  12  2.33898
  13  3.28893e-06
  14  6.17488e-05
  15  3.67466
  16  24.3429
  17  0.000511153
  18  8.74348e-06
  19  7.12176e-05
  20  6.65409e-05
  21  1.32266e-05
  22  21.2888
  23  0.000817214
  24  3.96573e-05
  25  44.6604
  26  0.0053656
  27  2.4463
  28  0.224322
  29  0.179754
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.337e+00  2.339e+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:  9.947e-01  1.798e-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.146e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.09
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.43e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 3.27e-05 +/- 1.77e-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) = 6805.03266819
delta logL = 0.240279105431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6805.023443
delta logL = 0.249504299962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7969       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8718       1.0000          .0000       10.000    
     3 'Normalizat'    1.1608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98888       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=   6805.023     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7982        78.055        .45923E-02    .86510E-04
   2  Index         1.8722        5.8202        .16890        .37228E-04
   3  Normalizat    1.1607        .24067        .61323E-01    .14821E-05
   4  Prefactor     .98891        .16264        .46128E-01    .89475E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.79819
  Index      = 1.87222
  Normalizat = 1.16073
  Prefactor  = 0.988915
 **********
 **   18 **HESSE 
 **********

 FCN=   6805.023     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7982        2.6747        .97284E-04   -1.5270    
   2  Index         1.8722        .36569        .65492E-02   -.67584    
   3  Normalizat    1.1607        .21945        .27123E-03   -.87825    
   4  Prefactor     .98891        .17783        .23542E-03   -.93100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33886e-12
Minuit parameter uncertainties:
  1  2.67473
  2  0.366228
  3  0.219619
  4  0.177938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921499': 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) = 6805.02344219
delta logL = 0.249505109504

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.798e+00  2.675e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.872e+00  3.662e-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:  9.889e-01  1.779e-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.161e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.58
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.87 +/- 0.37
Photon Flux (Free Index): 4.91e-08 +/- 3.49e-08
Energy Flux (Free Index): 4.76e-05 +/- 3.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/921499/cmap_HighResolution_486864001_487123201_4FGL_J1132.7+0034_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.43e-08', energy_flux2='4.76e-05', photon_flux_error='3.47e-08', dlogl='2.50e-01', energy_flux='3.27e-05', photon_flux2='4.91e-08', job_status='DONE', time_completed='2021-09-04 03:55:15.127393', photon_index_error2='0.37', photon_index2='1.87', ts='8.09', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.88e-05', EG='1.15', time_epoch_completed='1630752915.13', return_code='0', job_id='921499', GAL2='0.99', EG2='1.16', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='3.49e-08', ts2='8.58', photon_index='2.14' WHERE bin_id='955' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:55:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 921499: <4FGL_J1132.7+0034_daily_bin955> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin955 173.196 0.5737 486864001 487123201 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 :                                   749.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

