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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin539
RA = 173.196, Dec = 0.5737
tmin = 379036801, tmax = 379296001
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='919590', job_status='RUN', time_executed='2021-09-04 03:38:47.148716', time_epoch_executed='1630751927.15' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919590

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919590/ft1_4FGL_J1132.7+0034_daily_bin539.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919590/ft2_4FGL_J1132.7+0034_daily_bin539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919590/ft1_4FGL_J1132.7+0034_daily_bin539.fits outfile=/scratch/kocevski/919590/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin539.fits ra=173.196 dec=0.5737 rad=12.0 tmin=379036801.0 tmax=379296001.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.46
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919590/ft1_filtered_4FGL_J1132.7+0034_daily_bin539.fits" evtable="EVENTS" scfile=/scratch/kocevski/919590/ft2_4FGL_J1132.7+0034_daily_bin539.fits sctable="SC_DATA" outfile=/scratch/kocevski/919590/ltcube_379036801_379296001_4FGL_J1132.7+0034_daily_bin539.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/919590/ft2_4FGL_J1132.7+0034_daily_bin539.fits
.....................!
real 11.99
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919590/ft1_filtered_4FGL_J1132.7+0034_daily_bin539.fits evtable="EVENTS" scfile=/scratch/kocevski/919590/ft2_4FGL_J1132.7+0034_daily_bin539.fits sctable="SC_DATA" expcube=/scratch/kocevski/919590/ltcube_379036801_379296001_4FGL_J1132.7+0034_daily_bin539.fits outfile=/scratch/kocevski/919590/expmap_379036801_379296001_4FGL_J1132.7+0034_daily_bin539.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/919590/ltcube_379036801_379296001_4FGL_J1132.7+0034_daily_bin539.fits
.....................!
real 191.24
user 186.10
sys 4.50

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/919590/ft1_filtered_4FGL_J1132.7+0034_daily_bin539.fits scfile=/scratch/kocevski/919590/ft2_4FGL_J1132.7+0034_daily_bin539.fits outfile=/scratch/kocevski/919590/cmap_379036801_379296001_4FGL_J1132.7+0034_daily_bin539.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.64
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919590/ft1_filtered_4FGL_J1132.7+0034_daily_bin539.fits evtable="EVENTS" scfile=/scratch/kocevski/919590/ft2_4FGL_J1132.7+0034_daily_bin539.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919590/Model_4FGL_J1132.7+0034_daily_bin539.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/919590/ft1_filtered_4FGL_J1132.7+0034_daily_bin539.fits.....................!
real 53.70
user 52.12
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.054       1.0000         .10000E-03   10000.    
     2 'norm      '    .28299       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.336       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6360       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0310       1.0000         .10000E-03   10000.    
     8 'Prefactor '    203.69       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .93282       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   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 '    9.0668       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4699       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1130       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84193       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=   5514.274     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3678 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.053        9.9083        .67805E-07   -.99558E-05
   2  norm          .28295        .74238       -.11240E-06   -.18181E-02
   3  Prefactor     .82756        10.013        .36258E-07   -.16725E-03
   4  Prefactor     28.335        20.830       -.36405E-06    .99174E-06
   5  Prefactor     .10000E-03    7.5515        .40650E-05** at limit **
   6  Prefactor     7.6376        8.0110       -.11706E-06    .69835E-04
   7  Prefactor     2.0331        3.9277       -.42097E-06   -.31930E-03
   8  Prefactor     203.71        107.03        .11660E-04    .21416E-04
   9  norm          .10000E-03    9.7599       -.29388E-05** at limit **
  10  Prefactor     .92833        4.0115       -.10427E-05   -.57941E-03
  11  norm          .10000E-03    12.737        .34645E-05** at limit **
  12  Prefactor     2.3139        2.1591       -.30393E-08   -.33851E-03
  13  Prefactor     .10000E-03    30.481        .12520E-04** at limit **
  14  norm          .10000E-03    3.4304       -.82552E-07** at limit **
  15  Prefactor     .10001E-03    2.1590       -.20180E-05** at limit **
  16  Prefactor     .10000E-03    25.982       -.72051E-06** at limit **
  17  Prefactor     .10000E-03    44.771       -.88238E-05** at limit **
  18  Prefactor     9.0664        8.4404        .25473E-07    .49496E-05
  19  Prefactor     3.4772        102.72        .29605E-04    .86276E-04
  20  Prefactor     .10000E-03    3.6307        .61486E-07** at limit **
  21  Prefactor     .10000E-03    12.515        .33765E-05** at limit **
  22  Prefactor     .10000E-03    16.385       -.10659E-04** at limit **
  23  Prefactor     .10000E-03    6.5302       -.10551E-05** at limit **
  24  Prefactor     .10000E-03    7.9307        .20242E-06** at limit **
  25  Prefactor     .10000E-03    12.052        .37263E-05** at limit **
  26  Prefactor     .10000E-03    2.8518        .40126E-08** at limit **
  27  norm          .10000E-03    1.0558       -.43809E-08** at limit **
  28  Normalizat    1.1128        .19880        .58579E-06    .29032E-03
  29  Prefactor     .84208        .15784       -.13963E-05    .43584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0533
  norm       = 0.282948
  Prefactor  = 0.827559
  Prefactor  = 28.3354
  Prefactor  = 0.0001
  Prefactor  = 7.63761
  Prefactor  = 2.03309
  Prefactor  = 203.706
  norm       = 0.0001
  Prefactor  = 0.928328
  norm       = 0.0001
  Prefactor  = 2.31392
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.06644
  Prefactor  = 3.4772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.11282
  Prefactor  = 0.842077
 **********
 **   18 **HESSE 
 **********

 FCN=   5514.274     FROM HESSE     STATUS=OK           551 CALLS     4229 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.053        9.8521        .10323E-03   -1.4932    
   2  norm          .28295        .68662        .66814E-04   -1.5602    
   3  Prefactor     .82756        35.035        .30005E-02   -1.5526    
   4  Prefactor     28.335        20.852        .75262E-04   -1.4643    
   5  Prefactor     .10000E-03    7.5233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6376        7.9949        .14512E-03   -1.5155    
   7  Prefactor     2.0331        3.8471        .18944E-03   -1.5423    
   8  Prefactor     203.71        106.57        .14158E-03   -1.2844    
   9  norm          .10000E-03    9.9625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .92833        6.7762        .26259E-02   -1.5515    
  11  norm          .10000E-03    12.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3139        2.1514        .10076E-03   -1.5404    
  13  Prefactor     .10000E-03    30.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4491        .13418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    8.5888        .20130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.0664        8.4443        .13311E-03   -1.5106    
  19  Prefactor     3.4772        98.763        .21709E-03   -1.5335    
  20  Prefactor     .10000E-03    3.6700        .13816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.5299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.9437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.8545        .12247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.1046        .14900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1128        .23348        .25118E-03   -.89341    
  29  Prefactor     .84208        .18620        .23133E-03   -.98195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26399e-09
