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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin287
RA = 173.196, Dec = 0.5737
tmin = 313718401, tmax = 313977601
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='918214', job_status='RUN', time_executed='2021-09-04 03:32:21.749302', time_epoch_executed='1630751541.75' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918214/ft1_4FGL_J1132.7+0034_daily_bin287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918214/ft2_4FGL_J1132.7+0034_daily_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918214/ft1_4FGL_J1132.7+0034_daily_bin287.fits outfile=/scratch/kocevski/918214/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin287.fits ra=173.196 dec=0.5737 rad=12.0 tmin=313718401.0 tmax=313977601.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.59
user 3.10
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918214/ft1_filtered_4FGL_J1132.7+0034_daily_bin287.fits" evtable="EVENTS" scfile=/scratch/kocevski/918214/ft2_4FGL_J1132.7+0034_daily_bin287.fits sctable="SC_DATA" outfile=/scratch/kocevski/918214/ltcube_313718401_313977601_4FGL_J1132.7+0034_daily_bin287.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/918214/ft2_4FGL_J1132.7+0034_daily_bin287.fits
.....................!
real 12.19
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918214/ft1_filtered_4FGL_J1132.7+0034_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/918214/ft2_4FGL_J1132.7+0034_daily_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/918214/ltcube_313718401_313977601_4FGL_J1132.7+0034_daily_bin287.fits outfile=/scratch/kocevski/918214/expmap_313718401_313977601_4FGL_J1132.7+0034_daily_bin287.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/918214/ltcube_313718401_313977601_4FGL_J1132.7+0034_daily_bin287.fits
.....................!
real 191.39
user 185.99
sys 4.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/918214/ft1_filtered_4FGL_J1132.7+0034_daily_bin287.fits scfile=/scratch/kocevski/918214/ft2_4FGL_J1132.7+0034_daily_bin287.fits outfile=/scratch/kocevski/918214/cmap_313718401_313977601_4FGL_J1132.7+0034_daily_bin287.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918214/ft1_filtered_4FGL_J1132.7+0034_daily_bin287.fits scfile=/scratch/kocevski/918214/ft2_4FGL_J1132.7+0034_daily_bin287.fits outfile=/scratch/kocevski/918214/cmap_HighResolution_313718401_313977601_4FGL_J1132.7+0034_daily_bin287.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/918214/ft1_filtered_4FGL_J1132.7+0034_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/918214/ft2_4FGL_J1132.7+0034_daily_bin287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918214/Model_4FGL_J1132.7+0034_daily_bin287.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/918214/ft1_filtered_4FGL_J1132.7+0034_daily_bin287.fits.....................!
real 52.30
user 50.92
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5022       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70816E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.004       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1361       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.217       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17280       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.644       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2091       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6840       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1639       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3301       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.337       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.5191       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.797       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    63.864       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12396E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80267       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2771       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=   5388.777     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3291 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2361       -.26892E-07** at limit **
   2  norm          2.5023        .82279        .17283E-07    .79766E-04
   3  Prefactor     .10000E-03    11.009        .54536E-07** at limit **
   4  Prefactor     .10000E-03    8.0609        .23154E-07** at limit **
   5  Prefactor     .10294E-03    12.484       -.25895E-05** at limit **
   6  Prefactor     15.008        14.771        .21018E-05    .29344E-03
   7  Prefactor     1.1392        9.5052        .22867E-06    .11253E-03
   8  Prefactor     .10000E-03    51.725        .71471E-06** at limit **
   9  norm          14.210        14.764        .79856E-06    .36067E-03
  10  Prefactor     .10000E-03    2.4575       -.88408E-07** at limit **
  11  norm          .10000E-03    9.9941       -.80197E-07** at limit **
  12  Prefactor     .17462        1.4737       -.81451E-07   -.16542E-04
  13  Prefactor     35.640        26.395        .37151E-08    .12225E-03
  14  norm          6.2080        8.5493       -.94085E-06    .25465E-04
  15  Prefactor     7.6850        6.0195        .17080E-05    .49844E-03
  16  Prefactor     1.1612        210.76        .92907E-06    .26161E-04
  17  Prefactor     .10000E-03    133.06        .24873E-06** at limit **
  18  Prefactor     .10000E-03    5.1039        .30343E-07** at limit **
  19  Prefactor     .10000E-03    19.921       -.10921E-05** at limit **
  20  Prefactor     3.3296        6.4519        .27360E-06    .44889E-04
  21  Prefactor     19.336        19.147       -.62553E-06    .13252E-03
  22  Prefactor     9.5204        27.944       -.96099E-07    .58654E-05
  23  Prefactor     18.794        24.414       -.10144E-06    .36990E-04
  24  Prefactor     .10000E-03    42.808       -.88843E-06** at limit **
  25  Prefactor     63.850        49.465       -.59193E-06    .89310E-04
  26  Prefactor     .10001E-03    18.082       -.74661E-05** at limit **
  27  norm          .10000E-03    1.4294       -.36559E-07** at limit **
  28  Normalizat    .80286        .23167       -.63472E-06    .37559E-03
  29  Prefactor     1.2768        .18578        .23019E-07    .57880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.50234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102936
  Prefactor  = 15.0079
  Prefactor  = 1.13916
  Prefactor  = 0.000100001
  norm       = 14.2096
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.174624
  Prefactor  = 35.6399
  norm       = 6.20798
  Prefactor  = 7.68498
  Prefactor  = 1.16121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.32955
  Prefactor  = 19.3359
  Prefactor  = 9.5204
  Prefactor  = 18.7945
  Prefactor  = 0.000100002
  Prefactor  = 63.8498
  Prefactor  = 0.000100005
  norm       = 0.000100001
  Normalizat = 0.802861
  Prefactor  = 1.27684
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.777     FROM HESSE     STATUS=OK           567 CALLS     3858 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2703        .14753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5023        .82004        .36155E-04   -1.5392    
   3  Prefactor     .10000E-03    11.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10294E-03    28.030        .77133E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.008        15.578        .10340E-03   -1.4933    
   7  Prefactor     1.1392        9.6000        .39105E-03   -1.5495    
   8  Prefactor     .10000E-03    51.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.210        14.633        .10623E-03   -1.4954    
  10  Prefactor     .10000E-03    2.4696        .11223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.9964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .17462        9.2870        .16713E-02   -1.5624    
  13  Prefactor     35.640        26.356        .67125E-04   -1.4513    
  14  norm          6.2080        8.7443        .16110E-03   -1.5210    
  15  Prefactor     7.6850        6.9833        .72332E-03   -1.5153    
  16  Prefactor     1.1612        217.33        .42653E-02   -1.5492    
  17  Prefactor     .10000E-03    133.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1405        .16196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3296        6.4246        .22181E-03   -1.5343    
  21  Prefactor     19.336        19.189        .91082E-04   -1.4828    
  22  Prefactor     9.5204        27.948        .12989E-03   -1.5091    
  23  Prefactor     18.794        24.427        .92381E-04   -1.4841    
  24  Prefactor     .10000E-03    43.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     63.850        49.440        .50216E-04   -1.4108    
  26  Prefactor     .10001E-03    25.013        .38064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.4038        .16617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .80286        .26788        .32514E-03   -.99963    
  29  Prefactor     1.2768        .21889        .22331E-03   -.83998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31064e-08
