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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin685
RA = 173.196, Dec = 0.5737
tmin = 416880001, tmax = 417139201
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='919804', job_status='RUN', time_executed='2021-09-04 03:40:09.379571', time_epoch_executed='1630752009.38' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919804/ft1_4FGL_J1132.7+0034_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919804/ft2_4FGL_J1132.7+0034_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919804/ft1_4FGL_J1132.7+0034_daily_bin685.fits outfile=/scratch/kocevski/919804/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin685.fits ra=173.196 dec=0.5737 rad=12.0 tmin=416880001.0 tmax=417139201.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.24
user 5.00
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919804/ft1_filtered_4FGL_J1132.7+0034_daily_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/919804/ft2_4FGL_J1132.7+0034_daily_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/919804/ltcube_416880001_417139201_4FGL_J1132.7+0034_daily_bin685.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/919804/ft2_4FGL_J1132.7+0034_daily_bin685.fits
.....................!
real 12.24
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919804/ft1_filtered_4FGL_J1132.7+0034_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/919804/ft2_4FGL_J1132.7+0034_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/919804/ltcube_416880001_417139201_4FGL_J1132.7+0034_daily_bin685.fits outfile=/scratch/kocevski/919804/expmap_416880001_417139201_4FGL_J1132.7+0034_daily_bin685.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/919804/ltcube_416880001_417139201_4FGL_J1132.7+0034_daily_bin685.fits
.....................!
real 189.53
user 185.08
sys 4.09

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/919804/ft1_filtered_4FGL_J1132.7+0034_daily_bin685.fits scfile=/scratch/kocevski/919804/ft2_4FGL_J1132.7+0034_daily_bin685.fits outfile=/scratch/kocevski/919804/cmap_416880001_417139201_4FGL_J1132.7+0034_daily_bin685.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919804/ft1_filtered_4FGL_J1132.7+0034_daily_bin685.fits scfile=/scratch/kocevski/919804/ft2_4FGL_J1132.7+0034_daily_bin685.fits outfile=/scratch/kocevski/919804/cmap_HighResolution_416880001_417139201_4FGL_J1132.7+0034_daily_bin685.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919804/ft1_filtered_4FGL_J1132.7+0034_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/919804/ft2_4FGL_J1132.7+0034_daily_bin685.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919804/Model_4FGL_J1132.7+0034_daily_bin685.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/919804/ft1_filtered_4FGL_J1132.7+0034_daily_bin685.fits....................!
real 52.76
user 51.31
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.983       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3432       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18515E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8629       1.0000         .10000E-03   10000.    
     9 'norm      '    11.052       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3970       1.0000         .10000E-03   10000.    
    11 'norm      '    45.991       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2417       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6293       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    79.424       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8515       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.333       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.398       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.3103       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0832       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88229       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=   5309.500     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3658 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.981        13.432        .77327E-07    .82700E-06
   2  norm          1.3433        .64111        .12195E-07    .35438E-04
   3  Prefactor     .10000E-03    3.5912       -.10372E-06** at limit **
   4  Prefactor     .10000E-03    15.171        .36061E-06** at limit **
   5  Prefactor     .10000E-03    8.2044        .37719E-06** at limit **
   6  Prefactor     .10000E-03    4.5752       -.17960E-07** at limit **
   7  Prefactor     .10000E-03    3.3881       -.94322E-07** at limit **
   8  Prefactor     8.8993        124.89       -.13203E-04    .46422E-05
   9  norm          11.053        10.944        .38035E-06    .28445E-04
  10  Prefactor     2.4013        7.4137       -.15335E-05   -.16771E-03
  11  norm          45.977        33.520        .24136E-05    .46040E-04
  12  Prefactor     4.2416        2.6494        .24953E-07    .30776E-04
  13  Prefactor     .10000E-03    26.332       -.86488E-06** at limit **
  14  norm          2.4496        4.9759        .38181E-05   -.78063E-04
  15  Prefactor     2.6291        3.4013       -.55963E-06    .43736E-04
  16  Prefactor     .10000E-03    12.261       -.96603E-06** at limit **
  17  Prefactor     79.431        95.716       -.68582E-06   -.67479E-06
  18  Prefactor     .10000E-03    8.0852        .14990E-06** at limit **
  19  Prefactor     .10000E-03    23.497       -.12945E-05** at limit **
  20  Prefactor     9.8515        10.368       -.11185E-06   -.28497E-05
  21  Prefactor     .10000E-03    4.4419       -.59826E-08** at limit **
  22  Prefactor     15.336        27.924       -.60998E-06    .11550E-04
  23  Prefactor     .10000E-03    30.599        .13814E-05** at limit **
  24  Prefactor     44.385        26.852        .14281E-05   -.66256E-05
  25  Prefactor     .10000E-03    15.312        .45145E-06** at limit **
  26  Prefactor     .10000E-03    16.124        .44775E-06** at limit **
  27  norm          1.3115        3.0456       -.26320E-06   -.15562E-03
  28  Normalizat    1.0834        .21565       -.17628E-06    .16175E-05
  29  Prefactor     .88215        .16756       -.60005E-07    .16188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9812
  norm       = 1.34328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 8.89929
  norm       = 11.0531
  Prefactor  = 2.40127
  norm       = 45.9769
  Prefactor  = 4.2416
  Prefactor  = 0.0001
  norm       = 2.44957
  Prefactor  = 2.62911
  Prefactor  = 0.0001
  Prefactor  = 79.4305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.85152
  Prefactor  = 0.0001
  Prefactor  = 15.3363
  Prefactor  = 0.0001
  Prefactor  = 44.3845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31149
  Normalizat = 1.08337
  Prefactor  = 0.882152
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.981        13.454        .97189E-04   -1.4884    
   2  norm          1.3433        .63611        .38111E-04   -1.5476    
   3  Prefactor     .10000E-03    3.5977        .13477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5814        .15216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.286        .23824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8993        123.33        .13464E-03   -1.5111    
   9  norm          11.053        10.617        .12051E-03   -1.5043    
  10  Prefactor     2.4013        7.0786        .24672E-03   -1.5398    
  11  norm          45.977        33.095        .59122E-04   -1.4351    
  12  Prefactor     4.2416        2.6510        .89631E-04   -1.5296    
  13  Prefactor     .10000E-03    26.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4496        4.9818        .10795E-02   -1.5395    
  15  Prefactor     2.6291        3.3897        .14122E-03   -1.5384    
  16  Prefactor     .10000E-03    12.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     79.431        95.820        .45063E-04   -1.3923    
  18  Prefactor     .10000E-03    8.1420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.8515        10.369        .12767E-03   -1.5080    
  21  Prefactor     .10000E-03    4.4499        .14997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.336        27.916        .10229E-03   -1.4925    
  23  Prefactor     .10000E-03    30.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     44.385        26.803        .60169E-04   -1.4375    
  25  Prefactor     .10000E-03    15.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.3115        3.0135        .18326E-03   -1.5479    
  28  Normalizat    1.0834        .25102        .27006E-03   -.90287    
  29  Prefactor     .88215        .19583        .23814E-03   -.96768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70611e-10
