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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin432
RA = 173.196, Dec = 0.5737
tmin = 351302401, tmax = 351561601
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='919434', job_status='RUN', time_executed='2021-09-04 03:38:18.412501', time_epoch_executed='1630751898.41' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919434

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919434/ft1_4FGL_J1132.7+0034_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919434/ft2_4FGL_J1132.7+0034_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919434/ft1_4FGL_J1132.7+0034_daily_bin432.fits outfile=/scratch/kocevski/919434/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin432.fits ra=173.196 dec=0.5737 rad=12.0 tmin=351302401.0 tmax=351561601.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.44
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919434/ft1_filtered_4FGL_J1132.7+0034_daily_bin432.fits" evtable="EVENTS" scfile=/scratch/kocevski/919434/ft2_4FGL_J1132.7+0034_daily_bin432.fits sctable="SC_DATA" outfile=/scratch/kocevski/919434/ltcube_351302401_351561601_4FGL_J1132.7+0034_daily_bin432.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/919434/ft2_4FGL_J1132.7+0034_daily_bin432.fits
.....................!
real 13.86
user 13.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919434/ft1_filtered_4FGL_J1132.7+0034_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/919434/ft2_4FGL_J1132.7+0034_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/919434/ltcube_351302401_351561601_4FGL_J1132.7+0034_daily_bin432.fits outfile=/scratch/kocevski/919434/expmap_351302401_351561601_4FGL_J1132.7+0034_daily_bin432.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/919434/ltcube_351302401_351561601_4FGL_J1132.7+0034_daily_bin432.fits
.....................!
real 190.66
user 185.30
sys 4.91

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/919434/ft1_filtered_4FGL_J1132.7+0034_daily_bin432.fits scfile=/scratch/kocevski/919434/ft2_4FGL_J1132.7+0034_daily_bin432.fits outfile=/scratch/kocevski/919434/cmap_351302401_351561601_4FGL_J1132.7+0034_daily_bin432.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919434/ft1_filtered_4FGL_J1132.7+0034_daily_bin432.fits scfile=/scratch/kocevski/919434/ft2_4FGL_J1132.7+0034_daily_bin432.fits outfile=/scratch/kocevski/919434/cmap_HighResolution_351302401_351561601_4FGL_J1132.7+0034_daily_bin432.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919434/ft1_filtered_4FGL_J1132.7+0034_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/919434/ft2_4FGL_J1132.7+0034_daily_bin432.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919434/Model_4FGL_J1132.7+0034_daily_bin432.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/919434/ft1_filtered_4FGL_J1132.7+0034_daily_bin432.fits.....................!
real 53.01
user 51.67
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8664       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.193       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5485       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1881       1.0000         .10000E-03   10000.    
     9 'norm      '    .88649       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    21.570       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.825       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.465       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9505       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.320       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13537E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.607       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.675       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0063       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0440       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=   5471.760     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     4239 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8672        8.2921       -.21212E-06    .17175E-04
   2  norm          .10000E-03    .16057       -.77698E-07** at limit **
   3  Prefactor     .10000E-03    3.1030       -.11159E-06** at limit **
   4  Prefactor     49.764        27.310       -.13172E-06   -.10687E-04
   5  Prefactor     24.203        31.796        .24546E-05    .15167E-03
   6  Prefactor     5.3490        16.413        .15259E-05    .12339E-03
   7  Prefactor     7.5502        6.5111       -.60108E-06    .15401E-03
   8  Prefactor     9.1411        327.02       -.43847E-05    .13082E-04
   9  norm          .87305        12.029       -.12424E-05    .70538E-05
  10  Prefactor     .10000E-03    2.9434       -.29513E-06** at limit **
  11  norm          .10000E-03    6.8463       -.30767E-06** at limit **
  12  Prefactor     .10000E-03    1.3736       -.21199E-06** at limit **
  13  Prefactor     .10000E-03    15.586       -.33135E-06** at limit **
  14  norm          21.577        9.2369       -.17324E-06   -.35713E-03
  15  Prefactor     .10002E-03    3.0206        .57896E-06** at limit **
  16  Prefactor     .10000E-03    10.888       -.24992E-07** at limit **
  17  Prefactor     37.821        86.242       -.10888E-05    .16935E-04
  18  Prefactor     .10000E-03    8.4291        .40591E-07** at limit **
  19  Prefactor     34.431        41.191       -.20350E-05    .20661E-05
  20  Prefactor     2.9505        5.9344       -.24700E-06    .47005E-04
  21  Prefactor     .10000E-03    6.5140        .28017E-06** at limit **
  22  Prefactor     42.328        37.684        .26185E-06   -.30909E-04
  23  Prefactor     .10001E-03    414.20       -.87372E-05** at limit **
  24  Prefactor     31.620        22.647        .15305E-06   -.10959E-04
  25  Prefactor     .10000E-03    33.771        .35488E-06** at limit **
  26  Prefactor     21.673        16.058       -.28879E-06    .33584E-04
  27  norm          .10000E-03    1.1863       -.33690E-07** at limit **
  28  Normalizat    1.0057        .23680        .34704E-05    .97506E-04
  29  Prefactor     1.0446        .18651       -.14800E-05    .24282E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.86721
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.7636
  Prefactor  = 24.2027
  Prefactor  = 5.34902
  Prefactor  = 7.55021
  Prefactor  = 9.14113
  norm       = 0.873053
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.5772
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 37.8211
  Prefactor  = 0.0001
  Prefactor  = 34.4312
  Prefactor  = 2.95046
  Prefactor  = 0.0001
  Prefactor  = 42.3276
  Prefactor  = 0.000100011
  Prefactor  = 31.6197
  Prefactor  = 0.0001
  Prefactor  = 21.6734
  norm       = 0.0001
  Normalizat = 1.00566
  Prefactor  = 1.04463
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.760     FROM HESSE     STATUS=OK           555 CALLS     4794 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8672        8.2827        .13461E-03   -1.5112    
   2  norm          .10000E-03    .16478        .57905E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1113        .12726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.764        27.314        .56852E-04   -1.4296    
   5  Prefactor     24.203        31.570        .81439E-04   -1.4724    
   6  Prefactor     5.3490        16.191        .17385E-03   -1.5245    
   7  Prefactor     7.5502        6.5669        .72983E-03   -1.5158    
   8  Prefactor     9.1411        329.20        .13222E-03   -1.5103    
   9  norm          .87305        31.361        .43499E-02   -1.5521    
  10  Prefactor     .10000E-03    2.9750        .12378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.8450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4048        .84697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          21.577        8.9030        .86243E-04   -1.4779    
  15  Prefactor     .10002E-03    13.270        .22223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.821        86.033        .65168E-04   -1.4477    
  18  Prefactor     .10000E-03    8.5324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.431        41.083        .68260E-04   -1.4534    
  20  Prefactor     2.9505        5.8504        .23643E-03   -1.5364    
  21  Prefactor     .10000E-03    6.5279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     42.328        37.665        .61622E-04   -1.4406    
  23  Prefactor     .10001E-03    399.83        .94383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.620        22.643        .71270E-04   -1.4583    
  25  Prefactor     .10000E-03    33.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.673        16.016        .86033E-04   -1.4777    
  27  norm          .10000E-03    1.1923        .78548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0057        .26136        .29307E-03   -.92841    
  29  Prefactor     1.0446        .21149        .23559E-03   -.91256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89935e-09
