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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin585
RA = 173.196, Dec = 0.5737
tmin = 390960001, tmax = 391219201
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='919659', job_status='RUN', time_executed='2021-09-04 03:40:10.059111', time_epoch_executed='1630752010.06' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919659

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919659/ft1_4FGL_J1132.7+0034_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919659/ft2_4FGL_J1132.7+0034_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919659/ft1_4FGL_J1132.7+0034_daily_bin585.fits outfile=/scratch/kocevski/919659/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin585.fits ra=173.196 dec=0.5737 rad=12.0 tmin=390960001.0 tmax=391219201.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 4.46
user 4.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919659/ft2_4FGL_J1132.7+0034_daily_bin585.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/919659/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin585.fits evtable="EVENTS" outfile="/scratch/kocevski/919659/ft1_filtered_4FGL_J1132.7+0034_daily_bin585.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919659/ft1_filtered_4FGL_J1132.7+0034_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/919659/ft2_4FGL_J1132.7+0034_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/919659/ltcube_390960001_391219201_4FGL_J1132.7+0034_daily_bin585.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/919659/ft2_4FGL_J1132.7+0034_daily_bin585.fits
.....................!
real 11.82
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919659/ft1_filtered_4FGL_J1132.7+0034_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/919659/ft2_4FGL_J1132.7+0034_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/919659/ltcube_390960001_391219201_4FGL_J1132.7+0034_daily_bin585.fits outfile=/scratch/kocevski/919659/expmap_390960001_391219201_4FGL_J1132.7+0034_daily_bin585.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/919659/ltcube_390960001_391219201_4FGL_J1132.7+0034_daily_bin585.fits
.....................!
real 189.54
user 185.23
sys 3.94

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/919659/ft1_filtered_4FGL_J1132.7+0034_daily_bin585.fits scfile=/scratch/kocevski/919659/ft2_4FGL_J1132.7+0034_daily_bin585.fits outfile=/scratch/kocevski/919659/cmap_390960001_391219201_4FGL_J1132.7+0034_daily_bin585.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.65
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919659/ft1_filtered_4FGL_J1132.7+0034_daily_bin585.fits scfile=/scratch/kocevski/919659/ft2_4FGL_J1132.7+0034_daily_bin585.fits outfile=/scratch/kocevski/919659/cmap_HighResolution_390960001_391219201_4FGL_J1132.7+0034_daily_bin585.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.80
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919659/ft1_filtered_4FGL_J1132.7+0034_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/919659/ft2_4FGL_J1132.7+0034_daily_bin585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919659/Model_4FGL_J1132.7+0034_daily_bin585.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/919659/ft1_filtered_4FGL_J1132.7+0034_daily_bin585.fits.....................!
real 62.54
user 61.09
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4307       1.0000         .10000E-03   10000.    
     2 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1405       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9712       1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.100       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12371E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11066E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5265       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4160       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10829E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.421       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.4583       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7332       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.2160       1.0000         .10000E-03   10000.    
    27 'norm      '    1.8448       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92546       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1056       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=   6696.341     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3149 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4300        6.8773       -.11896E-06   -.12594E-03
   2  norm          .10000E-03    .18090        .20124E-07** at limit **
   3  Prefactor     7.1434        7.4151       -.87930E-07   -.18098E-03
   4  Prefactor     7.9703        10.221        .24692E-07   -.14714E-04
   5  Prefactor     55.117        19.018       -.64318E-05   -.10066E-02
   6  Prefactor     .10002E-03    31.795        .22138E-04** at limit **
   7  Prefactor     .10000E-03    3.1364        .21256E-06** at limit **
   8  Prefactor     .10000E-03    32.842        .13256E-04** at limit **
   9  norm          .10000E-03    8.6273        .17132E-05** at limit **
  10  Prefactor     .10000E-03    2.7343        .13903E-06** at limit **
  11  norm          .10000E-03    6.8171       -.36489E-06** at limit **
  12  Prefactor     2.5265        1.7248       -.47889E-07   -.72168E-04
  13  Prefactor     .10000E-03    5.5095        .13131E-06** at limit **
  14  norm          .10000E-03    1.5576       -.58550E-07** at limit **
  15  Prefactor     .10000E-03    1.3694       -.30857E-07** at limit **
  16  Prefactor     6.3763        18.659        .31069E-04   -.31251E-04
  17  Prefactor     .10000E-03    156.42       -.46887E-04** at limit **
  18  Prefactor     .10000E-03    10.973       -.20816E-05** at limit **
  19  Prefactor     .10000E-03    28.336       -.24930E-04** at limit **
  20  Prefactor     .10000E-03    3.9340       -.19242E-06** at limit **
  21  Prefactor     37.420        17.240        .36230E-06    .10713E-03
  22  Prefactor     8.4555        23.981        .93814E-06    .60583E-04
  23  Prefactor     .10000E-03    22.152        .18233E-04** at limit **
  24  Prefactor     1.7287        51.836        .19101E-05   -.12809E-03
  25  Prefactor     .10000E-03    28.267       -.25065E-04** at limit **
  26  Prefactor     9.2137        12.439       -.11511E-05   -.83602E-04
  27  norm          1.8446        2.1964        .87293E-07   -.11174E-03
  28  Normalizat    .92562        .19173        .70699E-06   -.24160E-03
  29  Prefactor     1.1055        .15534       -.10802E-05   -.20419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.43005
  norm       = 0.0001
  Prefactor  = 7.14341
  Prefactor  = 7.97031
  Prefactor  = 55.1169
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.52648
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.37632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4196
  Prefactor  = 8.45553
  Prefactor  = 0.0001
  Prefactor  = 1.72865
  Prefactor  = 0.0001
  Prefactor  = 9.21375
  norm       = 1.84459
  Normalizat = 0.925624
  Prefactor  = 1.10552
 **********
 **   18 **HESSE 
 **********

 FCN=   6696.341     FROM HESSE     STATUS=OK           547 CALLS     3696 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4300        6.8703        .15827E-03   -1.5201    
   2  norm          .10000E-03    .22650        .65091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1434        7.1460        .15012E-03   -1.5173    
   4  Prefactor     7.9703        10.220        .14201E-03   -1.5143    
   5  Prefactor     55.117        19.152        .54039E-04   -1.4222    
   6  Prefactor     .10002E-03    33.375        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2051        .14137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.8084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8558        .26402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.8223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5265        1.7272        .85863E-04   -1.5390    
  13  Prefactor     .10000E-03    5.5141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5618        .99728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3874        .93472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.3763        18.536        .15845E-03   -1.5203    
  17  Prefactor     .10000E-03    156.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9546        .15848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     37.420        17.250        .65517E-04   -1.4484    
  22  Prefactor     8.4555        23.975        .13784E-03   -1.5126    
  23  Prefactor     .10000E-03    22.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.7287        51.450        .31882E-03   -1.5445    
  25  Prefactor     .10000E-03    28.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.2137        12.356        .13202E-03   -1.5101    
  27  norm          1.8446        2.1852        .11841E-03   -1.5436    
  28  Normalizat    .92562        .22263        .29089E-03   -.95566    
  29  Prefactor     1.1055        .18068        .22115E-03   -.89290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71388e-09
