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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin522
RA = 173.196, Dec = 0.5737
tmin = 374630401, tmax = 374889601
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='919565', job_status='RUN', time_executed='2021-09-04 03:38:16.845641', time_epoch_executed='1630751896.85' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919565

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919565/ft1_4FGL_J1132.7+0034_daily_bin522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919565/ft2_4FGL_J1132.7+0034_daily_bin522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919565/ft1_4FGL_J1132.7+0034_daily_bin522.fits outfile=/scratch/kocevski/919565/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin522.fits ra=173.196 dec=0.5737 rad=12.0 tmin=374630401.0 tmax=374889601.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 4.62
user 4.40
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919565/ft1_filtered_4FGL_J1132.7+0034_daily_bin522.fits" evtable="EVENTS" scfile=/scratch/kocevski/919565/ft2_4FGL_J1132.7+0034_daily_bin522.fits sctable="SC_DATA" outfile=/scratch/kocevski/919565/ltcube_374630401_374889601_4FGL_J1132.7+0034_daily_bin522.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/919565/ft2_4FGL_J1132.7+0034_daily_bin522.fits
.....................!
real 15.17
user 14.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919565/ft1_filtered_4FGL_J1132.7+0034_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/919565/ft2_4FGL_J1132.7+0034_daily_bin522.fits sctable="SC_DATA" expcube=/scratch/kocevski/919565/ltcube_374630401_374889601_4FGL_J1132.7+0034_daily_bin522.fits outfile=/scratch/kocevski/919565/expmap_374630401_374889601_4FGL_J1132.7+0034_daily_bin522.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/919565/ltcube_374630401_374889601_4FGL_J1132.7+0034_daily_bin522.fits
.....................!
real 194.03
user 189.40
sys 4.27

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/919565/ft1_filtered_4FGL_J1132.7+0034_daily_bin522.fits scfile=/scratch/kocevski/919565/ft2_4FGL_J1132.7+0034_daily_bin522.fits outfile=/scratch/kocevski/919565/cmap_374630401_374889601_4FGL_J1132.7+0034_daily_bin522.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/919565/ft1_filtered_4FGL_J1132.7+0034_daily_bin522.fits scfile=/scratch/kocevski/919565/ft2_4FGL_J1132.7+0034_daily_bin522.fits outfile=/scratch/kocevski/919565/cmap_HighResolution_374630401_374889601_4FGL_J1132.7+0034_daily_bin522.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919565/ft1_filtered_4FGL_J1132.7+0034_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/919565/ft2_4FGL_J1132.7+0034_daily_bin522.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919565/Model_4FGL_J1132.7+0034_daily_bin522.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/919565/ft1_filtered_4FGL_J1132.7+0034_daily_bin522.fits.....................!
real 56.67
user 54.42
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4299       1.0000         .10000E-03   10000.    
     2 'norm      '    .61259       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4576       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.528       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .35650       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8785       1.0000         .10000E-03   10000.    
     9 'norm      '    8.8117       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18736E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .92943       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8213       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.614       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7993       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.761       1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.555       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.881       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4492       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10753E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.648       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4990       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .75525       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2140       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=   5700.493     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3734 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4299        8.3721        .27547E-06    .68023E-04
   2  norm          .61290        .72543        .14959E-07   -.30828E-03
   3  Prefactor     7.4539        9.3786        .20207E-06    .68028E-04
   4  Prefactor     19.516        23.383       -.12335E-05    .14226E-04
   5  Prefactor     .10000E-03    5.1619       -.42111E-07** at limit **
   6  Prefactor     .10000E-03    3.2067       -.39958E-07** at limit **
   7  Prefactor     .35393        3.2351        .11288E-06   -.32749E-03
   8  Prefactor     8.8881        56.671       -.16618E-06    .42943E-06
   9  norm          8.8130        7.6170        .49728E-07   -.90405E-04
  10  Prefactor     .10000E-03    5.8874       -.12086E-06** at limit **
  11  norm          .89617        40.390        .19733E-04   -.45537E-03
  12  Prefactor     1.8209        1.7974        .54298E-07   -.33699E-04
  13  Prefactor     24.641        30.712       -.73720E-06   -.15936E-03
  14  norm          .10000E-03    5.6130        .43453E-06** at limit **
  15  Prefactor     2.7983        3.3104        .46597E-06    .24830E-03
  16  Prefactor     19.753        26.636       -.42620E-06    .36714E-05
  17  Prefactor     58.514        79.931        .33741E-05    .46997E-05
  18  Prefactor     1.5763        10.507        .17388E-04    .43291E-03
  19  Prefactor     43.936        48.130       -.38571E-05   -.29131E-04
  20  Prefactor     3.4484        7.9998        .29019E-06    .11699E-05
  21  Prefactor     .10000E-03    8.2016        .13294E-05** at limit **
  22  Prefactor     .10000E-03    21.160        .14532E-05** at limit **
  23  Prefactor     .10000E-03    16.289       -.44968E-06** at limit **
  24  Prefactor     .10000E-03    10.102        .94636E-07** at limit **
  25  Prefactor     .10000E-03    34.070       -.14485E-06** at limit **
  26  Prefactor     28.642        15.694       -.21818E-06   -.13100E-04
  27  norm          1.4989        1.8000        .85662E-07    .16313E-03
  28  Normalizat    .75552        .21668        .14712E-05    .75934E-04
  29  Prefactor     1.2138        .17680       -.18314E-05   -.23089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.42989
  norm       = 0.612897
  Prefactor  = 7.45393
  Prefactor  = 19.5164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.353934
  Prefactor  = 8.88807
  norm       = 8.81303
  Prefactor  = 0.0001
  norm       = 0.89617
  Prefactor  = 1.82092
  Prefactor  = 24.6412
  norm       = 0.0001
  Prefactor  = 2.79834
  Prefactor  = 19.7525
  Prefactor  = 58.5141
  Prefactor  = 1.57631
  Prefactor  = 43.9356
  Prefactor  = 3.44836
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6422
  norm       = 1.4989
  Normalizat = 0.755518
  Prefactor  = 1.21381
 **********
 **   18 **HESSE 
 **********

 FCN=   5700.493     FROM HESSE     STATUS=OK           561 CALLS     4295 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4299        8.3497        .15828E-03   -1.5201    
   2  norm          .61290        .67517        .58180E-03   -1.5551    
   3  Prefactor     7.4539        9.1319        .14686E-03   -1.5162    
   4  Prefactor     19.516        23.410        .90636E-04   -1.4824    
   5  Prefactor     .10000E-03    5.1709        .16752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2093        .13203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .35393        6.6596        .25235E-02   -1.5589    
   8  Prefactor     8.8881        56.838        .13452E-03   -1.5112    
   9  norm          8.8130        7.5607        .13503E-03   -1.5114    
  10  Prefactor     .10000E-03    6.0390        .35441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .89617        199.22        .67056E-02   -1.5519    
  12  Prefactor     1.8209        1.7858        .97053E-04   -1.5438    
  13  Prefactor     24.641        31.493        .80740E-04   -1.4715    
  14  norm          .10000E-03    5.8157        .34895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7983        3.2934        .14219E-03   -1.5373    
  16  Prefactor     19.753        26.611        .90099E-04   -1.4819    
  17  Prefactor     58.514        79.956        .52429E-04   -1.4177    
  18  Prefactor     1.5763        11.181        .16929E-02   -1.5457    
  19  Prefactor     43.936        48.142        .60521E-04   -1.4381    
  20  Prefactor     3.4484        7.9737        .21777E-03   -1.5337    
  21  Prefactor     .10000E-03    8.2627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    34.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.642        15.636        .74852E-04   -1.4637    
  27  norm          1.4989        1.7887        .10597E-03   -1.5463    
  28  Normalizat    .75552        .24641        .32117E-03   -1.0174    
  29  Prefactor     1.2138        .20256        .21583E-03   -.85907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4592e-08
