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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin450
RA = 173.196, Dec = 0.5737
tmin = 355968001, tmax = 356227201
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='919460', job_status='RUN', time_executed='2021-09-04 03:38:38.742435', time_epoch_executed='1630751918.74' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919460

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919460/ft1_4FGL_J1132.7+0034_daily_bin450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919460/ft2_4FGL_J1132.7+0034_daily_bin450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919460/ft1_4FGL_J1132.7+0034_daily_bin450.fits outfile=/scratch/kocevski/919460/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin450.fits ra=173.196 dec=0.5737 rad=12.0 tmin=355968001.0 tmax=356227201.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.42
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919460/ft1_filtered_4FGL_J1132.7+0034_daily_bin450.fits" evtable="EVENTS" scfile=/scratch/kocevski/919460/ft2_4FGL_J1132.7+0034_daily_bin450.fits sctable="SC_DATA" outfile=/scratch/kocevski/919460/ltcube_355968001_356227201_4FGL_J1132.7+0034_daily_bin450.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/919460/ft2_4FGL_J1132.7+0034_daily_bin450.fits
.....................!
real 12.40
user 12.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919460/ft1_filtered_4FGL_J1132.7+0034_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/919460/ft2_4FGL_J1132.7+0034_daily_bin450.fits sctable="SC_DATA" expcube=/scratch/kocevski/919460/ltcube_355968001_356227201_4FGL_J1132.7+0034_daily_bin450.fits outfile=/scratch/kocevski/919460/expmap_355968001_356227201_4FGL_J1132.7+0034_daily_bin450.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/919460/ltcube_355968001_356227201_4FGL_J1132.7+0034_daily_bin450.fits
.....................!
real 190.17
user 185.22
sys 4.38

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/919460/ft1_filtered_4FGL_J1132.7+0034_daily_bin450.fits scfile=/scratch/kocevski/919460/ft2_4FGL_J1132.7+0034_daily_bin450.fits outfile=/scratch/kocevski/919460/cmap_355968001_356227201_4FGL_J1132.7+0034_daily_bin450.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919460/ft1_filtered_4FGL_J1132.7+0034_daily_bin450.fits scfile=/scratch/kocevski/919460/ft2_4FGL_J1132.7+0034_daily_bin450.fits outfile=/scratch/kocevski/919460/cmap_HighResolution_355968001_356227201_4FGL_J1132.7+0034_daily_bin450.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.61
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919460/ft1_filtered_4FGL_J1132.7+0034_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/919460/ft2_4FGL_J1132.7+0034_daily_bin450.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919460/Model_4FGL_J1132.7+0034_daily_bin450.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/919460/ft1_filtered_4FGL_J1132.7+0034_daily_bin450.fits.....................!
real 52.03
user 50.53
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.937       1.0000         .10000E-03   10000.    
     2 'norm      '    .47177       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.151       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.539       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .94836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5465       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.638       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.877       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98908       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0997       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=   5169.438     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3629 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.935        10.253       -.52164E-06    .17039E-05
   2  norm          .47124        .67734       -.93542E-06   -.19317E-02
   3  Prefactor     4.9275        11.877        .77486E-05   -.98891E-03
   4  Prefactor     .10001E-03    51.182        .62268E-05** at limit **
   5  Prefactor     16.151        21.226        .23763E-07    .20060E-04
   6  Prefactor     17.538        15.459       -.88109E-07   -.98474E-05
   7  Prefactor     .94800        3.5784        .76290E-06   -.20915E-03
   8  Prefactor     .10006E-03    64.262       -.14463E-04** at limit **
   9  norm          .10000E-03    9.2906       -.11903E-06** at limit **
  10  Prefactor     3.5479        5.1138       -.43007E-06   -.43602E-03
  11  norm          .10000E-03    16.794        .13554E-05** at limit **
  12  Prefactor     .10000E-03    .56910        .52253E-08** at limit **
  13  Prefactor     .10000E-03    19.181       -.11496E-05** at limit **
  14  norm          10.638        10.635       -.17107E-07   -.50827E-04
  15  Prefactor     5.6493        6.2212        .64633E-07   -.13677E-03
  16  Prefactor     .10000E-03    9.1884        .62358E-06** at limit **
  17  Prefactor     .10000E-03    30.697       -.57769E-06** at limit **
  18  Prefactor     .10000E-03    7.2196       -.11533E-06** at limit **
  19  Prefactor     .10000E-03    16.936        .14289E-05** at limit **
  20  Prefactor     .10000E-03    3.2330        .26475E-07** at limit **
  21  Prefactor     24.878        19.645        .15961E-06    .51629E-05
  22  Prefactor     .10000E-03    12.149       -.19604E-05** at limit **
  23  Prefactor     .10001E-03    23.254       -.44818E-05** at limit **
  24  Prefactor     .10000E-03    16.364        .18477E-05** at limit **
  25  Prefactor     .10002E-03    47.640        .84329E-05** at limit **
  26  Prefactor     .10000E-03    5.1887        .55056E-07** at limit **
  27  norm          .10000E-03    .79660        .56301E-08** at limit **
  28  Normalizat    .98908        .22458       -.68420E-06   -.69798E-05
  29  Prefactor     1.0997        .18151        .11533E-06   -.26215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9353
  norm       = 0.471245
  Prefactor  = 4.92752
  Prefactor  = 0.000100008
  Prefactor  = 16.1509
  Prefactor  = 17.5379
  Prefactor  = 0.948
  Prefactor  = 0.00010006
  norm       = 0.0001
  Prefactor  = 3.54791
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6383
  Prefactor  = 5.64934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 24.8784
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.989081
  Prefactor  = 1.09968
 **********
 **   18 **HESSE 
 **********

 FCN=   5169.438     FROM HESSE     STATUS=OK           549 CALLS     4178 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.935        10.262        .11595E-03   -1.5017    
   2  norm          .47124        .66264        .58066E-03   -1.5571    
   3  Prefactor     4.9275        13.045        .90638E-03   -1.5264    
   4  Prefactor     .10001E-03    52.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.151        21.196        .99660E-04   -1.4904    
   6  Prefactor     17.538        15.398        .95635E-04   -1.4870    
   7  Prefactor     .94800        3.4964        .24905E-03   -1.5513    
   8  Prefactor     .10006E-03    68.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.3389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5479        5.0875        .18327E-03   -1.5331    
  11  norm          .10000E-03    16.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .57123        .52961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.638        10.577        .12284E-03   -1.5056    
  15  Prefactor     5.6493        6.1876        .16211E-03   -1.5233    
  16  Prefactor     .10000E-03    9.2017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2411        .12625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.878        19.644        .80314E-04   -1.4710    
  22  Prefactor     .10000E-03    12.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    23.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    49.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.2015        .15995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .79797        .62668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .98908        .25535        .28765E-03   -.93397    
  29  Prefactor     1.0997        .20682        .22631E-03   -.89477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75787e-09
