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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin433
RA = 173.196, Dec = 0.5737
tmin = 351561601, tmax = 351820801
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='919435', job_status='RUN', time_executed='2021-09-04 03:38:56.371525', time_epoch_executed='1630751936.37' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919435

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919435/ft1_4FGL_J1132.7+0034_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919435/ft2_4FGL_J1132.7+0034_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919435/ft1_4FGL_J1132.7+0034_daily_bin433.fits outfile=/scratch/kocevski/919435/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin433.fits ra=173.196 dec=0.5737 rad=12.0 tmin=351561601.0 tmax=351820801.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 6.85
user 6.58
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919435/ft1_filtered_4FGL_J1132.7+0034_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/919435/ft2_4FGL_J1132.7+0034_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/919435/ltcube_351561601_351820801_4FGL_J1132.7+0034_daily_bin433.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/919435/ft2_4FGL_J1132.7+0034_daily_bin433.fits
.....................!
real 11.62
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919435/ft1_filtered_4FGL_J1132.7+0034_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/919435/ft2_4FGL_J1132.7+0034_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/919435/ltcube_351561601_351820801_4FGL_J1132.7+0034_daily_bin433.fits outfile=/scratch/kocevski/919435/expmap_351561601_351820801_4FGL_J1132.7+0034_daily_bin433.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/919435/ltcube_351561601_351820801_4FGL_J1132.7+0034_daily_bin433.fits
.....................!
real 191.97
user 187.66
sys 3.98

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/919435/ft1_filtered_4FGL_J1132.7+0034_daily_bin433.fits scfile=/scratch/kocevski/919435/ft2_4FGL_J1132.7+0034_daily_bin433.fits outfile=/scratch/kocevski/919435/cmap_351561601_351820801_4FGL_J1132.7+0034_daily_bin433.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.57
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919435/ft1_filtered_4FGL_J1132.7+0034_daily_bin433.fits scfile=/scratch/kocevski/919435/ft2_4FGL_J1132.7+0034_daily_bin433.fits outfile=/scratch/kocevski/919435/cmap_HighResolution_351561601_351820801_4FGL_J1132.7+0034_daily_bin433.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919435/ft1_filtered_4FGL_J1132.7+0034_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/919435/ft2_4FGL_J1132.7+0034_daily_bin433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919435/Model_4FGL_J1132.7+0034_daily_bin433.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/919435/ft1_filtered_4FGL_J1132.7+0034_daily_bin433.fits.....................!
real 52.76
user 50.94
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.028       1.0000         .10000E-03   10000.    
     2 'norm      '    .69453       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11668E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1962       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.8478       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2044       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6376       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.644       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.817       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.884       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.367       1.0000         .10000E-03   10000.    
    27 'norm      '    .11467E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2809       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87051       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=   5075.054     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3639 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.027        10.600       -.11121E-06   -.85168E-05
   2  norm          .69447        .50125        .50138E-07   -.60259E-04
   3  Prefactor     .10000E-03    3.8609       -.48708E-07** at limit **
   4  Prefactor     34.441        24.810       -.21947E-06    .40291E-06
   5  Prefactor     .10000E-03    12.035       -.90046E-06** at limit **
   6  Prefactor     .10000E-03    8.2229       -.74295E-06** at limit **
   7  Prefactor     .10000E-03    2.8833        .35390E-07** at limit **
   8  Prefactor     .10000E-03    26.746        .44167E-05** at limit **
   9  norm          .10000E-03    20.719       -.50419E-05** at limit **
  10  Prefactor     10.015        7.3130       -.17908E-05   -.47458E-04
  11  norm          3.1858        49.703        .21968E-04    .12779E-04
  12  Prefactor     3.1962        3.0963        .18435E-06   -.18622E-03
  13  Prefactor     .10000E-03    19.481       -.60403E-05** at limit **
  14  norm          7.8479        6.8784        .66285E-06   -.49831E-04
  15  Prefactor     5.2046        4.6049        .29752E-05   -.19105E-03
  16  Prefactor     6.6239        43.014       -.32585E-04   -.19821E-04
  17  Prefactor     .10000E-03    42.505       -.75679E-05** at limit **
  18  Prefactor     23.644        14.120       -.53689E-07    .63748E-05
  19  Prefactor     .10000E-03    30.678        .11419E-04** at limit **
  20  Prefactor     .10000E-03    6.1400        .46173E-06** at limit **
  21  Prefactor     .10000E-03    16.077        .74041E-06** at limit **
  22  Prefactor     .10000E-03    13.363        .36088E-05** at limit **
  23  Prefactor     17.816        36.450       -.24125E-05    .15320E-05
  24  Prefactor     18.894        32.766        .11627E-04    .33043E-04
  25  Prefactor     .10000E-03    16.125        .10457E-05** at limit **
  26  Prefactor     16.380        14.536       -.14067E-05    .42649E-04
  27  norm          .10000E-03    2.1532       -.24604E-06** at limit **
  28  Normalizat    1.2810        .24888        .98036E-06   -.58922E-05
  29  Prefactor     .87038        .18919       -.11932E-05    .99559E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0274
  norm       = 0.694466
  Prefactor  = 0.0001
  Prefactor  = 34.4406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0153
  norm       = 3.18581
  Prefactor  = 3.19619
  Prefactor  = 0.000100001
  norm       = 7.84786
  Prefactor  = 5.20458
  Prefactor  = 6.62386
  Prefactor  = 0.0001
  Prefactor  = 23.6438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8156
  Prefactor  = 18.8937
  Prefactor  = 0.0001
  Prefactor  = 16.3795
  norm       = 0.0001
  Normalizat = 1.28096
  Prefactor  = 0.870382
 **********
 **   18 **HESSE 
 **********

 FCN=   5075.054     FROM HESSE     STATUS=OK           555 CALLS     4194 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.027        10.599        .91819E-04   -1.4835    
   2  norm          .69447        .49432        .41312E-04   -1.5541    
   3  Prefactor     .10000E-03    3.8693        .13663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.441        24.876        .68284E-04   -1.4534    
   5  Prefactor     .10000E-03    12.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8999        .11803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    21.326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.015        7.2523        .12650E-03   -1.5075    
  11  norm          3.1858        48.878        .22738E-03   -1.5351    
  12  Prefactor     3.1962        3.0908        .11695E-03   -1.5350    
  13  Prefactor     .10000E-03    19.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.8479        6.8691        .14314E-03   -1.5148    
  15  Prefactor     5.2046        4.5767        .13400E-03   -1.5252    
  16  Prefactor     6.6239        43.455        .15576E-03   -1.5193    
  17  Prefactor     .10000E-03    42.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.644        14.125        .82379E-04   -1.4735    
  19  Prefactor     .10000E-03    30.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1786        .17235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.816        36.498        .94886E-04   -1.4864    
  24  Prefactor     18.894        32.843        .92167E-04   -1.4838    
  25  Prefactor     .10000E-03    16.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.380        14.201        .99000E-04   -1.4898    
  27  norm          .10000E-03    5.0220        .19765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2810        .29991        .27321E-03   -.84136    
  29  Prefactor     .87038        .22564        .25658E-03   -.97184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05716e-10
