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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin261
RA = 173.196, Dec = 0.5737
tmin = 306979201, tmax = 307238401
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='918174', job_status='RUN', time_executed='2021-09-04 03:34:31.823861', time_epoch_executed='1630751671.82' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918174/ft1_4FGL_J1132.7+0034_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918174/ft2_4FGL_J1132.7+0034_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918174/ft1_4FGL_J1132.7+0034_daily_bin261.fits outfile=/scratch/kocevski/918174/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin261.fits ra=173.196 dec=0.5737 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.00
user 13.50
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918174/ft1_filtered_4FGL_J1132.7+0034_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/918174/ft2_4FGL_J1132.7+0034_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/918174/ltcube_306979201_307238401_4FGL_J1132.7+0034_daily_bin261.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/918174/ft2_4FGL_J1132.7+0034_daily_bin261.fits
.....................!
real 11.32
user 10.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918174/ft1_filtered_4FGL_J1132.7+0034_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/918174/ft2_4FGL_J1132.7+0034_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/918174/ltcube_306979201_307238401_4FGL_J1132.7+0034_daily_bin261.fits outfile=/scratch/kocevski/918174/expmap_306979201_307238401_4FGL_J1132.7+0034_daily_bin261.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/918174/ltcube_306979201_307238401_4FGL_J1132.7+0034_daily_bin261.fits
.....................!
real 189.62
user 184.88
sys 4.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/918174/ft1_filtered_4FGL_J1132.7+0034_daily_bin261.fits scfile=/scratch/kocevski/918174/ft2_4FGL_J1132.7+0034_daily_bin261.fits outfile=/scratch/kocevski/918174/cmap_306979201_307238401_4FGL_J1132.7+0034_daily_bin261.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.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918174/ft1_filtered_4FGL_J1132.7+0034_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/918174/ft2_4FGL_J1132.7+0034_daily_bin261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918174/Model_4FGL_J1132.7+0034_daily_bin261.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/918174/ft1_filtered_4FGL_J1132.7+0034_daily_bin261.fits.......................!
real 22.11
user 20.64
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7839       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20642E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    116.75       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11248E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    191.14       1.0000         .10000E-03   10000.    
    14 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    661.58       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.913       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31155E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.891       1.0000         .10000E-03   10000.    
    25 'Prefactor '    58.816       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .57456       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2612       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=   1070.797     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     4200 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7267        .21350E-06** at limit **
   2  norm          3.7787        2.1100        .61874E-06    .21917E-02
   3  Prefactor     .10017E-03    294.27        .41323E-04** at limit **
   4  Prefactor     116.72        72.126        .66464E-06    .21769E-03
   5  Prefactor     .10000E-03    139.30        .41742E-07** at limit **
   6  Prefactor     .10000E-03    24.003        .18624E-07** at limit **
   7  Prefactor     .10000E-03    7.2797        .10338E-07** at limit **
   8  Prefactor     .10000E-03    481.48       -.12275E-05** at limit **
   9  norm          .10000E-03    17.817       -.63429E-08** at limit **
  10  Prefactor     .10000E-03    16.285        .96815E-07** at limit **
  11  norm          .10000E-03    143.18       -.15676E-05** at limit **
  12  Prefactor     .10000E-03    7.8829        .35570E-06** at limit **
  13  Prefactor     191.19        196.18       -.10451E-05   -.17792E-04
  14  norm          .10000E-03    68.949       -.19009E-05** at limit **
  15  Prefactor     .10000E-03    53.738       -.12151E-05** at limit **
  16  Prefactor     .10001E-03    112.57        .94857E-06** at limit **
  17  Prefactor     661.66        414.71       -.15370E-05   -.27386E-04
  18  Prefactor     .10000E-03    16.333       -.56688E-06** at limit **
  19  Prefactor     .12403E-03    9428.7        .93543E-04** at limit **
  20  Prefactor     .10000E-03    43.033       -.11140E-05** at limit **
  21  Prefactor     59.496        207.58       -.20435E-04    .22582E-04
  22  Prefactor     .10001E-03    7215.3       -.16883E-04** at limit **
  23  Prefactor     .10000E-03    76.428       -.62170E-06** at limit **
  24  Prefactor     13.944        331.91       -.12494E-05   -.10853E-04
  25  Prefactor     58.974        179.64       -.65020E-05   -.91752E-04
  26  Prefactor     .10000E-03    42.112       -.61074E-06** at limit **
  27  norm          .10000E-03    11.524       -.31030E-06** at limit **
  28  Normalizat    .57518        .58760        .92756E-06    .17574E-03
  29  Prefactor     1.2602        .48227        .21152E-05    .14340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.77866
  Prefactor  = 0.000100173
  Prefactor  = 116.717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 191.194
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 661.66
  Prefactor  = 0.000100001
  Prefactor  = 0.000124029
  Prefactor  = 0.0001
  Prefactor  = 59.4956
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 13.9438
  Prefactor  = 58.9745
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.575178
  Prefactor  = 1.26023
 **********
 **   18 **HESSE 
 **********

 FCN=   1070.797     FROM HESSE     STATUS=OK           535 CALLS     4735 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7394        .99674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7787        1.8902        .30068E-04   -1.5319    
   3  Prefactor     .10017E-03    282.92        .38746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     116.72        71.993        .18619E-03   -1.3543    
   5  Prefactor     .10000E-03    139.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.004        .15666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2804        .86250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    481.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    17.817        .13496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.296        .12903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    143.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.9621        .89682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     191.19        196.36        .14607E-03   -1.2934    
  14  norm          .10000E-03    68.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    112.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     661.66        414.74        .80464E-04   -1.0505    
  18  Prefactor     .10000E-03    16.360        .12927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12403E-03    6271.5        .50000       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     59.496        329.14        .26135E-03   -1.4164    
  22  Prefactor     .10001E-03    7159.4        .21374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    76.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.944        333.13        .10747E-03   -1.4961    
  25  Prefactor     58.974        181.06        .26157E-03   -1.4171    
  26  Prefactor     .10000E-03    42.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    11.522        .10852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .57518        .64954        .41275E-03   -1.0905    
  29  Prefactor     1.2602        .54345        .23840E-03   -.84497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75083e-09
