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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin923
RA = 173.196, Dec = 0.5737
tmin = 478569601, tmax = 478828801
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='921449', job_status='RUN', time_executed='2021-09-04 03:45:49.768398', time_epoch_executed='1630752349.77' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921449

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921449/ft1_4FGL_J1132.7+0034_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921449/ft2_4FGL_J1132.7+0034_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921449/ft1_4FGL_J1132.7+0034_daily_bin923.fits outfile=/scratch/kocevski/921449/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin923.fits ra=173.196 dec=0.5737 rad=12.0 tmin=478569601.0 tmax=478828801.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.49
user 3.21
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921449/ft1_filtered_4FGL_J1132.7+0034_daily_bin923.fits" evtable="EVENTS" scfile=/scratch/kocevski/921449/ft2_4FGL_J1132.7+0034_daily_bin923.fits sctable="SC_DATA" outfile=/scratch/kocevski/921449/ltcube_478569601_478828801_4FGL_J1132.7+0034_daily_bin923.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/921449/ft2_4FGL_J1132.7+0034_daily_bin923.fits
.....................!
real 12.06
user 11.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921449/ft1_filtered_4FGL_J1132.7+0034_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/921449/ft2_4FGL_J1132.7+0034_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/921449/ltcube_478569601_478828801_4FGL_J1132.7+0034_daily_bin923.fits outfile=/scratch/kocevski/921449/expmap_478569601_478828801_4FGL_J1132.7+0034_daily_bin923.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/921449/ltcube_478569601_478828801_4FGL_J1132.7+0034_daily_bin923.fits
.....................!
real 190.65
user 185.07
sys 5.12

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/921449/ft1_filtered_4FGL_J1132.7+0034_daily_bin923.fits scfile=/scratch/kocevski/921449/ft2_4FGL_J1132.7+0034_daily_bin923.fits outfile=/scratch/kocevski/921449/cmap_478569601_478828801_4FGL_J1132.7+0034_daily_bin923.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.56
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921449/ft1_filtered_4FGL_J1132.7+0034_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/921449/ft2_4FGL_J1132.7+0034_daily_bin923.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921449/Model_4FGL_J1132.7+0034_daily_bin923.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/921449/ft1_filtered_4FGL_J1132.7+0034_daily_bin923.fits.....................!
real 55.41
user 53.94
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3005       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3616       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.176       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0756       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    32.947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3310       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16192E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9077       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5751       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4298       1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.765       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    133.67       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .28631       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.2226       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3238       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87906       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=   5673.024     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     3752 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4159        .22669E-06** at limit **
   2  norm          1.3006        .63026        .54443E-07    .41215E-03
   3  Prefactor     .10000E-03    4.8561        .15448E-06** at limit **
   4  Prefactor     8.2947        28.994        .14255E-05    .64264E-04
   5  Prefactor     10.171        19.134        .52024E-06    .38325E-04
   6  Prefactor     .10000E-03    8.1196        .48976E-06** at limit **
   7  Prefactor     4.0748        4.3536        .97283E-07    .90314E-04
   8  Prefactor     .10000E-03    29.199        .19773E-06** at limit **
   9  norm          .10000E-03    2.8711        .93283E-08** at limit **
  10  Prefactor     .10000E-03    2.4766       -.21048E-06** at limit **
  11  norm          32.949        28.795       -.63657E-06   -.32594E-05
  12  Prefactor     3.3307        2.5361        .47569E-07    .84324E-04
  13  Prefactor     .10000E-03    95.588       -.32600E-05** at limit **
  14  norm          5.9054        6.7188        .57909E-06    .49309E-03
  15  Prefactor     .10000E-03    3.0907       -.11255E-05** at limit **
  16  Prefactor     2.5756        16.230        .10048E-05    .59916E-04
  17  Prefactor     .10000E-03    30.843       -.20717E-06** at limit **
  18  Prefactor     .10000E-03    8.2661       -.31235E-06** at limit **
  19  Prefactor     .10000E-03    50.157       -.54495E-06** at limit **
  20  Prefactor     4.4321        5.9765        .22871E-06    .13023E-03
  21  Prefactor     42.791        22.892        .94539E-06    .39129E-03
  22  Prefactor     .10000E-03    36.268       -.74279E-06** at limit **
  23  Prefactor     133.69        55.064        .47698E-06    .68746E-04
  24  Prefactor     .39920E-03    29.267       -.35550E-05** at limit **
  25  Prefactor     .10000E-03    23.299       -.18822E-06** at limit **
  26  Prefactor     .10000E-03    8.7932       -.23798E-06** at limit **
  27  norm          2.2263        2.9430        .57308E-06    .65525E-03
  28  Normalizat    1.3237        .26738       -.36907E-05    .48795E-03
  29  Prefactor     .87943        .19613        .37366E-05    .36965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.3006
  Prefactor  = 0.0001
  Prefactor  = 8.29466
  Prefactor  = 10.1708
  Prefactor  = 0.0001
  Prefactor  = 4.07479
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 32.9491
  Prefactor  = 3.3307
  Prefactor  = 0.000100001
  norm       = 5.90536
  Prefactor  = 0.0001
  Prefactor  = 2.57557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.43205
  Prefactor  = 42.7915
  Prefactor  = 0.0001
  Prefactor  = 133.693
  Prefactor  = 0.000399197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.22628
  Normalizat = 1.32372
  Prefactor  = 0.87943
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.024     FROM HESSE     STATUS=OK           555 CALLS     4307 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4804        .15452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3006        .62499        .39765E-04   -1.5480    
   3  Prefactor     .10000E-03    4.8704        .16191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2947        29.012        .13864E-03   -1.5132    
   5  Prefactor     10.171        19.091        .12561E-03   -1.5070    
   6  Prefactor     .10000E-03    8.1248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0748        4.3419        .15524E-03   -1.5304    
   8  Prefactor     .10000E-03    29.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.8730        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4924        .11560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          32.949        28.673        .69810E-04   -1.4559    
  12  Prefactor     3.3307        2.5375        .10023E-03   -1.5343    
  13  Prefactor     .10000E-03    97.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9054        6.6894        .16522E-03   -1.5222    
  15  Prefactor     .10000E-03    5.5702        .24366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5756        16.219        .25434E-03   -1.5387    
  17  Prefactor     .10000E-03    30.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4321        5.9672        .19133E-03   -1.5287    
  21  Prefactor     42.791        23.039        .61302E-04   -1.4399    
  22  Prefactor     .10000E-03    36.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     133.69        55.026        .34831E-04   -1.3390    
  24  Prefactor     .39920E-03    31.352        .99508E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.8345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.2263        2.9564        .14366E-03   -1.5410    
  28  Normalizat    1.3237        .27757        .27500E-03   -.82861    
  29  Prefactor     .87943        .20383        .25856E-03   -.96864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24051e-09
