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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin498
RA = 173.196, Dec = 0.5737
tmin = 368409601, tmax = 368668801
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='919531', job_status='RUN', time_executed='2021-09-04 03:39:06.297608', time_epoch_executed='1630751946.3' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919531

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919531/ft1_4FGL_J1132.7+0034_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919531/ft2_4FGL_J1132.7+0034_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919531/ft1_4FGL_J1132.7+0034_daily_bin498.fits outfile=/scratch/kocevski/919531/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin498.fits ra=173.196 dec=0.5737 rad=12.0 tmin=368409601.0 tmax=368668801.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.28
user 3.04
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919531/ft1_filtered_4FGL_J1132.7+0034_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/919531/ft2_4FGL_J1132.7+0034_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/919531/ltcube_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.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/919531/ft2_4FGL_J1132.7+0034_daily_bin498.fits
.....................!
real 12.07
user 11.53
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919531/ft1_filtered_4FGL_J1132.7+0034_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/919531/ft2_4FGL_J1132.7+0034_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/919531/ltcube_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.fits outfile=/scratch/kocevski/919531/expmap_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.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/919531/ltcube_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.fits
.....................!
real 193.02
user 187.43
sys 5.20

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/919531/ft1_filtered_4FGL_J1132.7+0034_daily_bin498.fits scfile=/scratch/kocevski/919531/ft2_4FGL_J1132.7+0034_daily_bin498.fits outfile=/scratch/kocevski/919531/cmap_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.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.53
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919531/ft1_filtered_4FGL_J1132.7+0034_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/919531/ft2_4FGL_J1132.7+0034_daily_bin498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919531/Model_4FGL_J1132.7+0034_daily_bin498.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/919531/ft1_filtered_4FGL_J1132.7+0034_daily_bin498.fits.....................!
real 58.82
user 57.41
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/919531/ft1_filtered_4FGL_J1132.7+0034_daily_bin498.fits', '/scratch/kocevski/919531/ft2_4FGL_J1132.7+0034_daily_bin498.fits', expMap='/scratch/kocevski/919531/expmap_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.fits', expCube='/scratch/kocevski/919531/ltcube_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/919531/Model_4FGL_J1132.7+0034_daily_bin498.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/919531/ft1_filtered_4FGL_J1132.7+0034_daily_bin498.fits
Spacecraft file(s): /scratch/kocevski/919531/ft2_4FGL_J1132.7+0034_daily_bin498.fits
Exposure map: /scratch/kocevski/919531/expmap_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.fits
Exposure cube: /scratch/kocevski/919531/ltcube_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/919531/Model_4FGL_J1132.7+0034_daily_bin498.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6132.78373553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1900       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0820       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    79.051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26720E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0579       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0763       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    39.432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8712       1.0000         .10000E-03   10000.    
    11 'norm      '    .11768E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.614       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12572E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12113E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .83226       1.0000         .10000E-03   10000.    
    19 'Prefactor '    86.543       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.217       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17529E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11688E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3948       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.141       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.8338       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .41496       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.6780       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=   6132.625     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3261 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1889        8.5100        .89612E-06   -.86250E-03
   2  norm          2.0822        .71929        .57890E-07    .32668E-03
   3  Prefactor     .10000E-03    3.1215       -.18830E-06** at limit **
   4  Prefactor     79.045        34.363       -.12400E-05   -.31317E-04
   5  Prefactor     .10000E-03    57.517        .60243E-05** at limit **
   6  Prefactor     1.0726        10.393       -.56551E-06   -.94102E-04
   7  Prefactor     3.0739        4.5158        .15037E-05   -.23002E-02
   8  Prefactor     .10000E-03    30.985       -.75202E-05** at limit **
   9  norm          39.432        16.100       -.13144E-06    .76928E-04
  10  Prefactor     1.8730        5.4839       -.24776E-05   -.46334E-03
  11  norm          .10000E-03    26.131        .95984E-05** at limit **
  12  Prefactor     .10000E-03    1.7680        .27872E-06** at limit **
  13  Prefactor     15.633        36.889        .12907E-04    .11202E-03
  14  norm          .10000E-03    4.6994        .17507E-06** at limit **
  15  Prefactor     .10002E-03    2.4503       -.70457E-07** at limit **
  16  Prefactor     .10000E-03    8.1547        .22740E-06** at limit **
  17  Prefactor     .10000E-03    110.36       -.64873E-05** at limit **
  18  Prefactor     .83001        18.131       -.11684E-05   -.16380E-03
  19  Prefactor     86.531        62.543       -.56582E-05   -.21836E-04
  20  Prefactor     18.217        11.208       -.16510E-06    .26858E-04
  21  Prefactor     .10000E-03    40.274       -.10487E-04** at limit **
  22  Prefactor     .10000E-03    49.036        .13594E-04** at limit **
  23  Prefactor     7.3988        90.348        .83279E-05    .21699E-04
  24  Prefactor     10.140        17.523        .21836E-06    .19243E-04
  25  Prefactor     .10000E-03    17.181       -.19931E-05** at limit **
  26  Prefactor     .10000E-03    12.646        .28844E-05** at limit **
  27  norm          1.8340        2.0146        .10316E-06    .29791E-04
  28  Normalizat    .41511        .26818       -.50064E-05    .25968E-04
  29  Prefactor     1.6778        .21285        .16356E-05    .57691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18894
  norm       = 2.08215
  Prefactor  = 0.0001
  Prefactor  = 79.0451
  Prefactor  = 0.0001
  Prefactor  = 1.07264
  Prefactor  = 3.07386
  Prefactor  = 0.0001
  norm       = 39.4316
  Prefactor  = 1.87302
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6325
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.830014
  Prefactor  = 86.5313
  Prefactor  = 18.2167
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 7.39884
  Prefactor  = 10.1399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.834
  Normalizat = 0.415114
  Prefactor  = 1.67779
 **********
 **   18 **HESSE 
 **********

 FCN=   6132.625     FROM HESSE     STATUS=OK           555 CALLS     3816 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1889        8.9557        .98442E-03   -1.5299    
   2  norm          2.0822        .71775        .37338E-04   -1.5419    
   3  Prefactor     .10000E-03    3.1251        .13508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     79.045        34.147        .45169E-04   -1.3927    
   5  Prefactor     .10000E-03    59.013        .39901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0726        59.702        .44661E-02   -1.5501    
   7  Prefactor     3.0739        7.5269        .11563E-02   -1.5357    
   8  Prefactor     .10000E-03    31.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          39.432        16.540        .63830E-04   -1.4451    
  10  Prefactor     1.8730        5.3589        .26434E-03   -1.5434    
  11  norm          .10000E-03    25.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8175        .20303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.633        36.643        .10136E-03   -1.4917    
  14  norm          .10000E-03    4.7394        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    12.243        .22991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.1571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    110.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .83001        19.150        .50238E-03   -1.5526    
  19  Prefactor     86.531        61.260        .43186E-04   -1.3845    
  20  Prefactor     18.217        11.188        .93839E-04   -1.4854    
  21  Prefactor     .10000E-03    40.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    49.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3988        88.432        .14749E-03   -1.5164    
  24  Prefactor     10.140        17.503        .12583E-03   -1.5071    
  25  Prefactor     .10000E-03    17.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.8340        2.0162        .11339E-03   -1.5437    
  28  Normalizat    .41511        .27080        .47806E-03   -1.1653    
  29  Prefactor     1.6778        .22466        .21653E-03   -.72675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38925e-08
