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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin839
RA = 173.196, Dec = 0.5737
tmin = 456796801, tmax = 457056001
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='921324', job_status='RUN', time_executed='2021-09-04 03:43:43.069614', time_epoch_executed='1630752223.07' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='839'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921324

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921324/ft1_4FGL_J1132.7+0034_daily_bin839.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921324/ft2_4FGL_J1132.7+0034_daily_bin839.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921324/ft1_4FGL_J1132.7+0034_daily_bin839.fits outfile=/scratch/kocevski/921324/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin839.fits ra=173.196 dec=0.5737 rad=12.0 tmin=456796801.0 tmax=457056001.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.10
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/921324/ft2_4FGL_J1132.7+0034_daily_bin839.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/921324/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin839.fits evtable="EVENTS" outfile="/scratch/kocevski/921324/ft1_filtered_4FGL_J1132.7+0034_daily_bin839.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921324/ft1_filtered_4FGL_J1132.7+0034_daily_bin839.fits" evtable="EVENTS" scfile=/scratch/kocevski/921324/ft2_4FGL_J1132.7+0034_daily_bin839.fits sctable="SC_DATA" outfile=/scratch/kocevski/921324/ltcube_456796801_457056001_4FGL_J1132.7+0034_daily_bin839.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/921324/ft2_4FGL_J1132.7+0034_daily_bin839.fits
.....................!
real 12.23
user 11.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921324/ft1_filtered_4FGL_J1132.7+0034_daily_bin839.fits evtable="EVENTS" scfile=/scratch/kocevski/921324/ft2_4FGL_J1132.7+0034_daily_bin839.fits sctable="SC_DATA" expcube=/scratch/kocevski/921324/ltcube_456796801_457056001_4FGL_J1132.7+0034_daily_bin839.fits outfile=/scratch/kocevski/921324/expmap_456796801_457056001_4FGL_J1132.7+0034_daily_bin839.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/921324/ltcube_456796801_457056001_4FGL_J1132.7+0034_daily_bin839.fits
.....................!
real 192.12
user 186.62
sys 5.15

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/921324/ft1_filtered_4FGL_J1132.7+0034_daily_bin839.fits scfile=/scratch/kocevski/921324/ft2_4FGL_J1132.7+0034_daily_bin839.fits outfile=/scratch/kocevski/921324/cmap_456796801_457056001_4FGL_J1132.7+0034_daily_bin839.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.60
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921324/ft1_filtered_4FGL_J1132.7+0034_daily_bin839.fits scfile=/scratch/kocevski/921324/ft2_4FGL_J1132.7+0034_daily_bin839.fits outfile=/scratch/kocevski/921324/cmap_HighResolution_456796801_457056001_4FGL_J1132.7+0034_daily_bin839.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921324/ft1_filtered_4FGL_J1132.7+0034_daily_bin839.fits evtable="EVENTS" scfile=/scratch/kocevski/921324/ft2_4FGL_J1132.7+0034_daily_bin839.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921324/Model_4FGL_J1132.7+0034_daily_bin839.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/921324/ft1_filtered_4FGL_J1132.7+0034_daily_bin839.fits.....................!
real 52.76
user 51.31
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21786E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17130E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2597       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7305       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17022E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9614       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.714       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3481       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39600E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.288       1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.322       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10591E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3965       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90943       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=   5362.175     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     4333 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    5.4146       -.46340E-06** at limit **
   2  norm          2.3607        .83913        .22598E-08   -.73640E-03
   3  Prefactor     .10000E-03    7.7174        .35284E-05** at limit **
   4  Prefactor     .10000E-03    36.835        .90786E-05** at limit **
   5  Prefactor     .10000E-03    7.0019       -.27840E-06** at limit **
   6  Prefactor     .10000E-03    8.3810       -.28967E-05** at limit **
   7  Prefactor     .10000E-03    3.3433        .13787E-07** at limit **
   8  Prefactor     .10000E-03    28.184       -.60780E-05** at limit **
   9  norm          .10000E-03    4.5779        .45862E-07** at limit **
  10  Prefactor     .10000E-03    3.5941        .25494E-06** at limit **
  11  norm          .10000E-03    8.8186        .37977E-05** at limit **
  12  Prefactor     2.2607        2.7565       -.92437E-07   -.47496E-03
  13  Prefactor     .10000E-03    17.528       -.85055E-05** at limit **
  14  norm          .10000E-03    2.4505        .25875E-07** at limit **
  15  Prefactor     9.7306        5.0981       -.55362E-06   -.20343E-03
  16  Prefactor     .10155E-03    24.932       -.28794E-05** at limit **
  17  Prefactor     4.9876        140.01        .68563E-04   -.40979E-05
  18  Prefactor     10.715        10.342       -.43086E-06   -.62981E-04
  19  Prefactor     .10000E-03    18.860        .33110E-05** at limit **
  20  Prefactor     8.3535        11.905       -.29948E-07    .47896E-04
  21  Prefactor     .10019E-03    13.340        .17908E-05** at limit **
  22  Prefactor     .10000E-03    25.850        .17713E-05** at limit **
  23  Prefactor     37.292        43.692        .14569E-05   -.35230E-05
  24  Prefactor     44.312        33.654       -.22357E-05    .12625E-03
  25  Prefactor     .10000E-03    20.259        .10901E-04** at limit **
  26  Prefactor     .10000E-03    28.216       -.63321E-05** at limit **
  27  norm          .10002E-03    2.2643       -.59000E-06** at limit **
  28  Normalizat    1.3960        .23526       -.92458E-06    .62493E-04
  29  Prefactor     .90958        .18144        .11749E-06   -.22595E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  norm       = 2.36073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.2607
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.73056
  Prefactor  = 0.000101549
  Prefactor  = 4.98762
  Prefactor  = 10.7146
  Prefactor  = 0.0001
  Prefactor  = 8.35353
  Prefactor  = 0.000100191
  Prefactor  = 0.0001
  Prefactor  = 37.2918
  Prefactor  = 44.3117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100024
  Normalizat = 1.396
  Prefactor  = 0.909579
 **********
 **   18 **HESSE 
 **********

 FCN=   5362.175     FROM HESSE     STATUS=OK           555 CALLS     4888 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    26.862        .32604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3607        .83205        .37768E-04   -1.5401    
   3  Prefactor     .10000E-03    7.7506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3970        .13062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.5967        .15297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8449        .26700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.8242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2607        2.7454        .12759E-03   -1.5407    
  13  Prefactor     .10000E-03    17.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4550        .11192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7306        5.0911        .11495E-03   -1.5084    
  16  Prefactor     .10155E-03    187.30        .69399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9876        139.33        .18056E-03   -1.5261    
  18  Prefactor     10.715        10.340        .12240E-03   -1.5053    
  19  Prefactor     .10000E-03    18.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.3535        11.794        .13875E-03   -1.5130    
  21  Prefactor     .10019E-03    151.76        .50924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.292        43.745        .65633E-04   -1.4486    
  24  Prefactor     44.312        33.035        .60221E-04   -1.4376    
  25  Prefactor     .10000E-03    20.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    28.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10002E-03    8.0671        .20904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3960        .27253        .26799E-03   -.80744    
  29  Prefactor     .90958        .21092        .25949E-03   -.95807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24877e-08
