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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin769
RA = 173.196, Dec = 0.5737
tmin = 438652801, tmax = 438912001
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='921214', job_status='RUN', time_executed='2021-09-04 03:43:57.328403', time_epoch_executed='1630752237.33' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921214

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921214/ft1_4FGL_J1132.7+0034_daily_bin769.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921214/ft2_4FGL_J1132.7+0034_daily_bin769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921214/ft1_4FGL_J1132.7+0034_daily_bin769.fits outfile=/scratch/kocevski/921214/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin769.fits ra=173.196 dec=0.5737 rad=12.0 tmin=438652801.0 tmax=438912001.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 6.40
user 6.10
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921214/ft1_filtered_4FGL_J1132.7+0034_daily_bin769.fits" evtable="EVENTS" scfile=/scratch/kocevski/921214/ft2_4FGL_J1132.7+0034_daily_bin769.fits sctable="SC_DATA" outfile=/scratch/kocevski/921214/ltcube_438652801_438912001_4FGL_J1132.7+0034_daily_bin769.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/921214/ft2_4FGL_J1132.7+0034_daily_bin769.fits
.....................!
real 12.88
user 12.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921214/ft1_filtered_4FGL_J1132.7+0034_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/921214/ft2_4FGL_J1132.7+0034_daily_bin769.fits sctable="SC_DATA" expcube=/scratch/kocevski/921214/ltcube_438652801_438912001_4FGL_J1132.7+0034_daily_bin769.fits outfile=/scratch/kocevski/921214/expmap_438652801_438912001_4FGL_J1132.7+0034_daily_bin769.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/921214/ltcube_438652801_438912001_4FGL_J1132.7+0034_daily_bin769.fits
.....................!
real 190.60
user 185.37
sys 4.77

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/921214/ft1_filtered_4FGL_J1132.7+0034_daily_bin769.fits scfile=/scratch/kocevski/921214/ft2_4FGL_J1132.7+0034_daily_bin769.fits outfile=/scratch/kocevski/921214/cmap_438652801_438912001_4FGL_J1132.7+0034_daily_bin769.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921214/ft1_filtered_4FGL_J1132.7+0034_daily_bin769.fits scfile=/scratch/kocevski/921214/ft2_4FGL_J1132.7+0034_daily_bin769.fits outfile=/scratch/kocevski/921214/cmap_HighResolution_438652801_438912001_4FGL_J1132.7+0034_daily_bin769.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.60
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921214/ft1_filtered_4FGL_J1132.7+0034_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/921214/ft2_4FGL_J1132.7+0034_daily_bin769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921214/Model_4FGL_J1132.7+0034_daily_bin769.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/921214/ft1_filtered_4FGL_J1132.7+0034_daily_bin769.fits....................!
real 50.31
user 48.71
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.982       1.0000         .10000E-03   10000.    
     2 'norm      '    .86176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.917       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10925E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    182.17       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.506       1.0000         .10000E-03   10000.    
    19 'Prefactor '    96.031       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.135       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.014       1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.796       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.4322       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60612       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3873       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=   4843.101     FROM MIGRAD    STATUS=CONVERGED   1268 CALLS     4209 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.980        14.951        .87442E-04   -.46805E-04
   2  norm          .86159        .71305        .47835E-04   -.54663E-05
   3  Prefactor     11.595        12.528        .11767E-03   -.33526E-04
   4  Prefactor     .10000E-03    36.470        .10670    ** at limit **
   5  Prefactor     .10000E-03    7.5830        .18142E-02** at limit **
   6  Prefactor     .10000E-03    5.1502        .15417E-02** at limit **
   7  Prefactor     .10000E-03    3.6173        .12823E-02** at limit **
   8  Prefactor     39.985        65.800        .31721E-03   -.24371E-04
   9  norm          .10000E-03    4.9233        .15058E-02** at limit **
  10  Prefactor     .10000E-03    5.7081        .31966E-03** at limit **
  11  norm          .10000E-03    7.7449        .18142E-02** at limit **
  12  Prefactor     4.3962        3.7617        .11686E-03   -.12131E-03
  13  Prefactor     .10000E-03    9.9292        .18142E-02** at limit **
  14  norm          .10000E-03    2.4841        .10701E-02** at limit **
  15  Prefactor     .10000E-03    3.3294        .12301E-02** at limit **
  16  Prefactor     .10000E-03    51.098        .18142E-02** at limit **
  17  Prefactor     181.89        136.29        .14955E-03    .26379E-04
  18  Prefactor     15.513        13.379        .10171E-03    .16990E-04
  19  Prefactor     96.057        64.643        .20508E-03   -.10366E-04
  20  Prefactor     .10000E-03    3.2813        .12300E-02** at limit **
  21  Prefactor     31.118        23.183        .71808E-04   -.10449E-04
  22  Prefactor     .10000E-03    17.919        .18142E-02** at limit **
  23  Prefactor     40.070        50.247        .63367E-04   -.33550E-04
  24  Prefactor     31.794        23.904        .71059E-04   -.12799E-04
  25  Prefactor     .10000E-03    48.165        .18142E-02** at limit **
  26  Prefactor     .10000E-03    9.4080        .18142E-02** at limit **
  27  norm          2.4302        2.9252        .12512E-03   -.15646E-03
  28  Normalizat    .60638        .30535        .39227E-03   -.13972E-03
  29  Prefactor     1.3871        .23291        .22170E-03   -.30151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.9801
  norm       = 0.861592
  Prefactor  = 11.5946
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.9853
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.39623
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 181.885
  Prefactor  = 15.5132
  Prefactor  = 96.057
  Prefactor  = 0.0001
  Prefactor  = 31.1179
  Prefactor  = 0.0001
  Prefactor  = 40.0703
  Prefactor  = 31.7943
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.43022
  Normalizat = 0.606379
  Prefactor  = 1.38715
 **********
 **   18 **HESSE 
 **********

 FCN=   4843.101     FROM HESSE     STATUS=OK           533 CALLS     4742 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.980        14.950        .34977E-05   -1.4792    
   2  norm          .86159        .71302        .19134E-05   -1.5522    
   3  Prefactor     11.595        12.526        .47067E-05   -1.5027    
   4  Prefactor     .10000E-03    33.989        .11190       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1504        .30834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6184        .25646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.985        65.798        .12689E-04   -1.4442    
   9  norm          .10000E-03    4.9236        .30116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7083        .63931E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.7449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3962        3.7615        .46744E-05   -1.5289    
  13  Prefactor     .10000E-03    9.9293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4842        .21402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3302        .24603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    51.120        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     181.89        136.29        .59819E-05   -1.3002    
  18  Prefactor     15.513        13.379        .40685E-05   -1.4920    
  19  Prefactor     96.057        64.642        .82032E-05   -1.3745    
  20  Prefactor     .10000E-03    3.2814        .24601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.118        23.182        .28723E-05   -1.4592    
  22  Prefactor     .10000E-03    17.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     40.070        50.232        .25347E-05   -1.4441    
  24  Prefactor     31.794        23.902        .28423E-05   -1.4580    
  25  Prefactor     .10000E-03    48.170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.4086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.4302        2.9249        .50049E-05   -1.5396    
  28  Normalizat    .60638        .30548        .15691E-04   -1.0771    
  29  Prefactor     1.3871        .23304        .44340E-04   -.80751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89267e-10
