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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin933
RA = 173.196, Dec = 0.5737
tmin = 481161601, tmax = 481420801
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='921465', job_status='RUN', time_executed='2021-09-04 03:43:48.239075', time_epoch_executed='1630752228.24' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921465

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921465/ft1_4FGL_J1132.7+0034_daily_bin933.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921465/ft2_4FGL_J1132.7+0034_daily_bin933.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921465/ft1_4FGL_J1132.7+0034_daily_bin933.fits outfile=/scratch/kocevski/921465/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin933.fits ra=173.196 dec=0.5737 rad=12.0 tmin=481161601.0 tmax=481420801.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.61
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/921465/ft2_4FGL_J1132.7+0034_daily_bin933.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/921465/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin933.fits evtable="EVENTS" outfile="/scratch/kocevski/921465/ft1_filtered_4FGL_J1132.7+0034_daily_bin933.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/921465/ft1_filtered_4FGL_J1132.7+0034_daily_bin933.fits" evtable="EVENTS" scfile=/scratch/kocevski/921465/ft2_4FGL_J1132.7+0034_daily_bin933.fits sctable="SC_DATA" outfile=/scratch/kocevski/921465/ltcube_481161601_481420801_4FGL_J1132.7+0034_daily_bin933.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/921465/ft2_4FGL_J1132.7+0034_daily_bin933.fits
.....................!
real 11.89
user 11.39
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921465/ft1_filtered_4FGL_J1132.7+0034_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/921465/ft2_4FGL_J1132.7+0034_daily_bin933.fits sctable="SC_DATA" expcube=/scratch/kocevski/921465/ltcube_481161601_481420801_4FGL_J1132.7+0034_daily_bin933.fits outfile=/scratch/kocevski/921465/expmap_481161601_481420801_4FGL_J1132.7+0034_daily_bin933.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/921465/ltcube_481161601_481420801_4FGL_J1132.7+0034_daily_bin933.fits
.....................!
real 189.72
user 184.17
sys 5.18

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/921465/ft1_filtered_4FGL_J1132.7+0034_daily_bin933.fits scfile=/scratch/kocevski/921465/ft2_4FGL_J1132.7+0034_daily_bin933.fits outfile=/scratch/kocevski/921465/cmap_481161601_481420801_4FGL_J1132.7+0034_daily_bin933.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921465/ft1_filtered_4FGL_J1132.7+0034_daily_bin933.fits scfile=/scratch/kocevski/921465/ft2_4FGL_J1132.7+0034_daily_bin933.fits outfile=/scratch/kocevski/921465/cmap_HighResolution_481161601_481420801_4FGL_J1132.7+0034_daily_bin933.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/921465/ft1_filtered_4FGL_J1132.7+0034_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/921465/ft2_4FGL_J1132.7+0034_daily_bin933.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921465/Model_4FGL_J1132.7+0034_daily_bin933.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/921465/ft1_filtered_4FGL_J1132.7+0034_daily_bin933.fits.....................!
real 60.93
user 59.28
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1542       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6654       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10870E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .82899       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4030       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0631       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.799       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.888       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.451       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.0047       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.329       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3450       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .50611       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=   6444.720     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     4375 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5051        .20574E-06** at limit **
   2  norm          3.0193        .73623        .13755E-07   -.24819E-03
   3  Prefactor     .10000E-03    4.4404        .67054E-07** at limit **
   4  Prefactor     23.633        20.649        .63626E-06    .19846E-03
   5  Prefactor     7.1555        11.601       -.17336E-05   -.49734E-04
   6  Prefactor     7.6664        11.088        .35619E-05   -.18988E-03
   7  Prefactor     .10000E-03    2.0954       -.19636E-06** at limit **
   8  Prefactor     .10000E-03    31.769        .70523E-06** at limit **
   9  norm          .82953        4.9807        .16319E-05   -.95307E-04
  10  Prefactor     1.4013        2.5601       -.11073E-06   -.83981E-04
  11  norm          .10000E-03    6.5192       -.29714E-07** at limit **
  12  Prefactor     2.0629        1.4633        .16139E-07   -.44873E-06
  13  Prefactor     .10000E-03    32.291       -.13582E-05** at limit **
  14  norm          .10000E-03    1.1574       -.53247E-08** at limit **
  15  Prefactor     3.8308        2.4228        .56790E-07   -.75958E-04
  16  Prefactor     12.799        14.679        .12072E-06   -.41733E-05
  17  Prefactor     .10001E-03    658.95       -.35793E-05** at limit **
  18  Prefactor     .10000E-03    4.2222       -.20165E-07** at limit **
  19  Prefactor     .10000E-03    9.5419       -.44228E-08** at limit **
  20  Prefactor     .10000E-03    1.7976        .23866E-07** at limit **
  21  Prefactor     .10000E-03    6.5477        .38118E-06** at limit **
  22  Prefactor     .10000E-03    12.231        .23133E-07** at limit **
  23  Prefactor     53.880        37.117        .24543E-06    .44111E-04
  24  Prefactor     16.449        15.862        .17539E-06   -.14014E-04
  25  Prefactor     5.0150        37.608       -.64579E-06   -.77383E-04
  26  Prefactor     19.327        12.771        .16515E-06   -.19165E-04
  27  norm          .10000E-03    1.0050        .11859E-07** at limit **
  28  Normalizat    1.3450        .18426       -.16630E-05    .88109E-05
  29  Prefactor     .50611        .13574        .67457E-06   -.12722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.01931
  Prefactor  = 0.0001
  Prefactor  = 23.6329
  Prefactor  = 7.15553
  Prefactor  = 7.66641
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.829529
  Prefactor  = 1.40131
  norm       = 0.0001
  Prefactor  = 2.06289
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.83082
  Prefactor  = 12.7991
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.8802
  Prefactor  = 16.4486
  Prefactor  = 5.01499
  Prefactor  = 19.3273
  norm       = 0.0001
  Normalizat = 1.34501
  Prefactor  = 0.506113
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.720     FROM HESSE     STATUS=OK           553 CALLS     4928 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.091        .32901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0193        .73269        .32348E-04   -1.5360    
   3  Prefactor     .10000E-03    4.4550        .16508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.633        20.675        .82382E-04   -1.4735    
   5  Prefactor     7.1555        11.609        .14997E-03   -1.5173    
   6  Prefactor     7.6664        11.062        .72421E-03   -1.5154    
   7  Prefactor     .10000E-03    2.1360        .11343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .82953        4.7738        .33852E-03   -1.5526    
  10  Prefactor     1.4013        2.5121        .16483E-03   -1.5471    
  11  norm          .10000E-03    6.5223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0629        1.4668        .79245E-04   -1.5421    
  13  Prefactor     .10000E-03    32.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1608        .84328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8308        2.4150        .95762E-04   -1.5316    
  16  Prefactor     12.799        14.677        .11197E-03   -1.4992    
  17  Prefactor     .10001E-03    669.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2298        .16110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7994        .10511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    48.636        .39099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     53.880        37.246        .54639E-04   -1.4239    
  24  Prefactor     16.449        15.850        .98747E-04   -1.4897    
  25  Prefactor     5.0150        37.720        .17976E-03   -1.5260    
  26  Prefactor     19.327        12.739        .91102E-04   -1.4828    
  27  norm          .10000E-03    1.0088        .78362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3450        .21054        .22977E-03   -.82233    
  29  Prefactor     .50611        .15612        .27438E-03   -1.1170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74524e-10
