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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin673
RA = 173.196, Dec = 0.5737
tmin = 413769601, tmax = 414028801
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='919787', job_status='RUN', time_executed='2021-09-04 03:40:19.601431', time_epoch_executed='1630752019.6' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919787

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919787/ft1_4FGL_J1132.7+0034_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919787/ft2_4FGL_J1132.7+0034_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919787/ft1_4FGL_J1132.7+0034_daily_bin673.fits outfile=/scratch/kocevski/919787/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin673.fits ra=173.196 dec=0.5737 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.17
user 5.91
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919787/ft2_4FGL_J1132.7+0034_daily_bin673.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/919787/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin673.fits evtable="EVENTS" outfile="/scratch/kocevski/919787/ft1_filtered_4FGL_J1132.7+0034_daily_bin673.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919787/ft1_filtered_4FGL_J1132.7+0034_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/919787/ft2_4FGL_J1132.7+0034_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/919787/ltcube_413769601_414028801_4FGL_J1132.7+0034_daily_bin673.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/919787/ft2_4FGL_J1132.7+0034_daily_bin673.fits
.....................!
real 11.74
user 11.41
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919787/ft1_filtered_4FGL_J1132.7+0034_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/919787/ft2_4FGL_J1132.7+0034_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/919787/ltcube_413769601_414028801_4FGL_J1132.7+0034_daily_bin673.fits outfile=/scratch/kocevski/919787/expmap_413769601_414028801_4FGL_J1132.7+0034_daily_bin673.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/919787/ltcube_413769601_414028801_4FGL_J1132.7+0034_daily_bin673.fits
.....................!
real 190.76
user 186.21
sys 4.17

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/919787/ft1_filtered_4FGL_J1132.7+0034_daily_bin673.fits scfile=/scratch/kocevski/919787/ft2_4FGL_J1132.7+0034_daily_bin673.fits outfile=/scratch/kocevski/919787/cmap_413769601_414028801_4FGL_J1132.7+0034_daily_bin673.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919787/ft1_filtered_4FGL_J1132.7+0034_daily_bin673.fits scfile=/scratch/kocevski/919787/ft2_4FGL_J1132.7+0034_daily_bin673.fits outfile=/scratch/kocevski/919787/cmap_HighResolution_413769601_414028801_4FGL_J1132.7+0034_daily_bin673.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/919787/ft1_filtered_4FGL_J1132.7+0034_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/919787/ft2_4FGL_J1132.7+0034_daily_bin673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919787/Model_4FGL_J1132.7+0034_daily_bin673.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/919787/ft1_filtered_4FGL_J1132.7+0034_daily_bin673.fits.....................!
real 50.67
user 49.28
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0033       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1657       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.965       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .82168E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.552       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69884       1.0000         .10000E-03   10000.    
    13 'Prefactor '    62.840       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5039       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5470       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    135.67       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .49894E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.870       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.107       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.820       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14091E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.9908       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .46012       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.5731       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=   5116.650     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     3190 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9949        10.766        .24335E-06    .74210E-02
   2  norm          3.1647        .96134       -.27299E-06   -.12448E-02
   3  Prefactor     .10000E-03    6.9157        .30564E-06** at limit **
   4  Prefactor     32.925        3.0856       -.41643E-06    .25660E-03
   5  Prefactor     .30363E-03    415.15       -.35595E-04** at limit **
   6  Prefactor     .10000E-03    8.8907       -.20831E-05** at limit **
   7  Prefactor     12.550        1.2581        .16276E-08   -.96920E-03
   8  Prefactor     .10008E-03    16.750        .79204E-06** at limit **
   9  norm          .10000E-03    5.0745        .73796E-06** at limit **
  10  Prefactor     .10000E-03    1.7950       -.32438E-06** at limit **
  11  norm          .10000E-03    14.132        .17115E-05** at limit **
  12  Prefactor     .69708        1.5603       -.11555E-06    .33077E-04
  13  Prefactor     62.821        1.7883       -.16331E-06   -.50390E-03
  14  norm          1.5121        7.6981       -.50117E-06   -.59887E-03
  15  Prefactor     2.5383        5.1976       -.47172E-06    .48144E-03
  16  Prefactor     .10007E-03    18.095        .13589E-05** at limit **
  17  Prefactor     135.64        4.1499       -.26450E-06    .48227E-02
  18  Prefactor     .10000E-03    3.4139       -.16334E-06** at limit **
  19  Prefactor     .10025E-03    63.134       -.81005E-06** at limit **
  20  Prefactor     .10000E-03    5.7113       -.20465E-06** at limit **
  21  Prefactor     .21697E-03    153.82       -.11914E-04** at limit **
  22  Prefactor     32.906        5.0647        .72463E-06   -.51188E-03
  23  Prefactor     21.027        13.209       -.22681E-05    .45760E-02
  24  Prefactor     27.819        1.2027       -.87066E-07   -.43141E-03
  25  Prefactor     .15115E-03    115.60        .79838E-05** at limit **
  26  Prefactor     .10000E-03    4.7674        .31479E-06** at limit **
  27  norm          1.9908        2.1907       -.17702E-06   -.90089E-04
  28  Normalizat    .46076        .27104        .62231E-05    .16071E-03
  29  Prefactor     1.5730        .22686       -.50611E-06    .26787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.99492
  norm       = 3.16473
  Prefactor  = 0.0001
  Prefactor  = 32.9252
  Prefactor  = 0.000303631
  Prefactor  = 0.000100001
  Prefactor  = 12.55
  Prefactor  = 0.000100077
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.697082
  Prefactor  = 62.821
  norm       = 1.51208
  Prefactor  = 2.53829
  Prefactor  = 0.000100069
  Prefactor  = 135.645
  Prefactor  = 0.0001
  Prefactor  = 0.000100247
  Prefactor  = 0.0001
  Prefactor  = 0.000216971
  Prefactor  = 32.9062
  Prefactor  = 21.0267
  Prefactor  = 27.8188
  Prefactor  = 0.000151147
  Prefactor  = 0.0001
  norm       = 1.99076
  Normalizat = 0.46076
  Prefactor  = 1.57303
 **********
 **   18 **HESSE 
 **********

 FCN=   5116.650     FROM HESSE     STATUS=OK           619 CALLS     3809 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9949        11.563        .44945E-02   -1.5261    
   2  norm          3.1647        .97214        .56947E-02   -1.5352    
   3  Prefactor     .10000E-03    6.9083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.925        31.298        .17448E-02   -1.4560    
   5  Prefactor     .30363E-03    8.1739        .94259E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.8174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.550        6.7206        .28266E-02   -1.4999    
   8  Prefactor     .10008E-03    16.822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.0587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    14.129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .69708        1.7660        .30584E-01   -1.5541    
  13  Prefactor     62.821        33.894        .12655E-02   -1.4121    
  14  norm          1.5121        8.2620        .87260E-02   -1.5462    
  15  Prefactor     2.5383        5.4408        .63966E-02   -1.5389    
  16  Prefactor     .10007E-03    18.127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     135.64        117.84        .86444E-03   -1.3373    
  18  Prefactor     .10000E-03    3.4134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10025E-03    63.241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .21697E-03    16.051        .92696E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.906        45.985        .17473E-02   -1.4560    
  23  Prefactor     21.027        63.107        .21796E-02   -1.4791    
  24  Prefactor     27.819        31.213        .18989E-02   -1.4653    
  25  Prefactor     .15115E-03    147.44        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.7726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.9908        2.1942        .73409E-02   -1.5426    
  28  Normalizat    .46076        .29146        .10110       -1.1427    
  29  Prefactor     1.5730        .21574        .48696E-01   -.75514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12842e-06
