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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin481
RA = 173.196, Dec = 0.5737
tmin = 364003201, tmax = 364262401
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='919505', job_status='RUN', time_executed='2021-09-04 03:38:10.255251', time_epoch_executed='1630751890.26' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919505/ft1_4FGL_J1132.7+0034_daily_bin481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919505/ft2_4FGL_J1132.7+0034_daily_bin481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919505/ft1_4FGL_J1132.7+0034_daily_bin481.fits outfile=/scratch/kocevski/919505/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin481.fits ra=173.196 dec=0.5737 rad=12.0 tmin=364003201.0 tmax=364262401.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.27
user 3.05
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919505/ft2_4FGL_J1132.7+0034_daily_bin481.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/919505/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin481.fits evtable="EVENTS" outfile="/scratch/kocevski/919505/ft1_filtered_4FGL_J1132.7+0034_daily_bin481.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/919505/ft1_filtered_4FGL_J1132.7+0034_daily_bin481.fits" evtable="EVENTS" scfile=/scratch/kocevski/919505/ft2_4FGL_J1132.7+0034_daily_bin481.fits sctable="SC_DATA" outfile=/scratch/kocevski/919505/ltcube_364003201_364262401_4FGL_J1132.7+0034_daily_bin481.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/919505/ft2_4FGL_J1132.7+0034_daily_bin481.fits
.....................!
real 11.94
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919505/ft1_filtered_4FGL_J1132.7+0034_daily_bin481.fits evtable="EVENTS" scfile=/scratch/kocevski/919505/ft2_4FGL_J1132.7+0034_daily_bin481.fits sctable="SC_DATA" expcube=/scratch/kocevski/919505/ltcube_364003201_364262401_4FGL_J1132.7+0034_daily_bin481.fits outfile=/scratch/kocevski/919505/expmap_364003201_364262401_4FGL_J1132.7+0034_daily_bin481.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/919505/ltcube_364003201_364262401_4FGL_J1132.7+0034_daily_bin481.fits
.....................!
real 190.72
user 185.65
sys 4.61

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/919505/ft1_filtered_4FGL_J1132.7+0034_daily_bin481.fits scfile=/scratch/kocevski/919505/ft2_4FGL_J1132.7+0034_daily_bin481.fits outfile=/scratch/kocevski/919505/cmap_364003201_364262401_4FGL_J1132.7+0034_daily_bin481.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.16

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.444       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17814       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    25.215       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9826       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    110.81       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6811       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2735       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.623       1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.307       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.362       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3325       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96749       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=   5541.056     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3767 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1936       -.29067E-06** at limit **
   2  norm          .10000E-03    .66516       -.11287E-05** at limit **
   3  Prefactor     24.450        12.462        .21190E-05    .66558E-03
   4  Prefactor     .10000E-03    12.918        .29241E-08** at limit **
   5  Prefactor     .10025E-03    13.629       -.10110E-06** at limit **
   6  Prefactor     .10000E-03    6.1177        .25480E-07** at limit **
   7  Prefactor     .10000E-03    4.9223        .81629E-07** at limit **
   8  Prefactor     .10000E-03    80.902        .14884E-06** at limit **
   9  norm          25.227        12.594       -.41620E-07    .80239E-04
  10  Prefactor     .10000E-03    2.8634        .59071E-07** at limit **
  11  norm          .10000E-03    13.717        .26699E-07** at limit **
  12  Prefactor     2.9816        2.5286        .15301E-07   -.54028E-04
  13  Prefactor     .10000E-03    62.764        .18229E-06** at limit **
  14  norm          .10000E-03    11.232        .16933E-06** at limit **
  15  Prefactor     .10000E-03    3.7678        .10600E-06** at limit **
  16  Prefactor     .10000E-03    13.307        .14186E-07** at limit **
  17  Prefactor     110.71        130.24       -.17841E-05   -.87430E-04
  18  Prefactor     .10000E-03    3.3848       -.96326E-07** at limit **
  19  Prefactor     .10000E-03    25.110        .64563E-07** at limit **
  20  Prefactor     9.6792        9.5959       -.24875E-07    .21421E-04
  21  Prefactor     7.2671        19.115        .52301E-07    .16067E-04
  22  Prefactor     45.625        51.034       -.78105E-07   -.82822E-05
  23  Prefactor     45.266        48.213        .16372E-06    .64649E-04
  24  Prefactor     .10000E-03    29.021        .13713E-06** at limit **
  25  Prefactor     13.360        34.220        .10100E-06    .12375E-04
  26  Prefactor     .10000E-03    7.0092        .56697E-07** at limit **
  27  norm          .10000E-03    1.9033        .44211E-07** at limit **
  28  Normalizat    1.3330        .23735        .11872E-05    .11705E-03
  29  Prefactor     .96732        .18176       -.86456E-06    .30190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 24.4499
  Prefactor  = 0.0001
  Prefactor  = 0.000100247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.2266
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.98161
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.71
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.67919
  Prefactor  = 7.26709
  Prefactor  = 45.6247
  Prefactor  = 45.2663
  Prefactor  = 0.0001
  Prefactor  = 13.3601
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.33299
  Prefactor  = 0.967323
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.056     FROM HESSE     STATUS=OK           549 CALLS     4316 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3255        .10435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.450        13.609        .81022E-04   -1.4719    
   4  Prefactor     .10000E-03    12.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10025E-03    18.983        .79196E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1372        .17970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0135        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    81.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          25.227        12.581        .79774E-04   -1.4703    
  10  Prefactor     .10000E-03    2.8872        .12287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9816        2.5215        .10469E-03   -1.5363    
  13  Prefactor     .10000E-03    63.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.688        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8783        .28179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     110.71        129.63        .19105E-03   -1.3600    
  18  Prefactor     .10000E-03    3.3857        .13373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.6792        9.5926        .12879E-03   -1.5086    
  21  Prefactor     7.2671        19.060        .14872E-03   -1.5169    
  22  Prefactor     45.625        50.943        .59359E-04   -1.4356    
  23  Prefactor     45.266        48.358        .59565E-04   -1.4361    
  24  Prefactor     .10000E-03    29.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.360        34.203        .10958E-03   -1.4977    
  26  Prefactor     .10000E-03    7.0394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.9786        .20049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3330        .27818        .27693E-03   -.82587    
  29  Prefactor     .96732        .21188        .25397E-03   -.93827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4756e-09
