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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin807
RA = 173.196, Dec = 0.5737
tmin = 448502401, tmax = 448761601
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='921273', job_status='RUN', time_executed='2021-09-04 03:44:25.337931', time_epoch_executed='1630752265.34' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921273

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921273/ft1_4FGL_J1132.7+0034_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921273/ft2_4FGL_J1132.7+0034_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921273/ft1_4FGL_J1132.7+0034_daily_bin807.fits outfile=/scratch/kocevski/921273/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin807.fits ra=173.196 dec=0.5737 rad=12.0 tmin=448502401.0 tmax=448761601.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 5.97
user 5.72
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/921273/ft2_4FGL_J1132.7+0034_daily_bin807.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/921273/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin807.fits evtable="EVENTS" outfile="/scratch/kocevski/921273/ft1_filtered_4FGL_J1132.7+0034_daily_bin807.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921273/ft1_filtered_4FGL_J1132.7+0034_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/921273/ft2_4FGL_J1132.7+0034_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/921273/ltcube_448502401_448761601_4FGL_J1132.7+0034_daily_bin807.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/921273/ft2_4FGL_J1132.7+0034_daily_bin807.fits
.....................!
real 11.49
user 11.06
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921273/ft1_filtered_4FGL_J1132.7+0034_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/921273/ft2_4FGL_J1132.7+0034_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/921273/ltcube_448502401_448761601_4FGL_J1132.7+0034_daily_bin807.fits outfile=/scratch/kocevski/921273/expmap_448502401_448761601_4FGL_J1132.7+0034_daily_bin807.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/921273/ltcube_448502401_448761601_4FGL_J1132.7+0034_daily_bin807.fits
.....................!
real 192.28
user 186.03
sys 5.78

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/921273/ft1_filtered_4FGL_J1132.7+0034_daily_bin807.fits scfile=/scratch/kocevski/921273/ft2_4FGL_J1132.7+0034_daily_bin807.fits outfile=/scratch/kocevski/921273/cmap_448502401_448761601_4FGL_J1132.7+0034_daily_bin807.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.54
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921273/ft1_filtered_4FGL_J1132.7+0034_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/921273/ft2_4FGL_J1132.7+0034_daily_bin807.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921273/Model_4FGL_J1132.7+0034_daily_bin807.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/921273/ft1_filtered_4FGL_J1132.7+0034_daily_bin807.fits.....................!
real 49.60
user 47.42
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3852       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12304       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.476       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4687       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5779       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.329       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27743E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4520       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8161       1.0000         .10000E-03   10000.    
    14 'norm      '    7.0162       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .83538       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .74194E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.751       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.456       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.811       1.0000         .10000E-03   10000.    
    27 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0107       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98664       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4931.700     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     3100 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0798        .27164E-06** at limit **
   2  norm          2.3896        .85191       -.70942E-08   -.67923E-03
   3  Prefactor     .10008E-03    603.00        .79451E-04** at limit **
   4  Prefactor     16.493        1.5163       -.41927E-06    .18305E-02
   5  Prefactor     .10005E-03    4.0363        .29365E-06** at limit **
   6  Prefactor     8.4661        1.1134       -.86448E-07    .93418E-03
   7  Prefactor     4.5756        1.1486        .24748E-06    .83285E-03
   8  Prefactor     27.355        2.2102       -.61555E-06   -.55344E-04
   9  norm          .10000E-03    4.1450        .18854E-06** at limit **
  10  Prefactor     .10000E-03    6.8445        .35700E-05** at limit **
  11  norm          .10000E-03    4.0177        .21795E-05** at limit **
  12  Prefactor     3.4530        3.2506       -.35811E-06   -.12529E-03
  13  Prefactor     2.8987        5.5142       -.39126E-05    .26930E-02
  14  norm          7.0173        1.0200        .51868E-07    .27307E-03
  15  Prefactor     .10000E-03    1.9465        .62098E-08** at limit **
  16  Prefactor     .10001E-03    12.799       -.93359E-05** at limit **
  17  Prefactor     .91958        15.850       -.11931E-04   -.14147E-02
  18  Prefactor     .10043E-03    133.28       -.12859E-04** at limit **
  19  Prefactor     25.759        1.1780       -.92413E-08    .78380E-05
  20  Prefactor     .10000E-03    5.8235       -.13083E-05** at limit **
  21  Prefactor     35.452        2.3059        .54631E-06   -.10017E-01
  22  Prefactor     .10000E-03    18.768        .55742E-05** at limit **
  23  Prefactor     .10003E-03    4.6961        .30890E-05** at limit **
  24  Prefactor     .10000E-03    8.5629       -.15754E-06** at limit **
  25  Prefactor     .10002E-03    14.713       -.59631E-06** at limit **
  26  Prefactor     11.812        1.3275        .10509E-06   -.12348E-02
  27  norm          .10000E-03    1.8022       -.12270E-06** at limit **
  28  Normalizat    1.0104        .25805       -.10191E-05   -.68424E-04
  29  Prefactor     .98681        .20592       -.90336E-07   -.93082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.38957
  Prefactor  = 0.000100078
  Prefactor  = 16.4926
  Prefactor  = 0.00010005
  Prefactor  = 8.46611
  Prefactor  = 4.57556
  Prefactor  = 27.3552
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 3.45298
  Prefactor  = 2.89871
  norm       = 7.01733
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.919575
  Prefactor  = 0.000100427
  Prefactor  = 25.7588
  Prefactor  = 0.0001
  Prefactor  = 35.4522
  Prefactor  = 0.000100003
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 11.8116
  norm       = 0.0001
  Normalizat = 1.01037
  Prefactor  = 0.986813
 **********
 **   18 **HESSE 
 **********

 FCN=   4931.700     FROM HESSE     STATUS=OK           625 CALLS     3725 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3896        1.0836        .66304E-02   -1.5399    
   3  Prefactor     .10008E-03    14.496        .96205E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.493        23.253        .24668E-02   -1.4896    
   5  Prefactor     .10005E-03    11.351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.4661        10.605        .34438E-02   -1.5126    
   7  Prefactor     4.5756        6.6108        .47034E-02   -1.5280    
   8  Prefactor     27.355        48.427        .19158E-02   -1.4661    
   9  norm          .10000E-03    4.1393        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7237        .44582E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.235        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4530        3.2844        .54419E-02   -1.5336    
  13  Prefactor     2.8987        110.90        .60595E-02   -1.5367    
  14  norm          7.0173        6.7903        .37863E-02   -1.5178    
  15  Prefactor     .10000E-03    1.9286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    13.748        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .91958        177.54        .22153       -1.5516    
  18  Prefactor     .10043E-03    10.804        .93022E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.759        29.206        .19735E-02   -1.4692    
  20  Prefactor     .10000E-03    5.7802        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.452        18.580        .16825E-02   -1.4516    
  22  Prefactor     .10000E-03    18.854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10003E-03    11.169        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.5525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    15.350        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.812        10.404        .29142E-02   -1.5020    
  27  norm          .10000E-03    1.7836        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0104        .24174        .45568E-01   -.92684    
  29  Prefactor     .98681        .17977        .46100E-01   -.93170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64357e-07
