/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 39 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin249
RA = 173.196, Dec = 0.5737
tmin = 303868801, tmax = 304128001
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='918162', job_status='RUN', time_executed='2021-09-04 03:33:17.703635', time_epoch_executed='1630751597.7' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918162

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918162/ft1_4FGL_J1132.7+0034_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918162/ft2_4FGL_J1132.7+0034_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918162/ft1_4FGL_J1132.7+0034_daily_bin249.fits outfile=/scratch/kocevski/918162/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin249.fits ra=173.196 dec=0.5737 rad=12.0 tmin=303868801.0 tmax=304128001.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.44
user 3.22
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918162/ft2_4FGL_J1132.7+0034_daily_bin249.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/918162/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin249.fits evtable="EVENTS" outfile="/scratch/kocevski/918162/ft1_filtered_4FGL_J1132.7+0034_daily_bin249.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918162/ft1_filtered_4FGL_J1132.7+0034_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/918162/ft2_4FGL_J1132.7+0034_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/918162/ltcube_303868801_304128001_4FGL_J1132.7+0034_daily_bin249.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/918162/ft2_4FGL_J1132.7+0034_daily_bin249.fits
.....................!
real 12.14
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918162/ft1_filtered_4FGL_J1132.7+0034_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/918162/ft2_4FGL_J1132.7+0034_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/918162/ltcube_303868801_304128001_4FGL_J1132.7+0034_daily_bin249.fits outfile=/scratch/kocevski/918162/expmap_303868801_304128001_4FGL_J1132.7+0034_daily_bin249.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/918162/ltcube_303868801_304128001_4FGL_J1132.7+0034_daily_bin249.fits
.....................!
real 191.63
user 185.84
sys 5.25

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/918162/ft1_filtered_4FGL_J1132.7+0034_daily_bin249.fits scfile=/scratch/kocevski/918162/ft2_4FGL_J1132.7+0034_daily_bin249.fits outfile=/scratch/kocevski/918162/cmap_303868801_304128001_4FGL_J1132.7+0034_daily_bin249.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.62
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918162/ft1_filtered_4FGL_J1132.7+0034_daily_bin249.fits scfile=/scratch/kocevski/918162/ft2_4FGL_J1132.7+0034_daily_bin249.fits outfile=/scratch/kocevski/918162/cmap_HighResolution_303868801_304128001_4FGL_J1132.7+0034_daily_bin249.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918162/ft1_filtered_4FGL_J1132.7+0034_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/918162/ft2_4FGL_J1132.7+0034_daily_bin249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918162/Model_4FGL_J1132.7+0034_daily_bin249.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/918162/ft1_filtered_4FGL_J1132.7+0034_daily_bin249.fits.....................!
real 60.42
user 58.97
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1391       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.497       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.404       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.945       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.0269       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0630       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7345       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.689       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.366       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18140E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.4675       1.0000         .10000E-03   10000.    
    27 'norm      '    3.5298       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4352       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85308       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6045.403     FROM MIGRAD    STATUS=CONVERGED   1327 CALLS     4278 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.254        .36285E-03** at limit **
   2  norm          1.1387        .77569        .47000E-04    .32316E-03
   3  Prefactor     30.490        15.525        .72553E-04   -.54687E-04
   4  Prefactor     16.440        29.110        .98887E-04   -.80936E-04
   5  Prefactor     .10000E-03    6.9325        .18142E-02** at limit **
   6  Prefactor     .10000E-03    4.9220        .16829E-02** at limit **
   7  Prefactor     18.948        8.0671        .92019E-04    .15320E-04
   8  Prefactor     .10000E-03    45.363        .18142E-02** at limit **
   9  norm          7.0292        10.318        .75668E-03   -.12941E-03
  10  Prefactor     .10000E-03    2.3835        .11658E-02** at limit **
  11  norm          .10000E-03    15.280        .18142E-02** at limit **
  12  Prefactor     .10000E-03    .89828        .71636E-03** at limit **
  13  Prefactor     .10000E-03    21.462        .18142E-02** at limit **
  14  norm          .10000E-03    2.3698        .11670E-02** at limit **
  15  Prefactor     3.0636        3.9414        .16696E-03   -.52840E-04
  16  Prefactor     .10000E-03    6.8775        .18142E-02** at limit **
  17  Prefactor     .10000E-03    45.772        .18142E-02** at limit **
  18  Prefactor     7.7362        7.8486        .14419E-03   -.24994E-04
  19  Prefactor     26.664        26.867        .77545E-04    .36212E-04
  20  Prefactor     11.375        9.3682        .11883E-03   -.24339E-03
  21  Prefactor     .10000E-03    11.351        .18142E-02** at limit **
  22  Prefactor     .10000E-03    10.819        .18142E-02** at limit **
  23  Prefactor     .10000E-03    47.182        .13891    ** at limit **
  24  Prefactor     .10000E-03    9.0911        .18142E-02** at limit **
  25  Prefactor     .10000E-03    32.613        .18142E-02** at limit **
  26  Prefactor     8.5435        21.208        .13776E-03   -.22282E-04
  27  norm          3.5263        3.9688        .12564E-03    .20088E-04
  28  Normalizat    1.4351        .26744        .27569E-03   -.30433E-04
  29  Prefactor     .85309        .20379        .26987E-03   -.31741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.13875
  Prefactor  = 30.4896
  Prefactor  = 16.4395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9481
  Prefactor  = 0.0001
  norm       = 7.0292
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.06363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.7362
  Prefactor  = 26.6636
  Prefactor  = 11.375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.54355
  norm       = 3.52635
  Normalizat = 1.43515
  Prefactor  = 0.853091
 **********
 **   18 **HESSE 
 **********

 FCN=   6045.403     FROM HESSE     STATUS=OK           533 CALLS     4811 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.255        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1387        .77573        .18800E-05   -1.5495    
   3  Prefactor     30.490        15.527        .29021E-05   -1.4603    
   4  Prefactor     16.440        29.111        .39555E-05   -1.4897    
   5  Prefactor     .10000E-03    6.9330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9224        .33657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.948        8.0639        .36808E-05   -1.4837    
   8  Prefactor     .10000E-03    45.364        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.0292        10.313        .30267E-04   -1.5178    
  10  Prefactor     .10000E-03    2.3839        .23316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    15.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .89833        .14327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3699        .23340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0636        3.9413        .66783E-05   -1.5358    
  16  Prefactor     .10000E-03    6.8776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    45.773        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7362        7.8486        .57675E-05   -1.5152    
  19  Prefactor     26.664        26.862        .31018E-05   -1.4675    
  20  Prefactor     11.375        9.3686        .47532E-05   -1.5033    
  21  Prefactor     .10000E-03    11.355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.635        .13623       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.0914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    32.616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.5435        21.211        .55105E-05   -1.5123    
  27  norm          3.5263        3.9694        .50256E-05   -1.5332    
  28  Normalizat    1.4351        .26768        .11028E-04   -.79617    
  29  Prefactor     .85309        .20397        .53975E-04   -.97800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75742e-10
