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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin180
RA = 173.196, Dec = 0.5737
tmin = 285984001, tmax = 286243201
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='918088', job_status='RUN', time_executed='2021-09-04 03:35:04.075565', time_epoch_executed='1630751704.08' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918088

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918088/ft1_4FGL_J1132.7+0034_daily_bin180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918088/ft2_4FGL_J1132.7+0034_daily_bin180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918088/ft1_4FGL_J1132.7+0034_daily_bin180.fits outfile=/scratch/kocevski/918088/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin180.fits ra=173.196 dec=0.5737 rad=12.0 tmin=285984001.0 tmax=286243201.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.37
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918088/ft1_filtered_4FGL_J1132.7+0034_daily_bin180.fits" evtable="EVENTS" scfile=/scratch/kocevski/918088/ft2_4FGL_J1132.7+0034_daily_bin180.fits sctable="SC_DATA" outfile=/scratch/kocevski/918088/ltcube_285984001_286243201_4FGL_J1132.7+0034_daily_bin180.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/918088/ft2_4FGL_J1132.7+0034_daily_bin180.fits
.....................!
real 11.80
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918088/ft1_filtered_4FGL_J1132.7+0034_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/918088/ft2_4FGL_J1132.7+0034_daily_bin180.fits sctable="SC_DATA" expcube=/scratch/kocevski/918088/ltcube_285984001_286243201_4FGL_J1132.7+0034_daily_bin180.fits outfile=/scratch/kocevski/918088/expmap_285984001_286243201_4FGL_J1132.7+0034_daily_bin180.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/918088/ltcube_285984001_286243201_4FGL_J1132.7+0034_daily_bin180.fits
.....................!
real 189.30
user 184.77
sys 4.16

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/918088/ft1_filtered_4FGL_J1132.7+0034_daily_bin180.fits scfile=/scratch/kocevski/918088/ft2_4FGL_J1132.7+0034_daily_bin180.fits outfile=/scratch/kocevski/918088/cmap_285984001_286243201_4FGL_J1132.7+0034_daily_bin180.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918088/ft1_filtered_4FGL_J1132.7+0034_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/918088/ft2_4FGL_J1132.7+0034_daily_bin180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918088/Model_4FGL_J1132.7+0034_daily_bin180.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/918088/ft1_filtered_4FGL_J1132.7+0034_daily_bin180.fits.....................!
real 55.40
user 53.98
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4629       1.0000         .10000E-03   10000.    
     2 'norm      '    .35779       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.868       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15037E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    32.138       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.882       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   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 '    12.924       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.519       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .18035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    44.977       1.0000         .10000E-03   10000.    
    26 'Prefactor '    40.050       1.0000         .10000E-03   10000.    
    27 'norm      '    3.1829       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.6901       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .61044       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=   5444.413     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3711 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4651        8.7844       -.14600E-05   -.29192E-03
   2  norm          .35768        .44680       -.20237E-08   -.26394E-03
   3  Prefactor     8.8702        9.4021       -.48971E-06   -.55773E-04
   4  Prefactor     21.871        19.455       -.12432E-05    .98902E-05
   5  Prefactor     28.985        19.864        .10830E-06   -.75915E-04
   6  Prefactor     .10000E-03    4.3782        .17331E-06** at limit **
   7  Prefactor     .10000E-03    4.7992       -.26066E-07** at limit **
   8  Prefactor     .10000E-03    30.814       -.68241E-06** at limit **
   9  norm          .10000E-03    3.1430        .74647E-07** at limit **
  10  Prefactor     .10001E-03    3.4217        .10114E-05** at limit **
  11  norm          32.118        25.558        .59323E-05   -.17586E-03
  12  Prefactor     .46021        1.8636       -.10052E-05   -.14449E-02
  13  Prefactor     22.843        34.215       -.15276E-04   -.12707E-03
  14  norm          .10000E-03    2.3930        .65977E-07** at limit **
  15  Prefactor     .10000E-03    1.2027       -.82451E-07** at limit **
  16  Prefactor     .10000E-03    9.9781        .62775E-06** at limit **
  17  Prefactor     .10000E-03    112.52        .72833E-04** at limit **
  18  Prefactor     12.927        12.286       -.48013E-06   -.63027E-04
  19  Prefactor     .10000E-03    30.149        .52671E-05** at limit **
  20  Prefactor     .10000E-03    2.4924       -.41767E-07** at limit **
  21  Prefactor     .10000E-03    9.4234       -.63489E-07** at limit **
  22  Prefactor     .10000E-03    39.820       -.99820E-05** at limit **
  23  Prefactor     15.522        32.591       -.31074E-06    .23781E-04
  24  Prefactor     .10001E-03    142.86       -.90834E-04** at limit **
  25  Prefactor     44.982        40.204        .27740E-05    .15395E-04
  26  Prefactor     40.045        22.388        .12235E-05    .84974E-03
  27  norm          3.1823        4.7747        .12261E-05    .47959E-03
  28  Normalizat    1.6896        .22832        .23084E-05    .15403E-03
  29  Prefactor     .61079        .17119       -.53679E-06    .31035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46509
  norm       = 0.357676
  Prefactor  = 8.87016
  Prefactor  = 21.871
  Prefactor  = 28.9854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100012
  norm       = 32.118
  Prefactor  = 0.460209
  Prefactor  = 22.8435
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5224
  Prefactor  = 0.000100011
  Prefactor  = 44.9824
  Prefactor  = 40.0449
  norm       = 3.18227
  Normalizat = 1.68958
  Prefactor  = 0.610789
 **********
 **   18 **HESSE 
 **********

 FCN=   5444.413     FROM HESSE     STATUS=OK           547 CALLS     4258 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4651        8.7956        .26059E-03   -1.5394    
   2  norm          .35768        .41706        .48771E-03   -1.5588    
   3  Prefactor     8.8702        9.3129        .13460E-03   -1.5112    
   4  Prefactor     21.871        19.460        .85653E-04   -1.4772    
   5  Prefactor     28.985        19.808        .74414E-04   -1.4631    
   6  Prefactor     .10000E-03    4.3808        .15075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9856        .31526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1464        .12773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    16.554        .24137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          32.118        24.930        .35340E-03   -1.4574    
  12  Prefactor     .46021        1.8939        .19349E-03   -1.5572    
  13  Prefactor     22.843        33.307        .83737E-04   -1.4752    
  14  norm          .10000E-03    2.3985        .11146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2072        .79016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.9873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    111.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.927        12.309        .11142E-03   -1.4989    
  19  Prefactor     .10000E-03    30.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4942        .11375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.522        32.644        .10167E-03   -1.4920    
  24  Prefactor     .10001E-03    145.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     44.982        40.218        .59782E-04   -1.4366    
  26  Prefactor     40.045        22.268        .63338E-04   -1.4441    
  27  norm          3.1823        4.7228        .15855E-03   -1.5351    
  28  Normalizat    1.6896        .26870        .24144E-03   -.72582    
  29  Prefactor     .61079        .19967        .29499E-03   -1.0713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80855e-09
