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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin961
RA = 173.196, Dec = 0.5737
tmin = 488419201, tmax = 488678401
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='921508', job_status='RUN', time_executed='2021-09-04 03:44:24.720056', time_epoch_executed='1630752264.72' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921508

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921508/ft1_4FGL_J1132.7+0034_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921508/ft2_4FGL_J1132.7+0034_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921508/ft1_4FGL_J1132.7+0034_daily_bin961.fits outfile=/scratch/kocevski/921508/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin961.fits ra=173.196 dec=0.5737 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.15
user 6.84
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921508/ft1_filtered_4FGL_J1132.7+0034_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/921508/ft2_4FGL_J1132.7+0034_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/921508/ltcube_488419201_488678401_4FGL_J1132.7+0034_daily_bin961.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/921508/ft2_4FGL_J1132.7+0034_daily_bin961.fits
.....................!
real 12.07
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921508/ft1_filtered_4FGL_J1132.7+0034_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/921508/ft2_4FGL_J1132.7+0034_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/921508/ltcube_488419201_488678401_4FGL_J1132.7+0034_daily_bin961.fits outfile=/scratch/kocevski/921508/expmap_488419201_488678401_4FGL_J1132.7+0034_daily_bin961.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/921508/ltcube_488419201_488678401_4FGL_J1132.7+0034_daily_bin961.fits
.....................!
real 190.82
user 186.03
sys 4.40

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/921508/ft1_filtered_4FGL_J1132.7+0034_daily_bin961.fits scfile=/scratch/kocevski/921508/ft2_4FGL_J1132.7+0034_daily_bin961.fits outfile=/scratch/kocevski/921508/cmap_488419201_488678401_4FGL_J1132.7+0034_daily_bin961.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.66
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921508/ft1_filtered_4FGL_J1132.7+0034_daily_bin961.fits scfile=/scratch/kocevski/921508/ft2_4FGL_J1132.7+0034_daily_bin961.fits outfile=/scratch/kocevski/921508/cmap_HighResolution_488419201_488678401_4FGL_J1132.7+0034_daily_bin961.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.87
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7145       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4240       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.381       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.549       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11247E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.219       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0125       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.3221       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.795       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    180.98       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .18565E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    71.065       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93286       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94178       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=   3373.918     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3654 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.130        .66180E-05** at limit **
   2  norm          3.7145        1.0924        .73941E-08    .65239E-04
   3  Prefactor     .10000E-03    14.353       -.86516E-06** at limit **
   4  Prefactor     7.4001        39.773       -.34015E-04   -.18446E-04
   5  Prefactor     29.375        31.027       -.54102E-06    .10674E-03
   6  Prefactor     21.542        24.233        .16544E-05    .17663E-03
   7  Prefactor     .10000E-03    7.2758       -.12497E-05** at limit **
   8  Prefactor     .10000E-03    29.999        .33841E-05** at limit **
   9  norm          .10000E-03    26.674       -.14286E-04** at limit **
  10  Prefactor     12.214        8.3998       -.60123E-06    .43327E-03
  11  norm          .10000E-03    19.976       -.48642E-05** at limit **
  12  Prefactor     6.0124        3.5442       -.26102E-06   -.71044E-05
  13  Prefactor     .10000E-03    14.870        .19381E-05** at limit **
  14  norm          7.3208        8.7446       -.16934E-05   -.13772E-02
  15  Prefactor     7.2277        6.1527        .85316E-07   -.16788E-03
  16  Prefactor     19.799        22.269       -.11676E-05   -.78038E-04
  17  Prefactor     .10000E-03    124.79       -.13544E-03** at limit **
  18  Prefactor     .10000E-03    10.268        .78922E-05** at limit **
  19  Prefactor     .10000E-03    18.521        .23994E-05** at limit **
  20  Prefactor     .10000E-03    11.382       -.11703E-04** at limit **
  21  Prefactor     .10000E-03    6.3273        .38712E-05** at limit **
  22  Prefactor     .10000E-03    18.158        .38943E-05** at limit **
  23  Prefactor     181.00        79.505        .15669E-04    .85378E-04
  24  Prefactor     .10001E-03    88.166        .97955E-04** at limit **
  25  Prefactor     71.007        75.185       -.58090E-04    .14971E-06
  26  Prefactor     .10000E-03    6.2796       -.35015E-05** at limit **
  27  norm          .10000E-03    1.6824       -.91947E-07** at limit **
  28  Normalizat    .93262        .28558        .30623E-05   -.14180E-03
  29  Prefactor     .94212        .22107        .25513E-05   -.63305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.71453
  Prefactor  = 0.0001
  Prefactor  = 7.40005
  Prefactor  = 29.3752
  Prefactor  = 21.5418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2142
  norm       = 0.0001
  Prefactor  = 6.01236
  Prefactor  = 0.0001
  norm       = 7.3208
  Prefactor  = 7.22766
  Prefactor  = 19.7995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 181.002
  Prefactor  = 0.000100012
  Prefactor  = 71.0072
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.932624
  Prefactor  = 0.942116
 **********
 **   18 **HESSE 
 **********

 FCN=   3373.918     FROM HESSE     STATUS=OK           539 CALLS     4193 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7145        1.0922        .31482E-04   -1.5322    
   3  Prefactor     .10000E-03    14.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4001        40.238        .14720E-03   -1.5164    
   5  Prefactor     29.375        31.029        .73914E-04   -1.4623    
   6  Prefactor     21.542        24.223        .86284E-04   -1.4779    
   7  Prefactor     .10000E-03    7.4851        .30558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    26.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.214        8.3776        .11460E-03   -1.5009    
  11  norm          .10000E-03    19.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0124        3.5451        .80629E-04   -1.5218    
  13  Prefactor     .10000E-03    14.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.3208        8.7640        .74113E-03   -1.5167    
  15  Prefactor     7.2277        6.1494        .12163E-03   -1.5170    
  16  Prefactor     19.799        22.274        .90022E-04   -1.4818    
  17  Prefactor     .10000E-03    124.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.3320        .14269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     181.00        80.088        .15003E-03   -1.3009    
  24  Prefactor     .10001E-03    88.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     71.007        75.193        .23810E-03   -1.4021    
  26  Prefactor     .10000E-03    6.2899        .14218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.6941        .73572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .93262        .33465        .29988E-03   -.95323    
  29  Prefactor     .94212        .25853        .24311E-03   -.94685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54384e-09
