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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin325
RA = 173.196, Dec = 0.5737
tmin = 323568001, tmax = 323827201
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='918274', job_status='RUN', time_executed='2021-09-04 03:34:39.770962', time_epoch_executed='1630751679.77' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918274

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918274/ft1_4FGL_J1132.7+0034_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918274/ft2_4FGL_J1132.7+0034_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918274/ft1_4FGL_J1132.7+0034_daily_bin325.fits outfile=/scratch/kocevski/918274/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin325.fits ra=173.196 dec=0.5737 rad=12.0 tmin=323568001.0 tmax=323827201.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.30
user 3.09
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918274/ft1_filtered_4FGL_J1132.7+0034_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/918274/ft2_4FGL_J1132.7+0034_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/918274/ltcube_323568001_323827201_4FGL_J1132.7+0034_daily_bin325.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/918274/ft2_4FGL_J1132.7+0034_daily_bin325.fits
.....................!
real 12.35
user 11.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918274/ft1_filtered_4FGL_J1132.7+0034_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/918274/ft2_4FGL_J1132.7+0034_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/918274/ltcube_323568001_323827201_4FGL_J1132.7+0034_daily_bin325.fits outfile=/scratch/kocevski/918274/expmap_323568001_323827201_4FGL_J1132.7+0034_daily_bin325.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/918274/ltcube_323568001_323827201_4FGL_J1132.7+0034_daily_bin325.fits
.....................!
real 191.54
user 186.03
sys 4.34

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/918274/ft1_filtered_4FGL_J1132.7+0034_daily_bin325.fits scfile=/scratch/kocevski/918274/ft2_4FGL_J1132.7+0034_daily_bin325.fits outfile=/scratch/kocevski/918274/cmap_323568001_323827201_4FGL_J1132.7+0034_daily_bin325.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918274/ft1_filtered_4FGL_J1132.7+0034_daily_bin325.fits scfile=/scratch/kocevski/918274/ft2_4FGL_J1132.7+0034_daily_bin325.fits outfile=/scratch/kocevski/918274/cmap_HighResolution_323568001_323827201_4FGL_J1132.7+0034_daily_bin325.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7479       1.0000         .10000E-03   10000.    
     2 'norm      '    .56270       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.236       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.181       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.551       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2295       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.163       1.0000         .10000E-03   10000.    
     9 'norm      '    5.4000       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.2577       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8170       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35716E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.423       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8755       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7958       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13759E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    79.886       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3729       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21693E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.740       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.9307       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0550       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0148       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=   5264.200     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     4307 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7497        10.746       -.10581E-06   -.12516E-04
   2  norm          .56293        .69089        .12143E-06    .57239E-03
   3  Prefactor     22.234        15.476       -.26458E-06   -.96483E-05
   4  Prefactor     26.188        22.261        .10155E-05    .70195E-05
   5  Prefactor     33.541        22.728       -.15053E-05   -.32318E-04
   6  Prefactor     .10000E-03    10.031        .52740E-06** at limit **
   7  Prefactor     2.2302        5.0787        .63352E-05    .74544E-03
   8  Prefactor     14.142        172.13        .79147E-05    .28451E-05
   9  norm          5.3981        9.6740       -.65642E-06    .54002E-04
  10  Prefactor     .10000E-03    2.7836        .44517E-06** at limit **
  11  norm          6.2412        25.709       -.12755E-05    .87579E-04
  12  Prefactor     3.8170        2.9092        .63146E-07    .15378E-03
  13  Prefactor     .10000E-03    46.010       -.26706E-05** at limit **
  14  norm          .10000E-03    2.6727        .42796E-07** at limit **
  15  Prefactor     .10000E-03    2.7009        .57074E-07** at limit **
  16  Prefactor     .12295E-03    26.827       -.88441E-05** at limit **
  17  Prefactor     .10000E-03    29.287       -.38620E-05** at limit **
  18  Prefactor     27.424        13.060        .10220E-06    .14028E-04
  19  Prefactor     2.8485        141.22       -.10544E-04   -.35299E-04
  20  Prefactor     1.7936        6.9122        .67561E-06    .11367E-03
  21  Prefactor     .10000E-03    36.088        .45648E-05** at limit **
  22  Prefactor     79.853        65.475        .19615E-05   -.31353E-04
  23  Prefactor     8.3759        37.869        .41224E-05    .21563E-04
  24  Prefactor     .10000E-03    40.618        .11458E-05** at limit **
  25  Prefactor     37.802        53.061       -.43290E-05   -.10885E-04
  26  Prefactor     .10000E-03    23.265        .53201E-06** at limit **
  27  norm          3.9326        2.9692       -.93742E-07   -.29684E-03
  28  Normalizat    1.0548        .23016       -.89479E-06    .55749E-04
  29  Prefactor     1.0150        .18712       -.83045E-06    .86583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.74967
  norm       = 0.562928
  Prefactor  = 22.2343
  Prefactor  = 26.1881
  Prefactor  = 33.5415
  Prefactor  = 0.0001
  Prefactor  = 2.23019
  Prefactor  = 14.1421
  norm       = 5.39808
  Prefactor  = 0.0001
  norm       = 6.24119
  Prefactor  = 3.817
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000122947
  Prefactor  = 0.0001
  Prefactor  = 27.4239
  Prefactor  = 2.84852
  Prefactor  = 1.79362
  Prefactor  = 0.000100001
  Prefactor  = 79.8533
  Prefactor  = 8.37586
  Prefactor  = 0.0001
  Prefactor  = 37.8016
  Prefactor  = 0.0001
  norm       = 3.93255
  Normalizat = 1.05477
  Prefactor  = 1.01497
 **********
 **   18 **HESSE 
 **********

 FCN=   5264.200     FROM HESSE     STATUS=OK           571 CALLS     4878 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7497        10.695        .20856E-03   -1.5321    
   2  norm          .56293        .63657        .53239E-03   -1.5558    
   3  Prefactor     22.234        14.978        .84942E-04   -1.4765    
   4  Prefactor     26.188        22.294        .78292E-04   -1.4684    
   5  Prefactor     33.541        22.686        .69181E-04   -1.4549    
   6  Prefactor     .10000E-03    10.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2302        5.1119        .11443E-02   -1.5409    
   8  Prefactor     14.142        172.13        .10643E-03   -1.4956    
   9  norm          5.3981        9.6807        .17293E-03   -1.5243    
  10  Prefactor     .10000E-03    2.8063        .11799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.2412        25.429        .16047E-03   -1.5208    
  12  Prefactor     3.8170        2.9061        .10261E-03   -1.5317    
  13  Prefactor     .10000E-03    45.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.6801        .11583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7572        .11637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12295E-03    23.973        .10368       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.424        13.071        .76502E-04   -1.4660    
  19  Prefactor     2.8485        138.51        .23969E-03   -1.5370    
  20  Prefactor     1.7936        6.8673        .31203E-03   -1.5440    
  21  Prefactor     .10000E-03    36.779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     79.853        64.641        .44934E-04   -1.3918    
  23  Prefactor     8.3759        37.820        .13854E-03   -1.5129    
  24  Prefactor     .10000E-03    42.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     37.802        53.074        .65240E-04   -1.4478    
  26  Prefactor     .10000E-03    24.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.9326        2.9481        .10477E-03   -1.5311    
  28  Normalizat    1.0548        .27177        .28634E-03   -.91217    
  29  Prefactor     1.0150        .22091        .23936E-03   -.92232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96514e-09
