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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin941
RA = 173.196, Dec = 0.5737
tmin = 483235201, tmax = 483494401
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='921478', job_status='RUN', time_executed='2021-09-04 03:44:57.722102', time_epoch_executed='1630752297.72' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921478/ft1_4FGL_J1132.7+0034_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921478/ft2_4FGL_J1132.7+0034_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921478/ft1_4FGL_J1132.7+0034_daily_bin941.fits outfile=/scratch/kocevski/921478/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin941.fits ra=173.196 dec=0.5737 rad=12.0 tmin=483235201.0 tmax=483494401.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.61
user 3.21
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/921478/ft2_4FGL_J1132.7+0034_daily_bin941.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/921478/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin941.fits evtable="EVENTS" outfile="/scratch/kocevski/921478/ft1_filtered_4FGL_J1132.7+0034_daily_bin941.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.53
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921478/ft1_filtered_4FGL_J1132.7+0034_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/921478/ft2_4FGL_J1132.7+0034_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/921478/ltcube_483235201_483494401_4FGL_J1132.7+0034_daily_bin941.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/921478/ft2_4FGL_J1132.7+0034_daily_bin941.fits
.....................!
real 12.28
user 11.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921478/ft1_filtered_4FGL_J1132.7+0034_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/921478/ft2_4FGL_J1132.7+0034_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/921478/ltcube_483235201_483494401_4FGL_J1132.7+0034_daily_bin941.fits outfile=/scratch/kocevski/921478/expmap_483235201_483494401_4FGL_J1132.7+0034_daily_bin941.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/921478/ltcube_483235201_483494401_4FGL_J1132.7+0034_daily_bin941.fits
.....................!
real 190.66
user 185.25
sys 4.98

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/921478/ft1_filtered_4FGL_J1132.7+0034_daily_bin941.fits scfile=/scratch/kocevski/921478/ft2_4FGL_J1132.7+0034_daily_bin941.fits outfile=/scratch/kocevski/921478/cmap_483235201_483494401_4FGL_J1132.7+0034_daily_bin941.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 1.05
user 0.37
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921478/ft1_filtered_4FGL_J1132.7+0034_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/921478/ft2_4FGL_J1132.7+0034_daily_bin941.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921478/Model_4FGL_J1132.7+0034_daily_bin941.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/921478/ft1_filtered_4FGL_J1132.7+0034_daily_bin941.fits.....................!
real 51.18
user 48.15
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4737       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8449       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4429       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42603E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12806E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4758       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.657       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0706       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.453       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6796       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3374       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.723       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.5759       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82763       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1245       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=   5053.609     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3164 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0941        .19695E-07** at limit **
   2  norm          1.4735        .74041       -.16970E-07   -.10358E-03
   3  Prefactor     4.8457        9.1446        .10594E-07   -.51288E-04
   4  Prefactor     2.4211        56.204       -.38893E-06   -.17076E-04
   5  Prefactor     .10000E-03    23.629        .60048E-05** at limit **
   6  Prefactor     .10000E-03    7.5959       -.20477E-06** at limit **
   7  Prefactor     .10000E-03    5.1368        .40862E-07** at limit **
   8  Prefactor     .10000E-03    26.004        .31706E-05** at limit **
   9  norm          .10000E-03    3.3247        .18989E-07** at limit **
  10  Prefactor     .10000E-03    1.6944        .40932E-08** at limit **
  11  norm          .10000E-03    19.547       -.10426E-05** at limit **
  12  Prefactor     2.4755        1.7936       -.10950E-07    .12735E-04
  13  Prefactor     12.603        24.396       -.26335E-06   -.47531E-05
  14  norm          .10000E-03    5.9449        .60758E-08** at limit **
  15  Prefactor     2.0703        3.1709        .65924E-08   -.13076E-03
  16  Prefactor     .10000E-03    7.7040        .23999E-07** at limit **
  17  Prefactor     .10000E-03    125.08       -.25697E-05** at limit **
  18  Prefactor     12.450        13.714       -.52050E-07   -.11734E-04
  19  Prefactor     .10000E-03    12.299       -.68932E-06** at limit **
  20  Prefactor     3.6803        4.3464        .11733E-05   -.16772E-02
  21  Prefactor     7.3352        18.839       -.28750E-06    .13260E-04
  22  Prefactor     .10000E-03    13.723        .14691E-05** at limit **
  23  Prefactor     38.714        34.345       -.35389E-05   -.12012E-03
  24  Prefactor     .10000E-03    29.787       -.83169E-05** at limit **
  25  Prefactor     .10000E-03    50.967        .35425E-05** at limit **
  26  Prefactor     .10000E-03    18.834       -.28136E-05** at limit **
  27  norm          3.5763        2.7645        .17340E-07    .17899E-03
  28  Normalizat    .82758        .21541        .60845E-06    .18631E-04
  29  Prefactor     1.1247        .17057       -.19808E-06    .56227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.47346
  Prefactor  = 4.8457
  Prefactor  = 2.42113
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.47554
  Prefactor  = 12.6031
  norm       = 0.0001
  Prefactor  = 2.07033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4496
  Prefactor  = 0.0001
  Prefactor  = 3.68031
  Prefactor  = 7.3352
  Prefactor  = 0.0001
  Prefactor  = 38.7138
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.57625
  Normalizat = 0.827578
  Prefactor  = 1.12468
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.609     FROM HESSE     STATUS=OK           549 CALLS     3713 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1095        .14045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4735        .75062        .37657E-04   -1.5465    
   3  Prefactor     4.8457        9.3057        .18276E-03   -1.5268    
   4  Prefactor     2.4211        56.341        .26175E-03   -1.5397    
   5  Prefactor     .10000E-03    23.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    161.78        .37495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3325        .31411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.3299        .12656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6990        .90297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    19.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4755        1.7934        .78557E-04   -1.5393    
  13  Prefactor     12.603        24.382        .11259E-03   -1.4998    
  14  norm          .10000E-03    6.1816        .33821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0703        3.1516        .15096E-03   -1.5420    
  16  Prefactor     .10000E-03    7.7065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    125.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.450        13.715        .11351E-03   -1.5002    
  19  Prefactor     .10000E-03    12.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6803        7.7031        .10528E-02   -1.5324    
  21  Prefactor     7.3352        18.815        .14807E-03   -1.5166    
  22  Prefactor     .10000E-03    13.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     38.714        34.386        .64410E-04   -1.4463    
  24  Prefactor     .10000E-03    30.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    51.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.5763        2.7641        .10103E-03   -1.5330    
  28  Normalizat    .82758        .24611        .29712E-03   -.99054    
  29  Prefactor     1.1247        .19532        .21299E-03   -.88682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67181e-09
