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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin284
RA = 173.196, Dec = 0.5737
tmin = 312940801, tmax = 313200001
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='918209', job_status='RUN', time_executed='2021-09-04 03:34:34.554913', time_epoch_executed='1630751674.55' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918209

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918209/ft1_4FGL_J1132.7+0034_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918209/ft2_4FGL_J1132.7+0034_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918209/ft1_4FGL_J1132.7+0034_daily_bin284.fits outfile=/scratch/kocevski/918209/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin284.fits ra=173.196 dec=0.5737 rad=12.0 tmin=312940801.0 tmax=313200001.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.53
user 3.23
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918209/ft2_4FGL_J1132.7+0034_daily_bin284.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/918209/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin284.fits evtable="EVENTS" outfile="/scratch/kocevski/918209/ft1_filtered_4FGL_J1132.7+0034_daily_bin284.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918209/ft1_filtered_4FGL_J1132.7+0034_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/918209/ft2_4FGL_J1132.7+0034_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/918209/ltcube_312940801_313200001_4FGL_J1132.7+0034_daily_bin284.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/918209/ft2_4FGL_J1132.7+0034_daily_bin284.fits
.....................!
real 12.22
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918209/ft1_filtered_4FGL_J1132.7+0034_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/918209/ft2_4FGL_J1132.7+0034_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/918209/ltcube_312940801_313200001_4FGL_J1132.7+0034_daily_bin284.fits outfile=/scratch/kocevski/918209/expmap_312940801_313200001_4FGL_J1132.7+0034_daily_bin284.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/918209/ltcube_312940801_313200001_4FGL_J1132.7+0034_daily_bin284.fits
.....................!
real 193.00
user 187.30
sys 4.80

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/918209/ft1_filtered_4FGL_J1132.7+0034_daily_bin284.fits scfile=/scratch/kocevski/918209/ft2_4FGL_J1132.7+0034_daily_bin284.fits outfile=/scratch/kocevski/918209/cmap_312940801_313200001_4FGL_J1132.7+0034_daily_bin284.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918209/ft1_filtered_4FGL_J1132.7+0034_daily_bin284.fits scfile=/scratch/kocevski/918209/ft2_4FGL_J1132.7+0034_daily_bin284.fits outfile=/scratch/kocevski/918209/cmap_HighResolution_312940801_313200001_4FGL_J1132.7+0034_daily_bin284.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918209/ft1_filtered_4FGL_J1132.7+0034_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/918209/ft2_4FGL_J1132.7+0034_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918209/Model_4FGL_J1132.7+0034_daily_bin284.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/918209/ft1_filtered_4FGL_J1132.7+0034_daily_bin284.fits.....................!
real 56.06
user 54.59
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.973       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1153       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5285       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.899       1.0000         .10000E-03   10000.    
     8 'Prefactor '    122.10       1.0000         .10000E-03   10000.    
     9 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9034       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.043       1.0000         .10000E-03   10000.    
    14 'norm      '    15.701       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .77651       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2990       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4639       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.883       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.976       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.3293       1.0000         .10000E-03   10000.    
    27 'norm      '    2.0225       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2196       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73970       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5740.780     FROM MIGRAD    STATUS=CONVERGED   1289 CALLS     4265 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9785        .18142E-02** at limit **
   2  norm          .10000E-03    .67787        .84303E-03** at limit **
   3  Prefactor     33.979        13.460        .68751E-04   -.72236E-03
   4  Prefactor     7.1171        14.428        .75192E-03   -.24096E-03
   5  Prefactor     7.5316        14.951        .73081E-03   -.23432E-03
   6  Prefactor     .10000E-03    4.9424        .16434E-02** at limit **
   7  Prefactor     18.892        7.2036        .92130E-04   -.44917E-04
   8  Prefactor     122.00        88.208        .18212E-03   -.76970E-04
   9  norm          .10000E-03    4.4631        .15592E-02** at limit **
  10  Prefactor     .10000E-03    1.1081        .77831E-03** at limit **
  11  norm          .10000E-03    11.146        .18142E-02** at limit **
  12  Prefactor     5.9027        3.0574        .90515E-04   -.43081E-04
  13  Prefactor     21.076        26.304        .87314E-04    .60675E-04
  14  norm          15.702        8.0293        .10108E-03   -.48813E-04
  15  Prefactor     .10000E-03    1.8713        .10075E-02** at limit **
  16  Prefactor     .10000E-03    19.970        .18142E-02** at limit **
  17  Prefactor     .54398        111.81        .22413        .55841E-04
  18  Prefactor     8.3080        14.049        .13916E-03   -.11029E-04
  19  Prefactor     8.4601        29.384        .13779E-03   -.13944E-04
  20  Prefactor     .10000E-03    6.6302        .18142E-02** at limit **
  21  Prefactor     24.885        21.176        .80305E-04   -.86357E-05
  22  Prefactor     .10000E-03    14.212        .18142E-02** at limit **
  23  Prefactor     .10000E-03    25.203        .18142E-02** at limit **
  24  Prefactor     21.965        25.877        .85443E-04   -.70520E-05
  25  Prefactor     .10000E-03    41.114        .18142E-02** at limit **
  26  Prefactor     3.3293        6.1009        .22184E-03   -.38846E-04
  27  norm          2.0229        2.2565        .11402E-03    .21636E-04
  28  Normalizat    1.2198        .25987        .27353E-03   -.41876E-03
  29  Prefactor     .73964        .18940        .26492E-03   -.85526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 33.979
  Prefactor  = 7.11712
  Prefactor  = 7.53164
  Prefactor  = 0.0001
  Prefactor  = 18.8921
  Prefactor  = 122.003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.90269
  Prefactor  = 21.0761
  norm       = 15.7015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.543982
  Prefactor  = 8.30798
  Prefactor  = 8.46006
  Prefactor  = 0.0001
  Prefactor  = 24.8852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9647
  Prefactor  = 0.0001
  Prefactor  = 3.32933
  norm       = 2.02285
  Normalizat = 1.21978
  Prefactor  = 0.739635
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.780     FROM HESSE     STATUS=OK           533 CALLS     4798 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .68001        .16861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.979        13.456        .13750E-04   -1.4541    
   4  Prefactor     7.1171        14.427        .30077E-04   -1.5174    
   5  Prefactor     7.5316        14.945        .29233E-04   -1.5159    
   6  Prefactor     .10000E-03    4.9426        .32868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.892        7.2029        .36852E-05   -1.4838    
   8  Prefactor     122.00        88.203        .72847E-05   -1.3494    
   9  norm          .10000E-03    4.4636        .31184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1081        .15566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9027        3.0574        .36206E-05   -1.5222    
  13  Prefactor     21.076        26.301        .34926E-05   -1.4789    
  14  norm          15.702        8.0290        .40432E-05   -1.4915    
  15  Prefactor     .10000E-03    1.8714        .20150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .54398        113.84        .22133       -1.5560    
  18  Prefactor     8.3080        14.050        .55665E-05   -1.5131    
  19  Prefactor     8.4601        29.382        .55117E-05   -1.5126    
  20  Prefactor     .10000E-03    6.6316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.885        21.178        .32122E-05   -1.4710    
  22  Prefactor     .10000E-03    14.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.965        25.874        .34177E-05   -1.4770    
  25  Prefactor     .10000E-03    41.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.3293        6.1013        .88735E-05   -1.5343    
  27  norm          2.0229        2.2566        .45609E-05   -1.5424    
  28  Normalizat    1.2198        .26008        .54706E-04   -.85994    
  29  Prefactor     .73964        .18956        .10597E-04   -1.0199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30588e-09