Minuit parameter uncertainties:
  1  6.87115
  2  1.94739e-06
  3  7.14685
  4  10.222
  5  19.1539
  6  0.00147556
  7  4.3824e-05
  8  0.00015769
  9  0.000107628
  10  3.0543e-05
  11  3.81924e-06
  12  1.72721
  13  3.14658e-06
  14  8.68943e-07
  15  1.79382e-06
  16  18.5526
  17  2.69832e-05
  18  2.11299e-05
  19  3.13901e-06
  20  3.7546e-05
  21  17.2519
  22  24.002
  23  4.44296e-05
  24  18.8788
  25  1.65529e-05
  26  12.3596
  27  2.18525
  28  0.222851
  29  0.180776
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.526e+00  1.727e+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.106e+00  1.808e-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.256e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.27
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.30e-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) = 6694.22652785
delta logL = 2.11450402019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6694.17226001
delta logL = 2.16877186161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9568       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2428       1.0000          .0000       10.000    
     3 'Normalizat'    .94706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1001       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=   6694.172     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9567        1.4319        .74147E-02    .15951E-02
   2  Index         1.2428        .30634        .16975       -.40154E-04
   3  Normalizat    .94704        .18585        .65054E-01   -.50605E-04
   4  Prefactor     1.1001        .15382        .37585E-01   -.16090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.95674
  Index      = 1.24279
  Normalizat = 0.947038
  Prefactor  = 1.10007
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.172     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9567        1.8711        .78269E-04   -1.5428    
   2  Index         1.2428        .41990        .71149E-02   -.85025    
   3  Normalizat    .94704        .21641        .28774E-03   -.94826    
   4  Prefactor     1.1001        .17945        .22155E-03   -.89464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02141e-10
Minuit parameter uncertainties:
  1  1.87114
  2  0.421045
  3  0.216609
  4  0.179548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919659': 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) = 6694.17226
delta logL = 2.16877187094

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.957e+00  1.871e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.243e+00  4.210e-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.100e+00  1.795e-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.470e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.60
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.24 +/- 0.42
Photon Flux (Free Index): 1.29e-08 +/- 1.19e-08
Energy Flux (Free Index): 9.49e-05 +/- 9.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/919659/cmap_HighResolution_390960001_391219201_4FGL_J1132.7+0034_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='9.49e-05', photon_flux_error='2.56e-08', dlogl='2.17e+00', energy_flux='1.91e-05', photon_flux2='1.29e-08', job_status='DONE', time_completed='2021-09-04 03:52:27.151872', photon_index_error2='0.42', photon_index2='1.24', ts='12.27', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='9.50e-05', EG='0.93', time_epoch_completed='1630752747.15', return_code='0', job_id='919659', GAL2='1.10', EG2='0.95', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='1.19e-08', ts2='16.60', photon_index='2.14' WHERE bin_id='585' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 919659: <4FGL_J1132.7+0034_daily_bin585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin585 173.196 0.5737 390960001 391219201 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 :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            969 sec.

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

