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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin493
RA = 173.196, Dec = 0.5737
tmin = 367113601, tmax = 367372801
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='919523', job_status='RUN', time_executed='2021-09-04 03:38:17.683562', time_epoch_executed='1630751897.68' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919523

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919523/ft1_4FGL_J1132.7+0034_daily_bin493.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919523/ft2_4FGL_J1132.7+0034_daily_bin493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919523/ft1_4FGL_J1132.7+0034_daily_bin493.fits outfile=/scratch/kocevski/919523/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin493.fits ra=173.196 dec=0.5737 rad=12.0 tmin=367113601.0 tmax=367372801.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.21
user 4.95
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919523/ft1_filtered_4FGL_J1132.7+0034_daily_bin493.fits" evtable="EVENTS" scfile=/scratch/kocevski/919523/ft2_4FGL_J1132.7+0034_daily_bin493.fits sctable="SC_DATA" outfile=/scratch/kocevski/919523/ltcube_367113601_367372801_4FGL_J1132.7+0034_daily_bin493.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/919523/ft2_4FGL_J1132.7+0034_daily_bin493.fits
.....................!
real 11.66
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919523/ft1_filtered_4FGL_J1132.7+0034_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/919523/ft2_4FGL_J1132.7+0034_daily_bin493.fits sctable="SC_DATA" expcube=/scratch/kocevski/919523/ltcube_367113601_367372801_4FGL_J1132.7+0034_daily_bin493.fits outfile=/scratch/kocevski/919523/expmap_367113601_367372801_4FGL_J1132.7+0034_daily_bin493.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/919523/ltcube_367113601_367372801_4FGL_J1132.7+0034_daily_bin493.fits
.....................!
real 191.98
user 186.29
sys 5.35

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/919523/ft1_filtered_4FGL_J1132.7+0034_daily_bin493.fits scfile=/scratch/kocevski/919523/ft2_4FGL_J1132.7+0034_daily_bin493.fits outfile=/scratch/kocevski/919523/cmap_367113601_367372801_4FGL_J1132.7+0034_daily_bin493.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919523/ft1_filtered_4FGL_J1132.7+0034_daily_bin493.fits scfile=/scratch/kocevski/919523/ft2_4FGL_J1132.7+0034_daily_bin493.fits outfile=/scratch/kocevski/919523/cmap_HighResolution_367113601_367372801_4FGL_J1132.7+0034_daily_bin493.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/919523/ft1_filtered_4FGL_J1132.7+0034_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/919523/ft2_4FGL_J1132.7+0034_daily_bin493.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919523/Model_4FGL_J1132.7+0034_daily_bin493.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/919523/ft1_filtered_4FGL_J1132.7+0034_daily_bin493.fits.....................!
real 65.62
user 64.27
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8308       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6248       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5549       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.529       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8461       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6258       1.0000         .10000E-03   10000.    
     9 'norm      '    13.196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.562       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6257       1.0000         .10000E-03   10000.    
    14 'norm      '    4.7005       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8293       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .69578E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9958       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4940       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.431       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6719       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.557       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3144       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78366       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=   7160.533     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3754 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8320        10.144       -.68917E-06   -.22056E-04
   2  norm          1.6249        .75258       -.37626E-06    .13260E-02
   3  Prefactor     6.5563        11.914        .64998E-05   -.21638E-03
   4  Prefactor     12.546        18.612        .55209E-07   -.88129E-04
   5  Prefactor     9.8358        9.8184        .54786E-06    .11301E-03
   6  Prefactor     .10000E-03    6.4104       -.34620E-06** at limit **
   7  Prefactor     .10038E-03    1.9450       -.55958E-06** at limit **
   8  Prefactor     4.6374        122.33        .35966E-05    .15089E-04
   9  norm          13.183        8.4366        .61769E-06    .18918E-03
  10  Prefactor     .10000E-03    4.2612       -.25509E-05** at limit **
  11  norm          13.547        13.762        .13630E-06    .93654E-04
  12  Prefactor     4.2483        2.4522        .10100E-06    .16789E-03
  13  Prefactor     7.6626        24.471        .59598E-06   -.59928E-04
  14  norm          4.7017        4.8382        .42304E-05   -.37973E-03
  15  Prefactor     1.8287        2.4169       -.68182E-06   -.22236E-03
  16  Prefactor     .10000E-03    10.157        .17015E-06** at limit **
  17  Prefactor     .10083E-03    1022.6       -.40859E-04** at limit **
  18  Prefactor     4.9986        11.198       -.16881E-05    .71643E-04
  19  Prefactor     .10000E-03    30.194        .69643E-06** at limit **
  20  Prefactor     6.4965        8.8826        .30704E-07    .64970E-04
  21  Prefactor     27.436        14.778       -.79716E-07   -.20879E-05
  22  Prefactor     8.6702        28.508        .12282E-05    .16387E-05
  23  Prefactor     .10000E-03    32.362       -.18534E-06** at limit **
  24  Prefactor     .10000E-03    8.7702        .20904E-06** at limit **
  25  Prefactor     36.550        56.658       -.14192E-05    .28398E-04
  26  Prefactor     .10000E-03    6.7609        .28527E-06** at limit **
  27  norm          .10000E-03    1.1422        .16172E-06** at limit **
  28  Normalizat    1.3142        .20123       -.15713E-07    .25384E-03
  29  Prefactor     .78370        .15016       -.28093E-05    .32378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.83202
  norm       = 1.6249
  Prefactor  = 6.55631
  Prefactor  = 12.5456
  Prefactor  = 9.83579
  Prefactor  = 0.000100003
  Prefactor  = 0.000100382
  Prefactor  = 4.63743
  norm       = 13.1825
  Prefactor  = 0.0001
  norm       = 13.5472
  Prefactor  = 4.24825
  Prefactor  = 7.66262
  norm       = 4.7017
  Prefactor  = 1.82873
  Prefactor  = 0.0001
  Prefactor  = 0.000100831
  Prefactor  = 4.99864
  Prefactor  = 0.000100001
  Prefactor  = 6.49648
  Prefactor  = 27.4355
  Prefactor  = 8.67022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.5505
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.31422
  Prefactor  = 0.7837
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.533     FROM HESSE     STATUS=OK           565 CALLS     4319 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8320        10.119        .14329E-03   -1.5148    
   2  norm          1.6249        .76843        .39321E-04   -1.5453    
   3  Prefactor     6.5563        12.142        .78373E-03   -1.5196    
   4  Prefactor     12.546        18.630        .11317E-03   -1.4999    
   5  Prefactor     9.8358        9.5089        .12770E-03   -1.5081    
   6  Prefactor     .10000E-03    22.802        .39238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10038E-03    31.746        .21918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6374        122.03        .18713E-03   -1.5277    
   9  norm          13.183        8.2546        .11026E-03   -1.4982    
  10  Prefactor     .10000E-03    4.3865        .33835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.547        13.754        .10877E-03   -1.4972    
  12  Prefactor     4.2483        2.4547        .95777E-04   -1.5296    
  13  Prefactor     7.6626        24.432        .14522E-03   -1.5154    
  14  norm          4.7017        4.8520        .88318E-03   -1.5274    
  15  Prefactor     1.8287        2.3932        .14091E-03   -1.5438    
  16  Prefactor     .10000E-03    10.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10083E-03    1047.3        .37419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9986        11.185        .17992E-03   -1.5261    
  19  Prefactor     .10000E-03    30.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4965        8.8864        .15749E-03   -1.5198    
  21  Prefactor     27.436        14.823        .76490E-04   -1.4660    
  22  Prefactor     8.6702        28.485        .13612E-03   -1.5119    
  23  Prefactor     .10000E-03    32.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.7981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     36.550        56.751        .66285E-04   -1.4498    
  26  Prefactor     .10000E-03    6.8375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.1690        .88304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3142        .23560        .26078E-03   -.83143    
  29  Prefactor     .78370        .17406        .25953E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26852e-08
