/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 223 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7468
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin286
RA = 173.196, Dec = 0.5737
tmin = 313459201, tmax = 313718401
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='918212', job_status='RUN', time_executed='2021-09-04 03:35:59.839859', time_epoch_executed='1630751759.84' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918212/ft1_4FGL_J1132.7+0034_daily_bin286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918212/ft2_4FGL_J1132.7+0034_daily_bin286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918212/ft1_4FGL_J1132.7+0034_daily_bin286.fits outfile=/scratch/kocevski/918212/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin286.fits ra=173.196 dec=0.5737 rad=12.0 tmin=313459201.0 tmax=313718401.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.34
user 3.12
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918212/ft1_filtered_4FGL_J1132.7+0034_daily_bin286.fits" evtable="EVENTS" scfile=/scratch/kocevski/918212/ft2_4FGL_J1132.7+0034_daily_bin286.fits sctable="SC_DATA" outfile=/scratch/kocevski/918212/ltcube_313459201_313718401_4FGL_J1132.7+0034_daily_bin286.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/918212/ft2_4FGL_J1132.7+0034_daily_bin286.fits
.....................!
real 11.92
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918212/ft1_filtered_4FGL_J1132.7+0034_daily_bin286.fits evtable="EVENTS" scfile=/scratch/kocevski/918212/ft2_4FGL_J1132.7+0034_daily_bin286.fits sctable="SC_DATA" expcube=/scratch/kocevski/918212/ltcube_313459201_313718401_4FGL_J1132.7+0034_daily_bin286.fits outfile=/scratch/kocevski/918212/expmap_313459201_313718401_4FGL_J1132.7+0034_daily_bin286.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/918212/ltcube_313459201_313718401_4FGL_J1132.7+0034_daily_bin286.fits
.....................!
real 190.94
user 186.24
sys 4.38

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/918212/ft1_filtered_4FGL_J1132.7+0034_daily_bin286.fits scfile=/scratch/kocevski/918212/ft2_4FGL_J1132.7+0034_daily_bin286.fits outfile=/scratch/kocevski/918212/cmap_313459201_313718401_4FGL_J1132.7+0034_daily_bin286.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918212/ft1_filtered_4FGL_J1132.7+0034_daily_bin286.fits scfile=/scratch/kocevski/918212/ft2_4FGL_J1132.7+0034_daily_bin286.fits outfile=/scratch/kocevski/918212/cmap_HighResolution_313459201_313718401_4FGL_J1132.7+0034_daily_bin286.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=173.196 yref=0.5737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918212/ft1_filtered_4FGL_J1132.7+0034_daily_bin286.fits evtable="EVENTS" scfile=/scratch/kocevski/918212/ft2_4FGL_J1132.7+0034_daily_bin286.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918212/Model_4FGL_J1132.7+0034_daily_bin286.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/918212/ft1_filtered_4FGL_J1132.7+0034_daily_bin286.fits.....................!
real 54.43
user 53.12
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4247       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0126       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.5960       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48152E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2179       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5766       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2423       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.225       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .69388E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2481       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3508       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98351       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=   5526.908     FROM MIGRAD    STATUS=CONVERGED   1268 CALLS     3682 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4244        6.6032        .15835E-03    .84433E-04
   2  norm          2.0127        .76605        .35718E-04    .50990E-03
   3  Prefactor     3.1330        7.9392        .11453E-02    .16292E-03
   4  Prefactor     .10000E-03    25.990        .18142E-02** at limit **
   5  Prefactor     .10000E-03    13.647        .18142E-02** at limit **
   6  Prefactor     .10000E-03    3.5570        .13689E-02** at limit **
   7  Prefactor     3.4759        6.3617        .21696E-03   -.48129E-03
   8  Prefactor     .10000E-03    43.745        .18142E-02** at limit **
   9  norm          4.5974        10.794        .18775E-03   -.41980E-03
  10  Prefactor     .10004E-03    62.901        .24009E-02** at limit **
  11  norm          .10000E-03    14.109        .18142E-02** at limit **
  12  Prefactor     3.2180        2.1263        .85169E-04    .16686E-04
  13  Prefactor     .10000E-03    69.270        .18142E-02** at limit **
  14  norm          .10000E-03    4.0376        .14549E-02** at limit **
  15  Prefactor     2.5761        4.2758        .19032E-03   -.74508E-03
  16  Prefactor     .10000E-03    9.1796        .18142E-02** at limit **
  17  Prefactor     .10000E-03    30.612        .18142E-02** at limit **
  18  Prefactor     5.2420        6.1983        .17556E-03    .32444E-04
  19  Prefactor     .10000E-03    21.295        .18142E-02** at limit **
  20  Prefactor     13.224        8.3433        .11015E-03    .29106E-04
  21  Prefactor     .10001E-03    42.396        .18142E-02** at limit **
  22  Prefactor     .10000E-03    24.048        .18142E-02** at limit **
  23  Prefactor     .10000E-03    243.90        .67994E-02** at limit **
  24  Prefactor     8.2548        17.752        .13959E-03   -.99114E-04
  25  Prefactor     .10000E-03    26.905        .18142E-02** at limit **
  26  Prefactor     .10000E-03    4.2591        .14973E-02** at limit **
  27  norm          .10000E-03    .99136        .72169E-03** at limit **
  28  Normalizat    1.3508        .25705        .27004E-03   -.28076E-03
  29  Prefactor     .98345        .20598        .24995E-03   -.29740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.42439
  norm       = 2.01267
  Prefactor  = 3.13305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.47595
  Prefactor  = 0.0001
  norm       = 4.59739
  Prefactor  = 0.000100044
  norm       = 0.0001
  Prefactor  = 3.21803
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.57609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.24205
  Prefactor  = 0.0001
  Prefactor  = 13.2239
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.25479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.35082
  Prefactor  = 0.983445
 **********
 **   18 **HESSE 
 **********

 FCN=   5526.908     FROM HESSE     STATUS=OK           527 CALLS     4209 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4244        6.6029        .63338E-05   -1.5201    
   2  norm          2.0127        .76499        .14287E-05   -1.5424    
   3  Prefactor     3.1330        7.9257        .45812E-04   -1.5354    
   4  Prefactor     .10000E-03    25.995        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.650        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5571        .27379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4759        6.3568        .86784E-05   -1.5335    
   8  Prefactor     .10000E-03    43.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.5974        10.775        .75102E-05   -1.5279    
  10  Prefactor     .10004E-03    64.722        .96037E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    14.110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2180        2.1263        .34067E-05   -1.5349    
  13  Prefactor     .10000E-03    69.299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.0379        .29099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5761        4.2753        .76127E-05   -1.5387    
  16  Prefactor     .10000E-03    9.1798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2420        6.1983        .70223E-05   -1.5250    
  19  Prefactor     .10000E-03    21.295        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.224        8.3415        .44059E-05   -1.4981    
  21  Prefactor     .10001E-03    42.431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.050        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    254.19        .27198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.2548        17.751        .55838E-05   -1.5133    
  25  Prefactor     .10000E-03    26.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.2593        .29946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .99138        .14434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3508        .25714        .54008E-04   -.82062    
  29  Prefactor     .98345        .20614        .49990E-04   -.93283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76793e-09
