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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin553
RA = 173.196, Dec = 0.5737
tmin = 382665601, tmax = 382924801
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='919611', job_status='RUN', time_executed='2021-09-04 03:39:58.820639', time_epoch_executed='1630751998.82' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919611/ft1_4FGL_J1132.7+0034_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919611/ft2_4FGL_J1132.7+0034_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919611/ft1_4FGL_J1132.7+0034_daily_bin553.fits outfile=/scratch/kocevski/919611/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin553.fits ra=173.196 dec=0.5737 rad=12.0 tmin=382665601.0 tmax=382924801.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.33
user 3.12
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919611/ft2_4FGL_J1132.7+0034_daily_bin553.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/919611/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin553.fits evtable="EVENTS" outfile="/scratch/kocevski/919611/ft1_filtered_4FGL_J1132.7+0034_daily_bin553.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/919611/ft1_filtered_4FGL_J1132.7+0034_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/919611/ft2_4FGL_J1132.7+0034_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/919611/ltcube_382665601_382924801_4FGL_J1132.7+0034_daily_bin553.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/919611/ft2_4FGL_J1132.7+0034_daily_bin553.fits
.....................!
real 11.70
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919611/ft1_filtered_4FGL_J1132.7+0034_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/919611/ft2_4FGL_J1132.7+0034_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/919611/ltcube_382665601_382924801_4FGL_J1132.7+0034_daily_bin553.fits outfile=/scratch/kocevski/919611/expmap_382665601_382924801_4FGL_J1132.7+0034_daily_bin553.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/919611/ltcube_382665601_382924801_4FGL_J1132.7+0034_daily_bin553.fits
.....................!
real 189.67
user 185.17
sys 4.16

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/919611/ft1_filtered_4FGL_J1132.7+0034_daily_bin553.fits scfile=/scratch/kocevski/919611/ft2_4FGL_J1132.7+0034_daily_bin553.fits outfile=/scratch/kocevski/919611/cmap_382665601_382924801_4FGL_J1132.7+0034_daily_bin553.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919611/ft1_filtered_4FGL_J1132.7+0034_daily_bin553.fits scfile=/scratch/kocevski/919611/ft2_4FGL_J1132.7+0034_daily_bin553.fits outfile=/scratch/kocevski/919611/cmap_HighResolution_382665601_382924801_4FGL_J1132.7+0034_daily_bin553.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/919611/ft1_filtered_4FGL_J1132.7+0034_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/919611/ft2_4FGL_J1132.7+0034_daily_bin553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919611/Model_4FGL_J1132.7+0034_daily_bin553.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/919611/ft1_filtered_4FGL_J1132.7+0034_daily_bin553.fits.....................!
real 52.11
user 50.31
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .30675       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7743       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.982       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3678       1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.382       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1763       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.043       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.177       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12058E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.898       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.509       1.0000         .10000E-03   10000.    
    27 'norm      '    3.9826       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2862       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88690       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=   5142.856     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3771 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2942        .55245E-07** at limit **
   2  norm          .30646        .71462       -.33571E-06    .96449E-03
   3  Prefactor     4.7813        11.798        .45495E-05    .45519E-03
   4  Prefactor     .10000E-03    15.858       -.68470E-07** at limit **
   5  Prefactor     33.977        25.159        .42269E-06   -.69538E-05
   6  Prefactor     .10000E-03    7.2500       -.52083E-08** at limit **
   7  Prefactor     1.3670        4.1211        .39007E-06    .74997E-04
   8  Prefactor     70.414        99.250       -.34171E-05    .66785E-05
   9  norm          6.0338        11.030        .32475E-06    .57875E-05
  10  Prefactor     .10000E-03    2.5955       -.95069E-09** at limit **
  11  norm          .10000E-03    8.6207        .97533E-06** at limit **
  12  Prefactor     3.1764        2.1084        .19331E-07    .98342E-05
  13  Prefactor     .10000E-03    12.879       -.45823E-06** at limit **
  14  norm          .10000E-03    5.2531       -.15187E-06** at limit **
  15  Prefactor     .10000E-03    1.7424       -.17881E-06** at limit **
  16  Prefactor     12.043        15.877        .12960E-06    .24770E-04
  17  Prefactor     .10000E-03    230.25        .96382E-06** at limit **
  18  Prefactor     .10000E-03    12.963        .67527E-06** at limit **
  19  Prefactor     30.151        50.964        .37785E-05    .20460E-03
  20  Prefactor     .10000E-03    4.1049        .69876E-07** at limit **
  21  Prefactor     .10030E-03    21.728       -.59540E-05** at limit **
  22  Prefactor     .10000E-03    71.600       -.35490E-05** at limit **
  23  Prefactor     27.905        36.769        .20513E-06    .16069E-05
  24  Prefactor     .10000E-03    8.7039       -.88598E-06** at limit **
  25  Prefactor     .10000E-03    28.521        .84916E-07** at limit **
  26  Prefactor     12.509        12.243        .14856E-06    .69796E-04
  27  norm          3.9825        2.6702        .11398E-07    .11159E-03
  28  Normalizat    1.2862        .22297       -.91255E-06    .19183E-03
  29  Prefactor     .88690        .17909       -.20529E-06    .19657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.306459
  Prefactor  = 4.78127
  Prefactor  = 0.0001
  Prefactor  = 33.9771
  Prefactor  = 0.0001
  Prefactor  = 1.36702
  Prefactor  = 70.4144
  norm       = 6.03379
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.17636
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1507
  Prefactor  = 0.0001
  Prefactor  = 0.0001003
  Prefactor  = 0.0001
  Prefactor  = 27.9046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5085
  norm       = 3.98252
  Normalizat = 1.28619
  Prefactor  = 0.886898
 **********
 **   18 **HESSE 
 **********

 FCN=   5142.856     FROM HESSE     STATUS=OK           549 CALLS     4320 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3020        .12710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .30646        .71004        .69791E-03   -1.5597    
   3  Prefactor     4.7813        12.277        .92067E-03   -1.5271    
   4  Prefactor     .10000E-03    15.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.977        25.103        .68742E-04   -1.4542    
   6  Prefactor     .10000E-03    7.2585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3670        4.0403        .23508E-03   -1.5474    
   8  Prefactor     70.414        98.801        .47849E-04   -1.4028    
   9  norm          6.0338        10.913        .16350E-03   -1.5217    
  10  Prefactor     .10000E-03    2.6157        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.6010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1764        2.1119        .82073E-04   -1.5352    
  13  Prefactor     .10000E-03    12.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.3292        .16044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7561        .92432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.043        15.876        .11543E-03   -1.5014    
  17  Prefactor     .10000E-03    231.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.151        50.857        .72936E-04   -1.4609    
  20  Prefactor     .10000E-03    4.1295        .14187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10030E-03    68.133        .48337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    72.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.905        36.951        .75848E-04   -1.4651    
  24  Prefactor     .10000E-03    8.6941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.509        12.232        .11326E-03   -1.5000    
  27  norm          3.9825        2.6720        .90969E-04   -1.5309    
  28  Normalizat    1.2862        .26289        .25764E-03   -.83980    
  29  Prefactor     .88690        .21244        .24616E-03   -.96600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91861e-09