Minuit parameter uncertainties:
  1  9.45542e-05
  2  0.775735
  3  15.529
  4  29.1358
  5  2.73757e-06
  6  1.28822e-06
  7  8.06436
  8  2.311e-05
  9  10.3155
  10  8.55433e-08
  11  1.30692e-05
  12  3.49693e-06
  13  2.65779e-05
  14  6.76562e-07
  15  3.9416
  16  5.21879e-06
  17  3.74267e-05
  18  7.84962
  19  26.8745
  20  9.36982
  21  1.88777e-05
  22  1.65136e-06
  23  0.000891774
  24  8.2732e-06
  25  1.83057e-07
  26  21.2302
  27  3.96974
  28  0.267939
  29  0.204155
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  3.497e-06  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.531e-01  2.042e-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.435e+00  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/918162/likelihoodResults_303868801_304128001_4FGL_J1132.7+0034_daily_bin249.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): 102
logL (Free Index) = 6045.40840192
delta logL = -0.00511986174388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6045.40328214
delta logL = -8.94933691598e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1396       1.0000          .0000       10.000    
     3 'Normalizat'    1.4351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85315       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6045.403     FROM MIGRAD    STATUS=FAILED        83 CALLS      233 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    44.745        .71675E-03** at limit **
   2  Index         2.1687        8.9046        .50000       -.32688E-04
   3  Normalizat    1.4351        .42235E-01    .27569E-03    .10915E-03
   4  Prefactor     .85310        .33056E-01    .26987E-03    .14361E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6045.403     FROM SIMPLEX   STATUS=PROGRESS     143 CALLS      376 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    44.745        .11913E-03** at limit **
   2  Index         2.1685        8.9046        .68804E-04   -.32688E-04
   3  Normalizat    1.4351        .42235E-01    .12769E-05    .10915E-03
   4  Prefactor     .85309        .33056E-01    .73634E-06    .14361E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6045.403     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      422 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    124.56        .14335E-03** at limit **
   2  Index         2.3402        6.3322        .50000       -.41268E-07
   3  Normalizat    1.4351        .82672E-01    .55138E-04   -.80494E-04
   4  Prefactor     .85310        .64389E-01    .10795E-04   -.10510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34023
  Normalizat = 1.43514
  Prefactor  = 0.853095
 **********
 **   18 **HESSE 
 **********

 FCN=   6045.403     FROM HESSE     STATUS=OK            29 CALLS      451 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2692        .28670E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3402        5.6526        .50000       -.56091    
   3  Normalizat    1.4351        .25666        .11028E-04   -.79617    
   4  Prefactor     .85310        .20090        .21590E-05   -.97800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21022e-11
Minuit parameter uncertainties:
  1  8.13293e-06
  2  54.7066
  3  0.256893
  4  0.201073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918162': 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) = 6045.40328109
delta logL = 9.62769263424e-07

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  8.133e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.340e+00  5.471e+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.531e-01  2.011e-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.435e+00  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.196 0.574

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/918162/cmap_HighResolution_303868801_304128001_4FGL_J1132.7+0034_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-04 03:48:30.247799', job_id='918162', GAL2='0.85', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630752510.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='9.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='249' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:48:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 918162: <4FGL_J1132.7+0034_daily_bin249> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin249 173.196 0.5737 303868801 304128001 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 :                                   888.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            992 sec.

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

