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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin813
RA = 173.196, Dec = 0.5737
tmin = 450057601, tmax = 450316801
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='921283', job_status='RUN', time_executed='2021-09-04 03:41:50.850619', time_epoch_executed='1630752110.85' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='813'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921283

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921283/ft1_4FGL_J1132.7+0034_daily_bin813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921283/ft2_4FGL_J1132.7+0034_daily_bin813.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921283/ft1_4FGL_J1132.7+0034_daily_bin813.fits outfile=/scratch/kocevski/921283/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin813.fits ra=173.196 dec=0.5737 rad=12.0 tmin=450057601.0 tmax=450316801.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921283/ft1_filtered_4FGL_J1132.7+0034_daily_bin813.fits" evtable="EVENTS" scfile=/scratch/kocevski/921283/ft2_4FGL_J1132.7+0034_daily_bin813.fits sctable="SC_DATA" outfile=/scratch/kocevski/921283/ltcube_450057601_450316801_4FGL_J1132.7+0034_daily_bin813.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/921283/ft2_4FGL_J1132.7+0034_daily_bin813.fits
.....................!
real 11.93
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921283/ft1_filtered_4FGL_J1132.7+0034_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/921283/ft2_4FGL_J1132.7+0034_daily_bin813.fits sctable="SC_DATA" expcube=/scratch/kocevski/921283/ltcube_450057601_450316801_4FGL_J1132.7+0034_daily_bin813.fits outfile=/scratch/kocevski/921283/expmap_450057601_450316801_4FGL_J1132.7+0034_daily_bin813.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/921283/ltcube_450057601_450316801_4FGL_J1132.7+0034_daily_bin813.fits
.....................!
real 190.51
user 185.46
sys 4.65

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/921283/ft1_filtered_4FGL_J1132.7+0034_daily_bin813.fits scfile=/scratch/kocevski/921283/ft2_4FGL_J1132.7+0034_daily_bin813.fits outfile=/scratch/kocevski/921283/cmap_450057601_450316801_4FGL_J1132.7+0034_daily_bin813.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921283/ft1_filtered_4FGL_J1132.7+0034_daily_bin813.fits scfile=/scratch/kocevski/921283/ft2_4FGL_J1132.7+0034_daily_bin813.fits outfile=/scratch/kocevski/921283/cmap_HighResolution_450057601_450316801_4FGL_J1132.7+0034_daily_bin813.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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921283/ft1_filtered_4FGL_J1132.7+0034_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/921283/ft2_4FGL_J1132.7+0034_daily_bin813.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921283/Model_4FGL_J1132.7+0034_daily_bin813.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/921283/ft1_filtered_4FGL_J1132.7+0034_daily_bin813.fits.....................!
real 66.33
user 64.90
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29183E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .87355       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4050       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54830E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39524       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3601       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5503       1.0000         .10000E-03   10000.    
    11 'norm      '    20.937       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.0762       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51052E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.0842       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3593       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75287       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=   6924.714     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3179 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    5.3846       -.10856E-05** at limit **
   2  norm          .87379        .78802       -.51243E-07   -.35703E-03
   3  Prefactor     9.4056        12.520        .16823E-06    .63992E-04
   4  Prefactor     .10000E-03    42.364        .34318E-06** at limit **
   5  Prefactor     .10000E-03    4.4636       -.41869E-07** at limit **
   6  Prefactor     .39799        5.3495       -.12395E-05   -.13328E-03
   7  Prefactor     .10000E-03    3.2601        .78478E-06** at limit **
   8  Prefactor     .10000E-03    31.343       -.60611E-05** at limit **
   9  norm          4.3638        6.5687       -.83592E-07   -.16135E-03
  10  Prefactor     2.5435        4.9736       -.68052E-06   -.60165E-03
  11  norm          20.937        19.838        .25404E-06    .45768E-04
  12  Prefactor     2.6401        2.1252       -.42214E-07   -.90222E-04
  13  Prefactor     .10000E-03    13.318       -.78234E-05** at limit **
  14  norm          5.0772        6.2380       -.22507E-06   -.31670E-03
  15  Prefactor     5.2023        3.5957       -.10858E-07   -.32666E-03
  16  Prefactor     .10083E-03    10.511       -.18450E-05** at limit **
  17  Prefactor     .10000E-03    35.265        .21457E-04** at limit **
  18  Prefactor     .10000E-03    3.6447       -.15333E-06** at limit **
  19  Prefactor     .10000E-03    18.480        .96729E-05** at limit **
  20  Prefactor     .10000E-03    3.3161       -.58212E-06** at limit **
  21  Prefactor     .10000E-03    8.5913        .46056E-05** at limit **
  22  Prefactor     .10000E-03    8.1648       -.29456E-05** at limit **
  23  Prefactor     .10000E-03    21.706       -.97535E-05** at limit **
  24  Prefactor     .10000E-03    17.035        .14226E-04** at limit **
  25  Prefactor     .10000E-03    23.139       -.16921E-04** at limit **
  26  Prefactor     .10000E-03    3.1262        .75622E-07** at limit **
  27  norm          1.0834        1.7844       -.23557E-07   -.54649E-03
  28  Normalizat    1.3598        .18355        .24323E-06    .18639E-03
  29  Prefactor     .75249        .14369        .17859E-07    .14909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  norm       = 0.873789
  Prefactor  = 9.40562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.397985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.3638
  Prefactor  = 2.54353
  norm       = 20.9373
  Prefactor  = 2.64007
  Prefactor  = 0.0001
  norm       = 5.07716
  Prefactor  = 5.20226
  Prefactor  = 0.000100831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08339
  Normalizat = 1.35979
  Prefactor  = 0.75249
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.714     FROM HESSE     STATUS=OK           563 CALLS     3742 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    14.806        .36689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .87379        .77531        .50413E-03   -1.5521    
   3  Prefactor     9.4056        12.618        .13068E-03   -1.5094    
   4  Prefactor     .10000E-03    44.090        .42222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4757        .17162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .39799        20.416        .36745E-02   -1.5582    
   7  Prefactor     .10000E-03    3.3783        .29292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3638        6.4944        .19290E-03   -1.5290    
  10  Prefactor     2.5435        4.9104        .21649E-03   -1.5389    
  11  norm          20.937        19.753        .87535E-04   -1.4792    
  12  Prefactor     2.6401        2.1266        .10409E-03   -1.5383    
  13  Prefactor     .10000E-03    13.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0772        6.2093        .17846E-03   -1.5257    
  15  Prefactor     5.2023        3.5800        .11768E-03   -1.5252    
  16  Prefactor     .10083E-03    10.556        .94916E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6493        .15515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3323        .14797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.6701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.1655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.1306        .14366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.0834        1.4520        .13878E-02   -1.5500    
  28  Normalizat    1.3598        .21370        .24385E-03   -.81799    
  29  Prefactor     .75249        .16772        .25215E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71465e-08
