/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 130 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 = 7674
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin163
RA = 173.196, Dec = 0.5737
tmin = 281577601, tmax = 281836801
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='918054', job_status='RUN', time_executed='2021-09-04 03:34:11.699105', time_epoch_executed='1630751651.7' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918054

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918054/ft1_4FGL_J1132.7+0034_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918054/ft2_4FGL_J1132.7+0034_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918054/ft1_4FGL_J1132.7+0034_daily_bin163.fits outfile=/scratch/kocevski/918054/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin163.fits ra=173.196 dec=0.5737 rad=12.0 tmin=281577601.0 tmax=281836801.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.59
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918054/ft2_4FGL_J1132.7+0034_daily_bin163.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/918054/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin163.fits evtable="EVENTS" outfile="/scratch/kocevski/918054/ft1_filtered_4FGL_J1132.7+0034_daily_bin163.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/918054/ft1_filtered_4FGL_J1132.7+0034_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/918054/ft2_4FGL_J1132.7+0034_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/918054/ltcube_281577601_281836801_4FGL_J1132.7+0034_daily_bin163.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/918054/ft2_4FGL_J1132.7+0034_daily_bin163.fits
.....................!
real 12.04
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918054/ft1_filtered_4FGL_J1132.7+0034_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/918054/ft2_4FGL_J1132.7+0034_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/918054/ltcube_281577601_281836801_4FGL_J1132.7+0034_daily_bin163.fits outfile=/scratch/kocevski/918054/expmap_281577601_281836801_4FGL_J1132.7+0034_daily_bin163.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/918054/ltcube_281577601_281836801_4FGL_J1132.7+0034_daily_bin163.fits
.....................!
real 190.70
user 185.46
sys 4.92

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/918054/ft1_filtered_4FGL_J1132.7+0034_daily_bin163.fits scfile=/scratch/kocevski/918054/ft2_4FGL_J1132.7+0034_daily_bin163.fits outfile=/scratch/kocevski/918054/cmap_281577601_281836801_4FGL_J1132.7+0034_daily_bin163.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918054/ft1_filtered_4FGL_J1132.7+0034_daily_bin163.fits scfile=/scratch/kocevski/918054/ft2_4FGL_J1132.7+0034_daily_bin163.fits outfile=/scratch/kocevski/918054/cmap_HighResolution_281577601_281836801_4FGL_J1132.7+0034_daily_bin163.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918054/ft1_filtered_4FGL_J1132.7+0034_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/918054/ft2_4FGL_J1132.7+0034_daily_bin163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918054/Model_4FGL_J1132.7+0034_daily_bin163.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/918054/ft1_filtered_4FGL_J1132.7+0034_daily_bin163.fits.....................!
real 50.60
user 49.22
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2802       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1086       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.095       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1097       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.537       1.0000         .10000E-03   10000.    
     9 'norm      '    23.564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15449E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4963       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7432       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.795       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.110       1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.591       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0604       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85377       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=   4932.422     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3735 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2792        2.3215        .74380E-06   -.12836E-02
   2  norm          1.1086        .57497       -.41153E-07    .34240E-04
   3  Prefactor     .10000E-03    2.8767       -.62245E-07** at limit **
   4  Prefactor     .10000E-03    27.425       -.45696E-05** at limit **
   5  Prefactor     30.101        21.965        .33729E-05   -.53073E-04
   6  Prefactor     .10000E-03    27.311       -.43364E-05** at limit **
   7  Prefactor     3.1102        7.2043       -.49140E-05   -.53748E-03
   8  Prefactor     34.516        74.223       -.29787E-04   -.27879E-04
   9  norm          23.565        14.254       -.81537E-06   -.46808E-03
  10  Prefactor     .10003E-03    3.6552        .25535E-05** at limit **
  11  norm          .10000E-03    26.312       -.46440E-05** at limit **
  12  Prefactor     2.4963        1.8758        .68212E-08   -.13086E-03
  13  Prefactor     .10000E-03    55.001       -.12640E-04** at limit **
  14  norm          12.044        7.6536        .52783E-07   -.18996E-03
  15  Prefactor     .10000E-03    4.4125       -.77709E-07** at limit **
  16  Prefactor     .10000E-03    10.366       -.98182E-06** at limit **
  17  Prefactor     .10000E-03    38.354        .95061E-05** at limit **
  18  Prefactor     5.7433        6.8980        .34147E-06   -.62700E-06
  19  Prefactor     .10000E-03    40.190        .10953E-04** at limit **
  20  Prefactor     .10000E-03    3.4056       -.42065E-07** at limit **
  21  Prefactor     13.795        16.774       -.72676E-07   -.73811E-04
  22  Prefactor     .10000E-03    23.458       -.14907E-05** at limit **
  23  Prefactor     .10000E-03    15.704       -.17655E-06** at limit **
  24  Prefactor     33.112        23.258        .67882E-06   -.15676E-04
  25  Prefactor     27.589        44.624       -.17029E-05   -.30328E-05
  26  Prefactor     .10000E-03    8.7064        .65110E-06** at limit **
  27  norm          .10000E-03    .92188        .37176E-07** at limit **
  28  Normalizat    1.0602        .20335        .24726E-06   -.22609E-03
  29  Prefactor     .85391        .16174        .11902E-05   -.25764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27921
  norm       = 1.10857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1014
  Prefactor  = 0.0001
  Prefactor  = 3.11021
  Prefactor  = 34.5156
  norm       = 23.5651
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 2.49633
  Prefactor  = 0.0001
  norm       = 12.044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.7433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1119
  Prefactor  = 27.5894
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.06024
  Prefactor  = 0.853909
 **********
 **   18 **HESSE 
 **********

 FCN=   4932.422     FROM HESSE     STATUS=OK           545 CALLS     4280 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2792        13.510        .19616E-02   -1.5482    
   2  norm          1.1086        .57481        .36795E-04   -1.5497    
   3  Prefactor     .10000E-03    2.8801        .11629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.101        21.912        .73035E-04   -1.4610    
   6  Prefactor     .10000E-03    27.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1102        7.1165        .22994E-03   -1.5355    
   8  Prefactor     34.516        74.112        .68189E-04   -1.4532    
   9  norm          23.565        14.016        .82518E-04   -1.4737    
  10  Prefactor     .10003E-03    20.185        .24314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    26.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4963        1.8796        .80656E-04   -1.5392    
  13  Prefactor     .10000E-03    55.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.044        7.6347        .11543E-03   -1.5014    
  15  Prefactor     .10000E-03    4.5678        .28742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7433        6.8975        .16760E-03   -1.5229    
  19  Prefactor     .10000E-03    40.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.4308        .12656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.795        16.797        .10784E-03   -1.4965    
  22  Prefactor     .10000E-03    23.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.112        23.268        .69639E-04   -1.4556    
  25  Prefactor     27.589        44.670        .76269E-04   -1.4657    
  26  Prefactor     .10000E-03    8.7708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .92469        .65840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0602        .23625        .25988E-03   -.91039    
  29  Prefactor     .85391        .18604        .23365E-03   -.97771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01431e-08
