/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 64 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 = 7009
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin43
RA = 173.196, Dec = 0.5737
tmin = 250473601, tmax = 250732801
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='916597', job_status='RUN', time_executed='2021-09-04 03:27:36.605255', time_epoch_executed='1630751256.61' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916597

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916597/ft1_4FGL_J1132.7+0034_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916597/ft2_4FGL_J1132.7+0034_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916597/ft1_4FGL_J1132.7+0034_daily_bin43.fits outfile=/scratch/kocevski/916597/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin43.fits ra=173.196 dec=0.5737 rad=12.0 tmin=250473601.0 tmax=250732801.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 1.34
user 1.17
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916597/ft1_filtered_4FGL_J1132.7+0034_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/916597/ft2_4FGL_J1132.7+0034_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/916597/ltcube_250473601_250732801_4FGL_J1132.7+0034_daily_bin43.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/916597/ft2_4FGL_J1132.7+0034_daily_bin43.fits
.....................!
real 11.99
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916597/ft1_filtered_4FGL_J1132.7+0034_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/916597/ft2_4FGL_J1132.7+0034_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/916597/ltcube_250473601_250732801_4FGL_J1132.7+0034_daily_bin43.fits outfile=/scratch/kocevski/916597/expmap_250473601_250732801_4FGL_J1132.7+0034_daily_bin43.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/916597/ltcube_250473601_250732801_4FGL_J1132.7+0034_daily_bin43.fits
.....................!
real 193.35
user 185.60
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/916597/ft1_filtered_4FGL_J1132.7+0034_daily_bin43.fits scfile=/scratch/kocevski/916597/ft2_4FGL_J1132.7+0034_daily_bin43.fits outfile=/scratch/kocevski/916597/cmap_250473601_250732801_4FGL_J1132.7+0034_daily_bin43.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/916597/ft1_filtered_4FGL_J1132.7+0034_daily_bin43.fits scfile=/scratch/kocevski/916597/ft2_4FGL_J1132.7+0034_daily_bin43.fits outfile=/scratch/kocevski/916597/cmap_HighResolution_250473601_250732801_4FGL_J1132.7+0034_daily_bin43.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.53
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916597/ft1_filtered_4FGL_J1132.7+0034_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/916597/ft2_4FGL_J1132.7+0034_daily_bin43.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916597/Model_4FGL_J1132.7+0034_daily_bin43.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/916597/ft1_filtered_4FGL_J1132.7+0034_daily_bin43.fits.....................!
real 70.14
user 68.74
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5985       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9051       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48430E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9052       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3307       1.0000         .10000E-03   10000.    
     8 'Prefactor '    69.293       1.0000         .10000E-03   10000.    
     9 'norm      '    9.6710       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15827E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    14.107       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2271       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.109       1.0000         .10000E-03   10000.    
    14 'norm      '    20.391       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9939       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    75.941       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.921       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2987       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8668       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3403       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .56720       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=   7779.574     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3703 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4449       -.19955E-06** at limit **
   2  norm          1.5984        .53479       -.91427E-08    .16719E-03
   3  Prefactor     8.9055        6.3456       -.22952E-07    .59631E-04
   4  Prefactor     .10010E-03    12.297       -.12664E-05** at limit **
   5  Prefactor     9.4795        15.368       -.23982E-06    .19705E-04
   6  Prefactor     5.9041        9.6564       -.59022E-07    .91922E-05
   7  Prefactor     5.3324        4.0037        .17932E-05   -.14135E-03
   8  Prefactor     69.323        68.609        .84664E-06    .11103E-03
   9  norm          9.6771        8.1493       -.47083E-06    .73569E-04
  10  Prefactor     .10004E-03    2.2136       -.36147E-06** at limit **
  11  norm          14.127        18.393        .45978E-06    .95933E-04
  12  Prefactor     3.2270        1.9860       -.25152E-08    .48864E-04
  13  Prefactor     10.126        20.140        .13171E-07    .70143E-04
  14  norm          20.392        7.4966       -.74411E-07    .35333E-04
  15  Prefactor     2.9932        3.7400        .37583E-06   -.79480E-05
  16  Prefactor     8.0229        8.0949       -.56378E-07    .75104E-05
  17  Prefactor     75.889        69.608       -.11066E-05   -.17099E-03
  18  Prefactor     17.920        9.8678        .38158E-07    .71688E-05
  19  Prefactor     .10000E-03    47.508        .93848E-07** at limit **
  20  Prefactor     2.2977        5.8416        .10129E-05    .50275E-04
  21  Prefactor     2.8643        11.195        .91047E-06   -.92229E-05
  22  Prefactor     .10000E-03    9.8353        .22934E-08** at limit **
  23  Prefactor     .10000E-03    37.957       -.63607E-06** at limit **
  24  Prefactor     .10000E-03    8.5369        .17434E-06** at limit **
  25  Prefactor     .10000E-03    21.069       -.11957E-06** at limit **
  26  Prefactor     .10000E-03    5.5596        .46209E-07** at limit **
  27  norm          .10000E-03    .77345        .26953E-07** at limit **
  28  Normalizat    1.3404        .17134        .72122E-06    .10881E-03
  29  Prefactor     .56726        .13047       -.16771E-05    .18305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.59844
  Prefactor  = 8.90549
  Prefactor  = 0.000100104
  Prefactor  = 9.4795
  Prefactor  = 5.90413
  Prefactor  = 5.33239
  Prefactor  = 69.3227
  norm       = 9.67712
  Prefactor  = 0.000100037
  norm       = 14.1273
  Prefactor  = 3.22695
  Prefactor  = 10.1263
  norm       = 20.3915
  Prefactor  = 2.99316
  Prefactor  = 8.02289
  Prefactor  = 75.8889
  Prefactor  = 17.9201
  Prefactor  = 0.0001
  Prefactor  = 2.29775
  Prefactor  = 2.86433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.34037
  Prefactor  = 0.56726
 **********
 **   18 **HESSE 
 **********

 FCN=   7779.574     FROM HESSE     STATUS=OK           559 CALLS     4262 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5984        .53844        .34613E-04   -1.5455    
   3  Prefactor     8.9055        6.3727        .13431E-03   -1.5111    
   4  Prefactor     .10010E-03    60.437        .58554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.4795        15.258        .13016E-03   -1.5092    
   6  Prefactor     5.9041        9.5837        .16525E-03   -1.5222    
   7  Prefactor     5.3324        4.0392        .71278E-03   -1.5246    
   8  Prefactor     69.323        68.762        .48221E-04   -1.4041    
   9  norm          9.6771        7.9716        .12886E-03   -1.5086    
  10  Prefactor     .10004E-03    53.402        .22310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.127        17.711        .10664E-03   -1.4956    
  12  Prefactor     3.2270        1.9870        .93167E-04   -1.5349    
  13  Prefactor     10.126        19.725        .12603E-03   -1.5071    
  14  norm          20.392        7.4556        .88699E-04   -1.4805    
  15  Prefactor     2.9932        3.7104        .16943E-03   -1.5362    
  16  Prefactor     8.0229        8.0982        .14155E-03   -1.5141    
  17  Prefactor     75.889        70.486        .23039E-03   -1.3963    
  18  Prefactor     17.920        9.8711        .94610E-04   -1.4861    
  19  Prefactor     .10000E-03    48.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2977        5.8120        .27069E-03   -1.5405    
  21  Prefactor     2.8643        11.168        .24008E-03   -1.5369    
  22  Prefactor     .10000E-03    9.8380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.5597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.6147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .78380        .75736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3404        .19617        .24025E-03   -.82369    
  29  Prefactor     .56726        .14816        .27638E-03   -1.0898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6959e-09