Minuit parameter uncertainties:
  1  0.0011519
  2  0.832054
  3  1.28106e-06
  4  4.94736e-05
  5  5.96454e-06
  6  1.53422e-05
  7  6.03636e-06
  8  6.21781e-06
  9  4.1279e-06
  10  6.6179e-05
  11  1.00712e-06
  12  2.74557
  13  2.15038e-05
  14  4.65324e-06
  15  5.09128
  16  0.034174
  17  52.8587
  18  10.3419
  19  6.85894e-06
  20  11.7974
  21  0.0107841
  22  6.14154e-07
  23  43.7829
  24  33.0491
  25  1.34023e-05
  26  0.000235353
  27  0.000880984
  28  0.272816
  29  0.211106
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.261e+00  2.746e+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:  9.096e-01  2.111e-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.396e+00  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/921324/likelihoodResults_456796801_457056001_4FGL_J1132.7+0034_daily_bin839.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) = 5362.01122856
delta logL = 0.164085930805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5362.00017911
delta logL = 0.175135377506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1623       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8311       1.0000          .0000       10.000    
     3 'Normalizat'    1.3624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92800       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5362.000     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      267 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1622        5.6604        .42710E-04   -.13213E-02
   2  Index         2.8311        2.4247        .73028E-02   -.16860E-03
   3  Normalizat    1.3624        .27394        .27077E-03   -.23081E-03
   4  Prefactor     .92797        .21705        .25723E-03   -.27198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16216
  Index      = 2.83115
  Normalizat = 1.36238
  Prefactor  = 0.927966
 **********
 **   18 **HESSE 
 **********

 FCN=   5362.000     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1622        2.7022        .17084E-05   -1.5492    
   2  Index         2.8311        1.3265        .29211E-03   -.44867    
   3  Normalizat    1.3624        .26832        .54153E-04   -.81723    
   4  Prefactor     .92797        .21215        .51446E-04   -.95171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48968e-10
Minuit parameter uncertainties:
  1  2.70246
  2  1.34643
  3  0.268596
  4  0.212344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921324': 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) = 5362.00017909
delta logL = 0.175135394014

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.162e+00  2.702e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.831e+00  1.346e+00  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:  9.280e-01  2.123e-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.362e+00  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.83 +/- 1.35
Photon Flux (Free Index): 5.68e-08 +/- 6.29e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.40e-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/921324/cmap_HighResolution_456796801_457056001_4FGL_J1132.7+0034_daily_bin839.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.48e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='1.75e-01', photon_flux2='5.68e-08', job_status='DONE', time_completed='2021-09-04 03:57:52.674472', photon_index_error2='1.35', photon_index2='2.83', ts='0.88', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.40e-05', EG='1.40', time_epoch_completed='1630753072.67', return_code='0', job_id='921324', GAL2='0.93', EG2='1.36', return_code2='0', photon_flux_error2='6.29e-08', ts2='1.24', photon_index='2.14' WHERE bin_id='839' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:57:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 921324: <4FGL_J1132.7+0034_daily_bin839> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin839> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:39 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:41 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:41:41 2021
Terminated at Sat Sep  4 03:57:53 2021
Results reported at Sat Sep  4 03:57:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin839 173.196 0.5737 456796801 457056001 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 :                                   848.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            974 sec.

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