Minuit parameter uncertainties:
  1  8.31637
  2  0.574817
  3  4.24587e-07
  4  4.14222e-05
  5  21.9175
  6  4.29833e-05
  7  7.1184
  8  74.3108
  9  14.0176
  10  0.00143837
  11  7.38985e-05
  12  1.87964
  13  5.78922e-06
  14  7.63527
  15  1.43012e-05
  16  8.38975e-06
  17  2.73694e-05
  18  6.89847
  19  1.30496e-05
  20  4.00183e-06
  21  16.8031
  22  1.62336e-05
  23  6.03225e-06
  24  23.2743
  25  44.7238
  26  1.61941e-05
  27  1.37933e-06
  28  0.236485
  29  0.186178
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.496e+00  1.880e+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:  8.539e-01  1.862e-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.060e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.66
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.70e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.42e-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) = 4931.85504112
delta logL = 0.567195343726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4931.84087417
delta logL = 0.581362293948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1547       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4731       1.0000          .0000       10.000    
     3 'Normalizat'    1.0827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84677       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=   4931.841     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1536        1.8060        .70166E-02   -.12115E-03
   2  Index         1.4727        .43385        .21002       -.44422E-04
   3  Normalizat    1.0827        .19547        .58223E-01    .12384E-04
   4  Prefactor     .84675        .16004        .44323E-01    .10648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15362
  Index      = 1.47269
  Normalizat = 1.08272
  Prefactor  = 0.846754
 **********
 **   18 **HESSE 
 **********

 FCN=   4931.841     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1536        2.1721        .84279E-04   -1.5414    
   2  Index         1.4727        .57416        .83868E-02   -.78307    
   3  Normalizat    1.0827        .22437        .25748E-03   -.90309    
   4  Prefactor     .84675        .18397        .23459E-03   -.98027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86621e-12
Minuit parameter uncertainties:
  1  2.17218
  2  0.576707
  3  0.22457
  4  0.184108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918054': 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) = 4931.84087394
delta logL = 0.581362531817

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.154e+00  2.172e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.473e+00  5.767e-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.468e-01  1.841e-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.083e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.81
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.47 +/- 0.58
Photon Flux (Free Index): 1.50e-08 +/- 1.83e-08
Energy Flux (Free Index): 5.21e-05 +/- 7.03e-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/918054/cmap_HighResolution_281577601_281836801_4FGL_J1132.7+0034_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.70e-08', energy_flux2='5.21e-05', photon_flux_error='2.79e-08', dlogl='5.81e-01', energy_flux='1.88e-05', photon_flux2='1.50e-08', job_status='DONE', time_completed='2021-09-04 03:45:20.167300', photon_index_error2='0.58', photon_index2='1.47', ts='8.66', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='7.03e-05', EG='1.06', time_epoch_completed='1630752320.17', return_code='0', job_id='918054', GAL2='0.85', EG2='1.08', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='1.83e-08', ts2='9.81', photon_index='2.14' WHERE bin_id='163' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:45:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 918054: <4FGL_J1132.7+0034_daily_bin163> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin163> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:31:49 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:31:50 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:31:50 2021
Terminated at Sat Sep  4 03:45:20 2021
Results reported at Sat Sep  4 03:45:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin163 173.196 0.5737 281577601 281836801 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 :                                   666.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