Minuit parameter uncertainties:
  1  2.53085e-05
  2  0.538438
  3  6.37317
  4  0.00502845
  5  15.2644
  6  9.58622
  7  4.03945
  8  68.8414
  9  7.97247
  10  0.00282554
  11  17.7181
  12  1.98706
  13  19.7374
  14  7.45591
  15  3.71072
  16  8.09927
  17  70.5639
  18  9.87203
  19  9.65014e-05
  20  5.8134
  21  11.1762
  22  6.86223e-06
  23  1.12202e-05
  24  2.94118e-05
  25  7.44592e-06
  26  1.5721e-08
  27  4.79848e-07
  28  0.196282
  29  0.148261
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.227e+00  1.987e+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.673e-01  1.483e-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.340e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.55
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.50e-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) = 7778.62812809
delta logL = 0.946126997938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7778.62728242
delta logL = 0.946972673401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8195       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9344       1.0000          .0000       10.000    
     3 'Normalizat'    1.2648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60218       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=   7778.627     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      275 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8198        10.444        .77396E-02    .58790E-03
   2  Index         2.9342        2.3771        .11983        .19135E-03
   3  Normalizat    1.2649        .62807E-01    .55633E-01   -.79191E-05
   4  Prefactor     .60212        .42884E-01    .60755E-01    .27365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81982
  Index      = 2.93418
  Normalizat = 1.26488
  Prefactor  = 0.602115
 **********
 **   18 **HESSE 
 **********

 FCN=   7778.627     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8198        2.0141        .51923E-04   -1.5438    
   2  Index         2.9342        .71999        .43962E-02   -.42593    
   3  Normalizat    1.2649        .19886        .24601E-03   -.84621    
   4  Prefactor     .60212        .14970        .26877E-03   -1.0750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70527e-11
Minuit parameter uncertainties:
  1  2.01416
  2  0.723029
  3  0.19898
  4  0.149798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916597': 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) = 7778.62728217
delta logL = 0.946972918118

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.820e+00  2.014e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.934e+00  7.230e-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:  6.021e-01  1.498e-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.265e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.53
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.93 +/- 0.72
Photon Flux (Free Index): 1.08e-07 +/- 6.33e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.04e-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/916597/cmap_HighResolution_250473601_250732801_4FGL_J1132.7+0034_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='2.23e-05', photon_flux_error='2.94e-08', dlogl='9.47e-01', energy_flux='2.44e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-04 03:41:52.786222', photon_index_error2='0.72', photon_index2='2.93', ts='6.55', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.34', time_epoch_completed='1630752112.79', return_code='0', job_id='916597', GAL2='0.60', EG2='1.26', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.33e-08', ts2='8.53', photon_index='2.14' WHERE bin_id='43' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 916597: <4FGL_J1132.7+0034_daily_bin43> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin43> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 03:26:20 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:26:21 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:26:21 2021
Terminated at Sat Sep  4 03:41:53 2021
Results reported at Sat Sep  4 03:41:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin43 173.196 0.5737 250473601 250732801 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 :                                   849.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

