/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 48 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin337
RA = 173.196, Dec = 0.5737
tmin = 326678401, tmax = 326937601
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='918294', job_status='RUN', time_executed='2021-09-04 03:33:25.122970', time_epoch_executed='1630751605.12' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918294

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918294/ft1_4FGL_J1132.7+0034_daily_bin337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918294/ft2_4FGL_J1132.7+0034_daily_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918294/ft1_4FGL_J1132.7+0034_daily_bin337.fits outfile=/scratch/kocevski/918294/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin337.fits ra=173.196 dec=0.5737 rad=12.0 tmin=326678401.0 tmax=326937601.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.59
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918294/ft1_filtered_4FGL_J1132.7+0034_daily_bin337.fits" evtable="EVENTS" scfile=/scratch/kocevski/918294/ft2_4FGL_J1132.7+0034_daily_bin337.fits sctable="SC_DATA" outfile=/scratch/kocevski/918294/ltcube_326678401_326937601_4FGL_J1132.7+0034_daily_bin337.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/918294/ft2_4FGL_J1132.7+0034_daily_bin337.fits
.....................!
real 12.36
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918294/ft1_filtered_4FGL_J1132.7+0034_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/918294/ft2_4FGL_J1132.7+0034_daily_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/918294/ltcube_326678401_326937601_4FGL_J1132.7+0034_daily_bin337.fits outfile=/scratch/kocevski/918294/expmap_326678401_326937601_4FGL_J1132.7+0034_daily_bin337.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/918294/ltcube_326678401_326937601_4FGL_J1132.7+0034_daily_bin337.fits
.....................!
real 193.34
user 186.38
sys 6.03

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/918294/ft1_filtered_4FGL_J1132.7+0034_daily_bin337.fits scfile=/scratch/kocevski/918294/ft2_4FGL_J1132.7+0034_daily_bin337.fits outfile=/scratch/kocevski/918294/cmap_326678401_326937601_4FGL_J1132.7+0034_daily_bin337.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.59
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918294/ft1_filtered_4FGL_J1132.7+0034_daily_bin337.fits scfile=/scratch/kocevski/918294/ft2_4FGL_J1132.7+0034_daily_bin337.fits outfile=/scratch/kocevski/918294/cmap_HighResolution_326678401_326937601_4FGL_J1132.7+0034_daily_bin337.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918294/ft1_filtered_4FGL_J1132.7+0034_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/918294/ft2_4FGL_J1132.7+0034_daily_bin337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918294/Model_4FGL_J1132.7+0034_daily_bin337.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/918294/ft1_filtered_4FGL_J1132.7+0034_daily_bin337.fits.....................!
real 61.45
user 59.50
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3284       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4603       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0160       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18818E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7622       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.178       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.7084       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1893       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67146E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9060       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2005       1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.847       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.879       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.2617       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2881       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92655       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=   6481.343     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3668 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3290        8.7416        .27252E-05    .90629E-06
   2  norm          4.4602        .95002        .16049E-07   -.20266E-03
   3  Prefactor     .10000E-03    3.5287        .20079E-07** at limit **
   4  Prefactor     2.0138        22.159        .23258E-05    .23519E-05
   5  Prefactor     .10000E-03    73.163        .18822E-05** at limit **
   6  Prefactor     8.7542        10.578       -.35129E-06   -.78359E-04
   7  Prefactor     13.177        7.5819       -.12594E-05   -.17795E-03
   8  Prefactor     .10000E-03    34.602       -.17254E-06** at limit **
   9  norm          4.8950        12.060        .10269E-04    .36284E-04
  10  Prefactor     .10000E-03    3.8134       -.40406E-06** at limit **
  11  norm          .10000E-03    6.2884       -.59596E-07** at limit **
  12  Prefactor     .10000E-03    .70462        .99315E-07** at limit **
  13  Prefactor     .10000E-03    23.002        .30147E-06** at limit **
  14  norm          9.7084        7.4649        .12704E-05   -.17221E-04
  15  Prefactor     3.1909        3.5814        .27586E-07   -.41154E-04
  16  Prefactor     .10000E-03    10.437        .77271E-07** at limit **
  17  Prefactor     .10044E-03    1124.6       -.46287E-04** at limit **
  18  Prefactor     5.9044        8.1819       -.71798E-06    .19819E-04
  19  Prefactor     .10000E-03    15.874        .17081E-06** at limit **
  20  Prefactor     .10000E-03    5.4460       -.34015E-06** at limit **
  21  Prefactor     8.1891        16.100        .50727E-06   -.69882E-05
  22  Prefactor     48.876        47.869        .55298E-06    .74980E-04
  23  Prefactor     14.843        51.617       -.89527E-05   -.33610E-04
  24  Prefactor     .10000E-03    24.153        .17739E-06** at limit **
  25  Prefactor     .10000E-03    39.339       -.41430E-06** at limit **
  26  Prefactor     .10000E-03    5.2823       -.12539E-07** at limit **
  27  norm          2.2619        2.3671        .15341E-06    .53693E-05
  28  Normalizat    1.2879        .22203       -.27389E-06   -.13318E-03
  29  Prefactor     .92671        .17043       -.31303E-05   -.50894E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.32899
  norm       = 4.46022
  Prefactor  = 0.0001
  Prefactor  = 2.01382
  Prefactor  = 0.0001
  Prefactor  = 8.75419
  Prefactor  = 13.1774
  Prefactor  = 0.0001
  norm       = 4.89498
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.7084
  Prefactor  = 3.19086
  Prefactor  = 0.0001
  Prefactor  = 0.000100441
  Prefactor  = 5.90437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.18906
  Prefactor  = 48.876
  Prefactor  = 14.8434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26192
  Normalizat = 1.2879
  Prefactor  = 0.92671
 **********
 **   18 **HESSE 
 **********

 FCN=   6481.343     FROM HESSE     STATUS=OK           551 CALLS     4219 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3290        8.7435        .74081E-03   -1.5166    
   2  norm          4.4602        .95064        .34306E-04   -1.5286    
   3  Prefactor     .10000E-03    3.5321        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0138        22.200        .29152E-03   -1.5424    
   5  Prefactor     .10000E-03    75.923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7542        10.535        .13541E-03   -1.5116    
   7  Prefactor     13.177        7.5887        .11034E-03   -1.4982    
   8  Prefactor     .10000E-03    34.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8950        12.119        .90925E-03   -1.5265    
  10  Prefactor     .10000E-03    3.9001        .15338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.2896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .71382        .65990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.7084        7.4504        .64305E-03   -1.5085    
  15  Prefactor     3.1909        3.5653        .15193E-03   -1.5351    
  16  Prefactor     .10000E-03    10.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10044E-03    1155.3        .18766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9044        8.1728        .16524E-03   -1.5222    
  19  Prefactor     .10000E-03    15.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.1891        16.108        .14000E-03   -1.5136    
  22  Prefactor     48.876        47.846        .57376E-04   -1.4309    
  23  Prefactor     14.843        51.705        .10384E-03   -1.4937    
  24  Prefactor     .10000E-03    24.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    39.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.2901        .18064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.2619        2.3557        .12318E-03   -1.5407    
  28  Normalizat    1.2879        .26233        .28858E-03   -.83928    
  29  Prefactor     .92671        .19894        .26168E-03   -.95214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02435e-10
