/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 107 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 = 7479
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin424
RA = 173.196, Dec = 0.5737
tmin = 349228801, tmax = 349488001
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='919423', job_status='RUN', time_executed='2021-09-04 03:37:59.862670', time_epoch_executed='1630751879.86' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919423

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919423/ft1_4FGL_J1132.7+0034_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919423/ft2_4FGL_J1132.7+0034_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919423/ft1_4FGL_J1132.7+0034_daily_bin424.fits outfile=/scratch/kocevski/919423/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin424.fits ra=173.196 dec=0.5737 rad=12.0 tmin=349228801.0 tmax=349488001.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.47
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919423/ft1_filtered_4FGL_J1132.7+0034_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/919423/ft2_4FGL_J1132.7+0034_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/919423/ltcube_349228801_349488001_4FGL_J1132.7+0034_daily_bin424.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/919423/ft2_4FGL_J1132.7+0034_daily_bin424.fits
.....................!
real 13.17
user 12.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919423/ft1_filtered_4FGL_J1132.7+0034_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/919423/ft2_4FGL_J1132.7+0034_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/919423/ltcube_349228801_349488001_4FGL_J1132.7+0034_daily_bin424.fits outfile=/scratch/kocevski/919423/expmap_349228801_349488001_4FGL_J1132.7+0034_daily_bin424.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/919423/ltcube_349228801_349488001_4FGL_J1132.7+0034_daily_bin424.fits
.....................!
real 192.30
user 187.71
sys 3.97

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/919423/ft1_filtered_4FGL_J1132.7+0034_daily_bin424.fits scfile=/scratch/kocevski/919423/ft2_4FGL_J1132.7+0034_daily_bin424.fits outfile=/scratch/kocevski/919423/cmap_349228801_349488001_4FGL_J1132.7+0034_daily_bin424.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.58
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919423/ft1_filtered_4FGL_J1132.7+0034_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/919423/ft2_4FGL_J1132.7+0034_daily_bin424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919423/Model_4FGL_J1132.7+0034_daily_bin424.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/919423/ft1_filtered_4FGL_J1132.7+0034_daily_bin424.fits.....................!
real 67.47
user 65.99
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5100       1.0000         .10000E-03   10000.    
     2 'norm      '    .89576       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1090       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6040       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0079       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2423       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.647       1.0000         .10000E-03   10000.    
    14 'norm      '    33.002       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.810       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.536       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.641       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.343       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .73444       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0806       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95350       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=   7524.379     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3715 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5095        7.8603        .20945E-06    .67029E-05
   2  norm          .89578        .57936       -.73332E-07   -.38992E-03
   3  Prefactor     9.3934        8.1878        .12246E-06   -.21714E-04
   4  Prefactor     1.1028        48.110       -.21108E-04   -.17270E-03
   5  Prefactor     .10000E-03    12.120       -.11678E-04** at limit **
   6  Prefactor     .10000E-03    6.5586        .49856E-05** at limit **
   7  Prefactor     .10000E-03    2.7651        .14306E-07** at limit **
   8  Prefactor     .10000E-03    12.986        .10527E-04** at limit **
   9  norm          3.6048        4.1356        .98986E-07    .22855E-04
  10  Prefactor     2.0083        2.8511       -.38663E-06   -.46830E-03
  11  norm          .10000E-03    7.3546       -.28845E-05** at limit **
  12  Prefactor     2.2422        1.5833       -.85905E-09    .13886E-03
  13  Prefactor     12.647        16.782        .41864E-06    .97714E-05
  14  norm          32.997        8.8624       -.75457E-07    .87535E-04
  15  Prefactor     .10000E-03    1.5993       -.12771E-06** at limit **
  16  Prefactor     42.808        22.166        .18329E-06    .95654E-05
  17  Prefactor     .10000E-03    56.827        .11188E-06** at limit **
  18  Prefactor     .10000E-03    6.5493       -.39484E-05** at limit **
  19  Prefactor     29.529        43.831        .67845E-06   -.45291E-05
  20  Prefactor     .10000E-03    2.0942        .38471E-07** at limit **
  21  Prefactor     .10000E-03    7.1828        .16928E-05** at limit **
  22  Prefactor     41.636        36.487        .36555E-05   -.67227E-05
  23  Prefactor     .10000E-03    19.761       -.10792E-05** at limit **
  24  Prefactor     14.341        18.300        .19193E-06   -.32635E-04
  25  Prefactor     .58954        40.123       -.40478E-05    .10168E-03
  26  Prefactor     .10000E-03    9.6738        .30106E-05** at limit **
  27  norm          .10000E-03    1.1264        .10677E-06** at limit **
  28  Normalizat    1.0808        .18260        .96781E-06    .38216E-03
  29  Prefactor     .95332        .14681        .83251E-07    .40905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.50955
  norm       = 0.895777
  Prefactor  = 9.39341
  Prefactor  = 1.10285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.6048
  Prefactor  = 2.00835
  norm       = 0.0001
  Prefactor  = 2.24224
  Prefactor  = 12.6467
  norm       = 32.9974
  Prefactor  = 0.0001
  Prefactor  = 42.8084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.5293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.6361
  Prefactor  = 0.0001
  Prefactor  = 14.3406
  Prefactor  = 0.589539
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.0808
  Prefactor  = 0.953316
 **********
 **   18 **HESSE 
 **********

 FCN=   7524.379     FROM HESSE     STATUS=OK           559 CALLS     4274 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5095        7.8502        .12995E-03   -1.5091    
   2  norm          .89578        .57438        .45562E-04   -1.5519    
   3  Prefactor     9.3934        8.2967        .13076E-03   -1.5095    
   4  Prefactor     1.1028        53.874        .44891E-02   -1.5498    
   5  Prefactor     .10000E-03    12.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8087        .14064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6048        4.1274        .18286E-03   -1.5328    
  10  Prefactor     2.0083        2.8308        .16572E-03   -1.5425    
  11  norm          .10000E-03    7.3472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2422        1.5885        .88592E-04   -1.5408    
  13  Prefactor     12.647        16.744        .11264E-03   -1.4997    
  14  norm          32.997        8.6189        .69752E-04   -1.4558    
  15  Prefactor     .10000E-03    2.6621        .20661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.808        22.166        .61270E-04   -1.4398    
  17  Prefactor     .10000E-03    56.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.529        43.757        .73721E-04   -1.4621    
  20  Prefactor     .10000E-03    2.0984        .12258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     41.636        36.427        .62121E-04   -1.4417    
  23  Prefactor     .10000E-03    19.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.341        18.289        .10576E-03   -1.4950    
  25  Prefactor     .58954        43.798        .15677       -1.5554    
  26  Prefactor     .10000E-03    9.7690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.1389        .89840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0808        .21567        .27734E-03   -.90371    
  29  Prefactor     .95332        .17326        .23831E-03   -.94302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55736e-09
