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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin738
RA = 173.196, Dec = 0.5737
tmin = 430617601, tmax = 430876801
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='919888', job_status='RUN', time_executed='2021-09-04 03:40:06.614198', time_epoch_executed='1630752006.61' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919888

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919888/ft1_4FGL_J1132.7+0034_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919888/ft2_4FGL_J1132.7+0034_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919888/ft1_4FGL_J1132.7+0034_daily_bin738.fits outfile=/scratch/kocevski/919888/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin738.fits ra=173.196 dec=0.5737 rad=12.0 tmin=430617601.0 tmax=430876801.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 5.40
user 5.12
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919888/ft2_4FGL_J1132.7+0034_daily_bin738.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/919888/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin738.fits evtable="EVENTS" outfile="/scratch/kocevski/919888/ft1_filtered_4FGL_J1132.7+0034_daily_bin738.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919888/ft1_filtered_4FGL_J1132.7+0034_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/919888/ft2_4FGL_J1132.7+0034_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/919888/ltcube_430617601_430876801_4FGL_J1132.7+0034_daily_bin738.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/919888/ft2_4FGL_J1132.7+0034_daily_bin738.fits
.....................!
real 12.11
user 11.80
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919888/ft1_filtered_4FGL_J1132.7+0034_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/919888/ft2_4FGL_J1132.7+0034_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/919888/ltcube_430617601_430876801_4FGL_J1132.7+0034_daily_bin738.fits outfile=/scratch/kocevski/919888/expmap_430617601_430876801_4FGL_J1132.7+0034_daily_bin738.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/919888/ltcube_430617601_430876801_4FGL_J1132.7+0034_daily_bin738.fits
.....................!
real 189.43
user 185.12
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/919888/ft1_filtered_4FGL_J1132.7+0034_daily_bin738.fits scfile=/scratch/kocevski/919888/ft2_4FGL_J1132.7+0034_daily_bin738.fits outfile=/scratch/kocevski/919888/cmap_430617601_430876801_4FGL_J1132.7+0034_daily_bin738.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.24
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919888/ft1_filtered_4FGL_J1132.7+0034_daily_bin738.fits scfile=/scratch/kocevski/919888/ft2_4FGL_J1132.7+0034_daily_bin738.fits outfile=/scratch/kocevski/919888/cmap_HighResolution_430617601_430876801_4FGL_J1132.7+0034_daily_bin738.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.62
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919888/ft1_filtered_4FGL_J1132.7+0034_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/919888/ft2_4FGL_J1132.7+0034_daily_bin738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919888/Model_4FGL_J1132.7+0034_daily_bin738.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/919888/ft1_filtered_4FGL_J1132.7+0034_daily_bin738.fits.....................!
real 55.78
user 54.28
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.849       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9728       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.427       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4540       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.6817       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.472       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .38803E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11204E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.004       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2295       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.712       1.0000         .10000E-03   10000.    
    27 'norm      '    .11500E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3571       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91542       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=   5541.506     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3723 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.846        15.069        .14331E-06    .27097E-04
   2  norm          1.9724        1.0822        .14731E-06   -.13943E-03
   3  Prefactor     20.432        20.275       -.13476E-05   -.32464E-05
   4  Prefactor     .10000E-03    34.834       -.12378E-04** at limit **
   5  Prefactor     .10000E-03    4.6527       -.14486E-06** at limit **
   6  Prefactor     2.4529        4.4042        .21838E-05   -.20197E-02
   7  Prefactor     .10000E-03    1.4701       -.32261E-07** at limit **
   8  Prefactor     .10000E-03    18.368        .22930E-05** at limit **
   9  norm          4.6812        6.0169        .44889E-06    .47103E-04
  10  Prefactor     .10000E-03    2.2317       -.27396E-07** at limit **
  11  norm          12.048        16.836       -.13081E-06    .92538E-07
  12  Prefactor     12.471        4.1272       -.48646E-08    .11139E-04
  13  Prefactor     .10000E-03    10.082       -.19299E-05** at limit **
  14  norm          .10000E-03    2.7857        .20147E-06** at limit **
  15  Prefactor     .10000E-03    1.7028        .21398E-07** at limit **
  16  Prefactor     .10000E-03    18.292        .21525E-05** at limit **
  17  Prefactor     .10000E-03    154.53       -.69623E-05** at limit **
  18  Prefactor     .10000E-03    12.630        .67915E-07** at limit **
  19  Prefactor     39.996        46.241       -.37017E-05   -.10306E-03
  20  Prefactor     .10000E-03    3.9045        .97811E-08** at limit **
  21  Prefactor     .10000E-03    9.0035        .55263E-06** at limit **
  22  Prefactor     .10000E-03    40.911        .11571E-04** at limit **
  23  Prefactor     .10000E-03    12.037        .64316E-05** at limit **
  24  Prefactor     4.2357        17.483        .29530E-05    .39428E-04
  25  Prefactor     .10000E-03    13.421       -.67320E-05** at limit **
  26  Prefactor     10.753        16.202       -.19716E-05   -.22824E-04
  27  norm          .10008E-03    2.2384       -.24499E-06** at limit **
  28  Normalizat    1.3571        .22952        .31196E-06    .57425E-04
  29  Prefactor     .91540        .18024        .95308E-07    .43902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8455
  norm       = 1.97243
  Prefactor  = 20.4325
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 2.45289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.68117
  Prefactor  = 0.0001
  norm       = 12.0478
  Prefactor  = 12.4713
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 39.9965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 4.23575
  Prefactor  = 0.000100001
  Prefactor  = 10.7534
  norm       = 0.000100083
  Normalizat = 1.35714
  Prefactor  = 0.915402
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.506     FROM HESSE     STATUS=OK           549 CALLS     4272 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.846        15.067        .12164E-03   -1.5049    
   2  norm          1.9724        1.1135        .42411E-04   -1.5427    
   3  Prefactor     20.432        20.940        .88621E-04   -1.4804    
   4  Prefactor     .10000E-03    35.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6635        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4529        7.9805        .13055E-02   -1.5395    
   7  Prefactor     .10000E-03    1.4817        .88119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.6812        6.0270        .18599E-03   -1.5275    
  10  Prefactor     .10000E-03    2.2651        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.048        16.830        .11540E-03   -1.5014    
  12  Prefactor     12.471        4.1390        .82474E-04   -1.5002    
  13  Prefactor     .10000E-03    10.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    16.841        .24040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7203        .94764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    155.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.996        46.402        .63374E-04   -1.4442    
  20  Prefactor     .10000E-03    3.9199        .14364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.2357        17.288        .19594E-03   -1.5296    
  25  Prefactor     .10000E-03    13.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.753        15.047        .12241E-03   -1.5052    
  27  norm          .10008E-03    19.131        .19768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3571        .26958        .27409E-03   -.81877    
  29  Prefactor     .91540        .21194        .25871E-03   -.95605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52934e-08
