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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin453
RA = 173.196, Dec = 0.5737
tmin = 356745601, tmax = 357004801
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='919465', job_status='RUN', time_executed='2021-09-04 03:38:49.276782', time_epoch_executed='1630751929.28' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919465

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919465/ft1_4FGL_J1132.7+0034_daily_bin453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919465/ft2_4FGL_J1132.7+0034_daily_bin453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919465/ft1_4FGL_J1132.7+0034_daily_bin453.fits outfile=/scratch/kocevski/919465/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin453.fits ra=173.196 dec=0.5737 rad=12.0 tmin=356745601.0 tmax=357004801.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.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919465/ft1_filtered_4FGL_J1132.7+0034_daily_bin453.fits" evtable="EVENTS" scfile=/scratch/kocevski/919465/ft2_4FGL_J1132.7+0034_daily_bin453.fits sctable="SC_DATA" outfile=/scratch/kocevski/919465/ltcube_356745601_357004801_4FGL_J1132.7+0034_daily_bin453.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/919465/ft2_4FGL_J1132.7+0034_daily_bin453.fits
.....................!
real 12.58
user 12.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919465/ft1_filtered_4FGL_J1132.7+0034_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/919465/ft2_4FGL_J1132.7+0034_daily_bin453.fits sctable="SC_DATA" expcube=/scratch/kocevski/919465/ltcube_356745601_357004801_4FGL_J1132.7+0034_daily_bin453.fits outfile=/scratch/kocevski/919465/expmap_356745601_357004801_4FGL_J1132.7+0034_daily_bin453.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/919465/ltcube_356745601_357004801_4FGL_J1132.7+0034_daily_bin453.fits
.....................!
real 190.87
user 185.20
sys 5.32

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/919465/ft1_filtered_4FGL_J1132.7+0034_daily_bin453.fits scfile=/scratch/kocevski/919465/ft2_4FGL_J1132.7+0034_daily_bin453.fits outfile=/scratch/kocevski/919465/cmap_356745601_357004801_4FGL_J1132.7+0034_daily_bin453.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919465/ft1_filtered_4FGL_J1132.7+0034_daily_bin453.fits scfile=/scratch/kocevski/919465/ft2_4FGL_J1132.7+0034_daily_bin453.fits outfile=/scratch/kocevski/919465/cmap_HighResolution_356745601_357004801_4FGL_J1132.7+0034_daily_bin453.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.59
user 0.37
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919465/ft1_filtered_4FGL_J1132.7+0034_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/919465/ft2_4FGL_J1132.7+0034_daily_bin453.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919465/Model_4FGL_J1132.7+0034_daily_bin453.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/919465/ft1_filtered_4FGL_J1132.7+0034_daily_bin453.fits.....................!
real 59.81
user 58.44
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.376       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3003       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5718       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4311       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .65075E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .77651E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16069E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4298       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2424       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1154       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-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 '    8.2619       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2339       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0571       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=   6302.606     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3126 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.374        11.337        .29630E-06    .26632E-03
   2  norm          1.3007        .71893        .22903E-06    .37521E-02
   3  Prefactor     .10000E-03    7.9900       -.73037E-06** at limit **
   4  Prefactor     .10000E-03    21.478        .55534E-06** at limit **
   5  Prefactor     .10000E-03    6.7264        .54902E-06** at limit **
   6  Prefactor     8.5691        10.937       -.21634E-06   -.23234E-03
   7  Prefactor     .10000E-03    2.1479        .11704E-07** at limit **
   8  Prefactor     .10000E-03    27.497        .65517E-06** at limit **
   9  norm          2.4297        6.1083       -.61175E-08   -.42759E-04
  10  Prefactor     .10000E-03    3.0260       -.16204E-06** at limit **
  11  norm          .10013E-03    66.956       -.28903E-04** at limit **
  12  Prefactor     .10000E-03    .86891        .31449E-06** at limit **
  13  Prefactor     .10000E-03    57.449        .23415E-06** at limit **
  14  norm          .10000E-03    2.1726        .37913E-07** at limit **
  15  Prefactor     2.4337        3.2403        .37697E-05    .86404E-03
  16  Prefactor     .10000E-03    6.0087       -.11274E-06** at limit **
  17  Prefactor     .10000E-03    37.958       -.29840E-05** at limit **
  18  Prefactor     8.2511        14.020        .66035E-06    .59401E-04
  19  Prefactor     .10000E-03    55.847        .15596E-06** at limit **
  20  Prefactor     .10000E-03    2.4476        .17784E-07** at limit **
  21  Prefactor     8.1070        15.588       -.13498E-05   -.79398E-04
  22  Prefactor     .10000E-03    9.7761        .11506E-05** at limit **
  23  Prefactor     .10000E-03    28.258        .46466E-06** at limit **
  24  Prefactor     .10000E-03    7.0244       -.13698E-06** at limit **
  25  Prefactor     .10000E-03    13.035       -.95308E-06** at limit **
  26  Prefactor     8.2631        7.5330        .96264E-07    .16462E-04
  27  norm          .10000E-03    .74911        .59140E-08** at limit **
  28  Normalizat    1.2340        .21481       -.96017E-06   -.73544E-04
  29  Prefactor     1.0569        .16859       -.79428E-06   -.27093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3735
  norm       = 1.30067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.56911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42973
  Prefactor  = 0.0001
  norm       = 0.000100125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.43372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.25109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.10698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.26305
  norm       = 0.0001
  Normalizat = 1.23397
  Prefactor  = 1.05691
 **********
 **   18 **HESSE 
 **********

 FCN=   6302.606     FROM HESSE     STATUS=OK           549 CALLS     3675 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.374        11.325        .98972E-04   -1.4898    
   2  norm          1.3007        .71562        .47355E-04   -1.5480    
   3  Prefactor     .10000E-03    8.0357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5691        10.910        .13692E-03   -1.5122    
   7  Prefactor     .10000E-03    2.1624        .11355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4297        6.0544        .26245E-03   -1.5396    
  10  Prefactor     .10000E-03    3.0680        .13441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10013E-03    113.60        .65791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.559        .14302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    58.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1805        .11428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4337        4.0823        .97483E-03   -1.5396    
  16  Prefactor     .10000E-03    6.0099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2511        14.034        .13964E-03   -1.5133    
  19  Prefactor     .10000E-03    56.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4513        .12129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.1070        15.709        .14074E-03   -1.5138    
  22  Prefactor     .10000E-03    9.7751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.0290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.2631        7.5349        .13948E-03   -1.5133    
  27  norm          .10000E-03    .75127        .67091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2340        .25441        .27880E-03   -.85559    
  29  Prefactor     1.0569        .19763        .23740E-03   -.90856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41384e-09
