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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin589
RA = 173.196, Dec = 0.5737
tmin = 391996801, tmax = 392256001
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='919664', job_status='RUN', time_executed='2021-09-04 03:39:45.725578', time_epoch_executed='1630751985.73' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919664

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919664/ft1_4FGL_J1132.7+0034_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919664/ft2_4FGL_J1132.7+0034_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919664/ft1_4FGL_J1132.7+0034_daily_bin589.fits outfile=/scratch/kocevski/919664/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin589.fits ra=173.196 dec=0.5737 rad=12.0 tmin=391996801.0 tmax=392256001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.36
user 5.09
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919664/ft1_filtered_4FGL_J1132.7+0034_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/919664/ft2_4FGL_J1132.7+0034_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/919664/ltcube_391996801_392256001_4FGL_J1132.7+0034_daily_bin589.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/919664/ft2_4FGL_J1132.7+0034_daily_bin589.fits
.....................!
real 11.86
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919664/ft1_filtered_4FGL_J1132.7+0034_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/919664/ft2_4FGL_J1132.7+0034_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/919664/ltcube_391996801_392256001_4FGL_J1132.7+0034_daily_bin589.fits outfile=/scratch/kocevski/919664/expmap_391996801_392256001_4FGL_J1132.7+0034_daily_bin589.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/919664/ltcube_391996801_392256001_4FGL_J1132.7+0034_daily_bin589.fits
.....................!
real 189.69
user 184.97
sys 4.35

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1132.7+0034 @ 173.196 0.5737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/919664/ft1_filtered_4FGL_J1132.7+0034_daily_bin589.fits scfile=/scratch/kocevski/919664/ft2_4FGL_J1132.7+0034_daily_bin589.fits outfile=/scratch/kocevski/919664/cmap_391996801_392256001_4FGL_J1132.7+0034_daily_bin589.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919664/ft1_filtered_4FGL_J1132.7+0034_daily_bin589.fits scfile=/scratch/kocevski/919664/ft2_4FGL_J1132.7+0034_daily_bin589.fits outfile=/scratch/kocevski/919664/cmap_HighResolution_391996801_392256001_4FGL_J1132.7+0034_daily_bin589.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/919664/ft1_filtered_4FGL_J1132.7+0034_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/919664/ft2_4FGL_J1132.7+0034_daily_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919664/Model_4FGL_J1132.7+0034_daily_bin589.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/919664/ft1_filtered_4FGL_J1132.7+0034_daily_bin589.fits.....................!
real 51.97
user 50.64
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85307E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5172       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10679E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4600       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6179       1.0000         .10000E-03   10000.    
    11 'norm      '    .15910E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43842E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .41029       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1689       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.553       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9093       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.510       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.983       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11327E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.288       1.0000         .10000E-03   10000.    
    27 'norm      '    .65249E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .58400       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4432       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=   5487.440     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3779 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.3503       -.15371E-05** at limit **
   2  norm          .10000E-03    .14807       -.14976E-06** at limit **
   3  Prefactor     .10000E-03    1.9920       -.98710E-07** at limit **
   4  Prefactor     8.5157        14.355        .32179E-06    .94513E-04
   5  Prefactor     .10000E-03    5.6857       -.11514E-06** at limit **
   6  Prefactor     .10000E-03    14.566       -.28170E-06** at limit **
   7  Prefactor     .10000E-03    5.9991       -.48278E-06** at limit **
   8  Prefactor     .10000E-03    18.583       -.24191E-06** at limit **
   9  norm          1.4600        19.825        .21821E-04    .21054E-03
  10  Prefactor     7.6208        5.7603       -.68954E-06    .16858E-02
  11  norm          .10000E-03    74.672       -.12520E-05** at limit **
  12  Prefactor     3.2991        2.2850        .15649E-06    .45820E-03
  13  Prefactor     .10135E-03    29.542       -.13376E-04** at limit **
  14  norm          .41115        3.7803        .67333E-07    .62318E-04
  15  Prefactor     1.1688        2.8711        .93334E-07    .58141E-04
  16  Prefactor     .10000E-03    14.290        .70316E-07** at limit **
  17  Prefactor     58.642        100.43       -.14489E-04   -.11732E-03
  18  Prefactor     6.9058        10.244        .92827E-06    .96812E-04
  19  Prefactor     .10000E-03    30.990        .11829E-06** at limit **
  20  Prefactor     9.8597        9.9097        .31569E-06    .62772E-04
  21  Prefactor     19.504        19.559        .95517E-07    .11228E-03
  22  Prefactor     .10000E-03    31.196       -.14978E-07** at limit **
  23  Prefactor     24.995        26.910       -.21725E-06   -.15590E-04
  24  Prefactor     .10000E-03    76.082       -.10250E-05** at limit **
  25  Prefactor     .10000E-03    12.175        .10600E-07** at limit **
  26  Prefactor     12.295        11.186        .35923E-07    .32761E-04
  27  norm          .59309E-01    1.5453       -.52007E-07   -.22599E-04
  28  Normalizat    .58395        .21688        .27159E-07    .44286E-03
  29  Prefactor     1.4434        .17794       -.34531E-06    .10231E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.51568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.46003
  Prefactor  = 7.62078
  norm       = 0.0001
  Prefactor  = 3.29915
  Prefactor  = 0.000101352
  norm       = 0.411155
  Prefactor  = 1.16876
  Prefactor  = 0.0001
  Prefactor  = 58.6421
  Prefactor  = 6.90577
  Prefactor  = 0.0001
  Prefactor  = 9.85967
  Prefactor  = 19.5039
  Prefactor  = 0.0001
  Prefactor  = 24.9948
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.295
  norm       = 0.0593085
  Normalizat = 0.583949
  Prefactor  = 1.44336
 **********
 **   18 **HESSE 
 **********

 FCN=   5487.440     FROM HESSE     STATUS=OK           561 CALLS     4340 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    37.760        .38254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .17191        .55531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9950        .10209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5157        14.330        .13736E-03   -1.5124    
   5  Prefactor     .10000E-03    5.6951        .17251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.1993        .35421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4600        20.529        .17806E-02   -1.5466    
  10  Prefactor     7.6208        5.4018        .65995E-03   -1.5156    
  11  norm          .10000E-03    75.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2991        2.2821        .44610E-03   -1.5345    
  13  Prefactor     .10135E-03    150.46        .64455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .41115        15.327        .26875E-02   -1.5580    
  15  Prefactor     1.1688        2.7887        .18512E-03   -1.5492    
  16  Prefactor     .10000E-03    14.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     58.642        100.69        .26215E-03   -1.4175    
  18  Prefactor     6.9058        10.231        .15263E-03   -1.5182    
  19  Prefactor     .10000E-03    31.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.8597        9.8930        .12760E-03   -1.5080    
  21  Prefactor     19.504        19.462        .90678E-04   -1.4824    
  22  Prefactor     .10000E-03    31.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.995        26.897        .80143E-04   -1.4708    
  24  Prefactor     .10000E-03    77.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.295        11.294        .11427E-03   -1.5007    
  27  norm          .59309E-01    14.534        .17478E-02   -1.5659    
  28  Normalizat    .58395        .23939        .35518E-03   -1.0867    
  29  Prefactor     1.4434        .20257        .20407E-03   -.79139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71489e-08
