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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin330
RA = 173.196, Dec = 0.5737
tmin = 324864001, tmax = 325123201
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='918282', job_status='RUN', time_executed='2021-09-04 03:32:31.943556', time_epoch_executed='1630751551.94' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918282/ft1_4FGL_J1132.7+0034_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918282/ft2_4FGL_J1132.7+0034_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918282/ft1_4FGL_J1132.7+0034_daily_bin330.fits outfile=/scratch/kocevski/918282/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin330.fits ra=173.196 dec=0.5737 rad=12.0 tmin=324864001.0 tmax=325123201.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.70
user 5.38
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918282/ft1_filtered_4FGL_J1132.7+0034_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/918282/ft2_4FGL_J1132.7+0034_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/918282/ltcube_324864001_325123201_4FGL_J1132.7+0034_daily_bin330.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/918282/ft2_4FGL_J1132.7+0034_daily_bin330.fits
.....................!
real 15.13
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918282/ft1_filtered_4FGL_J1132.7+0034_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/918282/ft2_4FGL_J1132.7+0034_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/918282/ltcube_324864001_325123201_4FGL_J1132.7+0034_daily_bin330.fits outfile=/scratch/kocevski/918282/expmap_324864001_325123201_4FGL_J1132.7+0034_daily_bin330.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/918282/ltcube_324864001_325123201_4FGL_J1132.7+0034_daily_bin330.fits
.....................!
real 190.57
user 185.56
sys 4.57

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/918282/ft1_filtered_4FGL_J1132.7+0034_daily_bin330.fits scfile=/scratch/kocevski/918282/ft2_4FGL_J1132.7+0034_daily_bin330.fits outfile=/scratch/kocevski/918282/cmap_324864001_325123201_4FGL_J1132.7+0034_daily_bin330.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918282/ft1_filtered_4FGL_J1132.7+0034_daily_bin330.fits scfile=/scratch/kocevski/918282/ft2_4FGL_J1132.7+0034_daily_bin330.fits outfile=/scratch/kocevski/918282/cmap_HighResolution_324864001_325123201_4FGL_J1132.7+0034_daily_bin330.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/918282/ft1_filtered_4FGL_J1132.7+0034_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/918282/ft2_4FGL_J1132.7+0034_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918282/Model_4FGL_J1132.7+0034_daily_bin330.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/918282/ft1_filtered_4FGL_J1132.7+0034_daily_bin330.fits.....................!
real 51.30
user 49.88
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.405       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3690       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0705       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0967       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.3447       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8641       1.0000         .10000E-03   10000.    
    11 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85308E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12505E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.762       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.426       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5900       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.241       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8075       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.165       1.0000         .10000E-03   10000.    
    27 'norm      '    .81340       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1995       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84937       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=   5134.524     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3712 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.404        11.931       -.17370E-06    .48645E-05
   2  norm          1.3690        .65926       -.19004E-06    .61286E-03
   3  Prefactor     5.0706        7.3652        .40000E-05   -.71800E-04
   4  Prefactor     .10000E-03    35.038       -.61038E-06** at limit **
   5  Prefactor     .10000E-03    14.398       -.26120E-06** at limit **
   6  Prefactor     .10000E-03    9.9479       -.36069E-06** at limit **
   7  Prefactor     3.0968        3.6641       -.28487E-06   -.46559E-04
   8  Prefactor     .10000E-03    140.65        .12402E-05** at limit **
   9  norm          7.3433        9.1962        .29412E-05   -.16310E-04
  10  Prefactor     3.8648        4.1576       -.14121E-06   -.49575E-04
  11  norm          .10000E-03    50.163       -.21289E-06** at limit **
  12  Prefactor     7.9867        3.5370        .40106E-07   -.10216E-04
  13  Prefactor     .10000E-03    87.942        .11080E-05** at limit **
  14  norm          .10000E-03    1.7853       -.27542E-07** at limit **
  15  Prefactor     .10000E-03    2.2974       -.78050E-07** at limit **
  16  Prefactor     .10000E-03    9.2158        .92621E-08** at limit **
  17  Prefactor     29.744        101.73        .42008E-07   -.13316E-04
  18  Prefactor     .10000E-03    12.770       -.80649E-07** at limit **
  19  Prefactor     13.431        29.627       -.16671E-06   -.43442E-04
  20  Prefactor     .10000E-03    3.3514       -.79206E-09** at limit **
  21  Prefactor     3.5940        13.606        .17599E-05   -.19259E-04
  22  Prefactor     14.365        42.855        .47003E-06    .14687E-03
  23  Prefactor     .10000E-03    53.330       -.18889E-07** at limit **
  24  Prefactor     3.8284        53.620       -.10614E-05   -.30705E-04
  25  Prefactor     .10000E-03    30.840        .34847E-06** at limit **
  26  Prefactor     16.184        18.312       -.66771E-06   -.54019E-04
  27  norm          .80750        2.6100        .10724E-05    .40949E-03
  28  Normalizat    1.1997        .22933        .12544E-05   -.10895E-03
  29  Prefactor     .84920        .17630       -.19689E-05    .30076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4042
  norm       = 1.36901
  Prefactor  = 5.0706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.09675
  Prefactor  = 0.000100002
  norm       = 7.34332
  Prefactor  = 3.86476
  norm       = 0.0001
  Prefactor  = 7.98667
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7438
  Prefactor  = 0.0001
  Prefactor  = 13.4308
  Prefactor  = 0.0001
  Prefactor  = 3.59397
  Prefactor  = 14.3652
  Prefactor  = 0.0001
  Prefactor  = 3.82844
  Prefactor  = 0.0001
  Prefactor  = 16.1842
  norm       = 0.807498
  Normalizat = 1.19969
  Prefactor  = 0.849204
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.524     FROM HESSE     STATUS=OK           555 CALLS     4267 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.404        11.930        .81085E-04   -1.4720    
   2  norm          1.3690        .65890        .36872E-04   -1.5474    
   3  Prefactor     5.0706        7.3264        .89281E-03   -1.5258    
   4  Prefactor     .10000E-03    35.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0968        3.6523        .14154E-03   -1.5356    
   8  Prefactor     .10000E-03    141.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.3433        9.1648        .73998E-03   -1.5166    
  10  Prefactor     3.8648        4.1270        .14140E-03   -1.5315    
  11  norm          .10000E-03    50.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9867        3.5449        .85164E-04   -1.5143    
  13  Prefactor     .10000E-03    91.421        .41727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.7907        .93477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8546        .20890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.2290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.744        102.39        .73441E-04   -1.4617    
  18  Prefactor     .10000E-03    12.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.431        29.484        .10932E-03   -1.4975    
  20  Prefactor     .10000E-03    3.3614        .12810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5940        13.502        .21327E-03   -1.5329    
  22  Prefactor     14.365        42.387        .10614E-03   -1.4950    
  23  Prefactor     .10000E-03    53.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.8284        52.715        .20686E-03   -1.5317    
  25  Prefactor     .10000E-03    30.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.184        17.684        .99616E-04   -1.4903    
  27  norm          .80750        2.2718        .17707E-02   -1.5528    
  28  Normalizat    1.1997        .27162        .26607E-03   -.86612    
  29  Prefactor     .84920        .20667        .24688E-03   -.97939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30974e-10
