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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin415
RA = 173.196, Dec = 0.5737
tmin = 346896001, tmax = 347155201
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='918414', job_status='RUN', time_executed='2021-09-04 03:35:04.235782', time_epoch_executed='1630751704.24' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918414

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918414/ft1_4FGL_J1132.7+0034_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918414/ft2_4FGL_J1132.7+0034_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918414/ft1_4FGL_J1132.7+0034_daily_bin415.fits outfile=/scratch/kocevski/918414/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin415.fits ra=173.196 dec=0.5737 rad=12.0 tmin=346896001.0 tmax=347155201.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.43
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918414/ft1_filtered_4FGL_J1132.7+0034_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/918414/ft2_4FGL_J1132.7+0034_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/918414/ltcube_346896001_347155201_4FGL_J1132.7+0034_daily_bin415.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/918414/ft2_4FGL_J1132.7+0034_daily_bin415.fits
.....................!
real 11.66
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918414/ft1_filtered_4FGL_J1132.7+0034_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/918414/ft2_4FGL_J1132.7+0034_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/918414/ltcube_346896001_347155201_4FGL_J1132.7+0034_daily_bin415.fits outfile=/scratch/kocevski/918414/expmap_346896001_347155201_4FGL_J1132.7+0034_daily_bin415.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/918414/ltcube_346896001_347155201_4FGL_J1132.7+0034_daily_bin415.fits
.....................!
real 193.35
user 186.67
sys 6.35

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/918414/ft1_filtered_4FGL_J1132.7+0034_daily_bin415.fits scfile=/scratch/kocevski/918414/ft2_4FGL_J1132.7+0034_daily_bin415.fits outfile=/scratch/kocevski/918414/cmap_346896001_347155201_4FGL_J1132.7+0034_daily_bin415.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918414/ft1_filtered_4FGL_J1132.7+0034_daily_bin415.fits scfile=/scratch/kocevski/918414/ft2_4FGL_J1132.7+0034_daily_bin415.fits outfile=/scratch/kocevski/918414/cmap_HighResolution_346896001_347155201_4FGL_J1132.7+0034_daily_bin415.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918414/ft1_filtered_4FGL_J1132.7+0034_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/918414/ft2_4FGL_J1132.7+0034_daily_bin415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918414/Model_4FGL_J1132.7+0034_daily_bin415.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/918414/ft1_filtered_4FGL_J1132.7+0034_daily_bin415.fits.....................!
real 53.88
user 52.49
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.460       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.720       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.7542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .60961       1.0000         .10000E-03   10000.    
    11 'norm      '    19.367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3905       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8306       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8767       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6544       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.650       1.0000         .10000E-03   10000.    
    27 'norm      '    .15811E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0081       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91742       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=   5557.158     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3719 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9400        .18726E-07** at limit **
   2  norm          .10000E-03    .34758        .25302E-06** at limit **
   3  Prefactor     14.434        8.5513       -.68274E-06   -.14022E-03
   4  Prefactor     22.704        19.579       -.32824E-06   -.92397E-05
   5  Prefactor     .10000E-03    12.386       -.23927E-06** at limit **
   6  Prefactor     .10000E-03    4.2823       -.39315E-06** at limit **
   7  Prefactor     .10000E-03    4.3962       -.10402E-06** at limit **
   8  Prefactor     .10000E-03    25.754       -.32471E-06** at limit **
   9  norm          7.7495        8.0330        .63518E-06    .57571E-04
  10  Prefactor     .62883        8.8741       -.25567E-05   -.80288E-04
  11  norm          19.346        23.989        .60623E-06    .23083E-04
  12  Prefactor     2.3909        1.9909        .52385E-07   -.26729E-04
  13  Prefactor     .10000E-03    39.664        .62147E-06** at limit **
  14  norm          .10000E-03    3.0001       -.12004E-06** at limit **
  15  Prefactor     1.8316        3.0431        .39527E-06   -.86661E-04
  16  Prefactor     9.8775        15.508        .10930E-06   -.53336E-05
  17  Prefactor     .10000E-03    26.271       -.37866E-07** at limit **
  18  Prefactor     .31417        52.887        .26801E-05    .20951E-03
  19  Prefactor     .10000E-03    43.152       -.92209E-07** at limit **
  20  Prefactor     .10000E-03    4.0146        .15254E-06** at limit **
  21  Prefactor     .10000E-03    9.0469       -.86433E-07** at limit **
  22  Prefactor     .10000E-03    24.346       -.11392E-05** at limit **
  23  Prefactor     .10000E-03    9.0093       -.11074E-06** at limit **
  24  Prefactor     6.6578        14.965        .27123E-06   -.24478E-04
  25  Prefactor     .10000E-03    11.967        .30241E-06** at limit **
  26  Prefactor     11.653        10.573        .15121E-06   -.13099E-03
  27  norm          .10018E-03    7.3467        .14822E-05** at limit **
  28  Normalizat    1.0080        .19543        .24912E-06    .99788E-04
  29  Prefactor     .91736        .15819        .18498E-06    .16966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4342
  Prefactor  = 22.7042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.74947
  Prefactor  = 0.628835
  norm       = 19.3457
  Prefactor  = 2.39089
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.83159
  Prefactor  = 9.87754
  Prefactor  = 0.0001
  Prefactor  = 0.31417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.65776
  Prefactor  = 0.0001
  Prefactor  = 11.6527
  norm       = 0.000100177
  Normalizat = 1.008
  Prefactor  = 0.917361
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.158     FROM HESSE     STATUS=OK           565 CALLS     4284 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9490        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .66416        .81826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.434        8.9623        .10533E-03   -1.4948    
   4  Prefactor     22.704        19.610        .84034E-04   -1.4755    
   5  Prefactor     .10000E-03    12.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2994        .15072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4935        .30260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.7495        8.0213        .14400E-03   -1.5151    
  10  Prefactor     .62883        9.2542        .26771E-02   -1.5549    
  11  norm          19.346        23.705        .91012E-04   -1.4828    
  12  Prefactor     2.3909        1.9894        .92269E-04   -1.5399    
  13  Prefactor     .10000E-03    39.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0213        .12612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8316        3.0068        .16024E-03   -1.5437    
  16  Prefactor     9.8775        15.499        .12751E-03   -1.5079    
  17  Prefactor     .10000E-03    26.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .31417        61.939        .34826E-02   -1.5596    
  19  Prefactor     .10000E-03    43.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0668        .14567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.1086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.0143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.6578        14.931        .15556E-03   -1.5192    
  25  Prefactor     .10000E-03    11.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.653        10.663        .11737E-03   -1.5025    
  27  norm          .10018E-03    2.5715        .31305E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0080        .22762        .25669E-03   -.92763    
  29  Prefactor     .91736        .18517        .22016E-03   -.95537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48429e-08