Minuit parameter uncertainties:
  1  0.00126481
  2  3.07807e-06
  3  7.19995e-06
  4  14.3358
  5  2.31449e-05
  6  0.00013988
  7  0.000115311
  8  2.50701e-05
  9  10.9535
  10  5.40218
  11  0.000279315
  12  2.28216
  13  0.0285931
  14  5.02144
  15  2.78905
  16  2.2852e-05
  17  100.984
  18  10.2333
  19  3.44297e-06
  20  9.89462
  21  19.4682
  22  3.39837e-06
  23  26.9102
  24  0.000594612
  25  1.4346e-05
  26  11.2956
  27  1.85577
  28  0.239813
  29  0.202683
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.299e+00  2.282e+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.443e+00  2.027e-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:  5.839e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.29
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.89e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.72e-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) = 5487.16231224
delta logL = 0.277868593635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5487.16148446
delta logL = 0.278696371888

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2878       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7016       1.0000          .0000       10.000    
     3 'Normalizat'    .52856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4713       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=   5487.161     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      248 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2878        23.382        .67850E-02    .12588E-02
   2  Index         2.7016        3.3866        .11112        .86459E-04
   3  Normalizat    .52852        .10089        .84041E-01   -.15727E-03
   4  Prefactor     1.4713        .65075E-01    .45793E-01   -.23379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28782
  Index      = 2.70159
  Normalizat = 0.528522
  Prefactor  = 1.4713
 **********
 **   18 **HESSE 
 **********

 FCN=   5487.161     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2878        2.7937        .61137E-04   -1.5405    
   2  Index         2.7016        .90155        .54416E-02   -.47764    
   3  Normalizat    .52852        .24595        .37225E-03   -1.1111    
   4  Prefactor     1.4713        .20484        .20241E-03   -.78347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86075e-10
Minuit parameter uncertainties:
  1  2.79387
  2  0.90786
  3  0.246458
  4  0.20495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919664': 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) = 5487.16148445
delta logL = 0.278696381717

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.288e+00  2.794e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.702e+00  9.079e-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.471e+00  2.050e-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:  5.285e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.94
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.70 +/- 0.91
Photon Flux (Free Index): 8.82e-08 +/- 7.14e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.26e-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/919664/cmap_HighResolution_391996801_392256001_4FGL_J1132.7+0034_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.89e-08', energy_flux2='2.12e-05', photon_flux_error='3.38e-08', dlogl='2.79e-01', energy_flux='2.49e-05', photon_flux2='8.82e-08', job_status='DONE', time_completed='2021-09-04 03:51:39.962920', photon_index_error2='0.91', photon_index2='2.70', ts='5.29', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='0.58', time_epoch_completed='1630752699.96', return_code='0', job_id='919664', GAL2='1.47', EG2='0.53', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='7.14e-08', ts2='5.94', photon_index='2.14' WHERE bin_id='589' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 919664: <4FGL_J1132.7+0034_daily_bin589> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin589> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 03:36:18 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:36:19 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:19 2021
Terminated at Sat Sep  4 03:51:40 2021
Results reported at Sat Sep  4 03:51:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin589 173.196 0.5737 391996801 392256001 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 :                                   709.00 sec.
    Max Memory :                                 1203 MB
    Average Memory :                             289.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