Minuit parameter uncertainties:
  1  8.95854
  2  0.717754
  3  1.96145e-06
  4  34.1557
  5  0.000131063
  6  16.021
  7  7.5292
  8  0.000242379
  9  16.5416
  10  5.36024
  11  0.000117875
  12  5.28623e-06
  13  36.6954
  14  7.67783e-06
  15  0.00108801
  16  2.98043e-06
  17  0.000432722
  18  7.97606
  19  61.3045
  20  11.1889
  21  6.09409e-05
  22  0.000751691
  23  51.2529
  24  17.5118
  25  5.7385e-05
  26  4.61567e-05
  27  2.01632
  28  0.271655
  29  0.224794
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  5.286e-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:  1.678e+00  2.248e-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.151e-01  2.717e-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: 8.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919531/likelihoodResults_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.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): 102
logL (Free Index) = 6132.62801605
delta logL = -0.00260449865982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6132.62541169
delta logL = -1.39696567203e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1215       1.0000          .0000       10.000    
     3 'Normalizat'    .41515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6778       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6132.625     FROM MIGRAD    STATUS=FAILED        94 CALLS      253 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10107E-03    32.070        .20464E-02** at limit **
   2  Index         2.0584        7.9341        .50000        .46014E-04
   3  Normalizat    .41512        .23034E-01    .47806E-03    .72103E-04
   4  Prefactor     1.6778        .19846E-01    .21653E-03    .52870E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6132.625     FROM SIMPLEX   STATUS=PROGRESS     128 CALLS      381 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10099E-03    32.070        .19378E-03** at limit **
   2  Index         2.0565        7.9341        .66057E-03    .46014E-04
   3  Normalizat    .41510        .23034E-01    .78061E-05    .72103E-04
   4  Prefactor     1.6778        .19846E-01    .31438E-05    .52870E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6132.625     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      428 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    230.01        .40928E-03** at limit **
   2  Index         1.8916        7.9745        .50000       -.27719E-06
   3  Normalizat    .41511        .70937E-01    .19123E-04    .19025E-05
   4  Prefactor     1.6778        .61059E-01    .86614E-05   -.68254E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89158
  Normalizat = 0.415114
  Prefactor  = 1.67779
 **********
 **   18 **HESSE 
 **********

 FCN=   6132.625     FROM HESSE     STATUS=OK            29 CALLS      457 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3493        .81856E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8916        5.7592        .50000       -.67089    
   3  Normalizat    .41511        .25506        .38245E-05   -1.1653    
   4  Prefactor     1.6778        .22024        .17323E-05   -.72675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22388e-11
Minuit parameter uncertainties:
  1  1.12491e-06
  2  82.23
  3  0.255774
  4  0.220365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919531': 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) = 6132.62540953
delta logL = 2.02320734388e-06

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.125e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.892e+00  8.223e+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.678e+00  2.204e-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.151e-01  2.558e-01  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/919531/cmap_HighResolution_368409601_368668801_4FGL_J1132.7+0034_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2021-09-04 03:52:44.883153', job_id='919531', GAL2='1.68', fit_tolerance='1e-08', EG2='0.42', EG='0.42', time_epoch_completed='1630752764.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.68', dlogl='2.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='498' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 919531: <4FGL_J1132.7+0034_daily_bin498> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin498 173.196 0.5737 368409601 368668801 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 :                                   816.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            997 sec.

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