Minuit parameter uncertainties:
  1  14.9531
  2  0.713023
  3  12.5291
  4  0.000316154
  5  2.6947e-05
  6  1.5079e-05
  7  6.93301e-06
  8  65.9181
  9  1.57857e-05
  10  3.40749e-05
  11  1.20782e-06
  12  3.7617
  13  4.46502e-06
  14  1.23799e-06
  15  2.50392e-06
  16  6.82897e-05
  17  136.524
  18  13.3813
  19  64.6898
  20  3.01906e-05
  21  23.1885
  22  1.50443e-05
  23  50.2855
  24  23.9091
  25  0.000351593
  26  2.32799e-05
  27  2.92505
  28  0.306331
  29  0.233213
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.396e+00  3.762e+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.387e+00  2.332e-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:  6.064e-01  3.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.52e-08 +/- 5.57e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 2.84e-05

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

Saving results to:
/scratch/kocevski/921214/likelihoodResults_438652801_438912001_4FGL_J1132.7+0034_daily_bin769.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) = 4842.03032063
delta logL = 1.07034218848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4842.00753311
delta logL = 1.09312971241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1144       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0682       1.0000          .0000       10.000    
     3 'Normalizat'    .50197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4351       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=   4842.008     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      273 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1168        20.404        .70921E-02    .38405E-03
   2  Index         3.0678        2.8295        .10027        .12796E-03
   3  Normalizat    .50195        .92400E-01    .96775E-01    .27178E-04
   4  Prefactor     1.4352        .72056E-01    .49418E-01   -.13090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11678
  Index      = 3.06775
  Normalizat = 0.501947
  Prefactor  = 1.43518
 **********
 **   18 **HESSE 
 **********

 FCN=   4842.008     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1168        3.1867        .54261E-04   -1.5417    
   2  Index         3.0678        .83639        .39565E-02   -.39678    
   3  Normalizat    .50195        .28814        .42886E-03   -1.1233    
   4  Prefactor     1.4352        .23243        .21845E-03   -.79372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44782e-11
Minuit parameter uncertainties:
  1  3.18691
  2  0.841041
  3  0.289002
  4  0.2326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921214': 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) = 4842.00753243
delta logL = 1.09313039299

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.117e+00  3.187e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  3.068e+00  8.410e-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.435e+00  2.326e-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:  5.019e-01  2.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.63
Ra Dec: 173.196 0.574
Photon Index (Free Index): 3.07 +/- 0.84
Photon Flux (Free Index): 1.62e-07 +/- 1.00e-07
Energy Flux (Free Index): 3.13e-05 +/- 1.87e-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/921214/cmap_HighResolution_438652801_438912001_4FGL_J1132.7+0034_daily_bin769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='6.52e-08', energy_flux2='3.13e-05', photon_flux_error='5.57e-08', dlogl='1.09e+00', energy_flux='3.32e-05', photon_flux2='1.62e-07', job_status='DONE', time_completed='2021-09-04 03:56:59.637485', photon_index_error2='0.84', photon_index2='3.07', ts='2.25', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='1.87e-05', EG='0.61', time_epoch_completed='1630753019.64', return_code='0', job_id='921214', GAL2='1.44', EG2='0.50', return_code2='0', energy_flux_error='2.84e-05', photon_flux_error2='1.00e-07', ts2='4.63', photon_index='2.14' WHERE bin_id='769' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:56:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 921214: <4FGL_J1132.7+0034_daily_bin769> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:30 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:32 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:32 2021
Terminated at Sat Sep  4 03:57:00 2021
Results reported at Sat Sep  4 03:57:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin769 173.196 0.5737 438652801 438912001 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 :                                   778.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            930 sec.

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