Minuit parameter uncertainties:
  1  11.568
  2  0.972141
  3  1.63757e-05
  4  31.3134
  5  0.0816069
  6  0.000133615
  7  6.72097
  8  0.00228324
  9  2.84964e-05
  10  7.33715e-06
  11  0.000259658
  12  1.76614
  13  33.9047
  14  7.07031
  15  5.44191
  16  0.00223881
  17  118.04
  18  5.51602e-06
  19  0.00790494
  20  1.00526e-05
  21  0.0866848
  22  46.0342
  23  63.3088
  24  31.2314
  25  0.174109
  26  1.35044e-05
  27  2.19424
  28  0.292429
  29  0.21587
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  6.971e-01  1.766e+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.573e+00  2.159e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  4.608e-01  2.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 8.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919787/likelihoodResults_413769601_414028801_4FGL_J1132.7+0034_daily_bin673.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) = 5116.42007433
delta logL = 0.230266986069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5116.41413223
delta logL = 0.236209086626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84467       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3951       1.0000          .0000       10.000    
     3 'Normalizat'    .47067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5665       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5116.414     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      261 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84414        1.5086        .12756E-02    .58715E-04
   2  Index         1.3951        .86803        .12512E-01   -.17807E-03
   3  Normalizat    .47055        .26575        .44340E-03    .56407E-06
   4  Prefactor     1.5666        .22523        .21550E-03   -.13716E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.84414
  Index      = 1.39513
  Normalizat = 0.470552
  Prefactor  = 1.5666
 **********
 **   18 **HESSE 
 **********

 FCN=   5116.414     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84414        1.5096        .51024E-04   -1.5524    
   2  Index         1.3951        .86934        .25024E-02   -.80521    
   3  Normalizat    .47055        .26581        .17736E-04   -1.1380    
   4  Prefactor     1.5666        .22529        .86201E-05   -.75691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26127e-12
Minuit parameter uncertainties:
  1  1.50963
  2  0.878729
  3  0.266532
  4  0.225437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919787': 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) = 5116.41413195
delta logL = 0.236209367862

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  8.441e-01  1.510e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.395e+00  8.787e-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.567e+00  2.254e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  4.706e-01  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/919787/cmap_HighResolution_413769601_414028801_4FGL_J1132.7+0034_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='8.16e-08', time_completed='2021-09-04 03:52:43.829212', job_id='919787', GAL2='1.57', fit_tolerance='1e-08', EG2='0.47', EG='0.46', time_epoch_completed='1630752763.83', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.57', dlogl='2.36e-01', ts2='0.74', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='673' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 919787: <4FGL_J1132.7+0034_daily_bin673> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin673 173.196 0.5737 413769601 414028801 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 :                                   742.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            978 sec.

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

