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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin948
RA = 173.196, Dec = 0.5737
tmin = 485049601, tmax = 485308801
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='921488', job_status='RUN', time_executed='2021-09-04 03:45:44.109128', time_epoch_executed='1630752344.11' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921488/ft1_4FGL_J1132.7+0034_daily_bin948.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921488/ft2_4FGL_J1132.7+0034_daily_bin948.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921488/ft1_4FGL_J1132.7+0034_daily_bin948.fits outfile=/scratch/kocevski/921488/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin948.fits ra=173.196 dec=0.5737 rad=12.0 tmin=485049601.0 tmax=485308801.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.53
user 3.35
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921488/ft1_filtered_4FGL_J1132.7+0034_daily_bin948.fits" evtable="EVENTS" scfile=/scratch/kocevski/921488/ft2_4FGL_J1132.7+0034_daily_bin948.fits sctable="SC_DATA" outfile=/scratch/kocevski/921488/ltcube_485049601_485308801_4FGL_J1132.7+0034_daily_bin948.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/921488/ft2_4FGL_J1132.7+0034_daily_bin948.fits
.....................!
real 11.98
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921488/ft1_filtered_4FGL_J1132.7+0034_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/921488/ft2_4FGL_J1132.7+0034_daily_bin948.fits sctable="SC_DATA" expcube=/scratch/kocevski/921488/ltcube_485049601_485308801_4FGL_J1132.7+0034_daily_bin948.fits outfile=/scratch/kocevski/921488/expmap_485049601_485308801_4FGL_J1132.7+0034_daily_bin948.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/921488/ltcube_485049601_485308801_4FGL_J1132.7+0034_daily_bin948.fits
.....................!
real 191.97
user 186.07
sys 4.99

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/921488/ft1_filtered_4FGL_J1132.7+0034_daily_bin948.fits scfile=/scratch/kocevski/921488/ft2_4FGL_J1132.7+0034_daily_bin948.fits outfile=/scratch/kocevski/921488/cmap_485049601_485308801_4FGL_J1132.7+0034_daily_bin948.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.55
user 0.39
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921488/ft1_filtered_4FGL_J1132.7+0034_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/921488/ft2_4FGL_J1132.7+0034_daily_bin948.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921488/Model_4FGL_J1132.7+0034_daily_bin948.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/921488/ft1_filtered_4FGL_J1132.7+0034_daily_bin948.fits.....................!
real 58.62
user 57.24
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12671E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .67020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0560       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13424E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.764       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2607       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9604       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0769       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.909       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.971       1.0000         .10000E-03   10000.    
    24 'Prefactor '    53.399       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.457       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.993       1.0000         .10000E-03   10000.    
    27 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.7317       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .59827       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=   6030.957     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3695 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0061       -.46286E-06** at limit **
   2  norm          .67021        .54695       -.24119E-06    .19286E-03
   3  Prefactor     4.0564        8.9702        .39012E-05    .11921E-03
   4  Prefactor     .10000E-03    19.446        .50573E-06** at limit **
   5  Prefactor     .10000E-03    6.8815        .19986E-06** at limit **
   6  Prefactor     .10000E-03    5.2862       -.11569E-06** at limit **
   7  Prefactor     .10000E-03    2.5065       -.79068E-07** at limit **
   8  Prefactor     .10000E-03    17.747       -.42423E-06** at limit **
   9  norm          .10000E-03    4.0618       -.74273E-07** at limit **
  10  Prefactor     .10000E-03    3.0433       -.12018E-05** at limit **
  11  norm          15.753        17.853       -.19892E-06    .75190E-04
  12  Prefactor     6.2615        3.5671        .38573E-07    .10220E-03
  13  Prefactor     .10000E-03    11.589       -.28932E-06** at limit **
  14  norm          .10000E-03    7.6085       -.35505E-06** at limit **
  15  Prefactor     6.9614        5.0548        .22549E-06    .38201E-03
  16  Prefactor     6.0776        23.824        .38782E-06    .49821E-05
  17  Prefactor     61.942        135.29       -.37753E-05    .20468E-04
  18  Prefactor     .10000E-03    3.2488        .11886E-06** at limit **
  19  Prefactor     .10000E-03    27.420       -.39882E-06** at limit **
  20  Prefactor     .10000E-03    8.2787        .46753E-06** at limit **
  21  Prefactor     .10000E-03    6.9946       -.73993E-07** at limit **
  22  Prefactor     .10000E-03    18.590        .12397E-06** at limit **
  23  Prefactor     45.981        41.684       -.82568E-06    .36626E-04
  24  Prefactor     53.404        29.369       -.21674E-06    .24213E-04
  25  Prefactor     14.453        27.658        .52895E-06   -.48800E-05
  26  Prefactor     11.988        13.447        .98455E-07   -.14129E-04
  27  norm          .10000E-03    1.3138        .53052E-07** at limit **
  28  Normalizat    1.7313        .22928       -.10256E-05    .12725E-03
  29  Prefactor     .59849        .16678        .80280E-06    .12435E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.670211
  Prefactor  = 4.05641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 15.7532
  Prefactor  = 6.26147
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.96135
  Prefactor  = 6.07759
  Prefactor  = 61.9415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.9814
  Prefactor  = 53.4043
  Prefactor  = 14.4532
  Prefactor  = 11.9881
  norm       = 0.0001
  Normalizat = 1.73127
  Prefactor  = 0.598489
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.957     FROM HESSE     STATUS=OK           547 CALLS     4242 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.847        .36373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .67021        .55758        .45737E-04   -1.5544    
   3  Prefactor     4.0564        9.1656        .10010E-02   -1.5305    
   4  Prefactor     .10000E-03    19.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.9006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3031        .17438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5274        .12000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0756        .15281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7399        .23540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.753        17.491        .10088E-03   -1.4914    
  12  Prefactor     6.2615        3.5754        .10408E-03   -1.5207    
  13  Prefactor     .10000E-03    11.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.7236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9614        5.0344        .14021E-03   -1.5180    
  16  Prefactor     6.0776        23.801        .16287E-03   -1.5215    
  17  Prefactor     61.942        135.77        .50997E-04   -1.4132    
  18  Prefactor     .10000E-03    3.2521        .13674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.0351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.981        41.739        .59135E-04   -1.4351    
  24  Prefactor     53.404        29.376        .54888E-04   -1.4245    
  25  Prefactor     14.453        27.655        .10534E-03   -1.4947    
  26  Prefactor     11.988        13.391        .11568E-03   -1.5015    
  27  norm          .10000E-03    1.3193        .86604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.7313        .26586        .24875E-03   -.71471    
  29  Prefactor     .59849        .19404        .30092E-03   -1.0765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18026e-10
