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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin473
RA = 173.196, Dec = 0.5737
tmin = 361929601, tmax = 362188801
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='919493', job_status='RUN', time_executed='2021-09-04 03:38:46.181003', time_epoch_executed='1630751926.18' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919493

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919493/ft1_4FGL_J1132.7+0034_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919493/ft2_4FGL_J1132.7+0034_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919493/ft1_4FGL_J1132.7+0034_daily_bin473.fits outfile=/scratch/kocevski/919493/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin473.fits ra=173.196 dec=0.5737 rad=12.0 tmin=361929601.0 tmax=362188801.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.48
user 5.22
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919493/ft1_filtered_4FGL_J1132.7+0034_daily_bin473.fits" evtable="EVENTS" scfile=/scratch/kocevski/919493/ft2_4FGL_J1132.7+0034_daily_bin473.fits sctable="SC_DATA" outfile=/scratch/kocevski/919493/ltcube_361929601_362188801_4FGL_J1132.7+0034_daily_bin473.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/919493/ft2_4FGL_J1132.7+0034_daily_bin473.fits
.....................!
real 11.97
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919493/ft1_filtered_4FGL_J1132.7+0034_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/919493/ft2_4FGL_J1132.7+0034_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/919493/ltcube_361929601_362188801_4FGL_J1132.7+0034_daily_bin473.fits outfile=/scratch/kocevski/919493/expmap_361929601_362188801_4FGL_J1132.7+0034_daily_bin473.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/919493/ltcube_361929601_362188801_4FGL_J1132.7+0034_daily_bin473.fits
.....................!
real 189.78
user 184.77
sys 4.63

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/919493/ft1_filtered_4FGL_J1132.7+0034_daily_bin473.fits scfile=/scratch/kocevski/919493/ft2_4FGL_J1132.7+0034_daily_bin473.fits outfile=/scratch/kocevski/919493/cmap_361929601_362188801_4FGL_J1132.7+0034_daily_bin473.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919493/ft1_filtered_4FGL_J1132.7+0034_daily_bin473.fits scfile=/scratch/kocevski/919493/ft2_4FGL_J1132.7+0034_daily_bin473.fits outfile=/scratch/kocevski/919493/cmap_HighResolution_361929601_362188801_4FGL_J1132.7+0034_daily_bin473.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919493/ft1_filtered_4FGL_J1132.7+0034_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/919493/ft2_4FGL_J1132.7+0034_daily_bin473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919493/Model_4FGL_J1132.7+0034_daily_bin473.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/919493/ft1_filtered_4FGL_J1132.7+0034_daily_bin473.fits....................!
real 63.27
user 61.88
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6075       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.850       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46935       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .71656       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10877E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.201       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13371E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.6322       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.281       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .72653       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.242       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.424       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.666       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.7583       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2281       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0017       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=   6796.742     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3726 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.008        .50309E-06** at limit **
   2  norm          .10000E-03    .16815        .24148E-07** at limit **
   3  Prefactor     8.6053        7.9224        .18141E-06   -.44347E-04
   4  Prefactor     13.839        17.404        .22681E-06    .19631E-04
   5  Prefactor     13.437        14.910       -.34163E-06   -.12497E-03
   6  Prefactor     .10000E-03    10.769       -.60347E-07** at limit **
   7  Prefactor     .46500        2.6505        .28203E-06   -.45546E-03
   8  Prefactor     .10000E-03    22.180        .17395E-06** at limit **
   9  norm          .72726        7.3566        .14457E-05   -.35445E-03
  10  Prefactor     .10000E-03    3.7199       -.97697E-06** at limit **
  11  norm          13.244        19.730        .11971E-06   -.73412E-04
  12  Prefactor     1.6494        1.5805        .12957E-07   -.43280E-04
  13  Prefactor     .10000E-03    35.657       -.54366E-06** at limit **
  14  norm          4.6320        4.4532        .23877E-05    .80268E-04
  15  Prefactor     .10000E-03    2.5291       -.19071E-06** at limit **
  16  Prefactor     .10000E-03    14.207       -.81915E-07** at limit **
  17  Prefactor     .10000E-03    34.069       -.15170E-06** at limit **
  18  Prefactor     .10000E-03    15.365        .18370E-06** at limit **
  19  Prefactor     17.312        28.265       -.23620E-06    .12375E-04
  20  Prefactor     .72166        5.8920        .41489E-06   -.65025E-04
  21  Prefactor     .10000E-03    7.7703        .17161E-06** at limit **
  22  Prefactor     35.269        30.516        .24005E-07    .28439E-04
  23  Prefactor     .10000E-03    29.449       -.14779E-05** at limit **
  24  Prefactor     32.427        20.826       -.58814E-07   -.29145E-04
  25  Prefactor     20.595        50.410       -.16133E-05   -.12785E-03
  26  Prefactor     .10000E-03    7.1514       -.44473E-07** at limit **
  27  norm          1.7581        1.7113        .35024E-07   -.10379E-04
  28  Normalizat    1.2283        .20043        .19917E-06   -.19277E-03
  29  Prefactor     1.0017        .16033       -.10177E-05   -.12606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.60527
  Prefactor  = 13.839
  Prefactor  = 13.4365
  Prefactor  = 0.0001
  Prefactor  = 0.464999
  Prefactor  = 0.0001
  norm       = 0.72726
  Prefactor  = 0.0001
  norm       = 13.2442
  Prefactor  = 1.6494
  Prefactor  = 0.0001
  norm       = 4.63203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3117
  Prefactor  = 0.721661
  Prefactor  = 0.0001
  Prefactor  = 35.2686
  Prefactor  = 0.0001
  Prefactor  = 32.4265
  Prefactor  = 20.5951
  Prefactor  = 0.0001
  norm       = 1.75813
  Normalizat = 1.22832
  Prefactor  = 1.00165
 **********
 **   18 **HESSE 
 **********

 FCN=   6796.742     FROM HESSE     STATUS=OK           559 CALLS     4285 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .17229        .65183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6053        7.8323        .13663E-03   -1.5121    
   4  Prefactor     13.839        17.404        .10763E-03   -1.4964    
   5  Prefactor     13.437        14.746        .10927E-03   -1.4975    
   6  Prefactor     .10000E-03    10.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .46500        12.121        .22927E-02   -1.5572    
   8  Prefactor     .10000E-03    22.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .72726        15.656        .37658E-02   -1.5537    
  10  Prefactor     .10000E-03    3.8314        .30815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.244        19.610        .11025E-03   -1.4980    
  12  Prefactor     1.6494        1.5896        .98045E-04   -1.5451    
  13  Prefactor     .10000E-03    36.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6320        4.4807        .82791E-03   -1.5277    
  15  Prefactor     .10000E-03    2.6464        .25589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.312        28.272        .96346E-04   -1.4876    
  20  Prefactor     .72166        14.391        .37865E-02   -1.5538    
  21  Prefactor     .10000E-03    7.8417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     35.269        30.516        .67506E-04   -1.4520    
  23  Prefactor     .10000E-03    29.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.427        20.797        .70370E-04   -1.4568    
  25  Prefactor     20.595        50.528        .88107E-04   -1.4800    
  26  Prefactor     .10000E-03    7.1997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.7581        1.6970        .10333E-03   -1.5443    
  28  Normalizat    1.2283        .23750        .26893E-03   -.85732    
  29  Prefactor     1.0017        .18985        .23906E-03   -.92674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32301e-08