Minuit parameter uncertainties:
  1  1.31164e-06
  2  1.54209e-06
  3  8.96316
  4  19.6154
  5  3.14795e-05
  6  1.04525e-05
  7  3.66972e-05
  8  1.68579e-05
  9  8.02239
  10  4.82519
  11  23.7164
  12  1.98947
  13  3.49033e-05
  14  1.32556e-05
  15  3.00705
  16  15.5055
  17  4.65703e-06
  18  8.83042
  19  9.29443e-05
  20  9.39657e-06
  21  2.65605e-05
  22  3.99763e-05
  23  5.33538e-06
  24  14.939
  25  1.56397e-06
  26  10.6643
  27  0.00135047
  28  0.22784
  29  0.185293
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.391e+00  1.989e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  9.174e-01  1.853e-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.008e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.54e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.50e-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) = 5556.95349461
delta logL = 0.204756713709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5556.94997151
delta logL = 0.208279820811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6268       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7862       1.0000          .0000       10.000    
     3 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91150       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.

 FCN=   5556.950     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      256 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6268        2.2632        .10013E-03    .12195E-02
   2  Index         1.7861        .52474        .80999E-02    .15782E-03
   3  Normalizat    1.0212        .22179        .25517E-03   -.50078E-04
   4  Prefactor     .91150        .18306        .22077E-03   -.65347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62678
  Index      = 1.78605
  Normalizat = 1.02123
  Prefactor  = 0.911497
 **********
 **   18 **HESSE 
 **********

 FCN=   5556.950     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6268        2.2717        .20025E-04   -1.5384    
   2  Index         1.7861        .52669        .32399E-03   -.69813    
   3  Normalizat    1.0212        .22202        .10207E-04   -.92323    
   4  Prefactor     .91150        .18326        .88310E-05   -.95741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99477e-10
Minuit parameter uncertainties:
  1  2.27179
  2  0.528366
  3  0.222224
  4  0.183383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918414': 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) = 5556.94997148
delta logL = 0.208279845259

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.627e+00  2.272e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.786e+00  5.284e-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.115e-01  1.834e-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.021e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.79 +/- 0.53
Photon Flux (Free Index): 2.42e-08 +/- 2.73e-08
Energy Flux (Free Index): 3.02e-05 +/- 3.68e-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/918414/cmap_HighResolution_346896001_347155201_4FGL_J1132.7+0034_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.54e-08', energy_flux2='3.02e-05', photon_flux_error='2.95e-08', dlogl='2.08e-01', energy_flux='1.81e-05', photon_flux2='2.42e-08', job_status='DONE', time_completed='2021-09-04 03:46:54.715315', photon_index_error2='0.53', photon_index2='1.79', ts='4.24', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='3.68e-05', EG='1.01', time_epoch_completed='1630752414.72', return_code='0', job_id='918414', GAL2='0.91', EG2='1.02', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='2.73e-08', ts2='4.67', photon_index='2.14' WHERE bin_id='415' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:46:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 918414: <4FGL_J1132.7+0034_daily_bin415> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin415> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:32:20 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:32:22 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:22 2021
Terminated at Sat Sep  4 03:46:55 2021
Results reported at Sat Sep  4 03:46:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin415 173.196 0.5737 346896001 347155201 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

