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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin272
RA = 173.196, Dec = 0.5737
tmin = 309830401, tmax = 310089601
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='918190', job_status='RUN', time_executed='2021-09-04 03:34:00.071217', time_epoch_executed='1630751640.07' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918190/ft1_4FGL_J1132.7+0034_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918190/ft2_4FGL_J1132.7+0034_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918190/ft1_4FGL_J1132.7+0034_daily_bin272.fits outfile=/scratch/kocevski/918190/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin272.fits ra=173.196 dec=0.5737 rad=12.0 tmin=309830401.0 tmax=310089601.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.51
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918190/ft1_filtered_4FGL_J1132.7+0034_daily_bin272.fits" evtable="EVENTS" scfile=/scratch/kocevski/918190/ft2_4FGL_J1132.7+0034_daily_bin272.fits sctable="SC_DATA" outfile=/scratch/kocevski/918190/ltcube_309830401_310089601_4FGL_J1132.7+0034_daily_bin272.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/918190/ft2_4FGL_J1132.7+0034_daily_bin272.fits
.....................!
real 11.91
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918190/ft1_filtered_4FGL_J1132.7+0034_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/918190/ft2_4FGL_J1132.7+0034_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/918190/ltcube_309830401_310089601_4FGL_J1132.7+0034_daily_bin272.fits outfile=/scratch/kocevski/918190/expmap_309830401_310089601_4FGL_J1132.7+0034_daily_bin272.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/918190/ltcube_309830401_310089601_4FGL_J1132.7+0034_daily_bin272.fits
.....................!
real 190.09
user 185.17
sys 4.47

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/918190/ft1_filtered_4FGL_J1132.7+0034_daily_bin272.fits scfile=/scratch/kocevski/918190/ft2_4FGL_J1132.7+0034_daily_bin272.fits outfile=/scratch/kocevski/918190/cmap_309830401_310089601_4FGL_J1132.7+0034_daily_bin272.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.52
user 0.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918190/ft1_filtered_4FGL_J1132.7+0034_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/918190/ft2_4FGL_J1132.7+0034_daily_bin272.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918190/Model_4FGL_J1132.7+0034_daily_bin272.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/918190/ft1_filtered_4FGL_J1132.7+0034_daily_bin272.fits.....................!
real 53.16
user 51.38
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60651E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.881       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7398       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.9095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9754       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .50294E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.581       1.0000         .10000E-03   10000.    
    17 'Prefactor '    86.830       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.997       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8612       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    25.956       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.9744       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85073       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2054       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=   5280.962     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3698 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5306       -.15363E-07** at limit **
   2  norm          2.5794        .85160        .25819E-06    .36131E-02
   3  Prefactor     .10016E-03    20.157        .60460E-05** at limit **
   4  Prefactor     12.878        21.837        .60853E-06    .57176E-04
   5  Prefactor     .10000E-03    15.809        .56537E-06** at limit **
   6  Prefactor     .10000E-03    5.2280       -.95883E-07** at limit **
   7  Prefactor     4.7399        7.0194        .23808E-06   -.12396E-04
   8  Prefactor     .10000E-03    80.491        .82934E-06** at limit **
   9  norm          6.9102        10.293       -.82114E-07   -.48923E-04
  10  Prefactor     .10000E-03    2.4812       -.10486E-06** at limit **
  11  norm          .10000E-03    10.482       -.65359E-07** at limit **
  12  Prefactor     .10000E-03    1.4099       -.65652E-07** at limit **
  13  Prefactor     1.9781        58.384       -.53127E-08   -.69048E-06
  14  norm          .10000E-03    3.9612       -.45671E-07** at limit **
  15  Prefactor     .10000E-03    2.2295        .26033E-06** at limit **
  16  Prefactor     31.584        27.477       -.22585E-06    .26144E-04
  17  Prefactor     86.844        108.75       -.17467E-05    .36185E-04
  18  Prefactor     13.999        11.284        .10147E-06    .18833E-04
  19  Prefactor     .10000E-03    17.093       -.99524E-06** at limit **
  20  Prefactor     .10000E-03    4.1518        .50592E-07** at limit **
  21  Prefactor     2.8622        13.842        .73031E-05    .25113E-03
  22  Prefactor     .10000E-03    33.735        .14458E-05** at limit **
  23  Prefactor     .10000E-03    23.871        .27034E-06** at limit **
  24  Prefactor     .10000E-03    7.1300       -.12192E-07** at limit **
  25  Prefactor     25.955        46.976        .40014E-06   -.18382E-05
  26  Prefactor     .10000E-03    23.258       -.16623E-06** at limit **
  27  norm          3.9745        3.0875       -.57458E-09    .77310E-04
  28  Normalizat    .85064        .22498       -.64292E-06    .13462E-03
  29  Prefactor     1.2053        .17656        .22490E-06    .24434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.57945
  Prefactor  = 0.000100165
  Prefactor  = 12.8777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.73994
  Prefactor  = 0.0001
  norm       = 6.91024
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97809
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 31.5845
  Prefactor  = 86.8444
  Prefactor  = 13.9986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.8622
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.9546
  Prefactor  = 0.0001
  norm       = 3.97448
  Normalizat = 0.850638
  Prefactor  = 1.20531
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.962     FROM HESSE     STATUS=OK           547 CALLS     4245 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5343        .11289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5794        .80671        .34784E-04   -1.5387    
   3  Prefactor     .10016E-03    47.096        .36241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.878        21.863        .11161E-03   -1.4990    
   5  Prefactor     .10000E-03    15.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2344        .16227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7399        6.9700        .18482E-03   -1.5273    
   8  Prefactor     .10000E-03    80.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.9102        10.237        .15263E-03   -1.5182    
  10  Prefactor     .10000E-03    2.5011        .11163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4466        .16841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9781        58.328        .29496E-03   -1.5427    
  14  norm          .10000E-03    3.9899        .14115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.458        .20684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.584        27.477        .71300E-04   -1.4583    
  17  Prefactor     86.844        108.72        .43115E-04   -1.3841    
  18  Prefactor     13.999        11.285        .10706E-03   -1.4959    
  19  Prefactor     .10000E-03    17.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1723        .14459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8622        16.872        .12017E-02   -1.5370    
  22  Prefactor     .10000E-03    33.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.1341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.955        46.977        .78630E-04   -1.4689    
  26  Prefactor     .10000E-03    23.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.9745        3.0754        .10899E-03   -1.5309    
  28  Normalizat    .85064        .26245        .31060E-03   -.98217    
  29  Prefactor     1.2053        .20848        .22031E-03   -.86168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62335e-09
