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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin35
RA = 173.196, Dec = 0.5737
tmin = 248400001, tmax = 248659201
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='916585', job_status='RUN', time_executed='2021-09-04 03:27:16.001700', time_epoch_executed='1630751236.0' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916585

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916585/ft1_4FGL_J1132.7+0034_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916585/ft2_4FGL_J1132.7+0034_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916585/ft1_4FGL_J1132.7+0034_daily_bin35.fits outfile=/scratch/kocevski/916585/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin35.fits ra=173.196 dec=0.5737 rad=12.0 tmin=248400001.0 tmax=248659201.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.43
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916585/ft1_filtered_4FGL_J1132.7+0034_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/916585/ft2_4FGL_J1132.7+0034_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/916585/ltcube_248400001_248659201_4FGL_J1132.7+0034_daily_bin35.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/916585/ft2_4FGL_J1132.7+0034_daily_bin35.fits
.....................!
real 12.90
user 11.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916585/ft1_filtered_4FGL_J1132.7+0034_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/916585/ft2_4FGL_J1132.7+0034_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/916585/ltcube_248400001_248659201_4FGL_J1132.7+0034_daily_bin35.fits outfile=/scratch/kocevski/916585/expmap_248400001_248659201_4FGL_J1132.7+0034_daily_bin35.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/916585/ltcube_248400001_248659201_4FGL_J1132.7+0034_daily_bin35.fits
.....................!
real 190.01
user 185.07
sys 4.59

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/916585/ft1_filtered_4FGL_J1132.7+0034_daily_bin35.fits scfile=/scratch/kocevski/916585/ft2_4FGL_J1132.7+0034_daily_bin35.fits outfile=/scratch/kocevski/916585/cmap_248400001_248659201_4FGL_J1132.7+0034_daily_bin35.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916585/ft1_filtered_4FGL_J1132.7+0034_daily_bin35.fits scfile=/scratch/kocevski/916585/ft2_4FGL_J1132.7+0034_daily_bin35.fits outfile=/scratch/kocevski/916585/cmap_HighResolution_248400001_248659201_4FGL_J1132.7+0034_daily_bin35.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.58
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916585/ft1_filtered_4FGL_J1132.7+0034_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/916585/ft2_4FGL_J1132.7+0034_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916585/Model_4FGL_J1132.7+0034_daily_bin35.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/916585/ft1_filtered_4FGL_J1132.7+0034_daily_bin35.fits.....................!
real 69.89
user 68.40
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.403       1.0000         .10000E-03   10000.    
     2 'norm      '    .94574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6317       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11746E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16853       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1103       1.0000         .10000E-03   10000.    
    11 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9667       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.942       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.478       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.919       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18002E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.500       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0878       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1722       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.9237       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.8218       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.7260       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96069       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0603       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7854.881     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     3148 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.402        1.0308        .12694E-06    .10794E-02
   2  norm          .94573        .39990       -.56614E-08    .23220E-03
   3  Prefactor     .10000E-03    1.8783        .78566E-07** at limit **
   4  Prefactor     1.6267        6.2589        .15868E-04    .72340E-03
   5  Prefactor     .10002E-03    21.945        .85486E-05** at limit **
   6  Prefactor     .10000E-03    4.1716        .58590E-06** at limit **
   7  Prefactor     .14189        1.6801        .20991E-05   -.41135E-03
   8  Prefactor     .10004E-03    26.315       -.86098E-05** at limit **
   9  norm          .10000E-03    4.5942        .94136E-05** at limit **
  10  Prefactor     1.1024        3.8291        .46581E-05   -.66108E-04
  11  norm          .10000E-03    10.782        .39468E-06** at limit **
  12  Prefactor     1.9666        1.2709        .24643E-06    .14577E-03
  13  Prefactor     10.992        13.910       -.15213E-04    .47896E-02
  14  norm          6.2261        5.6942       -.89271E-05   -.23092E-02
  15  Prefactor     .10000E-03    1.6239        .38268E-06** at limit **
  16  Prefactor     17.476        1.7160        .11808E-05   -.85716E-04
  17  Prefactor     40.892        5.2399       -.22046E-05    .63304E-02
  18  Prefactor     .10000E-03    3.3265        .84682E-06** at limit **
  19  Prefactor     .10058E-03    224.85       -.94113E-06** at limit **
  20  Prefactor     .10000E-03    4.7430       -.55059E-05** at limit **
  21  Prefactor     19.482        9.8887        .55829E-05    .98559E-02
  22  Prefactor     5.0548        3.8290        .25937E-05    .21376E-03
  23  Prefactor     3.1702        4.5387        .95070E-05   -.11567E-02
  24  Prefactor     3.9236        1.3866        .90053E-06    .83129E-03
  25  Prefactor     4.7328        10.172        .17272E-06    .21271E-04
  26  Prefactor     .10000E-03    4.4062       -.42958E-05** at limit **
  27  norm          2.7258        1.9702       -.14683E-06    .61502E-04
  28  Normalizat    .96104        .20213       -.31148E-05   -.46864E-05
  29  Prefactor     1.0602        .16565        .19575E-05   -.58252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4019
  norm       = 0.945732
  Prefactor  = 0.0001
  Prefactor  = 1.6267
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.141888
  Prefactor  = 0.000100037
  norm       = 0.000100001
  Prefactor  = 1.10243
  norm       = 0.0001
  Prefactor  = 1.9666
  Prefactor  = 10.9918
  norm       = 6.22611
  Prefactor  = 0.0001
  Prefactor  = 17.4757
  Prefactor  = 40.8922
  Prefactor  = 0.0001
  Prefactor  = 0.000100578
  Prefactor  = 0.0001
  Prefactor  = 19.4817
  Prefactor  = 5.05484
  Prefactor  = 3.17021
  Prefactor  = 3.9236
  Prefactor  = 4.7328
  Prefactor  = 0.0001
  norm       = 2.72581
  Normalizat = 0.961039
  Prefactor  = 1.06021
 **********
 **   18 **HESSE 
 **********

 FCN=   7854.881     FROM HESSE     STATUS=OK           631 CALLS     3779 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.402        7.4777        .31056E-02   -1.5063    
   2  norm          .94573        .40658        .79713E-02   -1.5513    
   3  Prefactor     .10000E-03    1.8746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6267        41.658        .82755E-02   -1.5453    
   5  Prefactor     .10002E-03    5.2815        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14189        2.0128        .75688E-01   -1.5633    
   8  Prefactor     .10004E-03    27.478        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.5641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1024        4.4468        .11207E-01   -1.5498    
  11  norm          .10000E-03    10.777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9666        1.2670        .73928E-02   -1.5427    
  13  Prefactor     10.992        24.687        .30280E-02   -1.5045    
  14  norm          6.2261        5.8789        .40206E-02   -1.5209    
  15  Prefactor     .10000E-03    1.6048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.476        18.331        .23950E-02   -1.4872    
  17  Prefactor     40.892        83.217        .15666E-02   -1.4428    
  18  Prefactor     .10000E-03    3.3081        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10058E-03    30.210        .14736       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.6865        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.482        14.441        .22675E-02   -1.4825    
  22  Prefactor     5.0548        58.615        .44563E-02   -1.5258    
  23  Prefactor     3.1702        49.317        .56885E-02   -1.5352    
  24  Prefactor     3.9236        13.293        .50917E-02   -1.5312    
  25  Prefactor     4.7328        67.082        .45801E-02   -1.5273    
  26  Prefactor     .10000E-03    4.3962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.7258        1.9801        .61661E-02   -1.5378    
  28  Normalizat    .96104        .18648        .45672E-01   -.94347    
  29  Prefactor     1.0602        .14420        .39339E-01   -.90749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02355e-06