Minuit parameter uncertainties:
  1  8.28376
  2  7.59029e-07
  3  4.8025e-06
  4  27.3208
  5  31.5914
  6  16.2044
  7  6.56749
  8  110.375
  9  10.4705
  10  8.06409e-06
  11  1.12958e-05
  12  5.11406e-06
  13  2.15069e-05
  14  8.90356
  15  0.00107672
  16  1.4347e-05
  17  86.3168
  18  2.05562e-05
  19  41.1165
  20  5.85154
  21  1.12932e-05
  22  37.6862
  23  0.0041855
  24  22.6494
  25  5.23587e-05
  26  16.0193
  27  6.02133e-07
  28  0.26169
  29  0.211657
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  5.114e-06  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.045e+00  2.117e-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.006e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919434/likelihoodResults_351302401_351561601_4FGL_J1132.7+0034_daily_bin432.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): 102
logL (Free Index) = 5471.76301558
delta logL = -0.00338139162068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5471.75963429
delta logL = -1.02395460999e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1213       1.0000          .0000       10.000    
     3 'Normalizat'    1.0057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0447       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5471.760     FROM MIGRAD    STATUS=FAILED        85 CALLS      234 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    44.208        .85385E-03** at limit **
   2  Index         2.0706        5.2309        .50000        .59127E-04
   3  Normalizat    1.0057        .30920E-01    .29307E-03    .10415E-03
   4  Prefactor     1.0446        .25430E-01    .23559E-03    .12955E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5471.760     FROM SIMPLEX   STATUS=UNCHANGED    142 CALLS      376 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    44.208        .22997E-03** at limit **
   2  Index         2.0706        5.2309        .35680E-03    .59127E-04
   3  Normalizat    1.0057        .30920E-01    .53332E-05    .10415E-03
   4  Prefactor     1.0446        .25430E-01    .28326E-05    .12955E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5471.760     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      424 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    228.47        .17077E-03** at limit **
   2  Index         1.9258        6.4354        .50000        .11050E-07
   3  Normalizat    1.0057        .87687E-01    .11723E-04   -.13577E-04
   4  Prefactor     1.0446        .72001E-01    .47117E-04   -.10906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9258
  Normalizat = 1.00566
  Prefactor  = 1.04463
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.760     FROM HESSE     STATUS=OK            29 CALLS      453 TOTAL
                     EDM=   .96E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8799        .34154E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9258        6.3811        .50000       -.66218    
   3  Normalizat    1.0057        .25178        .23446E-05   -.92841    
   4  Prefactor     1.0446        .20716        .94235E-05   -.91256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.63851e-13
Minuit parameter uncertainties:
  1  2.50569e-06
  2  59.0833
  3  0.252076
  4  0.20732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919434': 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) = 5471.75963199
delta logL = 2.19375942834e-06

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.506e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.926e+00  5.908e+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.045e+00  2.073e-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.006e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.196 0.574

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/919434/cmap_HighResolution_351302401_351561601_4FGL_J1132.7+0034_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.55e-08', time_completed='2021-09-04 03:52:24.913459', job_id='919434', GAL2='1.04', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630752744.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='432' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:24 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin432 173.196 0.5737 351302401 351561601 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 :                                   840.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