Minuit parameter uncertainties:
  1  11.3267
  2  0.715628
  3  1.8233e-05
  4  5.0227e-05
  5  6.3582e-08
  6  10.9124
  7  4.81942e-06
  8  2.75302e-06
  9  6.05596
  10  9.44297e-06
  11  0.00755103
  12  9.34738e-05
  13  0.00011828
  14  3.03107e-06
  15  4.08275
  16  3.2748e-06
  17  3.46183e-05
  18  14.0393
  19  7.03473e-05
  20  2.23047e-06
  21  15.7173
  22  1.1096e-06
  23  2.15915e-05
  24  7.58641e-06
  25  7.76614e-06
  26  7.53572
  27  9.29349e-07
  28  0.254662
  29  0.197766
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  9.347e-05  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.057e+00  1.978e-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.234e+00  2.547e-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: 6.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919465/likelihoodResults_356745601_357004801_4FGL_J1132.7+0034_daily_bin453.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) = 6302.60624052
delta logL = -0.000319166355439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6302.60592326
delta logL = -1.91151048057e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14863E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1127       1.0000          .0000       10.000    
     3 'Normalizat'    1.2338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0571       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=   6302.606     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      242 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .17751        .42945E-01** at limit **
   2  Index         2.1101        8.5117        .50000       -.83726E-06
   3  Normalizat    1.2340        .23976E-02    .63030E-01    .19462E-04
   4  Prefactor     1.0569        .19163E-02    .39512E-01    .12683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1101
  Normalizat = 1.23397
  Prefactor  = 1.05691
 **********
 **   18 **HESSE 
 **********

 FCN=   6302.606     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      279 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.988        .14346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1101        6.0426        .50000       -.61625    
   3  Normalizat    1.2340        .92128E-02    .27880E-03   -.85559    
   4  Prefactor     1.0569        .73687E-02    .23740E-03   -.90856    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27654e-10
Minuit parameter uncertainties:
  1  2.02597e-06
  2  54.7619
  3  0.00921286
  4  0.00736869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919465': 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) = 6302.60592132
delta logL = 3.41087798006e-08

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.026e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.110e+00  5.476e+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.057e+00  7.369e-03  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.234e+00  9.213e-03  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/919465/cmap_HighResolution_356745601_357004801_4FGL_J1132.7+0034_daily_bin453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-09-04 03:52:16.373387', job_id='919465', GAL2='1.06', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630752736.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='453' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 919465: <4FGL_J1132.7+0034_daily_bin453> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin453> 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) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:36:06 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:06 2021
Terminated at Sat Sep  4 03:52:16 2021
Results reported at Sat Sep  4 03:52:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin453 173.196 0.5737 356745601 357004801 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 :                                   804.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