Minuit parameter uncertainties:
  1  0.000276567
  2  0.557589
  3  9.16872
  4  5.95412e-05
  5  1.16466e-05
  6  1.70298e-06
  7  1.16792e-06
  8  1.92069e-05
  9  1.64047e-07
  10  0.000292165
  11  17.4965
  12  3.57553
  13  1.81969e-05
  14  5.54412e-05
  15  5.03474
  16  23.838
  17  136.462
  18  1.00044e-05
  19  3.72784e-05
  20  5.75353e-05
  21  5.42677e-06
  22  7.27669e-06
  23  41.766
  24  29.3843
  25  27.6792
  26  13.3939
  27  4.7193e-07
  28  0.266076
  29  0.194259
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  6.261e+00  3.576e+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:  5.985e-01  1.943e-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.731e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.76
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 9.28e-08 +/- 5.30e-08
Energy Flux (Fixed Index): 4.73e-05 +/- 2.70e-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) = 6029.45644523
delta logL = 1.50052931797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6029.45367124
delta logL = 1.50330330629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0875       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0089       1.0000          .0000       10.000    
     3 'Normalizat'    1.5821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67283       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=   6029.454     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0942        17.369        .57704E-02   -.12895E-02
   2  Index         3.0086        2.3996        .86585E-01   -.74671E-04
   3  Normalizat    1.5822        .10125        .58220E-01   -.40129E-03
   4  Prefactor     .67264        .67182E-01    .64432E-01   -.30441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09422
  Index      = 3.00862
  Normalizat = 1.58215
  Prefactor  = 0.672635
 **********
 **   18 **HESSE 
 **********

 FCN=   6029.454     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0942        3.4100        .53179E-04   -1.5356    
   2  Index         3.0086        .65910        .34940E-02   -.40964    
   3  Normalizat    1.5822        .27692        .25745E-03   -.75495    
   4  Prefactor     .67264        .20190        .28507E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34449e-10
Minuit parameter uncertainties:
  1  3.41018
  2  0.661389
  3  0.277188
  4  0.202115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921488': 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) = 6029.45366188
delta logL = 1.50331266579

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.094e+00  3.410e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  3.009e+00  6.614e-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:  6.726e-01  2.021e-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.582e+00  2.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.01
Ra Dec: 173.196 0.574
Photon Index (Free Index): 3.01 +/- 0.66
Photon Flux (Free Index): 2.11e-07 +/- 1.04e-07
Energy Flux (Free Index): 4.20e-05 +/- 1.83e-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/921488/cmap_HighResolution_485049601_485308801_4FGL_J1132.7+0034_daily_bin948.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.28e-08', energy_flux2='4.20e-05', photon_flux_error='5.30e-08', dlogl='1.50e+00', energy_flux='4.73e-05', photon_flux2='2.11e-07', job_status='DONE', time_completed='2021-09-04 03:58:04.915541', photon_index_error2='0.66', photon_index2='3.01', ts='6.76', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.73', time_epoch_completed='1630753084.92', return_code='0', job_id='921488', GAL2='0.67', EG2='1.58', return_code2='0', energy_flux_error='2.70e-05', photon_flux_error2='1.04e-07', ts2='10.01', photon_index='2.14' WHERE bin_id='948' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:58:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 921488: <4FGL_J1132.7+0034_daily_bin948> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin948> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:52 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:53 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:41:53 2021
Terminated at Sat Sep  4 03:58:05 2021
Results reported at Sat Sep  4 03:58:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin948 173.196 0.5737 485049601 485308801 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 :                                   739.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