Minuit parameter uncertainties:
  1  8.80019
  2  0.417059
  3  9.31439
  4  19.4661
  5  19.8125
  6  6.76805e-07
  7  1.06648e-05
  8  2.11923e-06
  9  1.94874e-06
  10  0.000876161
  11  24.9376
  12  1.86707
  13  33.334
  14  8.65172e-06
  15  2.52411e-06
  16  6.43842e-06
  17  0.000176796
  18  12.3114
  19  7.54126e-07
  20  4.74882e-09
  21  1.03383e-05
  22  5.853e-07
  23  32.6812
  24  0.00253707
  25  40.2422
  26  22.2728
  27  4.72338
  28  0.26893
  29  0.199899
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.602e-01  1.867e+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:  6.108e-01  1.999e-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.690e+00  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/918088/likelihoodResults_285984001_286243201_4FGL_J1132.7+0034_daily_bin180.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) = 5444.41165364
delta logL = 0.000879077652826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5444.41156043
delta logL = 0.000972290005848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48199       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0602       1.0000          .0000       10.000    
     3 'Normalizat'    1.6902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61043       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=   5444.412     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      224 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48338        26.009        .11197E-01    .12524E-02
   2  Index         2.0633        1.7255        .50000       -.31035E-04
   3  Normalizat    1.6902        .21280E-01    .54602E-01   -.17293E-03
   4  Prefactor     .61043        .16630E-01    .66678E-01   -.15052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.483378
  Index      = 2.06327
  Normalizat = 1.69019
  Prefactor  = 0.610432
 **********
 **   18 **HESSE 
 **********

 FCN=   5444.412     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48338        2.0418        .19656E-03   -1.5569    
   2  Index         2.0633        1.5865        .84846E-02   -.62778    
   3  Normalizat    1.6902        .25260        .24141E-03   -.72565    
   4  Prefactor     .61043        .19750        .29507E-03   -1.0715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22151e-10
Minuit parameter uncertainties:
  1  1.98683
  2  1.63027
  3  0.252792
  4  0.197721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918088': 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) = 5444.411558
delta logL = 0.000974721458988

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.834e-01  1.987e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.063e+00  1.630e+00  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:  6.104e-01  1.977e-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.690e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 173.196 0.574

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/918088/cmap_HighResolution_285984001_286243201_4FGL_J1132.7+0034_daily_bin180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-04 03:48:23.307923', job_id='918088', GAL2='0.61', fit_tolerance='1e-08', EG2='1.69', EG='1.69', time_epoch_completed='1630752503.31', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='9.75e-04', ts2='0.07', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='180' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:48:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 918088: <4FGL_J1132.7+0034_daily_bin180> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin180 173.196 0.5737 285984001 286243201 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 :                                   794.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