Minuit parameter uncertainties:
  1  6.60366
  2  0.764997
  3  7.92835
  4  8.6992e-06
  5  6.79793e-05
  6  2.29474e-05
  7  6.35805
  8  0.000262989
  9  10.7799
  10  0.00338935
  11  5.34496e-05
  12  2.12635
  13  0.000331474
  14  2.97215e-05
  15  4.27584
  16  7.62278e-06
  17  0.000102823
  18  6.19906
  19  4.22048e-05
  20  8.34228
  21  0.00103188
  22  7.37494e-05
  23  0.00057831
  24  17.7623
  25  7.43949e-05
  26  4.83452e-06
  27  1.61755e-06
  28  0.257386
  29  0.2063
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.218e+00  2.126e+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.834e-01  2.063e-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.351e+00  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.26
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.61e-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) = 5524.52733476
delta logL = 2.38029339857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5524.30929346
delta logL = 2.59833470597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6669       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0094       1.0000          .0000       10.000    
     3 'Normalizat'    1.3773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97901       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=   5524.309     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6669        1.3033        .81653E-02   -.50054E-03
   2  Index         1.0095        .31093        .15474        .44626E-04
   3  Normalizat    1.3773        .21627        .60543E-01    .84276E-04
   4  Prefactor     .97900        .17509        .46004E-01    .24365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66686
  Index      = 1.00949
  Normalizat = 1.37732
  Prefactor  = 0.979004
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.309     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6669        1.7985        .64696E-04   -1.5450    
   2  Index         1.0095        .43834        .66278E-02   -.92414    
   3  Normalizat    1.3773        .25327        .26776E-03   -.81287    
   4  Prefactor     .97900        .20511        .25047E-03   -.93433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52922e-10
Minuit parameter uncertainties:
  1  1.79851
  2  0.439904
  3  0.253501
  4  0.205277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918212': 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) = 5524.30929344
delta logL = 2.59833472134

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.667e+00  1.799e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.009e+00  4.399e-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.790e-01  2.053e-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.377e+00  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.44
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.01 +/- 0.44
Photon Flux (Free Index): 1.26e-08 +/- 9.97e-09
Energy Flux (Free Index): 1.78e-04 +/- 1.78e-04

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/918212/cmap_HighResolution_313459201_313718401_4FGL_J1132.7+0034_daily_bin286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='1.78e-04', photon_flux_error='3.15e-08', dlogl='2.60e+00', energy_flux='2.43e-05', photon_flux2='1.26e-08', job_status='DONE', time_completed='2021-09-04 03:47:57.953338', photon_index_error2='0.44', photon_index2='1.01', ts='9.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.78e-04', EG='1.35', time_epoch_completed='1630752477.95', return_code='0', job_id='918212', GAL2='0.98', EG2='1.38', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='9.97e-09', ts2='14.44', photon_index='2.14' WHERE bin_id='286' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:47:57 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin286 173.196 0.5737 313459201 313718401 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 :                                   695.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

