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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin541
RA = 173.196, Dec = 0.5737
tmin = 379555201, tmax = 379814401
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='919593', job_status='RUN', time_executed='2021-09-04 03:38:26.620941', time_epoch_executed='1630751906.62' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919593/ft1_4FGL_J1132.7+0034_daily_bin541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919593/ft2_4FGL_J1132.7+0034_daily_bin541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919593/ft1_4FGL_J1132.7+0034_daily_bin541.fits outfile=/scratch/kocevski/919593/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin541.fits ra=173.196 dec=0.5737 rad=12.0 tmin=379555201.0 tmax=379814401.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 3.48
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919593/ft1_filtered_4FGL_J1132.7+0034_daily_bin541.fits" evtable="EVENTS" scfile=/scratch/kocevski/919593/ft2_4FGL_J1132.7+0034_daily_bin541.fits sctable="SC_DATA" outfile=/scratch/kocevski/919593/ltcube_379555201_379814401_4FGL_J1132.7+0034_daily_bin541.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/919593/ft2_4FGL_J1132.7+0034_daily_bin541.fits
.....................!
real 12.02
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919593/ft1_filtered_4FGL_J1132.7+0034_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/919593/ft2_4FGL_J1132.7+0034_daily_bin541.fits sctable="SC_DATA" expcube=/scratch/kocevski/919593/ltcube_379555201_379814401_4FGL_J1132.7+0034_daily_bin541.fits outfile=/scratch/kocevski/919593/expmap_379555201_379814401_4FGL_J1132.7+0034_daily_bin541.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/919593/ltcube_379555201_379814401_4FGL_J1132.7+0034_daily_bin541.fits
.....................!
real 189.91
user 184.88
sys 4.61

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/919593/ft1_filtered_4FGL_J1132.7+0034_daily_bin541.fits scfile=/scratch/kocevski/919593/ft2_4FGL_J1132.7+0034_daily_bin541.fits outfile=/scratch/kocevski/919593/cmap_379555201_379814401_4FGL_J1132.7+0034_daily_bin541.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919593/ft1_filtered_4FGL_J1132.7+0034_daily_bin541.fits scfile=/scratch/kocevski/919593/ft2_4FGL_J1132.7+0034_daily_bin541.fits outfile=/scratch/kocevski/919593/cmap_HighResolution_379555201_379814401_4FGL_J1132.7+0034_daily_bin541.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919593/ft1_filtered_4FGL_J1132.7+0034_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/919593/ft2_4FGL_J1132.7+0034_daily_bin541.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919593/Model_4FGL_J1132.7+0034_daily_bin541.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/919593/ft1_filtered_4FGL_J1132.7+0034_daily_bin541.fits.....................!
real 60.10
user 58.64
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.957       1.0000         .10000E-03   10000.    
     2 'norm      '    .62670       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44509       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.3767       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3831       1.0000         .10000E-03   10000.    
    11 'norm      '    .26499E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .81389       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0179       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.334       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6326       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.393       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8683       1.0000         .10000E-03   10000.    
    27 'norm      '    2.1769       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2633       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80644       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=   6349.458     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3676 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.957        8.9768        .41071E-06   -.98652E-05
   2  norm          .62666        .42191        .16892E-07   -.10894E-05
   3  Prefactor     .10000E-03    5.1468       -.28230E-06** at limit **
   4  Prefactor     .10000E-03    5.1796       -.10557E-06** at limit **
   5  Prefactor     .43890        9.3355        .13322E-05   -.23722E-03
   6  Prefactor     .10000E-03    11.745       -.61958E-06** at limit **
   7  Prefactor     .10000E-03    4.5224       -.70278E-06** at limit **
   8  Prefactor     .10000E-03    22.018       -.15301E-06** at limit **
   9  norm          8.3770        8.2549        .62712E-07   -.65941E-04
  10  Prefactor     4.3917        5.2704        .69601E-06   -.48943E-04
  11  norm          .10000E-03    67.855       -.11328E-05** at limit **
  12  Prefactor     .49136        1.8140        .12148E-05    .22115E-03
  13  Prefactor     .10000E-03    9.1731       -.23964E-06** at limit **
  14  norm          .81471        8.3893        .50971E-05    .15369E-03
  15  Prefactor     3.0177        3.8245       -.57488E-06   -.45902E-03
  16  Prefactor     .10000E-03    31.832       -.18536E-06** at limit **
  17  Prefactor     21.486        111.48        .59528E-05    .47324E-04
  18  Prefactor     .10000E-03    3.4464        .64565E-06** at limit **
  19  Prefactor     .10000E-03    19.905       -.91377E-07** at limit **
  20  Prefactor     .10000E-03    5.5944        .35050E-06** at limit **
  21  Prefactor     4.6342        14.408        .13573E-05   -.58180E-04
  22  Prefactor     .10000E-03    13.219        .20489E-07** at limit **
  23  Prefactor     .10000E-03    26.374        .18715E-05** at limit **
  24  Prefactor     16.408        25.448        .11600E-06   -.35589E-04
  25  Prefactor     .10000E-03    31.250        .56498E-06** at limit **
  26  Prefactor     1.8575        31.753        .39389E-05    .39553E-04
  27  norm          2.1789        3.1047       -.20591E-06   -.73846E-04
  28  Normalizat    1.2633        .22567       -.62308E-05   -.83141E-04
  29  Prefactor     .80647        .16725        .44687E-05   -.45377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9566
  norm       = 0.626662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.4389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.37697
  Prefactor  = 4.39169
  norm       = 0.000100001
  Prefactor  = 0.491364
  Prefactor  = 0.0001
  norm       = 0.814709
  Prefactor  = 3.01771
  Prefactor  = 0.0001
  Prefactor  = 21.4859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.63415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.408
  Prefactor  = 0.0001
  Prefactor  = 1.85748
  norm       = 2.17894
  Normalizat = 1.26332
  Prefactor  = 0.806471
 **********
 **   18 **HESSE 
 **********

 FCN=   6349.458     FROM HESSE     STATUS=OK           553 CALLS     4229 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.957        8.9707        .11585E-03   -1.5016    
   2  norm          .62666        .42063        .40737E-04   -1.5550    
   3  Prefactor     .10000E-03    5.2534        .17620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1824        .17711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .43890        96.269        .44866E-02   -1.5575    
   6  Prefactor     .10000E-03    11.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6902        .32977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.3770        8.2170        .13851E-03   -1.5129    
  10  Prefactor     4.3917        5.1980        .17776E-03   -1.5289    
  11  norm          .10000E-03    69.839        .39918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .49136        1.8086        .19585E-03   -1.5568    
  13  Prefactor     .10000E-03    9.1890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .81471        8.6886        .41842E-03   -1.5527    
  15  Prefactor     3.0177        3.7368        .15536E-03   -1.5361    
  16  Prefactor     .10000E-03    32.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.486        111.97        .86719E-04   -1.4781    
  18  Prefactor     .10000E-03    3.4571        .14459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.6342        14.353        .18699E-03   -1.5277    
  22  Prefactor     .10000E-03    13.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.408        25.129        .98922E-04   -1.4898    
  25  Prefactor     .10000E-03    31.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.8575        29.315        .30475E-03   -1.5435    
  27  norm          2.1789        2.9774        .13309E-03   -1.5413    
  28  Normalizat    1.2633        .23905        .24923E-03   -.84668    
  29  Prefactor     .80647        .17775        .24102E-03   -.99490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49625e-09
