/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 6 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 = 7678
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin146
RA = 173.196, Dec = 0.5737
tmin = 277171201, tmax = 277430401
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='918020', job_status='RUN', time_executed='2021-09-04 03:32:14.573750', time_epoch_executed='1630751534.57' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918020

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918020/ft1_4FGL_J1132.7+0034_daily_bin146.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918020/ft2_4FGL_J1132.7+0034_daily_bin146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918020/ft1_4FGL_J1132.7+0034_daily_bin146.fits outfile=/scratch/kocevski/918020/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin146.fits ra=173.196 dec=0.5737 rad=12.0 tmin=277171201.0 tmax=277430401.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 6.30
user 3.34
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918020/ft1_filtered_4FGL_J1132.7+0034_daily_bin146.fits" evtable="EVENTS" scfile=/scratch/kocevski/918020/ft2_4FGL_J1132.7+0034_daily_bin146.fits sctable="SC_DATA" outfile=/scratch/kocevski/918020/ltcube_277171201_277430401_4FGL_J1132.7+0034_daily_bin146.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/918020/ft2_4FGL_J1132.7+0034_daily_bin146.fits
.....................!
real 12.30
user 11.50
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918020/ft1_filtered_4FGL_J1132.7+0034_daily_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/918020/ft2_4FGL_J1132.7+0034_daily_bin146.fits sctable="SC_DATA" expcube=/scratch/kocevski/918020/ltcube_277171201_277430401_4FGL_J1132.7+0034_daily_bin146.fits outfile=/scratch/kocevski/918020/expmap_277171201_277430401_4FGL_J1132.7+0034_daily_bin146.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/918020/ltcube_277171201_277430401_4FGL_J1132.7+0034_daily_bin146.fits
.....................!
real 191.56
user 184.91
sys 5.00

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/918020/ft1_filtered_4FGL_J1132.7+0034_daily_bin146.fits scfile=/scratch/kocevski/918020/ft2_4FGL_J1132.7+0034_daily_bin146.fits outfile=/scratch/kocevski/918020/cmap_277171201_277430401_4FGL_J1132.7+0034_daily_bin146.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918020/ft1_filtered_4FGL_J1132.7+0034_daily_bin146.fits scfile=/scratch/kocevski/918020/ft2_4FGL_J1132.7+0034_daily_bin146.fits outfile=/scratch/kocevski/918020/cmap_HighResolution_277171201_277430401_4FGL_J1132.7+0034_daily_bin146.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918020/ft1_filtered_4FGL_J1132.7+0034_daily_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/918020/ft2_4FGL_J1132.7+0034_daily_bin146.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918020/Model_4FGL_J1132.7+0034_daily_bin146.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/918020/ft1_filtered_4FGL_J1132.7+0034_daily_bin146.fits.....................!
real 59.92
user 58.49
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1895       1.0000         .10000E-03   10000.    
     2 'norm      '    .48141       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.203       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.428       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18232E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    84.540       1.0000         .10000E-03   10000.    
     9 'norm      '    37.794       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20428       1.0000         .10000E-03   10000.    
    11 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    55.657       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.176       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.138       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11492E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.7088       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.888       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1266       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3445       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=   6282.690     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3837 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1912        9.0807       -.84980E-06    .72760E-04
   2  norm          .48150        .42845       -.25479E-07    .96382E-04
   3  Prefactor     .10000E-03    4.9384       -.14980E-07** at limit **
   4  Prefactor     12.204        12.461        .29127E-06   -.11693E-04
   5  Prefactor     25.409        24.047       -.57602E-06    .10376E-03
   6  Prefactor     .10000E-03    6.2084       -.53570E-07** at limit **
   7  Prefactor     .10000E-03    11.366        .15364E-05** at limit **
   8  Prefactor     84.497        93.092        .50491E-05   -.15724E-04
   9  norm          37.718        16.629        .56113E-06    .33089E-03
  10  Prefactor     .32867        41.421        .98972E-05    .15922E-04
  11  norm          .10000E-03    12.066       -.10580E-06** at limit **
  12  Prefactor     4.4118        3.3685       -.58860E-06    .34911E-03
  13  Prefactor     55.385        49.149        .70614E-06    .36690E-03
  14  norm          .10000E-03    6.1544       -.14765E-06** at limit **
  15  Prefactor     11.176        5.8934       -.15196E-06    .29589E-03
  16  Prefactor     .10000E-03    8.6041        .53850E-07** at limit **
  17  Prefactor     .10000E-03    35.929       -.45338E-05** at limit **
  18  Prefactor     15.141        11.118       -.23538E-06    .28344E-04
  19  Prefactor     .10000E-03    19.070        .30906E-05** at limit **
  20  Prefactor     .10000E-03    4.2239        .21238E-06** at limit **
  21  Prefactor     .10001E-03    33.391        .90241E-05** at limit **
  22  Prefactor     .10000E-03    20.465       -.40450E-05** at limit **
  23  Prefactor     .10000E-03    12.059       -.19317E-06** at limit **
  24  Prefactor     5.7125        28.599       -.77634E-06    .14901E-04
  25  Prefactor     .10000E-03    25.443        .17597E-05** at limit **
  26  Prefactor     22.892        16.745        .10798E-06   -.18437E-04
  27  norm          .10000E-03    1.1992        .28692E-06** at limit **
  28  Normalizat    1.1265        .24654        .15990E-05    .19470E-03
  29  Prefactor     1.3444        .19551       -.44070E-06    .41114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.19122
  norm       = 0.481497
  Prefactor  = 0.0001
  Prefactor  = 12.2037
  Prefactor  = 25.4088
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 84.4971
  norm       = 37.7184
  Prefactor  = 0.328671
  norm       = 0.0001
  Prefactor  = 4.41179
  Prefactor  = 55.3847
  norm       = 0.0001
  Prefactor  = 11.1757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.71252
  Prefactor  = 0.0001
  Prefactor  = 22.8919
  norm       = 0.0001
  Normalizat = 1.12652
  Prefactor  = 1.34437
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.690     FROM HESSE     STATUS=OK           551 CALLS     4388 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1912        9.0719        .14960E-03   -1.5172    
   2  norm          .48150        .42927        .46995E-04   -1.5569    
   3  Prefactor     .10000E-03    4.9624        .17187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.204        12.463        .11467E-03   -1.5009    
   5  Prefactor     25.409        23.969        .79440E-04   -1.4699    
   6  Prefactor     .10000E-03    6.2157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     84.497        92.839        .21845E-03   -1.3867    
   9  norm          37.718        16.778        .65194E-04   -1.4479    
  10  Prefactor     .32867        61.934        .28984E-02   -1.5593    
  11  norm          .10000E-03    12.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4118        3.3614        .11994E-03   -1.5288    
  13  Prefactor     55.385        50.221        .53769E-04   -1.4218    
  14  norm          .10000E-03    6.2068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.176        5.8522        .11984E-03   -1.5039    
  16  Prefactor     .10000E-03    8.6063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.141        11.118        .10294E-03   -1.4930    
  19  Prefactor     .10000E-03    18.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2389        .15904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    93.485        .46252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.7125        28.437        .16811E-03   -1.5230    
  25  Prefactor     .10000E-03    25.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.892        16.695        .83725E-04   -1.4751    
  27  norm          .10000E-03    1.1997        .84583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1265        .29048        .32578E-03   -.88905    
  29  Prefactor     1.3444        .23237        .25133E-03   -.81997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57353e-10