Minuit parameter uncertainties:
  1  11.9308
  2  0.658907
  3  7.32771
  4  0.000247951
  5  6.75272e-05
  6  5.61673e-05
  7  3.65253
  8  0.00112371
  9  9.16658
  10  4.12735
  11  0.00016095
  12  3.54502
  13  0.000376899
  14  4.56089e-07
  15  3.40216e-05
  16  4.9929e-06
  17  103
  18  3.10246e-05
  19  29.5157
  20  1.01877e-06
  21  13.5136
  22  42.4762
  23  0.000137028
  24  28.4426
  25  0.000205924
  26  17.6899
  27  2.27202
  28  0.271937
  29  0.206861
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  7.987e+00  3.545e+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:  8.492e-01  2.069e-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.200e+00  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.26
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 5.25e-08
Energy Flux (Fixed Index): 6.03e-05 +/- 2.68e-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) = 5134.05649415
delta logL = 0.467352332324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5134.03496036
delta logL = 0.488886116942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8562       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5221       1.0000          .0000       10.000    
     3 'Normalizat'    1.1440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87702       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=   5134.035     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8567        36.600        .41488E-02    .13752E-03
   2  Index         2.5220        2.7947        .92076E-01    .11679E-03
   3  Normalizat    1.1440        .13720        .61339E-01    .10605E-04
   4  Prefactor     .87706        .85384E-01    .44711E-01    .10707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.85666
  Index      = 2.52198
  Normalizat = 1.14399
  Prefactor  = 0.877063
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.035     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8567        3.7670        .65606E-04   -1.5224    
   2  Index         2.5220        .42993        .37563E-02   -.51853    
   3  Normalizat    1.1440        .26408        .27130E-03   -.88352    
   4  Prefactor     .87706        .20622        .24323E-03   -.96947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78561e-12
Minuit parameter uncertainties:
  1  3.76719
  2  0.430635
  3  0.264384
  4  0.206401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918282': 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) = 5134.03496031
delta logL = 0.488886166359

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  5.857e+00  3.767e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.522e+00  4.306e-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:  8.771e-01  2.064e-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.144e+00  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.22
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.52 +/- 0.43
Photon Flux (Free Index): 1.64e-07 +/- 7.73e-08
Energy Flux (Free Index): 4.65e-05 +/- 2.11e-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/918282/cmap_HighResolution_324864001_325123201_4FGL_J1132.7+0034_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='4.65e-05', photon_flux_error='5.25e-08', dlogl='4.89e-01', energy_flux='6.03e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-04 03:44:13.713831', photon_index_error2='0.43', photon_index2='2.52', ts='14.26', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='1.20', time_epoch_completed='1630752253.71', return_code='0', job_id='918282', GAL2='0.88', EG2='1.14', return_code2='0', energy_flux_error='2.68e-05', photon_flux_error2='7.73e-08', ts2='15.22', photon_index='2.14' WHERE bin_id='330' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:44:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 918282: <4FGL_J1132.7+0034_daily_bin330> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin330> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:32:09 2021
Job was executed on host(s) <bullet0043>, 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:44:15 2021
Results reported at Sat Sep  4 03:44:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin330 173.196 0.5737 324864001 325123201 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            726 sec.

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

