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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin583
RA = 173.196, Dec = 0.5737
tmin = 390441601, tmax = 390700801
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='919656', job_status='RUN', time_executed='2021-09-04 03:39:18.917561', time_epoch_executed='1630751958.92' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919656

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919656/ft1_4FGL_J1132.7+0034_daily_bin583.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919656/ft2_4FGL_J1132.7+0034_daily_bin583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919656/ft1_4FGL_J1132.7+0034_daily_bin583.fits outfile=/scratch/kocevski/919656/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin583.fits ra=173.196 dec=0.5737 rad=12.0 tmin=390441601.0 tmax=390700801.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.57
user 3.40
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919656/ft2_4FGL_J1132.7+0034_daily_bin583.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/919656/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin583.fits evtable="EVENTS" outfile="/scratch/kocevski/919656/ft1_filtered_4FGL_J1132.7+0034_daily_bin583.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/919656/ft1_filtered_4FGL_J1132.7+0034_daily_bin583.fits" evtable="EVENTS" scfile=/scratch/kocevski/919656/ft2_4FGL_J1132.7+0034_daily_bin583.fits sctable="SC_DATA" outfile=/scratch/kocevski/919656/ltcube_390441601_390700801_4FGL_J1132.7+0034_daily_bin583.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/919656/ft2_4FGL_J1132.7+0034_daily_bin583.fits
.....................!
real 11.92
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919656/ft1_filtered_4FGL_J1132.7+0034_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/919656/ft2_4FGL_J1132.7+0034_daily_bin583.fits sctable="SC_DATA" expcube=/scratch/kocevski/919656/ltcube_390441601_390700801_4FGL_J1132.7+0034_daily_bin583.fits outfile=/scratch/kocevski/919656/expmap_390441601_390700801_4FGL_J1132.7+0034_daily_bin583.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/919656/ltcube_390441601_390700801_4FGL_J1132.7+0034_daily_bin583.fits
.....................!
real 191.08
user 186.14
sys 4.49

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/919656/ft1_filtered_4FGL_J1132.7+0034_daily_bin583.fits scfile=/scratch/kocevski/919656/ft2_4FGL_J1132.7+0034_daily_bin583.fits outfile=/scratch/kocevski/919656/cmap_390441601_390700801_4FGL_J1132.7+0034_daily_bin583.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.52
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919656/ft1_filtered_4FGL_J1132.7+0034_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/919656/ft2_4FGL_J1132.7+0034_daily_bin583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919656/Model_4FGL_J1132.7+0034_daily_bin583.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/919656/ft1_filtered_4FGL_J1132.7+0034_daily_bin583.fits......................!
real 23.99
user 22.77
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.552       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5481       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.664       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.384       1.0000         .10000E-03   10000.    
    11 'norm      '    .10517E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39205E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.909       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11566E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    66.347       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11765E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .76853       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .42583       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3092       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=   1352.828     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3633 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.552        25.614        .16552E-06    .91615E-05
   2  norm          1.5482        1.4394        .66511E-08    .12344E-03
   3  Prefactor     .10000E-03    13.006       -.81050E-06** at limit **
   4  Prefactor     19.661        49.036       -.11928E-05    .56686E-05
   5  Prefactor     .10000E-03    518.65        .91908E-05** at limit **
   6  Prefactor     .10000E-03    126.02       -.96904E-04** at limit **
   7  Prefactor     .10000E-03    38.586        .65689E-05** at limit **
   8  Prefactor     .10000E-03    6830.1       -.15423E-02** at limit **
   9  norm          .10000E-03    91.038        .19907E-04** at limit **
  10  Prefactor     20.334        51.981        .45536E-05    .15115E-03
  11  norm          .10000E-03    157.41       -.40689E-05** at limit **
  12  Prefactor     4.6376        11.460        .10264E-05    .96367E-04
  13  Prefactor     .10001E-03    932.39       -.25487E-03** at limit **
  14  norm          .10000E-03    28.771       -.25130E-04** at limit **
  15  Prefactor     .10000E-03    17.882        .96716E-05** at limit **
  16  Prefactor     .10000E-03    20.400       -.15314E-04** at limit **
  17  Prefactor     52.939        250.61        .35783E-04   -.10533E-04
  18  Prefactor     .10000E-03    13.967        .45659E-05** at limit **
  19  Prefactor     .10000E-03    176.51        .69754E-04** at limit **
  20  Prefactor     .10000E-03    4.6706        .10973E-06** at limit **
  21  Prefactor     66.252        86.364       -.56225E-04    .12548E-04
  22  Prefactor     .10000E-03    173.31        .58381E-04** at limit **
  23  Prefactor     .10000E-03    25.718        .29685E-04** at limit **
  24  Prefactor     .10000E-03    14.785       -.62252E-05** at limit **
  25  Prefactor     .10000E-03    27.652       -.23805E-05** at limit **
  26  Prefactor     .10000E-03    11.406       -.43228E-08** at limit **
  27  norm          .76632        4.5783       -.18699E-07   -.15714E-03
  28  Normalizat    .42530        .51393       -.63302E-05    .31050E-04
  29  Prefactor     1.3097        .40587        .30910E-05    .34886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5525
  norm       = 1.54818
  Prefactor  = 0.0001
  Prefactor  = 19.6607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.3343
  norm       = 0.0001
  Prefactor  = 4.6376
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.939
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 66.2523
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.766317
  Normalizat = 0.425302
  Prefactor  = 1.30967
 **********
 **   18 **HESSE 
 **********

 FCN=   1352.828     FROM HESSE     STATUS=OK           539 CALLS     4172 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.552        25.601        .92989E-04   -1.4846    
   2  norm          1.5482        1.4567        .41150E-04   -1.5459    
   3  Prefactor     .10000E-03    13.015        .12957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.661        48.759        .90321E-04   -1.4821    
   5  Prefactor     .10000E-03    518.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    126.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6830.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    91.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.334        51.858        .44357E-03   -1.4806    
  11  norm          .10000E-03    157.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6376        11.358        .17218E-03   -1.5277    
  13  Prefactor     .10001E-03    933.71        .19519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    28.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.884        .15197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.399        .16231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.939        247.67        .55140E-04   -1.4251    
  18  Prefactor     .10000E-03    14.011        .13418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    176.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.6709        .77645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     66.252        86.313        .24636E-03   -1.4078    
  22  Prefactor     .10000E-03    173.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.784        .13816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.407        .12127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .76632        4.4514        .15208E-03   -1.5533    
  28  Normalizat    .42530        .54203        .39547E-03   -1.1601    
  29  Prefactor     1.3097        .44193        .20129E-03   -.83020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21879e-10