Minuit parameter uncertainties:
  1  15.0721
  2  1.11355
  3  20.9478
  4  0.00067041
  5  5.22769e-06
  6  7.98397
  7  2.28748e-06
  8  9.34542e-05
  9  6.02777
  10  3.54655e-06
  11  16.8364
  12  4.13907
  13  6.21723e-05
  14  0.000238678
  15  2.84108e-06
  16  7.91969e-05
  17  0.000871289
  18  3.89717e-06
  19  46.4436
  20  1.88548e-06
  21  2.74861e-05
  22  0.000778688
  23  0.000215617
  24  17.1228
  25  0.00024029
  26  15.0522
  27  0.00252259
  28  0.269863
  29  0.212134
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.247e+01  4.139e+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.154e-01  2.121e-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.357e+00  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.92
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 6.13e-08
Energy Flux (Fixed Index): 9.42e-05 +/- 3.12e-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) = 5540.50665855
delta logL = 0.999094607533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5540.50565099
delta logL = 1.00010216743

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4961       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5730       1.0000          .0000       10.000    
     3 'Normalizat'    1.2679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96044       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=   5540.506     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      251 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4965        32.578        .34382E-02    .34470E-04
   2  Index         2.5730        2.2676        .69320E-01    .13179E-03
   3  Normalizat    1.2680        .16626        .63631E-01    .66016E-05
   4  Prefactor     .96041        .10460        .45771E-01    .11426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.49648
  Index      = 2.57302
  Normalizat = 1.26799
  Prefactor  = 0.960412
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.506     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4965        4.4277        .60883E-04   -1.5125    
   2  Index         2.5730        .34342        .29350E-02   -.50682    
   3  Normalizat    1.2680        .27234        .28146E-03   -.84527    
   4  Prefactor     .96041        .21163        .25308E-03   -.94061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89384e-09
Minuit parameter uncertainties:
  1  4.4279
  2  0.343775
  3  0.272646
  4  0.211814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919888': 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) = 5540.50565065
delta logL = 1.00010250875

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  8.496e+00  4.428e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.573e+00  3.438e-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.604e-01  2.118e-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.268e+00  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.92
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.57 +/- 0.34
Photon Flux (Free Index): 2.60e-07 +/- 9.07e-08
Energy Flux (Free Index): 7.00e-05 +/- 2.36e-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/919888/cmap_HighResolution_430617601_430876801_4FGL_J1132.7+0034_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='7.00e-05', photon_flux_error='6.13e-08', dlogl='1.00e+00', energy_flux='9.42e-05', photon_flux2='2.60e-07', job_status='DONE', time_completed='2021-09-04 03:52:16.508335', photon_index_error2='0.34', photon_index2='2.57', ts='19.92', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.36e-05', EG='1.36', time_epoch_completed='1630752736.51', return_code='0', job_id='919888', GAL2='0.96', EG2='1.27', return_code2='0', energy_flux_error='3.12e-05', photon_flux_error2='9.07e-08', ts2='21.92', photon_index='2.14' WHERE bin_id='738' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 919888: <4FGL_J1132.7+0034_daily_bin738> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin738 173.196 0.5737 430617601 430876801 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 :                                   729.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