Minuit parameter uncertainties:
  1  9.17931e-05
  2  1.09221
  3  3.70171e-05
  4  34.5475
  5  31.0463
  6  24.234
  7  2.00359e-05
  8  6.25952e-06
  9  1.95598e-05
  10  8.3784
  11  7.92759e-06
  12  3.54523
  13  3.21252e-06
  14  8.76549
  15  6.14997
  16  22.2833
  17  0.000287945
  18  2.16265e-05
  19  7.65757e-06
  20  0.000183122
  21  1.77709e-05
  22  7.99022e-06
  23  80.1363
  24  0.00206478
  25  75.2936
  26  2.3087e-05
  27  1.083e-05
  28  0.335396
  29  0.258873
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  6.012e+00  3.545e+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.421e-01  2.589e-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.326e-01  3.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.51
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 8.91e-08 +/- 5.25e-08
Energy Flux (Fixed Index): 4.54e-05 +/- 2.68e-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) = 3373.85558863
delta logL = 0.0620144261479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3373.85452533
delta logL = 0.063077728757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1128       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3051       1.0000          .0000       10.000    
     3 'Normalizat'    .92040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94894       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=   3373.855     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      233 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1128        74.334        .44452E-02    .19269E-03
   2  Index         2.3051        6.1508        .10698        .29233E-04
   3  Normalizat    .92040        .15485        .68180E-01   -.53523E-06
   4  Prefactor     .94894        .11764        .45626E-01    .13058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.1128
  Index      = 2.30506
  Normalizat = 0.920398
  Prefactor  = 0.948945
 **********
 **   18 **HESSE 
 **********

 FCN=   3373.855     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1128        4.2286        .73053E-04   -1.5256    
   2  Index         2.3051        .51202        .43827E-02   -.56923    
   3  Normalizat    .92040        .31440        .30162E-03   -.95747    
   4  Prefactor     .94894        .25626        .24234E-03   -.94451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0202e-11
Minuit parameter uncertainties:
  1  4.22881
  2  0.513288
  3  0.31503
  4  0.256587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921508': 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) = 3373.85452533
delta logL = 0.0630777292326

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  5.113e+00  4.229e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.305e+00  5.133e-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:  9.489e-01  2.566e-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.204e-01  3.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.58
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.31 +/- 0.51
Photon Flux (Free Index): 9.91e-08 +/- 6.24e-08
Energy Flux (Free Index): 3.72e-05 +/- 2.97e-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/921508/cmap_HighResolution_488419201_488678401_4FGL_J1132.7+0034_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.91e-08', energy_flux2='3.72e-05', photon_flux_error='5.25e-08', dlogl='6.31e-02', energy_flux='4.54e-05', photon_flux2='9.91e-08', job_status='DONE', time_completed='2021-09-04 03:54:04.852834', photon_index_error2='0.51', photon_index2='2.31', ts='5.51', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.97e-05', EG='0.93', time_epoch_completed='1630752844.85', return_code='0', job_id='921508', GAL2='0.95', EG2='0.92', return_code2='0', energy_flux_error='2.68e-05', photon_flux_error2='6.24e-08', ts2='5.58', photon_index='2.14' WHERE bin_id='961' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:54:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 921508: <4FGL_J1132.7+0034_daily_bin961> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin961 173.196 0.5737 488419201 488678401 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 :                                   573.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            731 sec.

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