Minuit parameter uncertainties:
  1  7.851
  2  0.574383
  3  8.29773
  4  15.4303
  5  1.76206e-05
  6  3.51691e-06
  7  3.47475e-06
  8  4.24225e-07
  9  4.12768
  10  2.83101
  11  9.81999e-07
  12  1.58852
  13  16.7504
  14  8.61921
  15  1.81127e-05
  16  22.1704
  17  3.12954e-06
  18  1.6874e-06
  19  43.8045
  20  1.22185e-06
  21  3.07638e-05
  22  36.4465
  23  9.06245e-06
  24  18.2957
  25  10.1697
  26  2.74594e-05
  27  3.19948e-06
  28  0.215847
  29  0.173361
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.242e+00  1.589e+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.533e-01  1.734e-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.081e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.81
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.20e-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) = 7523.73021623
delta logL = 0.648332741749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7523.65372884
delta logL = 0.724820132891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5711       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3995       1.0000          .0000       10.000    
     3 'Normalizat'    1.1061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94502       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=   7523.654     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5687        1.2249        .84786E-02   -.12668E-03
   2  Index         1.3983        .38434        .23488       -.91530E-04
   3  Normalizat    1.1061        .17696        .62053E-01    .37034E-04
   4  Prefactor     .94502        .14435        .45576E-01    .41023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56869
  Index      = 1.39834
  Normalizat = 1.10608
  Prefactor  = 0.945016
 **********
 **   18 **HESSE 
 **********

 FCN=   7523.654     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5687        1.5571        .81551E-04   -1.5457    
   2  Index         1.3983        .54355        .92452E-02   -.80428    
   3  Normalizat    1.1061        .20853        .27447E-03   -.89557    
   4  Prefactor     .94502        .17032        .23925E-03   -.94585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84349e-11
Minuit parameter uncertainties:
  1  1.5571
  2  0.545803
  3  0.208684
  4  0.170418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919423': 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) = 7523.6537268
delta logL = 0.724822176322

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.569e+00  1.557e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.398e+00  5.458e-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.450e-01  1.704e-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.106e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.24
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.40 +/- 0.55
Photon Flux (Free Index): 1.06e-08 +/- 1.19e-08
Energy Flux (Free Index): 4.70e-05 +/- 5.92e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/919423/cmap_HighResolution_349228801_349488001_4FGL_J1132.7+0034_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='4.70e-05', photon_flux_error='2.35e-08', dlogl='7.25e-01', energy_flux='1.69e-05', photon_flux2='1.06e-08', job_status='DONE', time_completed='2021-09-04 03:52:14.928865', photon_index_error2='0.55', photon_index2='1.40', ts='11.81', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='5.92e-05', EG='1.08', time_epoch_completed='1630752734.93', return_code='0', job_id='919423', GAL2='0.95', EG2='1.11', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.19e-08', ts2='13.24', photon_index='2.14' WHERE bin_id='424' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 919423: <4FGL_J1132.7+0034_daily_bin424> in cluster <slac> Done

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

Your job looked like:

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

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