Minuit parameter uncertainties:
  1  10.2639
  2  0.662652
  3  13.0528
  4  0.00133722
  5  21.206
  6  15.4016
  7  3.49715
  8  0.00405862
  9  1.34906e-05
  10  5.08817
  11  0.000261157
  12  1.33291e-07
  13  0.000128053
  14  10.5785
  15  6.18832
  16  6.35463e-05
  17  0.000112618
  18  1.34397e-05
  19  0.000203469
  20  6.42092e-07
  21  19.6491
  22  0.000235738
  23  0.000754964
  24  0.000246184
  25  0.00199948
  26  2.44911e-06
  27  9.22602e-08
  28  0.255669
  29  0.206971
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.333e-07  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:  1.100e+00  2.070e-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:  9.891e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 4.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919460/likelihoodResults_355968001_356227201_4FGL_J1132.7+0034_daily_bin450.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) = 5169.43799662
delta logL = -6.4023759478e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5169.43793326
delta logL = -6.59097167954e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1078       1.0000          .0000       10.000    
     3 'Normalizat'    .98932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0997       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=   5169.438     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      211 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0505        .90712E-02** at limit **
   2  Index         1.7455        5.8400        .50000       -.34208E-05
   3  Normalizat    .98908        .11899E-01    .46033E-01    .21180E-04
   4  Prefactor     1.0997        .98605E-02    .37600E-01    .13801E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74548
  Normalizat = 0.989082
  Prefactor  = 1.09968
 **********
 **   18 **HESSE 
 **********

 FCN=   5169.438     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.578        .56313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7455        8.9355        .50000       -.70878    
   3  Normalizat    .98908        .52522E-01    .28765E-03   -.93397    
   4  Prefactor     1.0997        .43538E-01    .22631E-03   -.89477    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20118e-07
Minuit parameter uncertainties:
  1  1.24688e-05
  2  395.296
  3  0.0525248
  4  0.0435395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919460': 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): 102
logL (Free Index) = 5169.43792268
delta logL = 9.91524848359e-06

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.247e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.745e+00  3.953e+02  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.100e+00  4.354e-02  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:  9.891e-01  5.252e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.196 0.574

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/919460/cmap_HighResolution_355968001_356227201_4FGL_J1132.7+0034_daily_bin450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2021-09-04 03:51:21.554340', job_id='919460', GAL2='1.10', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630752681.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='9.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='450' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 919460: <4FGL_J1132.7+0034_daily_bin450> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin450 173.196 0.5737 355968001 356227201 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 :                                   759.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