Minuit parameter uncertainties:
  1  13.4561
  2  0.636117
  3  1.71825e-06
  4  1.85728e-05
  5  5.60525e-05
  6  1.36211e-05
  7  0.000509378
  8  66.4245
  9  10.6191
  10  7.08109
  11  33.1082
  12  2.65109
  13  3.53906e-05
  14  4.98266
  15  3.38999
  16  5.80463e-06
  17  96.0073
  18  3.74186e-06
  19  2.46572e-05
  20  10.3711
  21  4.2349e-06
  22  27.9399
  23  3.72155e-05
  24  26.8098
  25  7.31143e-06
  26  1.1421e-05
  27  3.01383
  28  0.251299
  29  0.195981
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.242e+00  2.651e+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:  8.822e-01  1.960e-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.083e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.18
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.29e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.00e-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) = 5309.09596427
delta logL = 0.403642883819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5309.08769504
delta logL = 0.411912118583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3088       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6733       1.0000          .0000       10.000    
     3 'Normalizat'    1.1153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86946       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=   5309.088     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3088        3.2572        .48518E-02   -.22374E-02
   2  Index         1.6731        .44704        .19331       -.38334E-04
   3  Normalizat    1.1153        .20362        .60282E-01    .87824E-05
   4  Prefactor     .86953        .16327        .44615E-01    .10684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.30882
  Index      = 1.67312
  Normalizat = 1.1153
  Prefactor  = 0.869529
 **********
 **   18 **HESSE 
 **********

 FCN=   5309.088     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3088        3.0610        .98120E-04   -1.5293    
   2  Index         1.6731        .47849        .74228E-02   -.72800    
   3  Normalizat    1.1153        .23469        .26661E-03   -.89262    
   4  Prefactor     .86953        .18890        .23968E-03   -.97214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08446e-09
Minuit parameter uncertainties:
  1  3.06116
  2  0.47981
  3  0.234909
  4  0.18904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919804': 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) = 5309.08769483
delta logL = 0.411912323809

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.309e+00  3.061e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.673e+00  4.798e-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:  8.695e-01  1.890e-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.115e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.00
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.67 +/- 0.48
Photon Flux (Free Index): 3.52e-08 +/- 3.43e-08
Energy Flux (Free Index): 6.26e-05 +/- 6.75e-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/919804/cmap_HighResolution_416880001_417139201_4FGL_J1132.7+0034_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.29e-08', energy_flux2='6.26e-05', photon_flux_error='3.93e-08', dlogl='4.12e-01', energy_flux='3.20e-05', photon_flux2='3.52e-08', job_status='DONE', time_completed='2021-09-04 03:51:39.095322', photon_index_error2='0.48', photon_index2='1.67', ts='9.18', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='6.75e-05', EG='1.08', time_epoch_completed='1630752699.1', return_code='0', job_id='919804', GAL2='0.87', EG2='1.12', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='3.43e-08', ts2='10.00', photon_index='2.14' WHERE bin_id='685' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 919804: <4FGL_J1132.7+0034_daily_bin685> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin685 173.196 0.5737 416880001 417139201 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 :                                   686.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