Minuit parameter uncertainties:
  1  2.5318e-06
  2  0.710063
  3  12.2835
  4  1.99797e-05
  5  25.1106
  6  9.52736e-08
  7  4.04109
  8  99.0328
  9  10.917
  10  1.11415e-06
  11  7.82324e-06
  12  2.11194
  13  1.68822e-05
  14  1.27813e-05
  15  9.95119e-06
  16  15.8811
  17  0.000236707
  18  7.11427e-06
  19  50.9299
  20  6.39211e-06
  21  0.00904587
  22  0.000222294
  23  36.9813
  24  2.12681e-05
  25  1.61348e-05
  26  12.2347
  27  2.67208
  28  0.263158
  29  0.212642
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.176e+00  2.112e+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.869e-01  2.126e-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.286e+00  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.56
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.71e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.59e-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) = 5141.79551895
delta logL = 1.06063467657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5141.7582564
delta logL = 1.09789722614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8473       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4233       1.0000          .0000       10.000    
     3 'Normalizat'    1.3128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87850       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=   5141.758     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8484        2.0690        .60240E-02   -.19593E-03
   2  Index         1.4223        .36095        .17545       -.38667E-04
   3  Normalizat    1.3132        .21563        .57739E-01   -.23537E-04
   4  Prefactor     .87822        .17557        .44730E-01   -.15231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.84838
  Index      = 1.42232
  Normalizat = 1.31324
  Prefactor  = 0.878221
 **********
 **   18 **HESSE 
 **********

 FCN=   5141.758     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8484        2.4710        .85267E-04   -1.5370    
   2  Index         1.4223        .46320        .71978E-02   -.79739    
   3  Normalizat    1.3132        .25492        .25534E-03   -.83172    
   4  Prefactor     .87822        .20766        .24730E-03   -.96906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14355e-10
Minuit parameter uncertainties:
  1  2.47106
  2  0.464572
  3  0.25516
  4  0.207851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919611': 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) = 5141.75825104
delta logL = 1.09790258841

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.848e+00  2.471e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.422e+00  4.646e-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:  8.782e-01  2.079e-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.313e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.74
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.42 +/- 0.46
Photon Flux (Free Index): 1.94e-08 +/- 1.92e-08
Energy Flux (Free Index): 7.95e-05 +/- 9.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/919611/cmap_HighResolution_382665601_382924801_4FGL_J1132.7+0034_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.71e-08', energy_flux2='7.95e-05', photon_flux_error='3.13e-08', dlogl='1.10e+00', energy_flux='2.40e-05', photon_flux2='1.94e-08', job_status='DONE', time_completed='2021-09-04 03:51:17.435802', photon_index_error2='0.46', photon_index2='1.42', ts='13.56', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.02e-05', EG='1.29', time_epoch_completed='1630752677.44', return_code='0', job_id='919611', GAL2='0.88', EG2='1.31', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='1.92e-08', ts2='15.74', photon_index='2.14' WHERE bin_id='553' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 919611: <4FGL_J1132.7+0034_daily_bin553> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin553 173.196 0.5737 382665601 382924801 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 :                                   680.32 sec.
    Max Memory :                                 1031 MB
    Average Memory :                             283.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