Minuit parameter uncertainties:
  1  3.68165e-06
  2  7.74558e-05
  3  13.6103
  4  1.02168e-06
  5  0.00432991
  6  2.72848e-06
  7  1.50598e-05
  8  5.67076e-05
  9  12.5819
  10  7.25639e-06
  11  6.3174e-06
  12  2.52159
  13  0.000213031
  14  4.91421e-05
  15  1.57716e-05
  16  1.94199e-05
  17  129.961
  18  9.46187e-06
  19  3.72207e-06
  20  9.59411
  21  19.0755
  22  50.9916
  23  48.3997
  24  9.31503e-05
  25  34.2535
  26  7.99117e-06
  27  2.84897e-06
  28  0.278499
  29  0.212065
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.982e+00  2.522e+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:  9.673e-01  2.121e-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.333e+00  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.42e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.90e-05

TS (Fixed Index): 2.16
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919505/likelihoodResults_364003201_364262401_4FGL_J1132.7+0034_daily_bin481.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) = 5541.0559355
delta logL = 0.000366426148503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5541.05585586
delta logL = 0.000446062953415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0128       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1175       1.0000          .0000       10.000    
     3 'Normalizat'    1.3339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96683       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=   5541.056     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0128        2.7909        .10535E-03   -.28445E-03
   2  Index         2.1175        .61501        .83081E-02   -.36681E-04
   3  Normalizat    1.3339        .26231        .27684E-03    .22750E-04
   4  Prefactor     .96683        .20884        .25402E-03    .34237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.01282
  Index      = 2.11745
  Normalizat = 1.33395
  Prefactor  = 0.966832
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.056     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0128        2.7382        .42142E-05   -1.5361    
   2  Index         2.1175        .60320        .33232E-03   -.61445    
   3  Normalizat    1.3339        .26242        .11074E-04   -.82559    
   4  Prefactor     .96683        .20895        .10161E-04   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45791e-11
Minuit parameter uncertainties:
  1  2.73832
  2  0.605414
  3  0.262678
  4  0.209125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919505': 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) = 5541.05585586
delta logL = 0.000446065815595

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.013e+00  2.738e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.117e+00  6.054e-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:  9.668e-01  2.091e-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.334e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.12 +/- 0.61
Photon Flux (Free Index): 4.35e-08 +/- 4.45e-08
Energy Flux (Free Index): 2.30e-05 +/- 2.51e-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/919505/cmap_HighResolution_364003201_364262401_4FGL_J1132.7+0034_daily_bin481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.83e-03', comment='SUCCESS', photon_flux='4.42e-08', energy_flux2='2.30e-05', photon_flux_error='3.74e-08', dlogl='4.46e-04', energy_flux='2.25e-05', photon_flux2='4.35e-08', job_status='DONE', time_completed='2021-09-04 03:51:32.025408', photon_index_error2='0.61', photon_index2='2.12', ts='2.16', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='2.51e-05', EG='1.33', time_epoch_completed='1630752692.03', return_code='0', job_id='919505', GAL2='0.97', EG2='1.33', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='4.45e-08', ts2='2.15', photon_index='2.14' WHERE bin_id='481' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 919505: <4FGL_J1132.7+0034_daily_bin481> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin481> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 03:36:07 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:36:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 03:36:08 2021
Terminated at Sat Sep  4 03:51:32 2021
Results reported at Sat Sep  4 03:51:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin481 173.196 0.5737 364003201 364262401 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 :                                   795.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