Minuit parameter uncertainties:
  1  6.77747e-06
  2  0.624992
  3  4.17612e-06
  4  29.0615
  5  19.1027
  6  2.31055e-05
  7  4.34225
  8  5.93675e-05
  9  5.6823e-07
  10  5.20758e-06
  11  28.6846
  12  2.53753
  13  0.00075535
  14  6.69023
  15  5.37181e-05
  16  12.9313
  17  5.73359e-05
  18  2.10241e-05
  19  5.39363e-05
  20  5.96801
  21  23.0434
  22  0.000157256
  23  55.0469
  24  0.193807
  25  2.48014e-05
  26  3.22754e-05
  27  2.95657
  28  0.27788
  29  0.204005
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.331e+00  2.538e+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:  8.794e-01  2.040e-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.324e+00  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.37
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.94e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.92e-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) = 5673.02351682
delta logL = 2.38676566369e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5673.02351131
delta logL = 2.93813291137e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3344       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1304       1.0000          .0000       10.000    
     3 'Normalizat'    1.3241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87926       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=   5673.024     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      259 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3342        2.6007        .10047E-03    .16711E-02
   2  Index         2.1303        .69194        .93941E-02    .15329E-03
   3  Normalizat    1.3241        .25996        .27497E-03   -.85957E-04
   4  Prefactor     .87927        .20112        .25858E-03   -.13141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33425
  Index      = 2.13033
  Normalizat = 1.32412
  Prefactor  = 0.879268
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.024     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3342        2.5749        .20093E-04   -1.5343    
   2  Index         2.1303        .68401        .37576E-03   -.61130    
   3  Normalizat    1.3241        .25990        .10999E-04   -.82849    
   4  Prefactor     .87927        .20118        .10343E-04   -.96869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02273e-09
Minuit parameter uncertainties:
  1  2.57496
  2  0.687228
  3  0.260155
  4  0.201352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921449': 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) = 5673.02351128
delta logL = 2.94062674584e-05

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.334e+00  2.575e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.130e+00  6.872e-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:  8.793e-01  2.014e-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.324e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.36
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.13 +/- 0.69
Photon Flux (Free Index): 4.90e-08 +/- 5.81e-08
Energy Flux (Free Index): 2.52e-05 +/- 2.31e-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/921449/cmap_HighResolution_478569601_478828801_4FGL_J1132.7+0034_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.94e-08', energy_flux2='2.52e-05', photon_flux_error='3.76e-08', dlogl='2.94e-05', energy_flux='2.51e-05', photon_flux2='4.90e-08', job_status='DONE', time_completed='2021-09-04 03:57:54.658505', photon_index_error2='0.69', photon_index2='2.13', ts='7.37', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.31e-05', EG='1.32', time_epoch_completed='1630753074.66', return_code='0', job_id='921449', GAL2='0.88', EG2='1.32', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='5.81e-08', ts2='7.36', photon_index='2.14' WHERE bin_id='923' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:57:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 921449: <4FGL_J1132.7+0034_daily_bin923> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin923 173.196 0.5737 478569601 478828801 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 :                                   722.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            966 sec.

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

