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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin555
RA = 173.196, Dec = 0.5737
tmin = 383184001, tmax = 383443201
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='919614', job_status='RUN', time_executed='2021-09-04 03:38:31.593206', time_epoch_executed='1630751911.59' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919614/ft1_4FGL_J1132.7+0034_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919614/ft2_4FGL_J1132.7+0034_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919614/ft1_4FGL_J1132.7+0034_daily_bin555.fits outfile=/scratch/kocevski/919614/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin555.fits ra=173.196 dec=0.5737 rad=12.0 tmin=383184001.0 tmax=383443201.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.41
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919614/ft1_filtered_4FGL_J1132.7+0034_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/919614/ft2_4FGL_J1132.7+0034_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/919614/ltcube_383184001_383443201_4FGL_J1132.7+0034_daily_bin555.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/919614/ft2_4FGL_J1132.7+0034_daily_bin555.fits
.....................!
real 11.89
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919614/ft1_filtered_4FGL_J1132.7+0034_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/919614/ft2_4FGL_J1132.7+0034_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/919614/ltcube_383184001_383443201_4FGL_J1132.7+0034_daily_bin555.fits outfile=/scratch/kocevski/919614/expmap_383184001_383443201_4FGL_J1132.7+0034_daily_bin555.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/919614/ltcube_383184001_383443201_4FGL_J1132.7+0034_daily_bin555.fits
.....................!
real 189.30
user 184.78
sys 4.09

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/919614/ft1_filtered_4FGL_J1132.7+0034_daily_bin555.fits scfile=/scratch/kocevski/919614/ft2_4FGL_J1132.7+0034_daily_bin555.fits outfile=/scratch/kocevski/919614/cmap_383184001_383443201_4FGL_J1132.7+0034_daily_bin555.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919614/ft1_filtered_4FGL_J1132.7+0034_daily_bin555.fits scfile=/scratch/kocevski/919614/ft2_4FGL_J1132.7+0034_daily_bin555.fits outfile=/scratch/kocevski/919614/cmap_HighResolution_383184001_383443201_4FGL_J1132.7+0034_daily_bin555.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/919614/ft1_filtered_4FGL_J1132.7+0034_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/919614/ft2_4FGL_J1132.7+0034_daily_bin555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919614/Model_4FGL_J1132.7+0034_daily_bin555.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/919614/ft1_filtered_4FGL_J1132.7+0034_daily_bin555.fits.....................!
real 49.19
user 47.78
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .46612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20208E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8353       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11248E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5756       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.316       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2245       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15791E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.249       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.480       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.038       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.685       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.2636       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.242       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2616       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78143       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=   4689.165     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3682 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2256        .96291E-08** at limit **
   2  norm          .46648        .46847        .91265E-07   -.95271E-03
   3  Prefactor     .10001E-03    6.7882        .16674E-05** at limit **
   4  Prefactor     9.8324        17.091        .18935E-06   -.27008E-04
   5  Prefactor     .10000E-03    4.3907        .17694E-08** at limit **
   6  Prefactor     17.612        13.025       -.28239E-06   -.45898E-04
   7  Prefactor     .10000E-03    2.1989       -.69419E-07** at limit **
   8  Prefactor     .10000E-03    94.847       -.12944E-06** at limit **
   9  norm          1.5723        13.037        .28384E-05    .63363E-04
  10  Prefactor     .10000E-03    3.6175       -.24040E-06** at limit **
  11  norm          .10000E-03    18.323        .10815E-06** at limit **
  12  Prefactor     .10000E-03    1.4076        .51301E-07** at limit **
  13  Prefactor     26.299        30.185       -.37232E-06   -.51456E-04
  14  norm          1.0320        10.191        .28788E-05    .99786E-04
  15  Prefactor     1.2248        4.1906        .84552E-06   -.14552E-04
  16  Prefactor     .10000E-03    13.550       -.89191E-07** at limit **
  17  Prefactor     .10000E-03    128.51        .95012E-06** at limit **
  18  Prefactor     12.246        10.539        .67528E-07    .83089E-05
  19  Prefactor     20.480        52.601       -.17605E-05   -.34984E-04
  20  Prefactor     .10000E-03    5.4230        .89589E-08** at limit **
  21  Prefactor     .10000E-03    16.320       -.11355E-06** at limit **
  22  Prefactor     15.049        47.251        .21136E-06    .44955E-05
  23  Prefactor     .10000E-03    25.755       -.28511E-06** at limit **
  24  Prefactor     20.703        20.256        .68601E-07    .99507E-05
  25  Prefactor     5.1839        54.090       -.11033E-05   -.74030E-04
  26  Prefactor     12.240        10.208        .13208E-07   -.11195E-04
  27  norm          .10000E-03    1.0006       -.18174E-08** at limit **
  28  Normalizat    1.2617        .21897        .52547E-07   -.18725E-03
  29  Prefactor     .78139        .18084       -.82833E-06   -.16964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.466476
  Prefactor  = 0.000100015
  Prefactor  = 9.83237
  Prefactor  = 0.0001
  Prefactor  = 17.6119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57231
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2988
  norm       = 1.03198
  Prefactor  = 1.22483
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.2459
  Prefactor  = 20.48
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.049
  Prefactor  = 0.0001
  Prefactor  = 20.7031
  Prefactor  = 5.18389
  Prefactor  = 12.2395
  norm       = 0.0001
  Normalizat = 1.2617
  Prefactor  = 0.781391
 **********
 **   18 **HESSE 
 **********

 FCN=   4689.165     FROM HESSE     STATUS=OK           555 CALLS     4237 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2288        .99768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .46648        .43782        .43641E-03   -1.5571    
   3  Prefactor     .10001E-03    13.941        .29554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8324        17.097        .12778E-03   -1.5081    
   5  Prefactor     .10000E-03    4.3921        .14013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.612        12.965        .95439E-04   -1.4868    
   7  Prefactor     .10000E-03    2.2140        .99107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    95.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5723        13.312        .33851E-03   -1.5457    
  10  Prefactor     .10000E-03    3.6565        .12692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    18.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4477        .15858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.299        30.096        .78092E-04   -1.4682    
  14  norm          1.0320        9.5948        .38185E-03   -1.5505    
  15  Prefactor     1.2248        3.9171        .21886E-03   -1.5487    
  16  Prefactor     .10000E-03    13.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    129.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.246        10.547        .11445E-03   -1.5008    
  19  Prefactor     20.480        52.271        .88506E-04   -1.4803    
  20  Prefactor     .10000E-03    5.4869        .15571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.049        47.178        .10328E-03   -1.4932    
  23  Prefactor     .10000E-03    25.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.703        20.256        .88065E-04   -1.4798    
  25  Prefactor     5.1839        55.108        .17519E-03   -1.5253    
  26  Prefactor     12.240        10.183        .11449E-03   -1.5008    
  27  norm          .10000E-03    1.0032        .66738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2617        .26143        .24292E-03   -.84717    
  29  Prefactor     .78139        .21515        .24455E-03   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35763e-09