Minuit parameter uncertainties:
  1  8.97174
  2  0.420627
  3  3.25467e-06
  4  4.53414e-06
  5  13.0201
  6  6.69403e-05
  7  1.20792e-05
  8  3.46009e-05
  9  8.21813
  10  5.19849
  11  0.000638645
  12  1.80881
  13  2.04073e-05
  14  5.32181
  15  3.73709
  16  2.63931e-05
  17  98.3879
  18  1.73848e-05
  19  9.95499e-06
  20  1.57434e-05
  21  14.3633
  22  1.82722e-05
  23  0.000117572
  24  25.1448
  25  7.44629e-05
  26  14.7664
  27  2.97756
  28  0.239255
  29  0.177874
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.914e-01  1.809e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  8.065e-01  1.779e-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.263e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 7.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919593/likelihoodResults_379555201_379814401_4FGL_J1132.7+0034_daily_bin541.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) = 6349.31457597
delta logL = 0.143513223095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6349.30860859
delta logL = 0.149480597249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39289       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9622       1.0000          .0000       10.000    
     3 'Normalizat'    1.2424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81522       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=   6349.309     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      213 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39270        19.055        .10825E-02    .51284E-03
   2  Index         2.9624        3.6064        .22195        .54090E-04
   3  Normalizat    1.2425        .43044E-01    .56771E-01    .60573E-05
   4  Prefactor     .81520        .33244E-01    .43915E-01    .13539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.392699
  Index      = 2.96237
  Normalizat = 1.24247
  Prefactor  = 0.815203
 **********
 **   18 **HESSE 
 **********

 FCN=   6349.309     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39270        1.8043        .43301E-04   -1.5583    
   2  Index         2.9624        2.2415        .87186E-02   -.41974    
   3  Normalizat    1.2425        .22665        .25105E-03   -.85300    
   4  Prefactor     .81520        .17736        .23984E-03   -.99170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43969e-08
Minuit parameter uncertainties:
  1  1.68336
  2  2.343
  3  0.226832
  4  0.177487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919593': 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) = 6349.30860857
delta logL = 0.149480623035

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.927e-01  1.683e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.962e+00  2.343e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  8.152e-01  1.775e-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.242e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 173.196 0.574

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/919593/cmap_HighResolution_379555201_379814401_4FGL_J1132.7+0034_daily_bin541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-09-04 03:52:42.215581', job_id='919593', GAL2='0.82', fit_tolerance='1e-08', EG2='1.24', EG='1.26', time_epoch_completed='1630752762.22', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.49e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='541' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 919593: <4FGL_J1132.7+0034_daily_bin541> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin541 173.196 0.5737 379555201 379814401 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 :                                   853.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

