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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin595
RA = 173.196, Dec = 0.5737
tmin = 393552001, tmax = 393811201
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='919673', job_status='RUN', time_executed='2021-09-04 03:40:13.712816', time_epoch_executed='1630752013.71' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919673

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919673/ft1_4FGL_J1132.7+0034_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919673/ft2_4FGL_J1132.7+0034_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919673/ft1_4FGL_J1132.7+0034_daily_bin595.fits outfile=/scratch/kocevski/919673/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin595.fits ra=173.196 dec=0.5737 rad=12.0 tmin=393552001.0 tmax=393811201.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 2.70
user 2.46
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919673/ft1_filtered_4FGL_J1132.7+0034_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/919673/ft2_4FGL_J1132.7+0034_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/919673/ltcube_393552001_393811201_4FGL_J1132.7+0034_daily_bin595.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/919673/ft2_4FGL_J1132.7+0034_daily_bin595.fits
.....................!
real 9.11
user 8.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919673/ft1_filtered_4FGL_J1132.7+0034_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/919673/ft2_4FGL_J1132.7+0034_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/919673/ltcube_393552001_393811201_4FGL_J1132.7+0034_daily_bin595.fits outfile=/scratch/kocevski/919673/expmap_393552001_393811201_4FGL_J1132.7+0034_daily_bin595.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/919673/ltcube_393552001_393811201_4FGL_J1132.7+0034_daily_bin595.fits
.....................!
real 145.81
user 141.34
sys 4.14

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/919673/ft1_filtered_4FGL_J1132.7+0034_daily_bin595.fits scfile=/scratch/kocevski/919673/ft2_4FGL_J1132.7+0034_daily_bin595.fits outfile=/scratch/kocevski/919673/cmap_393552001_393811201_4FGL_J1132.7+0034_daily_bin595.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.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919673/ft1_filtered_4FGL_J1132.7+0034_daily_bin595.fits scfile=/scratch/kocevski/919673/ft2_4FGL_J1132.7+0034_daily_bin595.fits outfile=/scratch/kocevski/919673/cmap_HighResolution_393552001_393811201_4FGL_J1132.7+0034_daily_bin595.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.46
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919673/ft1_filtered_4FGL_J1132.7+0034_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/919673/ft2_4FGL_J1132.7+0034_daily_bin595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919673/Model_4FGL_J1132.7+0034_daily_bin595.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/919673/ft1_filtered_4FGL_J1132.7+0034_daily_bin595.fits.....................!
real 52.06
user 50.69
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.171       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4149       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2527       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10829E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5124       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15459E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19125E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11941E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32715E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1516       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.236       1.0000         .10000E-03   10000.    
    22 'Prefactor '    61.940       1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.240       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0936       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.190       1.0000         .10000E-03   10000.    
    27 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87907       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2546       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=   7404.995     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3811 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7654        .16042E-06** at limit **
   2  norm          .10000E-03    .12810        .63209E-07** at limit **
   3  Prefactor     .10000E-03    2.2183        .12759E-06** at limit **
   4  Prefactor     16.182        19.653       -.46100E-06   -.12784E-04
   5  Prefactor     6.4196        11.655       -.24185E-05   -.10661E-03
   6  Prefactor     .10000E-03    4.3862       -.10310E-06** at limit **
   7  Prefactor     5.2538        4.5206       -.17562E-06   -.40514E-03
   8  Prefactor     .10000E-03    18.859       -.17252E-06** at limit **
   9  norm          2.5099        7.7086       -.69234E-06   -.22636E-03
  10  Prefactor     .10003E-03    4.0613        .35007E-05** at limit **
  11  norm          .10000E-03    6.9719        .72954E-07** at limit **
  12  Prefactor     .10123        1.1169       -.83771E-06   -.81388E-03
  13  Prefactor     .10000E-03    45.190        .13749E-06** at limit **
  14  norm          .10000E-03    3.5836        .26572E-06** at limit **
  15  Prefactor     .10000E-03    1.6469        .28334E-06** at limit **
  16  Prefactor     .10000E-03    7.4732        .21667E-06** at limit **
  17  Prefactor     .10015E-03    817.19       -.72560E-05** at limit **
  18  Prefactor     .10000E-03    53.972        .14878E-04** at limit **
  19  Prefactor     6.1507        50.440       -.17168E-05   -.29959E-04
  20  Prefactor     .10000E-03    2.4511        .51326E-06** at limit **
  21  Prefactor     10.239        14.275       -.35750E-06   -.76774E-04
  22  Prefactor     61.935        43.904       -.17217E-06   -.40458E-04
  23  Prefactor     43.340        36.447       -.10986E-05    .90244E-04
  24  Prefactor     4.0911        16.143       -.54478E-05   -.30879E-04
  25  Prefactor     .10000E-03    15.361        .64731E-06** at limit **
  26  Prefactor     17.185        11.947        .33413E-06    .20048E-04
  27  norm          .10000E-03    .80084        .22884E-07** at limit **
  28  Normalizat    .87901        .18950       -.77114E-06   -.40685E-03
  29  Prefactor     1.2546        .15215        .28843E-06   -.76714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1818
  Prefactor  = 6.41956
  Prefactor  = 0.0001
  Prefactor  = 5.25383
  Prefactor  = 0.0001
  norm       = 2.50989
  Prefactor  = 0.00010003
  norm       = 0.0001
  Prefactor  = 0.101225
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010015
  Prefactor  = 0.000100001
  Prefactor  = 6.15071
  Prefactor  = 0.0001
  Prefactor  = 10.2389
  Prefactor  = 61.9347
  Prefactor  = 43.3403
  Prefactor  = 4.09115
  Prefactor  = 0.0001
  Prefactor  = 17.1851
  norm       = 0.0001
  Normalizat = 0.879006
  Prefactor  = 1.25463
 **********
 **   18 **HESSE 
 **********

 FCN=   7404.995     FROM HESSE     STATUS=OK           557 CALLS     4368 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7794        .13978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .16030        .60080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.2309        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.182        19.671        .99598E-04   -1.4903    
   5  Prefactor     6.4196        11.655        .79234E-03   -1.5201    
   6  Prefactor     .10000E-03    4.3858        .17571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2538        4.4762        .15414E-03   -1.5250    
   8  Prefactor     .10000E-03    18.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5099        7.4791        .25777E-03   -1.5391    
  10  Prefactor     .10003E-03    29.416        .22254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.9773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10123        4.2919        .15577E-02   -1.5644    
  13  Prefactor     .10000E-03    45.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.6502        .15888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8904        .20867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10015E-03    814.82        .36331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    59.900        .39867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.1507        49.265        .16186E-03   -1.5212    
  20  Prefactor     .10000E-03    2.4645        .13176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.239        14.213        .12524E-03   -1.5068    
  22  Prefactor     61.935        43.818        .50985E-04   -1.4132    
  23  Prefactor     43.340        36.288        .60966E-04   -1.4390    
  24  Prefactor     4.0911        16.185        .99629E-03   -1.5303    
  25  Prefactor     .10000E-03    15.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.185        11.921        .96600E-04   -1.4879    
  27  norm          .10000E-03    .80268        .75090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87901        .22323        .30336E-03   -.97202    
  29  Prefactor     1.2546        .18073        .21584E-03   -.84666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24641e-09