Minuit parameter uncertainties:
  1  10.6003
  2  0.494324
  3  6.30777e-07
  4  24.8836
  5  2.11084e-05
  6  1.92478e-05
  7  1.26421e-05
  8  4.42654e-06
  9  0.000188662
  10  7.2529
  11  24.9813
  12  3.091
  13  0.000257138
  14  6.86976
  15  4.57701
  16  33.9674
  17  1.53248e-05
  18  14.1269
  19  9.38216e-05
  20  3.89151e-05
  21  0.000100016
  22  1.14307e-05
  23  36.5437
  24  32.8745
  25  3.57865e-06
  26  14.2038
  27  1.18226e-06
  28  0.30032
  29  0.225886
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.196e+00  3.091e+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.704e-01  2.259e-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.281e+00  3.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.74e-08 +/- 4.58e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 2.33e-05

TS (Fixed Index): 1.71
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919435/likelihoodResults_351561601_351820801_4FGL_J1132.7+0034_daily_bin433.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) = 5075.00661291
delta logL = 0.0477091365137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5074.99347752
delta logL = 0.0608445337393

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7253       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4426       1.0000          .0000       10.000    
     3 'Normalizat'    1.2518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88579       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=   5074.993     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      218 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7222        50.013        .61669E-02    .34736E-03
   2  Index         2.4434        3.4974        .18573        .60911E-04
   3  Normalizat    1.2520        .78115E-01    .62381E-01    .72483E-05
   4  Prefactor     .88568        .53445E-01    .44824E-01    .10388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.72219
  Index      = 2.44337
  Normalizat = 1.25199
  Prefactor  = 0.885679
 **********
 **   18 **HESSE 
 **********

 FCN=   5074.993     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7222        3.5905        .99288E-04   -1.5378    
   2  Index         2.4434        .99687        .66504E-02   -.53673    
   3  Normalizat    1.2520        .29906        .27592E-03   -.85011    
   4  Prefactor     .88568        .23038        .25464E-03   -.96643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52427e-09
Minuit parameter uncertainties:
  1  3.59079
  2  1.00603
  3  0.29947
  4  0.230634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919435': 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) = 5074.99347669
delta logL = 0.0608453633367

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.722e+00  3.591e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.443e+00  1.006e+00  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.857e-01  2.306e-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.252e+00  2.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.44 +/- 1.01
Photon Flux (Free Index): 6.65e-08 +/- 7.79e-08
Energy Flux (Free Index): 2.06e-05 +/- 2.10e-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/919435/cmap_HighResolution_351561601_351820801_4FGL_J1132.7+0034_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.74e-08', energy_flux2='2.06e-05', photon_flux_error='4.58e-08', dlogl='6.08e-02', energy_flux='2.41e-05', photon_flux2='6.65e-08', job_status='DONE', time_completed='2021-09-04 03:51:51.910529', photon_index_error2='1.01', photon_index2='2.44', ts='1.71', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='2.10e-05', EG='1.28', time_epoch_completed='1630752711.91', return_code='0', job_id='919435', GAL2='0.89', EG2='1.25', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='7.79e-08', ts2='1.83', photon_index='2.14' WHERE bin_id='433' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 919435: <4FGL_J1132.7+0034_daily_bin433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin433 173.196 0.5737 351561601 351820801 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 :                                   772.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

