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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin489
RA = 173.196, Dec = 0.5737
tmin = 366076801, tmax = 366336001
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='919517', job_status='RUN', time_executed='2021-09-04 03:38:43.375372', time_epoch_executed='1630751923.38' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919517

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919517/ft1_4FGL_J1132.7+0034_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919517/ft2_4FGL_J1132.7+0034_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919517/ft1_4FGL_J1132.7+0034_daily_bin489.fits outfile=/scratch/kocevski/919517/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin489.fits ra=173.196 dec=0.5737 rad=12.0 tmin=366076801.0 tmax=366336001.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 5.32
user 5.04
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919517/ft1_filtered_4FGL_J1132.7+0034_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/919517/ft2_4FGL_J1132.7+0034_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/919517/ltcube_366076801_366336001_4FGL_J1132.7+0034_daily_bin489.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/919517/ft2_4FGL_J1132.7+0034_daily_bin489.fits
.....................!
real 12.14
user 11.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919517/ft1_filtered_4FGL_J1132.7+0034_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/919517/ft2_4FGL_J1132.7+0034_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/919517/ltcube_366076801_366336001_4FGL_J1132.7+0034_daily_bin489.fits outfile=/scratch/kocevski/919517/expmap_366076801_366336001_4FGL_J1132.7+0034_daily_bin489.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/919517/ltcube_366076801_366336001_4FGL_J1132.7+0034_daily_bin489.fits
.....................!
real 193.58
user 188.52
sys 4.71

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/919517/ft1_filtered_4FGL_J1132.7+0034_daily_bin489.fits scfile=/scratch/kocevski/919517/ft2_4FGL_J1132.7+0034_daily_bin489.fits outfile=/scratch/kocevski/919517/cmap_366076801_366336001_4FGL_J1132.7+0034_daily_bin489.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7624       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.914       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10733E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .48474       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.794       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7690       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22870E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.525       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5848       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18767E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1863       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .57813       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4140       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=   5996.797     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3750 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7640        10.722       -.14070E-06    .75534E-05
   2  norm          1.7399        .76394        .53528E-08    .10219E-03
   3  Prefactor     .10000E-03    7.3241        .28355E-07** at limit **
   4  Prefactor     18.917        19.430        .65851E-07    .38918E-05
   5  Prefactor     22.191        19.063        .35401E-06    .97367E-04
   6  Prefactor     .10000E-03    18.261       -.58199E-06** at limit **
   7  Prefactor     .10000E-03    1.6853        .36053E-07** at limit **
   8  Prefactor     .10000E-03    65.190       -.25651E-07** at limit **
   9  norm          .52651        38.524        .89137E-05    .17992E-05
  10  Prefactor     .10000E-03    3.1501       -.58235E-07** at limit **
  11  norm          22.776        22.933        .18119E-06    .35598E-04
  12  Prefactor     3.7692        2.2480        .15200E-07    .41481E-04
  13  Prefactor     .10000E-03    11.574       -.13874E-06** at limit **
  14  norm          .10000E-03    4.0386       -.11106E-06** at limit **
  15  Prefactor     .10000E-03    1.7243       -.78846E-07** at limit **
  16  Prefactor     .10000E-03    10.918        .35520E-07** at limit **
  17  Prefactor     .10000E-03    58.529        .83510E-06** at limit **
  18  Prefactor     .10000E-03    12.892        .35872E-06** at limit **
  19  Prefactor     36.540        33.807        .19347E-07    .14421E-04
  20  Prefactor     5.5753        11.337       -.63040E-06   -.82665E-04
  21  Prefactor     .10000E-03    5.9451       -.10137E-06** at limit **
  22  Prefactor     .10000E-03    29.672       -.56651E-07** at limit **
  23  Prefactor     .10000E-03    181.53        .10688E-04** at limit **
  24  Prefactor     .10000E-03    110.48       -.43330E-05** at limit **
  25  Prefactor     2.1066        226.58        .68798E-05   -.60019E-05
  26  Prefactor     .10000E-03    33.581       -.10723E-05** at limit **
  27  norm          .10000E-03    1.1928       -.78498E-07** at limit **
  28  Normalizat    .57790        .22441       -.45143E-07    .58028E-04
  29  Prefactor     1.4140        .17796       -.19829E-06    .39291E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.76405
  norm       = 1.73985
  Prefactor  = 0.0001
  Prefactor  = 18.9168
  Prefactor  = 22.191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.526508
  Prefactor  = 0.0001
  norm       = 22.7757
  Prefactor  = 3.76922
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 36.5396
  Prefactor  = 5.5753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.1066
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.5779
  Prefactor  = 1.41405
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.797     FROM HESSE     STATUS=OK           561 CALLS     4311 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7640        10.700        .15430E-03   -1.5188    
   2  norm          1.7399        .75777        .42190E-04   -1.5444    
   3  Prefactor     .10000E-03    7.3550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.917        19.422        .92095E-04   -1.4838    
   5  Prefactor     22.191        18.965        .85006E-04   -1.4765    
   6  Prefactor     .10000E-03    18.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6931        .98024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    65.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .52651        38.979        .41023E-02   -1.5563    
  10  Prefactor     .10000E-03    3.2266        .26724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.776        22.955        .83897E-04   -1.4753    
  12  Prefactor     3.7692        2.2457        .86232E-04   -1.5320    
  13  Prefactor     .10000E-03    11.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.1488        .30382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7714        .19845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    58.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.642        .76980E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     36.540        33.801        .66313E-04   -1.4498    
  20  Prefactor     5.5753        11.395        .17000E-03   -1.5236    
  21  Prefactor     .10000E-03    5.9681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    183.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    112.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.1066        228.57        .27838E-03   -1.5418    
  26  Prefactor     .10000E-03    34.725        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.2030        .82523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .57790        .25218        .36834E-03   -1.0893    
  29  Prefactor     1.4140        .20379        .20577E-03   -.79976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30434e-10