Minuit parameter uncertainties:
  1  10.7004
  2  0.636577
  3  14.9808
  4  22.3013
  5  22.6915
  6  7.77561e-05
  7  5.11295
  8  99.0342
  9  9.68348
  10  2.63863e-05
  11  25.2142
  12  2.90625
  13  0.00077981
  14  2.96952e-06
  15  7.48954e-06
  16  0.0469278
  17  3.18933e-05
  18  13.0721
  19  39.824
  20  6.87034
  21  0.000310576
  22  64.698
  23  35.6337
  24  0.000172531
  25  53.1404
  26  1.49359e-05
  27  2.94816
  28  0.272128
  29  0.221112
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.817e+00  2.906e+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.015e+00  2.211e-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.055e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.66e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 2.19e-05

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

Saving results to:
/scratch/kocevski/918274/likelihoodResults_323568001_323827201_4FGL_J1132.7+0034_daily_bin325.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) = 5264.06025632
delta logL = 0.139773613973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5264.05545815
delta logL = 0.144571775606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9971       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4633       1.0000          .0000       10.000    
     3 'Normalizat'    1.0265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0303       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=   5264.055     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      258 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9979        41.478        .58618E-02    .39141E-03
   2  Index         2.4634        3.2359        .16227        .91677E-04
   3  Normalizat    1.0265        .85050E-01    .65518E-01   -.71708E-06
   4  Prefactor     1.0301        .59887E-01    .41236E-01   -.32518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.99788
  Index      = 2.46343
  Normalizat = 1.02653
  Prefactor  = 1.03009
 **********
 **   18 **HESSE 
 **********

 FCN=   5264.055     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9979        3.2185        .84277E-04   -1.5362    
   2  Index         2.4634        .69533        .55362E-02   -.53206    
   3  Normalizat    1.0265        .26580        .28982E-03   -.92147    
   4  Prefactor     1.0301        .21561        .23782E-03   -.91733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23181e-11
Minuit parameter uncertainties:
  1  3.21871
  2  0.698387
  3  0.266148
  4  0.21579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918274': 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) = 5264.055457
delta logL = 0.144572932111

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.998e+00  3.219e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.463e+00  6.984e-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.030e+00  2.158e-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.027e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.46 +/- 0.70
Photon Flux (Free Index): 7.58e-08 +/- 6.14e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.91e-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/918274/cmap_HighResolution_323568001_323827201_4FGL_J1132.7+0034_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='5.66e-08', energy_flux2='2.29e-05', photon_flux_error='4.31e-08', dlogl='1.45e-01', energy_flux='2.88e-05', photon_flux2='7.58e-08', job_status='DONE', time_completed='2021-09-04 03:48:35.638672', photon_index_error2='0.70', photon_index2='2.46', ts='2.69', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.91e-05', EG='1.05', time_epoch_completed='1630752515.64', return_code='0', job_id='918274', GAL2='1.03', EG2='1.03', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='6.14e-08', ts2='2.97', photon_index='2.14' WHERE bin_id='325' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:48:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 918274: <4FGL_J1132.7+0034_daily_bin325> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin325> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:32:09 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:32:10 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:32:10 2021
Terminated at Sat Sep  4 03:48:36 2021
Results reported at Sat Sep  4 03:48:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin325 173.196 0.5737 323568001 323827201 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 :                                   827.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