Minuit parameter uncertainties:
  1  25.6164
  2  1.45671
  3  7.40016e-08
  4  48.8585
  5  3.31204e-06
  6  2.92345e-05
  7  1.01491e-05
  8  7.74095e-05
  9  6.08999e-05
  10  51.9731
  11  4.42832e-05
  12  11.363
  13  0.00750997
  14  6.40714e-05
  15  4.6097e-05
  16  2.78562e-05
  17  230.592
  18  0.000116853
  19  0.000683448
  20  8.01357e-07
  21  86.4768
  22  0.0012688
  23  3.59313e-05
  24  4.18262e-05
  25  2.77224e-05
  26  2.73898e-05
  27  3.69405
  28  0.548932
  29  0.443209
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.638e+00  1.136e+01  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:  1.310e+00  4.432e-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:  4.253e-01  5.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 4.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919656/likelihoodResults_390441601_390700801_4FGL_J1132.7+0034_daily_bin583.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) = 1352.13918511
delta logL = 0.688852628253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1352.09785031
delta logL = 0.73018742318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2558       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4047       1.0000          .0000       10.000    
     3 'Normalizat'    .24484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4010       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=   1352.098     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      280 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2549        6.9312        .45966E-04    .50356E-03
   2  Index         3.4044        1.5372        .30992E-02    .61143E-04
   3  Normalizat    .24575        .51414        .51467E-03   -.35591E-04
   4  Prefactor     1.4002        .44714        .19499E-03   -.16223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.25492
  Index      = 3.4044
  Normalizat = 0.245754
  Prefactor  = 1.40025
 **********
 **   18 **HESSE 
 **********

 FCN=   1352.098     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2549        5.2581        .18386E-05   -1.5408    
   2  Index         3.4044        1.1743        .12397E-03   -.32480    
   3  Normalizat    .24575        .51231        .20587E-04   -1.2623    
   4  Prefactor     1.4002        .44301        .38997E-04   -.80373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0217e-10
Minuit parameter uncertainties:
  1  5.25915
  2  1.18669
  3  0.52259
  4  0.444223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919656': 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) = 1352.09784846
delta logL = 0.730189281296

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.255e+00  5.259e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  3.404e+00  1.187e+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:  1.400e+00  4.442e-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:  2.458e-01  5.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 173.196 0.574
Photon Index (Free Index): 3.40 +/- 1.19
Photon Flux (Free Index): 3.33e-07 +/- 3.10e-07
Energy Flux (Free Index): 5.69e-05 +/- 5.24e-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/919656/cmap_HighResolution_390441601_390700801_4FGL_J1132.7+0034_daily_bin583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-02', comment='SUCCESS', energy_flux2='5.69e-05', dlogl='7.30e-01', photon_flux2='3.33e-07', job_status='DONE', time_completed='2021-09-04 03:46:28.711028', photon_index_error2='1.19', photon_index2='3.40', ts='0.22', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='4.42e-07', energy_flux_error2='5.24e-05', EG='0.43', time_epoch_completed='1630752388.71', return_code='0', job_id='919656', GAL2='1.40', EG2='0.25', return_code2='0', photon_flux_error2='3.10e-07', ts2='1.83', photon_index='2.14' WHERE bin_id='583' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:46:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 919656: <4FGL_J1132.7+0034_daily_bin583> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin583> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 03:36:18 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:36:19 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:19 2021
Terminated at Sat Sep  4 03:46:29 2021
Results reported at Sat Sep  4 03:46:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin583 173.196 0.5737 390441601 390700801 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 :                                   426.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