Minuit parameter uncertainties:
  1  10.7029
  2  0.757771
  3  7.73663e-06
  4  19.4287
  5  18.9701
  6  0.000122476
  7  8.12614e-07
  8  2.80927e-05
  9  9.06568
  10  5.12279e-06
  11  22.9642
  12  2.24577
  13  5.81989e-06
  14  1.83858e-06
  15  1.89287e-06
  16  1.08237e-05
  17  9.50775e-05
  18  0.000378471
  19  33.8185
  20  11.399
  21  5.8488e-06
  22  1.56793e-05
  23  8.36868e-05
  24  0.000399225
  25  44.0586
  26  0.00015997
  27  3.15009e-06
  28  0.252685
  29  0.203907
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.769e+00  2.246e+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:  1.414e+00  2.039e-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:  5.779e-01  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.16
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.59e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 1.70e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5996.77835789
delta logL = 0.0185552027469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5996.77513465
delta logL = 0.0217784471115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9399       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0414       1.0000          .0000       10.000    
     3 'Normalizat'    .58393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4112       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=   5996.775     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9416        61.131        .50808E-02    .90867E-03
   2  Index         2.0415        5.9587        .17952        .45084E-04
   3  Normalizat    .58356        .14044        .82779E-01    .12561E-03
   4  Prefactor     1.4115        .84183E-01    .46587E-01   -.12114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.94163
  Index      = 2.04151
  Normalizat = 0.583559
  Prefactor  = 1.41155
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.775     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9416        2.4832        .44649E-03   -1.5311    
   2  Index         2.0415        .45112        .65720E-02   -.63316    
   3  Normalizat    .58356        .23876        .36663E-03   -1.0869    
   4  Prefactor     1.4115        .20033        .20593E-03   -.80048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44746e-10
Minuit parameter uncertainties:
  1  2.48328
  2  0.452065
  3  0.239185
  4  0.20044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919517': 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) = 5996.77513262
delta logL = 0.0217804743452

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.942e+00  2.483e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.042e+00  4.521e-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.412e+00  2.004e-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:  5.836e-01  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.18
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.04 +/- 0.45
Photon Flux (Free Index): 5.08e-08 +/- 3.86e-08
Energy Flux (Free Index): 3.18e-05 +/- 2.68e-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/919517/cmap_HighResolution_366076801_366336001_4FGL_J1132.7+0034_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.59e-08', energy_flux2='3.18e-05', photon_flux_error='3.33e-08', dlogl='2.18e-02', energy_flux='2.85e-05', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-09-04 03:51:08.312787', photon_index_error2='0.45', photon_index2='2.04', ts='7.16', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', energy_flux_error2='2.68e-05', EG='0.58', time_epoch_completed='1630752668.31', return_code='0', job_id='919517', GAL2='1.41', EG2='0.58', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='3.86e-08', ts2='7.18', photon_index='2.14' WHERE bin_id='489' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 919517: <4FGL_J1132.7+0034_daily_bin489> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin489 173.196 0.5737 366076801 366336001 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 :                                   742.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            900 sec.

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