Minuit parameter uncertainties:
  1  4.86397e-05
  2  3.96816e-05
  3  13.4576
  4  14.4336
  5  14.9523
  6  3.33095e-06
  7  7.20326
  8  88.2979
  9  1.65729e-05
  10  4.81038e-06
  11  8.3844e-05
  12  3.0575
  13  26.3155
  14  8.02954
  15  2.98804e-06
  16  7.51198e-06
  17  15.7679
  18  14.0552
  19  29.4318
  20  1.06718e-05
  21  21.1842
  22  3.70602e-05
  23  1.46829e-05
  24  25.8872
  25  0.000107325
  26  6.10244
  27  2.25674
  28  0.260359
  29  0.189728
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  5.903e+00  3.058e+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:  7.396e-01  1.897e-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:  1.220e+00  2.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.97
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 8.75e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 4.46e-05 +/- 2.31e-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): 0
logL (Free Index) = 5740.59827009
delta logL = 0.18202980972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5740.58946682
delta logL = 0.190833081425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0408       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4375       1.0000          .0000       10.000    
     3 'Normalizat'    1.1788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75823       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=   5740.589     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      233 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0408        38.657        .44775E-02   -.19885E-03
   2  Index         2.4376        3.0860        .13591        .10335E-03
   3  Normalizat    1.1788        .12496        .62724E-01    .87772E-05
   4  Prefactor     .75827        .67324E-01    .43171E-01    .16176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.04081
  Index      = 2.43757
  Normalizat = 1.17883
  Prefactor  = 0.758268
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.589     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0408        3.2676        .76548E-04   -1.5259    
   2  Index         2.4376        .51244        .48877E-02   -.53808    
   3  Normalizat    1.1788        .25161        .27744E-03   -.87260    
   4  Prefactor     .75827        .18916        .26193E-03   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85292e-09
Minuit parameter uncertainties:
  1  3.26776
  2  0.513662
  3  0.251867
  4  0.189325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918209': 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) = 5740.58946671
delta logL = 0.190833190665

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  5.041e+00  3.268e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.438e+00  5.137e-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:  7.583e-01  1.893e-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:  1.179e+00  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.30
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.44 +/- 0.51
Photon Flux (Free Index): 1.22e-07 +/- 7.88e-08
Energy Flux (Free Index): 3.81e-05 +/- 1.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/918209/cmap_HighResolution_312940801_313200001_4FGL_J1132.7+0034_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.75e-08', energy_flux2='3.81e-05', photon_flux_error='4.53e-08', dlogl='1.91e-01', energy_flux='4.46e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-04 03:47:16.478802', photon_index_error2='0.51', photon_index2='2.44', ts='9.97', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.22', time_epoch_completed='1630752436.48', return_code='0', job_id='918209', GAL2='0.76', EG2='1.18', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='7.88e-08', ts2='10.30', photon_index='2.14' WHERE bin_id='284' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:47:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 918209: <4FGL_J1132.7+0034_daily_bin284> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin284> 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) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:32:05 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:05 2021
Terminated at Sat Sep  4 03:47:17 2021
Results reported at Sat Sep  4 03:47:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin284 173.196 0.5737 312940801 313200001 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 :                                   758.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

