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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin165
RA = 173.196, Dec = 0.5737
tmin = 282096001, tmax = 282355201
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='918058', job_status='RUN', time_executed='2021-09-04 03:33:52.491951', time_epoch_executed='1630751632.49' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918058

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918058/ft1_4FGL_J1132.7+0034_daily_bin165.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918058/ft2_4FGL_J1132.7+0034_daily_bin165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918058/ft1_4FGL_J1132.7+0034_daily_bin165.fits outfile=/scratch/kocevski/918058/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin165.fits ra=173.196 dec=0.5737 rad=12.0 tmin=282096001.0 tmax=282355201.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.86
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918058/ft2_4FGL_J1132.7+0034_daily_bin165.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/918058/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin165.fits evtable="EVENTS" outfile="/scratch/kocevski/918058/ft1_filtered_4FGL_J1132.7+0034_daily_bin165.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.66
user 0.32
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918058/ft1_filtered_4FGL_J1132.7+0034_daily_bin165.fits" evtable="EVENTS" scfile=/scratch/kocevski/918058/ft2_4FGL_J1132.7+0034_daily_bin165.fits sctable="SC_DATA" outfile=/scratch/kocevski/918058/ltcube_282096001_282355201_4FGL_J1132.7+0034_daily_bin165.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/918058/ft2_4FGL_J1132.7+0034_daily_bin165.fits
.....................!
real 11.90
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918058/ft1_filtered_4FGL_J1132.7+0034_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/918058/ft2_4FGL_J1132.7+0034_daily_bin165.fits sctable="SC_DATA" expcube=/scratch/kocevski/918058/ltcube_282096001_282355201_4FGL_J1132.7+0034_daily_bin165.fits outfile=/scratch/kocevski/918058/expmap_282096001_282355201_4FGL_J1132.7+0034_daily_bin165.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/918058/ltcube_282096001_282355201_4FGL_J1132.7+0034_daily_bin165.fits
.....................!
real 189.74
user 184.99
sys 4.36

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/918058/ft1_filtered_4FGL_J1132.7+0034_daily_bin165.fits scfile=/scratch/kocevski/918058/ft2_4FGL_J1132.7+0034_daily_bin165.fits outfile=/scratch/kocevski/918058/cmap_282096001_282355201_4FGL_J1132.7+0034_daily_bin165.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918058/ft1_filtered_4FGL_J1132.7+0034_daily_bin165.fits scfile=/scratch/kocevski/918058/ft2_4FGL_J1132.7+0034_daily_bin165.fits outfile=/scratch/kocevski/918058/cmap_HighResolution_282096001_282355201_4FGL_J1132.7+0034_daily_bin165.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9036       1.0000         .10000E-03   10000.    
     2 'norm      '    .58191       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8176       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3927       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0661       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3130       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.793       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6684       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.526       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1472       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37232       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.090       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3540       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90864       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=   5457.846     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3731 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9008        8.1754        .23184E-05    .28830E-04
   2  norm          .58180        .46937       -.61344E-08   -.10586E-03
   3  Prefactor     3.8169        5.5993        .88759E-07   -.14687E-04
   4  Prefactor     .10000E-03    6.9041       -.24660E-07** at limit **
   5  Prefactor     .10000E-03    12.178        .29347E-07** at limit **
   6  Prefactor     .10000E-03    12.197       -.77660E-07** at limit **
   7  Prefactor     .10000E-03    3.9065        .10086E-08** at limit **
   8  Prefactor     .10000E-03    52.709       -.24293E-06** at limit **
   9  norm          12.585        10.806        .18173E-06   -.16820E-03
  10  Prefactor     .10016E-03    3.3703        .57586E-06** at limit **
  11  norm          .10000E-03    21.576       -.99742E-07** at limit **
  12  Prefactor     2.3915        2.7304        .22808E-06   -.41785E-04
  13  Prefactor     .10000E-03    37.182       -.31093E-08** at limit **
  14  norm          2.0719        7.7580        .68622E-06   -.53681E-04
  15  Prefactor     1.3126        4.0370        .69619E-06   -.25428E-04
  16  Prefactor     12.786        22.709        .21220E-06    .10282E-05
  17  Prefactor     .10000E-03    38.683       -.31056E-07** at limit **
  18  Prefactor     9.6654        10.368        .18837E-06   -.36253E-05
  19  Prefactor     33.568        40.631       -.43361E-06    .10005E-03
  20  Prefactor     8.1462        6.6350        .31961E-07   -.87713E-05
  21  Prefactor     .13953        13.622       -.46068E-07    .58798E-04
  22  Prefactor     .10000E-03    35.993        .22858E-05** at limit **
  23  Prefactor     .10000E-03    19.779        .28378E-07** at limit **
  24  Prefactor     .10000E-03    7.9712        .17130E-08** at limit **
  25  Prefactor     .10000E-03    19.460        .55052E-07** at limit **
  26  Prefactor     19.090        14.696        .49496E-07   -.10151E-04
  27  norm          .10000E-03    1.1432        .75082E-09** at limit **
  28  Normalizat    1.3542        .21954       -.70081E-06   -.15096E-03
  29  Prefactor     .90870        .17540       -.88308E-06   -.14744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.90077
  norm       = 0.581795
  Prefactor  = 3.81687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.585
  Prefactor  = 0.000100161
  norm       = 0.0001
  Prefactor  = 2.39147
  Prefactor  = 0.0001
  norm       = 2.0719
  Prefactor  = 1.3126
  Prefactor  = 12.7863
  Prefactor  = 0.0001
  Prefactor  = 9.66543
  Prefactor  = 33.5677
  Prefactor  = 8.14623
  Prefactor  = 0.139526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0898
  norm       = 0.0001
  Normalizat = 1.35424
  Prefactor  = 0.908701
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.846     FROM HESSE     STATUS=OK           563 CALLS     4294 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9008        8.1661        .76347E-03   -1.5183    
   2  norm          .58180        .48348        .42708E-03   -1.5555    
   3  Prefactor     3.8169        5.5809        .20017E-03   -1.5317    
   4  Prefactor     .10000E-03    6.9113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9692        .14234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    52.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.585        10.448        .11292E-03   -1.4998    
  10  Prefactor     .10016E-03    57.948        .24418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    21.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3915        2.7255        .12386E-03   -1.5399    
  13  Prefactor     .10000E-03    37.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0719        7.4215        .28744E-03   -1.5420    
  15  Prefactor     1.3126        3.8453        .22116E-03   -1.5479    
  16  Prefactor     12.786        22.703        .11199E-03   -1.4993    
  17  Prefactor     .10000E-03    38.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6654        10.371        .12888E-03   -1.5086    
  19  Prefactor     33.568        40.459        .69207E-04   -1.4549    
  20  Prefactor     8.1462        6.6369        .14046E-03   -1.5137    
  21  Prefactor     .13953        24.990        .74281E-01   -1.5633    
  22  Prefactor     .10000E-03    36.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.9771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.090        14.673        .91668E-04   -1.4834    
  27  norm          .10000E-03    1.1446        .77022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3542        .25680        .26236E-03   -.81961    
  29  Prefactor     .90870        .20477        .25191E-03   -.95838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17605e-09