Minuit parameter uncertainties:
  1  8.74502
  2  0.950643
  3  4.43676e-07
  4  13.3787
  5  6.31705e-05
  6  10.5373
  7  7.58926
  8  0.00015221
  9  12.1254
  10  5.7898e-05
  11  9.83947e-06
  12  2.93631e-06
  13  5.02186e-05
  14  7.4511
  15  3.56557
  16  2.00633e-05
  17  0.0460589
  18  8.17433
  19  1.70427e-05
  20  4.48097e-05
  21  16.1165
  22  47.8834
  23  51.8617
  24  0.000111179
  25  0.00010383
  26  7.30663e-06
  27  2.35584
  28  0.262601
  29  0.199094
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.936e-06  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.267e-01  1.991e-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.288e+00  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/918294/likelihoodResults_326678401_326937601_4FGL_J1132.7+0034_daily_bin337.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) = 6481.34963785
delta logL = -0.00636669567848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6481.34327117
delta logL = -1.85855242307e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1272       1.0000          .0000       10.000    
     3 'Normalizat'    1.2879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92677       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6481.343     FROM MIGRAD    STATUS=FAILED        85 CALLS      233 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    28.934        .66201E-03** at limit **
   2  Index         2.0862        5.9589        .50000        .80486E-04
   3  Normalizat    1.2879        .36107E-01    .28857E-03    .71701E-04
   4  Prefactor     .92671        .28467E-01    .26168E-03    .87802E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6481.343     FROM SIMPLEX   STATUS=PROGRESS     136 CALLS      369 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    28.934        .97195E-04** at limit **
   2  Index         2.0856        5.9589        .21514E-03    .80486E-04
   3  Normalizat    1.2879        .36107E-01    .31110E-05    .71701E-04
   4  Prefactor     .92670        .28467E-01    .22109E-05    .87802E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6481.343     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      448 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .83210        .26480E-04** at limit **
   2  Index         1.9205        6.3550        .50000        .44593E-06
   3  Normalizat    1.2879        .24859        .23086E-05   -.23441E-03
   4  Prefactor     .92671        .19603        .20935E-05   -.24655E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92049
  Normalizat = 1.2879
  Prefactor  = 0.926708
 **********
 **   18 **HESSE 
 **********

 FCN=   6481.343     FROM HESSE     STATUS=OK            29 CALLS      477 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .74641        .52961E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9205        7.8666        .50000       -.66353    
   3  Normalizat    1.2879        .24072        .46172E-06   -.83928    
   4  Prefactor     .92671        .19081        .41869E-06   -.95214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23099e-10
Minuit parameter uncertainties:
  1  7.3995e-06
  2  44.6828
  3  0.240926
  4  0.19095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918294': 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) = 6481.3432684
delta logL = 2.75005004369e-06

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  7.400e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.920e+00  4.468e+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.267e-01  1.909e-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.288e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/918294/cmap_HighResolution_326678401_326937601_4FGL_J1132.7+0034_daily_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-09-04 03:48:43.606215', job_id='918294', GAL2='0.93', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630752523.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.75e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='337' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:48:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 918294: <4FGL_J1132.7+0034_daily_bin337> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin337> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:32:10 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:32:11 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:11 2021
Terminated at Sat Sep  4 03:48:44 2021
Results reported at Sat Sep  4 03:48:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin337 173.196 0.5737 326678401 326937601 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 :                                   883.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