Minuit parameter uncertainties:
  1  9.53661e-06
  2  1.89023
  3  0.014067
  4  72.0467
  5  0.000404812
  6  3.95805e-06
  7  2.24891e-06
  8  0.00262038
  9  1.10112e-05
  10  0.000149761
  11  0.0010525
  12  3.13882e-05
  13  197.04
  14  0.000761396
  15  4.60833e-05
  16  0.0017274
  17  416.691
  18  0.000188357
  19  0.518242
  20  4.03866e-05
  21  282.296
  22  0.0106703
  23  0.00017884
  24  137.177
  25  182.787
  26  0.000215985
  27  2.26351e-05
  28  0.658433
  29  0.545914
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.260e+00  5.459e-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:  5.752e-01  6.584e-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: 3.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918174/likelihoodResults_306979201_307238401_4FGL_J1132.7+0034_daily_bin261.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) = 1070.79712326
delta logL = -0.000590504444517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1070.79653293
delta logL = -1.79152038982e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1542       1.0000          .0000       10.000    
     3 'Normalizat'    .57561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2599       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=   1070.797     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7855        .90959E-03** at limit **
   2  Index         2.1736        6.0676        .50000       -.20159E-04
   3  Normalizat    .57516        .60184        .41277E-03    .97501E-05
   4  Prefactor     1.2602        .50789        .23841E-03    .40629E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.17357
  Normalizat = 0.575161
  Prefactor  = 1.26024
 **********
 **   18 **HESSE 
 **********

 FCN=   1070.797     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2368        .18192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1736        6.0854        .50000       -.60078    
   3  Normalizat    .57516        .60214        .16511E-04   -1.0905    
   4  Prefactor     1.2602        .50815        .47681E-04   -.84497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9544e-10
Minuit parameter uncertainties:
  1  0.000333669
  2  4.13898
  3  0.609187
  4  0.510156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918174': 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) = 1070.79653257
delta logL = 1.86219722309e-07

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  3.337e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.174e+00  4.139e+00  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:  1.260e+00  5.102e-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:  5.752e-01  6.092e-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/918174/cmap_HighResolution_306979201_307238401_4FGL_J1132.7+0034_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-02', job_status='DONE', photon_flux_upper_limit='3.36e-07', time_completed='2021-09-04 03:42:24.315064', job_id='918174', GAL2='1.26', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1630752144.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='261' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:42:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 918174: <4FGL_J1132.7+0034_daily_bin261> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin261 173.196 0.5737 306979201 307238401 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 :                                   465.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            623 sec.

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