Minuit parameter uncertainties:
  1  5.86974e-05
  2  0.732697
  3  2.05921e-06
  4  20.6814
  5  11.6125
  6  11.0645
  7  8.50852e-06
  8  0.000386709
  9  3.9802
  10  2.51233
  11  1.46688e-06
  12  1.46684
  13  0.000353834
  14  3.86552e-07
  15  2.41504
  16  14.6813
  17  0.00458366
  18  3.9158e-06
  19  2.52432e-07
  20  7.27352e-07
  21  6.07735e-05
  22  8.63804e-06
  23  37.2617
  24  15.8541
  25  27.5313
  26  12.7406
  27  2.7124e-08
  28  0.210674
  29  0.156251
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.063e+00  1.467e+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:  5.061e-01  1.563e-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.345e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.90
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.06e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.11e-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) = 6444.69442242
delta logL = 0.0259187531574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6444.69043567
delta logL = 0.0299055012438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1960       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9989       1.0000          .0000       10.000    
     3 'Normalizat'    1.3494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50427       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=   6444.690     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1965        42.887        .69421E-02   -.10039E-03
   2  Index         1.9989        5.8572        .23377        .26387E-04
   3  Normalizat    1.3494        .97508E-01    .51896E-01    .11198E-05
   4  Prefactor     .50424        .56484E-01    .62113E-01    .32025E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.19646
  Index      = 1.99894
  Normalizat = 1.34943
  Prefactor  = 0.504239
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.690     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1965        1.6392        .82723E-04   -1.5412    
   2  Index         1.9989        .55247        .79548E-02   -.64377    
   3  Normalizat    1.3494        .20148        .22945E-03   -.82103    
   4  Prefactor     .50424        .15427        .27485E-03   -1.1178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16488e-10
Minuit parameter uncertainties:
  1  1.63928
  2  0.554243
  3  0.201601
  4  0.154396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921465': 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) = 6444.69043558
delta logL = 0.0299055872747

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.196e+00  1.639e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.999e+00  5.542e-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:  5.042e-01  1.544e-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.349e+00  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.95
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.00 +/- 0.55
Photon Flux (Free Index): 2.66e-08 +/- 2.45e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/921465/cmap_HighResolution_481161601_481420801_4FGL_J1132.7+0034_daily_bin933.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.06e-08', energy_flux2='1.85e-05', photon_flux_error='2.17e-08', dlogl='2.99e-02', energy_flux='1.56e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2021-09-04 03:57:47.106545', photon_index_error2='0.55', photon_index2='2.00', ts='6.90', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.35', time_epoch_completed='1630753067.11', return_code='0', job_id='921465', GAL2='0.50', EG2='1.35', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='2.45e-08', ts2='6.95', photon_index='2.14' WHERE bin_id='933' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:57:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 921465: <4FGL_J1132.7+0034_daily_bin933> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin933> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:50 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 03:41:52 2021
Terminated at Sat Sep  4 03:57:47 2021
Results reported at Sat Sep  4 03:57:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin933 173.196 0.5737 481161601 481420801 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 :                                   834.00 sec.
    Max Memory :                                 1177 MB
    Average Memory :                             297.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