Minuit parameter uncertainties:
  1  8.35122
  2  0.675179
  3  9.13357
  4  23.4208
  5  6.66632e-06
  6  5.22703e-06
  7  3.07051
  8  45.0149
  9  7.56153
  10  9.68713e-05
  11  26.8129
  12  1.78583
  13  31.5144
  14  5.92969e-05
  15  3.29356
  16  26.6274
  17  80.1036
  18  8.39842
  19  48.1849
  20  7.9762
  21  0.00024926
  22  0.000524793
  23  0.000160348
  24  2.74213e-05
  25  0.000177756
  26  15.638
  27  1.78872
  28  0.246774
  29  0.20269
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.821e+00  1.786e+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.214e+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:  7.555e-01  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/919565/likelihoodResults_374630401_374889601_4FGL_J1132.7+0034_daily_bin522.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) = 5700.48729023
delta logL = 0.00562727004581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5700.48657998
delta logL = 0.0063375180207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8842       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0507       1.0000          .0000       10.000    
     3 'Normalizat'    .75854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2124       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=   5700.487     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      195 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8841        53.316        .75806E-02    .15141E-03
   2  Index         2.0507        5.8353        .25505        .15841E-04
   3  Normalizat    .75853        .85664E-01    .72432E-01    .22572E-04
   4  Prefactor     1.2124        .56201E-01    .34344E-01    .93506E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88411
  Index      = 2.05072
  Normalizat = 0.758526
  Prefactor  = 1.2124
 **********
 **   18 **HESSE 
 **********

 FCN=   5700.487     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8841        1.9211        .99219E-04   -1.5433    
   2  Index         2.0507        .74671        .90139E-02   -.63088    
   3  Normalizat    .75853        .23513        .32057E-03   -1.0163    
   4  Prefactor     1.2124        .19603        .21593E-03   -.85951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42188e-10
Minuit parameter uncertainties:
  1  1.92118
  2  0.751033
  3  0.235448
  4  0.196144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919565': 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) = 5700.48657998
delta logL = 0.0063375240552

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.884e+00  1.921e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.051e+00  7.510e-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.212e+00  1.961e-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:  7.585e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.05 +/- 0.75
Photon Flux (Free Index): 2.46e-08 +/- 3.15e-08
Energy Flux (Free Index): 1.51e-05 +/- 2.02e-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/919565/cmap_HighResolution_374630401_374889601_4FGL_J1132.7+0034_daily_bin522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.51e-05', photon_flux_error='2.65e-08', dlogl='6.34e-03', energy_flux='1.37e-05', photon_flux2='2.46e-08', job_status='DONE', time_completed='2021-09-04 03:51:56.797759', photon_index_error2='0.75', photon_index2='2.05', ts='2.07', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='9.69e-08', energy_flux_error2='2.02e-05', EG='0.76', time_epoch_completed='1630752716.8', return_code='0', job_id='919565', GAL2='1.21', EG2='0.76', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='3.15e-08', ts2='2.08', photon_index='2.14' WHERE bin_id='522' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 919565: <4FGL_J1132.7+0034_daily_bin522> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin522 173.196 0.5737 374630401 374889601 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 :                                   812.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            947 sec.

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