Minuit parameter uncertainties:
  1  4.5746e-07
  2  0.437818
  3  0.000906615
  4  17.1051
  5  5.22402e-07
  6  12.967
  7  5.92951e-06
  8  0.000161351
  9  9.15232
  10  1.86671e-05
  11  8.40219e-05
  12  2.12109e-06
  13  30.1137
  14  6.29441
  15  3.91792
  16  4.07797e-05
  17  0.00107418
  18  10.5486
  19  52.3882
  20  3.91288e-06
  21  0.00010581
  22  47.2952
  23  3.64643e-05
  24  20.2632
  25  33.8435
  26  10.1843
  27  6.36128e-08
  28  0.261706
  29  0.215384
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.121e-06  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.814e-01  2.154e-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.262e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/919614/likelihoodResults_383184001_383443201_4FGL_J1132.7+0034_daily_bin555.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) = 4689.16848146
delta logL = -0.00327581134297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4689.16520587
delta logL = -2.25110852625e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1351       1.0000          .0000       10.000    
     3 'Normalizat'    1.2617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78143       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=   4689.165     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7346        .90712E-02** at limit **
   2  Index         2.1346        8.1673        .50000        .26231E-05
   3  Normalizat    1.2617        .59707E-02    .54936E-01    .47168E-04
   4  Prefactor     .78139        .48781E-02    .43475E-01    .65600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13461
  Normalizat = 1.2617
  Prefactor  = 0.781391
 **********
 **   18 **HESSE 
 **********

 FCN=   4689.165     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.20        .15858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1346        8.9211        .50000       -.61026    
   3  Normalizat    1.2617        .55089E-01    .24292E-03   -.84717    
   4  Prefactor     .78139        .44997E-01    .24455E-03   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.19198e-08
Minuit parameter uncertainties:
  1  0.00017461
  2  325.359
  3  0.0550918
  4  0.0449991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919614': 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): 102
logL (Free Index) = 4689.16520564
delta logL = 5.17502485309e-10

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.746e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.135e+00  3.254e+02  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.814e-01  4.500e-02  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.262e+00  5.509e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/919614/cmap_HighResolution_383184001_383443201_4FGL_J1132.7+0034_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-04 03:50:31.347785', job_id='919614', GAL2='0.78', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630752631.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.18e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='555' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:50:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 919614: <4FGL_J1132.7+0034_daily_bin555> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin555> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 03:36:14 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:36:16 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:16 2021
Terminated at Sat Sep  4 03:50:32 2021
Results reported at Sat Sep  4 03:50:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin555 173.196 0.5737 383184001 383443201 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            858 sec.

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