Minuit parameter uncertainties:
  1  0.000765595
  2  0.775322
  3  12.6215
  4  8.9359e-06
  5  9.00755e-06
  6  5.70238
  7  7.23812e-06
  8  1.43442e-05
  9  6.49543
  10  4.91114
  11  19.7588
  12  2.1267
  13  3.18087e-05
  14  6.21011
  15  3.58019
  16  0.0059234
  17  4.00688e-06
  18  4.63022e-07
  19  1.70359e-05
  20  1.65633e-06
  21  1.52904e-05
  22  1.34048e-06
  23  1.19374e-05
  24  6.53632e-05
  25  1.01845e-05
  26  1.78744e-06
  27  1.452
  28  0.213844
  29  0.167833
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.640e+00  2.127e+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:  7.525e-01  1.678e-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.360e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.61e-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) = 6924.48047823
delta logL = 0.233219426877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6924.47970552
delta logL = 0.233992134672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1469       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6107       1.0000          .0000       10.000    
     3 'Normalizat'    1.3217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76914       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=   6924.480     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      298 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1471        2.1651        .75560E-04    .11691E-03
   2  Index         2.6111        .74632        .68282E-02    .56976E-03
   3  Normalizat    1.3217        .21819        .24670E-03    .88708E-04
   4  Prefactor     .76915        .16837        .24960E-03    .14297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.14711
  Index      = 2.61109
  Normalizat = 1.32172
  Prefactor  = 0.769149
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.480     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1471        1.9905        .30224E-05   -1.5415    
   2  Index         2.6111        .68526        .13656E-02   -.49813    
   3  Normalizat    1.3217        .21749        .98682E-05   -.82920    
   4  Prefactor     .76915        .16813        .99841E-05   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29514e-11
Minuit parameter uncertainties:
  1  1.99056
  2  0.688067
  3  0.217642
  4  0.168238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921283': 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) = 6924.47970491
delta logL = 0.233992745463

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.147e+00  1.991e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.611e+00  6.881e-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:  7.691e-01  1.682e-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.322e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.61 +/- 0.69
Photon Flux (Free Index): 7.03e-08 +/- 6.11e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/921283/cmap_HighResolution_450057601_450316801_4FGL_J1132.7+0034_daily_bin813.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='1.83e-05', photon_flux_error='3.15e-08', dlogl='2.34e-01', energy_flux='1.99e-05', photon_flux2='7.03e-08', job_status='DONE', time_completed='2021-09-04 03:54:35.298092', photon_index_error2='0.69', photon_index2='2.61', ts='4.35', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.36', time_epoch_completed='1630752875.3', return_code='0', job_id='921283', GAL2='0.77', EG2='1.32', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.11e-08', ts2='4.83', photon_index='2.14' WHERE bin_id='813' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:54:35 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin813 173.196 0.5737 450057601 450316801 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 :                                   763.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