Minuit parameter uncertainties:
  1  7.47834
  2  0.406582
  3  1.55175e-06
  4  16.4763
  5  0.000620451
  6  7.62962e-06
  7  1.06848
  8  0.00201234
  9  0.000132216
  10  4.42859
  11  8.32075e-06
  12  1.26699
  13  24.7103
  14  5.87941
  15  8.53736e-07
  16  18.3367
  17  83.4542
  18  1.94325e-05
  19  0.0083606
  20  7.29954e-05
  21  14.444
  22  34.4682
  23  25.0317
  24  13.3034
  25  35.6843
  26  8.85164e-05
  27  1.98016
  28  0.186603
  29  0.144255
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.967e+00  1.267e+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:  1.060e+00  1.443e-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:  9.610e-01  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.37
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 9.57e-06

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) = 7853.73237538
delta logL = 1.14876081629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7853.71829465
delta logL = 1.16284154235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7215       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3957       1.0000          .0000       10.000    
     3 'Normalizat'    .98198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0519       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=   7853.718     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7217        1.1728        .80039E-02   -.51736E-03
   2  Index         1.3955        .34099        .21229       -.50095E-04
   3  Normalizat    .98222        .17164        .45941E-01   -.83590E-04
   4  Prefactor     1.0517        .14186        .39799E-01    .12178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72172
  Index      = 1.39547
  Normalizat = 0.982218
  Prefactor  = 1.05168
 **********
 **   18 **HESSE 
 **********

 FCN=   7853.718     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7217        1.3909        .77247E-04   -1.5446    
   2  Index         1.3955        .44213        .85086E-02   -.80511    
   3  Normalizat    .98222        .19899        .27611E-03   -.93629    
   4  Prefactor     1.0517        .16461        .22042E-03   -.91026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12966e-09
Minuit parameter uncertainties:
  1  1.39092
  2  0.443335
  3  0.19914
  4  0.16469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916585': 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) = 7853.71829335
delta logL = 1.16284284036

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.722e+00  1.391e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.395e+00  4.433e-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:  1.052e+00  1.647e-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:  9.822e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.70
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.40 +/- 0.44
Photon Flux (Free Index): 1.16e-08 +/- 1.04e-08
Energy Flux (Free Index): 5.20e-05 +/- 5.83e-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/916585/cmap_HighResolution_248400001_248659201_4FGL_J1132.7+0034_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='5.20e-05', photon_flux_error='1.88e-08', dlogl='1.16e+00', energy_flux='1.48e-05', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-04 03:40:34.263295', photon_index_error2='0.44', photon_index2='1.40', ts='12.37', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.83e-05', EG='0.96', time_epoch_completed='1630752034.26', return_code='0', job_id='916585', GAL2='1.05', EG2='0.98', return_code2='0', energy_flux_error='9.57e-06', photon_flux_error2='1.04e-08', ts2='14.70', photon_index='2.14' WHERE bin_id='35' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:40:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 916585: <4FGL_J1132.7+0034_daily_bin35> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin35 173.196 0.5737 248400001 248659201 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 :                                   795.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