Minuit parameter uncertainties:
  1  3.42725e-05
  2  4.98838e-08
  3  7.83327
  4  17.4107
  5  14.7497
  6  3.19797e-05
  7  4.74864
  8  6.59619e-05
  9  6.75016
  10  1.82437e-05
  11  19.6197
  12  1.58963
  13  6.33928e-05
  14  4.48098
  15  3.36402e-05
  16  4.66575e-05
  17  1.94134e-05
  18  6.09369e-05
  19  28.2942
  20  6.44662
  21  1.17512e-05
  22  30.53
  23  0.000175046
  24  20.8021
  25  50.6329
  26  6.54169e-06
  27  1.69702
  28  0.237707
  29  0.189972
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.649e+00  1.590e+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.002e+00  1.900e-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.228e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.21
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.20e-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) = 6795.98209336
delta logL = 0.759695192726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6795.9572661
delta logL = 0.784522452078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2727       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3362       1.0000          .0000       10.000    
     3 'Normalizat'    1.2436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99735       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=   6795.957     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2713        1.2419        .98546E-02   -.33742E-03
   2  Index         1.3358        .41001        .24923       -.58466E-04
   3  Normalizat    1.2437        .19182        .60461E-01    .10671E-04
   4  Prefactor     .99730        .15662        .46234E-01    .10216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27127
  Index      = 1.33583
  Normalizat = 1.24366
  Prefactor  = 0.997296
 **********
 **   18 **HESSE 
 **********

 FCN=   6795.957     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2713        1.6244        .88434E-04   -1.5482    
   2  Index         1.3358        .59570        .97017E-02   -.82248    
   3  Normalizat    1.2437        .22818        .26741E-03   -.85264    
   4  Prefactor     .99730        .18648        .23948E-03   -.92820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71335e-09
Minuit parameter uncertainties:
  1  1.62442
  2  0.598782
  3  0.228368
  4  0.186603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919493': 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) = 6795.9572657
delta logL = 0.784522858938

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.271e+00  1.624e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.336e+00  5.988e-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.973e-01  1.866e-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.244e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.77
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.34 +/- 0.60
Photon Flux (Free Index): 8.43e-09 +/- 1.13e-08
Energy Flux (Free Index): 4.60e-05 +/- 6.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/919493/cmap_HighResolution_361929601_362188801_4FGL_J1132.7+0034_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='4.60e-05', photon_flux_error='2.36e-08', dlogl='7.85e-01', energy_flux='1.25e-05', photon_flux2='8.43e-09', job_status='DONE', time_completed='2021-09-04 03:52:10.645875', photon_index_error2='0.60', photon_index2='1.34', ts='4.21', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='6.62e-05', EG='1.23', time_epoch_completed='1630752730.65', return_code='0', job_id='919493', GAL2='1.00', EG2='1.24', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.13e-08', ts2='5.77', photon_index='2.14' WHERE bin_id='473' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:52:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 919493: <4FGL_J1132.7+0034_daily_bin473> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin473 173.196 0.5737 361929601 362188801 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 :                                   801.22 sec.
    Max Memory :                                 1253 MB
    Average Memory :                             312.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