Minuit parameter uncertainties:
  1  2.7458e-07
  2  0.750626
  3  9.30844
  4  23.3833
  5  0.000307591
  6  0.000727013
  7  5.32285e-06
  8  0.000192783
  9  6.41236e-07
  10  3.83003e-07
  11  5.32196e-05
  12  1.79345
  13  24.401
  14  1.11071e-06
  15  3.15186
  16  2.14584e-06
  17  0.000269771
  18  13.7185
  19  2.89894e-05
  20  7.70519
  21  18.8302
  22  6.69548e-05
  23  34.4038
  24  0.00050022
  25  0.000339359
  26  0.000114873
  27  2.76421
  28  0.246445
  29  0.195445
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.476e+00  1.793e+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.125e+00  1.954e-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:  8.276e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.47
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.35e-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) = 5053.59904816
delta logL = 0.0104416172317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5053.59683432
delta logL = 0.0126554529543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6016       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0433       1.0000          .0000       10.000    
     3 'Normalizat'    .83076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1233       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=   5053.597     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6018        56.175        .63234E-02   -.17456E-04
   2  Index         2.0433        5.7769        .20784        .30331E-04
   3  Normalizat    .83073        .12683        .67041E-01    .16526E-04
   4  Prefactor     1.1233        .76491E-01    .36762E-01    .13508E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6018
  Index      = 2.04327
  Normalizat = 0.830733
  Prefactor  = 1.12332
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.597     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6018        2.0381        .81176E-04   -1.5385    
   2  Index         2.0433        .57797        .74497E-02   -.63273    
   3  Normalizat    .83073        .23491        .29660E-03   -.98939    
   4  Prefactor     1.1233        .19396        .21310E-03   -.88725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07739e-10
Minuit parameter uncertainties:
  1  2.03813
  2  0.579967
  3  0.235199
  4  0.194085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921478': 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) = 5053.5968343
delta logL = 0.0126554781655

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.602e+00  2.038e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.043e+00  5.800e-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.123e+00  1.941e-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:  8.307e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.49
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.04 +/- 0.58
Photon Flux (Free Index): 3.36e-08 +/- 3.07e-08
Energy Flux (Free Index): 2.10e-05 +/- 2.27e-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/921478/cmap_HighResolution_483235201_483494401_4FGL_J1132.7+0034_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='2.10e-05', photon_flux_error='2.66e-08', dlogl='1.27e-02', energy_flux='1.87e-05', photon_flux2='3.36e-08', job_status='DONE', time_completed='2021-09-04 03:55:31.432690', photon_index_error2='0.58', photon_index2='2.04', ts='5.47', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='0.83', time_epoch_completed='1630752931.43', return_code='0', job_id='921478', GAL2='1.12', EG2='0.83', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='3.07e-08', ts2='5.49', photon_index='2.14' WHERE bin_id='941' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:55:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 921478: <4FGL_J1132.7+0034_daily_bin941> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin941 173.196 0.5737 483235201 483494401 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 :                                   629.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            821 sec.

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