Minuit parameter uncertainties:
  1  9.07361
  2  0.429273
  3  2.13318e-06
  4  12.4661
  5  23.9783
  6  1.46986e-05
  7  0.000237232
  8  92.9992
  9  16.7798
  10  9.0316
  11  4.6086e-06
  12  3.3615
  13  50.2592
  14  4.08097e-06
  15  5.85251
  16  3.93414e-06
  17  0.000224785
  18  11.1193
  19  0.000114437
  20  8.82603e-06
  21  0.00182016
  22  0.000159223
  23  1.31384e-06
  24  25.51
  25  9.19042e-05
  26  16.6988
  27  3.88953e-06
  28  0.290897
  29  0.23255
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.412e+00  3.362e+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.344e+00  2.326e-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.127e+00  2.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.54e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 2.54e-05

TS (Fixed Index): 2.36
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918020/likelihoodResults_277171201_277430401_4FGL_J1132.7+0034_daily_bin146.txt

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) = 6282.27612262
delta logL = 0.413991830276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6282.25705362
delta logL = 0.433060830733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9109       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6488       1.0000          .0000       10.000    
     3 'Normalizat'    1.0788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3686       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=   6282.257     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      244 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9104        33.892        .59535E-02    .13771E-02
   2  Index         2.6492        2.9004        .14245        .26173E-03
   3  Normalizat    1.0788        .86122E-01    .74997E-01    .93084E-05
   4  Prefactor     1.3687        .65166E-01    .56401E-01   -.85110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.91041
  Index      = 2.64925
  Normalizat = 1.07884
  Prefactor  = 1.36866
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.257     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9104        3.3996        .83209E-04   -1.5367    
   2  Index         2.6492        .67340        .51084E-02   -.48946    
   3  Normalizat    1.0788        .28373        .33191E-03   -.90434    
   4  Prefactor     1.3687        .23310        .24939E-03   -.81288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20148e-10
Minuit parameter uncertainties:
  1  3.39987
  2  0.676042
  3  0.284131
  4  0.233283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918020': 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) = 6282.25705208
delta logL = 0.433062367153

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.910e+00  3.400e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.649e+00  6.760e-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.369e+00  2.333e-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.079e+00  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.65 +/- 0.68
Photon Flux (Free Index): 1.02e-07 +/- 7.15e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.88e-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/918020/cmap_HighResolution_277171201_277430401_4FGL_J1132.7+0034_daily_bin146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='6.54e-08', energy_flux2='2.56e-05', photon_flux_error='4.98e-08', dlogl='4.33e-01', energy_flux='3.33e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-04 03:47:22.366487', photon_index_error2='0.68', photon_index2='2.65', ts='2.36', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.88e-05', EG='1.13', time_epoch_completed='1630752442.37', return_code='0', job_id='918020', GAL2='1.37', EG2='1.08', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='7.15e-08', ts2='3.25', photon_index='2.14' WHERE bin_id='146' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:47:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 918020: <4FGL_J1132.7+0034_daily_bin146> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin146> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:31:47 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:31:49 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:31:49 2021
Terminated at Sat Sep  4 03:47:23 2021
Results reported at Sat Sep  4 03:47:23 2021

Your job looked like:

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

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