Minuit parameter uncertainties:
  1  3.5703e-06
  2  2.41386e-07
  3  1.8005e-06
  4  19.6787
  5  11.6591
  6  4.08075e-05
  7  4.47653
  8  2.80723e-05
  9  7.48189
  10  0.00188791
  11  2.01213e-07
  12  1.3177
  13  0.00023732
  14  5.37103e-06
  15  1.37702e-05
  16  1.35466e-05
  17  0.0224542
  18  0.000385426
  19  34.8539
  20  1.53472e-05
  21  14.2173
  22  43.8407
  23  36.3064
  24  16.2023
  25  2.06361e-05
  26  11.9231
  27  2.84133e-06
  28  0.223463
  29  0.180824
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.012e-01  1.318e+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:  1.255e+00  1.808e-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:  8.790e-01  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/919673/likelihoodResults_393552001_393811201_4FGL_J1132.7+0034_daily_bin595.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) = 7404.48679886
delta logL = 0.508230525859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7404.48543485
delta logL = 0.509594535258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74779       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2506       1.0000          .0000       10.000    
     3 'Normalizat'    .88233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2477       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=   7404.485     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      239 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74780        1.3825        .23535E-01    .11422E-02
   2  Index         1.2506        .48021        .30886       -.65828E-04
   3  Normalizat    .88235        .17890        .68423E-01    .23044E-04
   4  Prefactor     1.2477        .14989        .48915E-01    .12134E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.747797
  Index      = 1.2506
  Normalizat = 0.882353
  Prefactor  = 1.24773
 **********
 **   18 **HESSE 
 **********

 FCN=   7404.485     FROM HESSE     STATUS=OK            35 CALLS      274 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74780        1.2375        .12408E-02   -1.5535    
   2  Index         1.2506        .65284        .11327E-01   -.84788    
   3  Normalizat    .88235        .21293        .30271E-03   -.97083    
   4  Prefactor     1.2477        .17864        .21624E-03   -.84875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51602e-09
Minuit parameter uncertainties:
  1  1.23753
  2  0.657154
  3  0.213129
  4  0.178724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919673': 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) = 7404.48543484
delta logL = 0.509594541832

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  7.478e-01  1.238e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.251e+00  6.572e-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:  1.248e+00  1.787e-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:  8.824e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.25 +/- 0.66
Photon Flux (Free Index): 4.94e-09 +/- 7.99e-09
Energy Flux (Free Index): 3.54e-05 +/- 6.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/919673/cmap_HighResolution_393552001_393811201_4FGL_J1132.7+0034_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', comment='SUCCESS', energy_flux2='3.54e-05', dlogl='5.10e-01', photon_flux2='4.94e-09', job_status='DONE', time_completed='2021-09-04 03:52:48.030237', photon_index_error2='0.66', photon_index2='1.25', ts='0.01', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='6.35e-08', energy_flux_error2='6.32e-05', EG='0.88', time_epoch_completed='1630752768.03', return_code='0', job_id='919673', GAL2='1.25', EG2='0.88', return_code2='0', photon_flux_error2='7.99e-09', ts2='1.03', photon_index='2.14' WHERE bin_id='595' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 919673: <4FGL_J1132.7+0034_daily_bin595> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin595 173.196 0.5737 393552001 393811201 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 :                                   751.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

