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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin588
RA = 173.196, Dec = 0.5737
tmin = 391737601, tmax = 391996801
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='919663', job_status='RUN', time_executed='2021-09-04 03:39:04.359732', time_epoch_executed='1630751944.36' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919663/ft1_4FGL_J1132.7+0034_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919663/ft2_4FGL_J1132.7+0034_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919663/ft1_4FGL_J1132.7+0034_daily_bin588.fits outfile=/scratch/kocevski/919663/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin588.fits ra=173.196 dec=0.5737 rad=12.0 tmin=391737601.0 tmax=391996801.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.35
user 3.10
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919663/ft2_4FGL_J1132.7+0034_daily_bin588.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/919663/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/919663/ft1_filtered_4FGL_J1132.7+0034_daily_bin588.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919663/ft1_filtered_4FGL_J1132.7+0034_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/919663/ft2_4FGL_J1132.7+0034_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/919663/ltcube_391737601_391996801_4FGL_J1132.7+0034_daily_bin588.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/919663/ft2_4FGL_J1132.7+0034_daily_bin588.fits
.....................!
real 12.29
user 11.78
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919663/ft1_filtered_4FGL_J1132.7+0034_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/919663/ft2_4FGL_J1132.7+0034_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/919663/ltcube_391737601_391996801_4FGL_J1132.7+0034_daily_bin588.fits outfile=/scratch/kocevski/919663/expmap_391737601_391996801_4FGL_J1132.7+0034_daily_bin588.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/919663/ltcube_391737601_391996801_4FGL_J1132.7+0034_daily_bin588.fits
.....................!
real 190.25
user 185.76
sys 4.08

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/919663/ft1_filtered_4FGL_J1132.7+0034_daily_bin588.fits scfile=/scratch/kocevski/919663/ft2_4FGL_J1132.7+0034_daily_bin588.fits outfile=/scratch/kocevski/919663/cmap_391737601_391996801_4FGL_J1132.7+0034_daily_bin588.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919663/ft1_filtered_4FGL_J1132.7+0034_daily_bin588.fits scfile=/scratch/kocevski/919663/ft2_4FGL_J1132.7+0034_daily_bin588.fits outfile=/scratch/kocevski/919663/cmap_HighResolution_391737601_391996801_4FGL_J1132.7+0034_daily_bin588.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/919663/ft1_filtered_4FGL_J1132.7+0034_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/919663/ft2_4FGL_J1132.7+0034_daily_bin588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919663/Model_4FGL_J1132.7+0034_daily_bin588.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/919663/ft1_filtered_4FGL_J1132.7+0034_daily_bin588.fits.....................!
real 53.96
user 52.75
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.136       1.0000         .10000E-03   10000.    
     2 'norm      '    .40119       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8568       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.775       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .77015E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    8.9329       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4440       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30215       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.254       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.411       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.974       1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.733       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3141       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9534       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.149       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.218       1.0000         .10000E-03   10000.    
    27 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .75404       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0552       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=   5734.428     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3739 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.133        11.922        .15538E-08    .94084E-04
   2  norm          .40089        .35008       -.18974E-07    .57483E-04
   3  Prefactor     .10000E-03    7.2571       -.29351E-06** at limit **
   4  Prefactor     .10000E-03    18.406       -.12385E-04** at limit **
   5  Prefactor     8.8586        19.391        .21670E-05   -.26881E-04
   6  Prefactor     3.4567        13.530       -.23006E-05   -.16419E-03
   7  Prefactor     .10000E-03    1.4444       -.26065E-07** at limit **
   8  Prefactor     .10000E-03    28.587        .23685E-04** at limit **
   9  norm          12.773        9.6561        .45717E-06    .67392E-04
  10  Prefactor     .10003E-03    3.2346       -.99022E-07** at limit **
  11  norm          8.9209        24.973       -.75292E-06    .48860E-04
  12  Prefactor     4.4439        2.6743       -.56691E-07   -.25153E-04
  13  Prefactor     .10000E-03    16.562       -.11120E-04** at limit **
  14  norm          .32236        4.4437       -.57617E-06    .19078E-03
  15  Prefactor     13.250        5.8712       -.52931E-06    .27633E-03
  16  Prefactor     14.412        15.829        .56779E-07    .21635E-04
  17  Prefactor     .10000E-03    29.948        .22122E-04** at limit **
  18  Prefactor     19.975        12.316       -.12398E-06    .13039E-04
  19  Prefactor     44.738        41.297        .62147E-05    .18613E-04
  20  Prefactor     4.3136        9.5553       -.65354E-06   -.35456E-04
  21  Prefactor     6.9480        16.504       -.41290E-05   -.42189E-04
  22  Prefactor     .10000E-03    14.424        .13319E-04** at limit **
  23  Prefactor     .10000E-03    39.447       -.36025E-04** at limit **
  24  Prefactor     16.151        21.143        .20857E-05    .27671E-04
  25  Prefactor     .10000E-03    15.549       -.33116E-05** at limit **
  26  Prefactor     12.217        12.695       -.47315E-06   -.11006E-04
  27  norm          .10000E-03    1.9672        .45057E-07** at limit **
  28  Normalizat    .75408        .19923        .10162E-05    .27383E-03
  29  Prefactor     1.0551        .15902        .28279E-07    .35161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1327
  norm       = 0.400889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.85865
  Prefactor  = 3.45666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.7727
  Prefactor  = 0.000100026
  norm       = 8.92089
  Prefactor  = 4.44389
  Prefactor  = 0.0001
  norm       = 0.32236
  Prefactor  = 13.2495
  Prefactor  = 14.4123
  Prefactor  = 0.0001
  Prefactor  = 19.9754
  Prefactor  = 44.7377
  Prefactor  = 4.3136
  Prefactor  = 6.94804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1511
  Prefactor  = 0.0001
  Prefactor  = 12.2175
  norm       = 0.0001
  Normalizat = 0.754082
  Prefactor  = 1.05505
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.428     FROM HESSE     STATUS=OK           561 CALLS     4300 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.133        11.915        .87122E-04   -1.4788    
   2  norm          .40089        .35137        .40171E-04   -1.5581    
   3  Prefactor     .10000E-03    7.4866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8586        18.996        .13468E-03   -1.5113    
   6  Prefactor     3.4567        13.229        .21747E-03   -1.5336    
   7  Prefactor     .10000E-03    1.4493        .88833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.773        9.4860        .11207E-03   -1.4993    
  10  Prefactor     .10003E-03    37.254        .22121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.9209        21.994        .13410E-03   -1.5111    
  12  Prefactor     4.4439        2.6769        .90867E-04   -1.5286    
  13  Prefactor     .10000E-03    16.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .32236        29.946        .27566E-02   -1.5594    
  15  Prefactor     13.250        5.9505        .10335E-03   -1.4980    
  16  Prefactor     14.412        15.822        .10551E-03   -1.4949    
  17  Prefactor     .10000E-03    29.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.975        12.327        .89618E-04   -1.4814    
  19  Prefactor     44.738        41.262        .59944E-04   -1.4369    
  20  Prefactor     4.3136        9.5320        .19395E-03   -1.5293    
  21  Prefactor     6.9480        16.482        .15214E-03   -1.5181    
  22  Prefactor     .10000E-03    14.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    39.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.151        21.108        .99668E-04   -1.4904    
  25  Prefactor     .10000E-03    15.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.217        11.978        .11460E-03   -1.5009    
  27  norm          .10000E-03    3.6172        .19435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .75408        .22493        .30169E-03   -1.0180    
  29  Prefactor     1.0551        .18158        .21632E-03   -.90916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59413e-09