Minuit parameter uncertainties:
  1  4.23586e-06
  2  0.820048
  3  1.55657e-05
  4  3.68777e-07
  5  0.0181507
  6  15.5817
  7  6.61506
  8  0.000329487
  9  14.6371
  10  1.18488e-05
  11  2.9155e-06
  12  2.54663
  13  26.3647
  14  8.7461
  15  6.98408
  16  31.8889
  17  4.47663e-07
  18  6.58686e-07
  19  0.000255671
  20  6.42589
  21  19.195
  22  27.9862
  23  24.4401
  24  0.000552999
  25  49.4715
  26  0.000714608
  27  0.000106689
  28  0.268324
  29  0.219045
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.746e-01  2.547e+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.277e+00  2.190e-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.029e-01  2.683e-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: 9.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918214/likelihoodResults_313718401_313977601_4FGL_J1132.7+0034_daily_bin287.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) = 5388.74008162
delta logL = 0.0371890373935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5388.72819832
delta logL = 0.0490723385556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37528       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8271       1.0000          .0000       10.000    
     3 'Normalizat'    .78629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2819       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=   5388.728     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      224 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37531        9.5871        .29491E-01    .99410E-03
   2  Index         2.8271        2.9547        .22534        .54357E-04
   3  Normalizat    .78629        .22857E-01    .74193E-01    .20962E-04
   4  Prefactor     1.2819        .19409E-01    .50434E-01    .87091E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.375307
  Index      = 2.82711
  Normalizat = 0.786286
  Prefactor  = 1.28191
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.728     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      259 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37531        175.36        .10827E-02   -1.5585    
   2  Index         2.8271        8.4334        .12510E-01   -.44957    
   3  Normalizat    .78629        .26012        .32837E-03   -1.0058    
   4  Prefactor     1.2819        .25742        .22296E-03   -.83846    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27595e-06
Minuit parameter uncertainties:
  1  16.2712
  2  20.7803
  3  0.260531
  4  0.257675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918214': 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) = 5388.72819831
delta logL = 0.0490723426346

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.753e-01  1.627e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.827e+00  2.078e+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.282e+00  2.577e-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:  7.863e-01  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/918214/cmap_HighResolution_313718401_313977601_4FGL_J1132.7+0034_daily_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', job_status='DONE', photon_flux_upper_limit='9.91e-08', time_completed='2021-09-04 03:45:14.906343', job_id='918214', GAL2='1.28', fit_tolerance='1e-08', EG2='0.79', EG='0.80', time_epoch_completed='1630752314.91', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='4.91e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='287' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:45:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 918214: <4FGL_J1132.7+0034_daily_bin287> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin287> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:32:04 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:32:06 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:32:06 2021
Terminated at Sat Sep  4 03:45:15 2021
Results reported at Sat Sep  4 03:45:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin287 173.196 0.5737 313718401 313977601 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 :                                   761.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