Minuit parameter uncertainties:
  1  10.1212
  2  0.768434
  3  12.1465
  4  18.6385
  5  9.51034
  6  0.00053792
  7  0.00696657
  8  47.6856
  9  8.25531
  10  4.2147e-05
  11  13.7575
  12  2.45479
  13  24.4634
  14  4.85238
  15  2.39331
  16  1.96217e-05
  17  0.060077
  18  11.19
  19  0.000268538
  20  8.88816
  21  14.8253
  22  28.5297
  23  0.000102916
  24  8.76356e-06
  25  56.8351
  26  1.10389e-05
  27  3.52439e-06
  28  0.235794
  29  0.174183
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.248e+00  2.455e+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:  7.837e-01  1.742e-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.314e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.90
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.30e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 1.85e-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) = 7160.44313325
delta logL = 0.0903290336519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7160.44022969
delta logL = 0.0932325888807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6443       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3865       1.0000          .0000       10.000    
     3 'Normalizat'    1.2891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79602       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=   7160.440     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      243 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6441        35.730        .52903E-02    .28998E-03
   2  Index         2.3867        3.4691        .12457        .14212E-03
   3  Normalizat    1.2891        .10915        .59449E-01    .40594E-05
   4  Prefactor     .79612        .59098E-01    .43665E-01    .77687E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64409
  Index      = 2.38666
  Normalizat = 1.28908
  Prefactor  = 0.796118
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.440     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6441        2.9918        .83114E-04   -1.5326    
   2  Index         2.3867        .66202        .65466E-02   -.54998    
   3  Normalizat    1.2891        .22766        .26292E-03   -.83893    
   4  Prefactor     .79612        .17500        .25773E-03   -.99872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74119e-11
Minuit parameter uncertainties:
  1  2.9919
  2  0.664713
  3  0.22784
  4  0.175126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919523': 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) = 7160.44022912
delta logL = 0.0932331617205

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.644e+00  2.992e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.387e+00  6.647e-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:  7.961e-01  1.751e-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.289e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.06
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.39 +/- 0.66
Photon Flux (Free Index): 8.09e-08 +/- 5.97e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/919523/cmap_HighResolution_367113601_367372801_4FGL_J1132.7+0034_daily_bin493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.30e-08', energy_flux2='2.70e-05', photon_flux_error='3.64e-08', dlogl='9.32e-02', energy_flux='3.21e-05', photon_flux2='8.09e-08', job_status='DONE', time_completed='2021-09-04 03:52:32.138685', photon_index_error2='0.66', photon_index2='2.39', ts='5.90', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='1.31', time_epoch_completed='1630752752.14', return_code='0', job_id='919523', GAL2='0.80', EG2='1.29', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='5.97e-08', ts2='6.06', photon_index='2.14' WHERE bin_id='493' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 919523: <4FGL_J1132.7+0034_daily_bin493> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin493 173.196 0.5737 367113601 367372801 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 :                                   847.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            984 sec.

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