Minuit parameter uncertainties:
  1  8.16737
  2  0.483482
  3  5.58164
  4  4.68175e-08
  5  1.90945e-05
  6  1.00231e-06
  7  1.74495e-06
  8  0.000148784
  9  10.4498
  10  0.00612247
  11  4.47244e-05
  12  2.72567
  13  1.6283e-05
  14  7.42481
  15  3.84606
  16  22.7186
  17  1.29427e-05
  18  10.3726
  19  40.4924
  20  6.63746
  21  3.7348
  22  0.000112831
  23  1.65387e-05
  24  3.4093e-06
  25  2.67466e-05
  26  14.6762
  27  7.65072e-07
  28  0.25704
  29  0.20494
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.391e+00  2.726e+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.087e-01  2.049e-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.354e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 2.06e-05

TS (Fixed Index): 1.19
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918058/likelihoodResults_282096001_282355201_4FGL_J1132.7+0034_daily_bin165.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): 102
logL (Free Index) = 5455.62469397
delta logL = 2.22172892599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5454.95148859
delta logL = 2.89493431089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.6604       1.0000          .0000       10.000    
     3 'Normalizat'    1.1812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0197       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=   5454.951     FROM MIGRAD    STATUS=CONVERGED    248 CALLS      604 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27955E-02    .25733E-03** at limit **
   2  Index         7.6604        2.1935        .81837E-01    .14164E-03
   3  Normalizat    1.1811        .76781E-01    .62666E-01    .11517E-03
   4  Prefactor     1.0197        .61499E-01    .42173E-01    .16016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.66037
  Normalizat = 1.18107
  Prefactor  = 1.01971
 **********
 **   18 **HESSE 
 **********

 FCN=   5454.951     FROM HESSE     STATUS=OK            33 CALLS      637 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .93956E-03    .67793E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6604        .22568        .34893E-02    .56105    
   3  Normalizat    1.1811        .26089        .27719E-03   -.87190    
   4  Prefactor     1.0197        .20903        .23961E-03   -.92075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20485e-11
Minuit parameter uncertainties:
  1  2.75708e-09
  2  0.225789
  3  0.261181
  4  0.209198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918058': 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) = 5454.95148761
delta logL = 2.89493528805

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.757e-09  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  7.660e+00  2.258e-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:  1.020e+00  2.092e-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.181e+00  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.47
Ra Dec: 173.196 0.574
Photon Index (Free Index): 7.66 +/- 0.23
Photon Flux (Free Index): 1.48e-07 +/- 7.38e-08
Energy Flux (Free Index): 1.73e-05 +/- 8.58e-06

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/918058/cmap_HighResolution_282096001_282355201_4FGL_J1132.7+0034_daily_bin165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.81e-03', comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.73e-05', photon_flux_error='4.04e-08', dlogl='2.89e+00', energy_flux='1.81e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-04 03:47:32.988670', photon_index_error2='0.23', photon_index2='7.66', ts='1.19', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='8.58e-06', EG='1.35', time_epoch_completed='1630752452.99', return_code='0', job_id='918058', GAL2='1.02', EG2='1.18', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='7.38e-08', ts2='7.47', photon_index='2.14' WHERE bin_id='165' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:47:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 918058: <4FGL_J1132.7+0034_daily_bin165> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin165> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:31:50 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:31: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:31:51 2021
Terminated at Sat Sep  4 03:47:34 2021
Results reported at Sat Sep  4 03:47:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin165 173.196 0.5737 282096001 282355201 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 :                                   811.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