Minuit parameter uncertainties:
  1  4.93976e-06
  2  0.806713
  3  0.00557669
  4  21.8769
  5  0.000154117
  6  1.54662e-05
  7  6.97115
  8  0.000320582
  9  10.2394
  10  1.24866e-05
  11  5.73076e-07
  12  6.51044e-06
  13  21.5053
  14  8.03919e-06
  15  0.000620988
  16  27.4882
  17  108.968
  18  11.2864
  19  7.76452e-05
  20  7.39133e-06
  21  13.9041
  22  0.000259584
  23  5.35194e-05
  24  1.55664e-06
  25  47.044
  26  2.24136e-05
  27  3.07548
  28  0.26284
  29  0.208619
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.510e-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.205e+00  2.086e-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.506e-01  2.628e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918190/likelihoodResults_309830401_310089601_4FGL_J1132.7+0034_daily_bin272.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) = 5280.96527099
delta logL = -0.00327890879362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5280.96199225
delta logL = -1.64664925251e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1439       1.0000          .0000       10.000    
     3 'Normalizat'    .85067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2053       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=   5280.962     FROM MIGRAD    STATUS=FAILED        89 CALLS      248 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    169.27        .16875E-03** at limit **
   2  Index         2.1735        8.7080        .50000       -.39587E-04
   3  Normalizat    .85064        .69200E-01    .31060E-03    .55489E-04
   4  Prefactor     1.2053        .57603E-01    .22031E-03    .83638E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5280.962     FROM SIMPLEX   STATUS=UNCHANGED    146 CALLS      394 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    169.27        .22802E-03** at limit **
   2  Index         2.1735        8.7080        .12727E-03   -.39587E-04
   3  Normalizat    .85064        .69200E-01    .39410E-05    .55489E-04
   4  Prefactor     1.2053        .57603E-01    .16481E-05    .83638E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5280.962     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      438 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    366.61        .33751E-04** at limit **
   2  Index         2.3281        5.0169        .50000        .65809E-06
   3  Normalizat    .85064        .23924        .12424E-04   -.38249E-04
   4  Prefactor     1.2053        .19571        .44062E-04   -.48403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32809
  Normalizat = 0.850637
  Prefactor  = 1.20531
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.962     FROM HESSE     STATUS=OK            29 CALLS      467 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5632        .67502E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3281        7.5743        .50000       -.56378    
   3  Normalizat    .85064        .24808        .24848E-05   -.98217    
   4  Prefactor     1.2053        .20692        .88124E-05   -.86168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04875e-11
Minuit parameter uncertainties:
  1  6.59834e-06
  2  39.6386
  3  0.248417
  4  0.20706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918190': 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) = 5280.96199092
delta logL = 1.16422961582e-06

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.598e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.328e+00  3.964e+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.205e+00  2.071e-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.506e-01  2.484e-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/918190/cmap_HighResolution_309830401_310089601_4FGL_J1132.7+0034_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-09-04 03:47:04.570634', job_id='918190', GAL2='1.21', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630752424.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='272' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:47:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 918190: <4FGL_J1132.7+0034_daily_bin272> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin272 173.196 0.5737 309830401 310089601 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 :                                   775.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