Minuit parameter uncertainties:
  1  2.80177e-06
  2  1.08358
  3  0.00212621
  4  23.2654
  5  0.00150903
  6  10.6071
  7  6.61182
  8  48.4964
  9  2.26075e-06
  10  3.24226e-05
  11  0.00029252
  12  3.28461
  13  35.9309
  14  6.79102
  15  2.4308e-06
  16  0.000591384
  17  25.6309
  18  0.0042945
  19  29.2218
  20  1.68644e-05
  21  18.5826
  22  0.000501869
  23  0.00124163
  24  4.30909e-05
  25  0.00102999
  26  10.4059
  27  2.15732e-06
  28  0.242004
  29  0.179875
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.453e+00  3.285e+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:  9.868e-01  1.799e-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.010e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 4.87e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 2.48e-05

TS (Fixed Index): 1.55
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/921273/likelihoodResults_448502401_448761601_4FGL_J1132.7+0034_daily_bin807.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4931.65515083
delta logL = 0.0452097032812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4931.64384667
delta logL = 0.0565138572492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9688       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3625       1.0000          .0000       10.000    
     3 'Normalizat'    .99328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99578       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=   4931.644     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9676        73.077        .58914E-02    .79352E-03
   2  Index         2.3632        6.1387        .13612        .14853E-03
   3  Normalizat    .99335        .93791E-01    .46083E-01    .94899E-04
   4  Prefactor     .99569        .68192E-01    .46214E-01    .74763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.96762
  Index      = 2.36325
  Normalizat = 0.993353
  Prefactor  = 0.995692
 **********
 **   18 **HESSE 
 **********

 FCN=   4931.644     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9676        3.6105        .10209E-03   -1.5363    
   2  Index         2.3632        .75598        .71425E-02   -.55548    
   3  Normalizat    .99335        .26257        .28857E-03   -.93253    
   4  Prefactor     .99569        .20834        .23115E-03   -.92873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07355e-10
Minuit parameter uncertainties:
  1  3.6108
  2  0.760024
  3  0.262908
  4  0.208505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921273': 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) = 4931.64384586
delta logL = 0.056514665197

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.968e+00  3.611e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.363e+00  7.600e-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:  9.957e-01  2.085e-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:  9.934e-01  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.36 +/- 0.76
Photon Flux (Free Index): 6.33e-08 +/- 6.35e-08
Energy Flux (Free Index): 2.18e-05 +/- 2.39e-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/921273/cmap_HighResolution_448502401_448761601_4FGL_J1132.7+0034_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='2.18e-05', photon_flux_error='4.87e-08', dlogl='5.65e-02', energy_flux='2.61e-05', photon_flux2='6.33e-08', job_status='DONE', time_completed='2021-09-04 03:56:25.756953', photon_index_error2='0.76', photon_index2='2.36', ts='1.55', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='2.39e-05', EG='1.01', time_epoch_completed='1630752985.76', return_code='0', job_id='921273', GAL2='1.00', EG2='0.99', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='6.35e-08', ts2='1.65', photon_index='2.14' WHERE bin_id='807' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 921273: <4FGL_J1132.7+0034_daily_bin807> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin807> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:34 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:36 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:41:36 2021
Terminated at Sat Sep  4 03:56:26 2021
Results reported at Sat Sep  4 03:56:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin807 173.196 0.5737 448502401 448761601 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