Minuit parameter uncertainties:
  1  11.9167
  2  0.351371
  3  5.7155e-07
  4  2.18233e-05
  5  19.0091
  6  13.2397
  7  1.14985e-06
  8  2.07754e-05
  9  9.48714
  10  0.00197062
  11  22.0139
  12  2.67702
  13  2.62636e-05
  14  6.21617
  15  5.95077
  16  15.8268
  17  7.62883e-07
  18  12.3288
  19  41.2884
  20  9.53538
  21  16.4924
  22  3.29234e-06
  23  7.15163e-05
  24  21.1181
  25  4.00998e-06
  26  11.9804
  27  9.9767e-06
  28  0.225202
  29  0.181689
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.444e+00  2.677e+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.055e+00  1.817e-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.541e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.25
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.59e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 3.35e-05 +/- 2.02e-05

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) = 5732.55721126
delta logL = 1.8711402793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5731.93050073
delta logL = 2.49785080895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16888E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5232       1.0000          .0000       10.000    
     3 'Normalizat'    .54389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2020       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=   5731.930     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      434 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16855E-03    .21778E-02    .99185E-04** at limit **
   2  Index         7.5244        1.8768        .66097E-01    .50124E-03
   3  Normalizat    .54405        .71446E-01    .79129E-01    .40063E-03
   4  Prefactor     1.2017        .59634E-01    .34584E-01    .30746E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000168547
  Index      = 7.52437
  Normalizat = 0.544055
  Prefactor  = 1.20167
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.930     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      467 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16855E-03    .32925E-02    .59040E-06   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5244        2.3541        .28487E-02    .52924    
   3  Normalizat    .54405        .20476        .35041E-03   -1.1042    
   4  Prefactor     1.2017        .16911        .20470E-03   -.86280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07597e-09
Minuit parameter uncertainties:
  1  0.000950135
  2  2.48997
  3  0.20504
  4  0.169189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919663': 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) = 5731.93049712
delta logL = 2.49785441315

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.685e-04  9.501e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  7.524e+00  2.490e+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.202e+00  1.692e-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:  5.441e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.53
Ra Dec: 173.196 0.574
Photon Index (Free Index): 7.52 +/- 2.49
Photon Flux (Free Index): 1.83e-07 +/- 7.24e-08
Energy Flux (Free Index): 2.15e-05 +/- 8.78e-06

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/919663/cmap_HighResolution_391737601_391996801_4FGL_J1132.7+0034_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.59e-08', energy_flux2='2.15e-05', photon_flux_error='3.97e-08', dlogl='2.50e+00', energy_flux='3.35e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-09-04 03:51:14.537234', photon_index_error2='2.49', photon_index2='7.52', ts='5.25', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='8.78e-06', EG='0.75', time_epoch_completed='1630752674.54', return_code='0', job_id='919663', GAL2='1.20', EG2='0.54', return_code2='102', energy_flux_error='2.02e-05', photon_flux_error2='7.24e-08', ts2='11.53', photon_index='2.14' WHERE bin_id='588' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 919663: <4FGL_J1132.7+0034_daily_bin588> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin588> 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) <bullet0163>, 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:51:15 2021
Results reported at Sat Sep  4 03:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin588 173.196 0.5737 391737601 391996801 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 :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