Minuit parameter uncertainties:
  1  9.85317
  2  0.686636
  3  10.7752
  4  20.8578
  5  4.32655e-05
  6  7.99602
  7  3.84757
  8  106.668
  9  4.66223e-05
  10  5.01673
  11  1.85188e-05
  12  2.15146
  13  6.71537e-05
  14  5.98731e-06
  15  0.000706939
  16  2.33564e-05
  17  1.2294e-05
  18  8.44544
  19  37.1304
  20  2.51546e-06
  21  9.93563e-05
  22  8.33533e-05
  23  5.02852e-07
  24  1.15867e-06
  25  7.42408e-07
  26  4.16143e-07
  27  8.86149e-07
  28  0.233695
  29  0.186337
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.314e+00  2.151e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  8.421e-01  1.863e-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.113e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/919590/likelihoodResults_379036801_379296001_4FGL_J1132.7+0034_daily_bin539.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.21725024
delta logL = 1.05711264656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.21141439
delta logL = 1.06294849897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0111       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1041       1.0000          .0000       10.000    
     3 'Normalizat'    1.0533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87017       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=   5513.211     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      240 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0086        10.272        .10120E-01    .70033E-03
   2  Index         3.1048        2.7218        .11782        .13770E-03
   3  Normalizat    1.0531        .58847E-01    .58152E-01    .39307E-04
   4  Prefactor     .87041        .46735E-01    .44624E-01    .25218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00862
  Index      = 3.10481
  Normalizat = 1.05306
  Prefactor  = 0.870407
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.211     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0086        1.6175        .45777E-04   -1.5507    
   2  Index         3.1048        .87221        .44855E-02   -.38876    
   3  Normalizat    1.0531        .23080        .25716E-03   -.91273    
   4  Prefactor     .87041        .18493        .22777E-03   -.97183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47364e-11
Minuit parameter uncertainties:
  1  1.61755
  2  0.87746
  3  0.231024
  4  0.185062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919590': 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) = 5513.21141069
delta logL = 1.06295220115

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.009e+00  1.618e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  3.105e+00  8.775e-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:  8.704e-01  1.851e-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.053e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 173.196 0.574
Photon Index (Free Index): 3.10 +/- 0.88
Photon Flux (Free Index): 8.28e-08 +/- 5.57e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.03e-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/919590/cmap_HighResolution_379036801_379296001_4FGL_J1132.7+0034_daily_bin539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.57e-05', photon_flux_error='3.19e-08', dlogl='1.06e+00', energy_flux='1.75e-05', photon_flux2='8.28e-08', job_status='DONE', time_completed='2021-09-04 03:51:58.059887', photon_index_error2='0.88', photon_index2='3.10', ts='1.70', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.03e-05', EG='1.11', time_epoch_completed='1630752718.06', return_code='0', job_id='919590', GAL2='0.87', EG2='1.05', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='5.57e-08', ts2='3.91', photon_index='2.14' WHERE bin_id='539' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 919590: <4FGL_J1132.7+0034_daily_bin539> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin539 173.196 0.5737 379036801 379296001 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            946 sec.

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

