/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 226 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 = 7428
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin559
RA = 173.196, Dec = 0.5737
tmin = 384220801, tmax = 384480001
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='919620', job_status='RUN', time_executed='2021-09-04 03:40:11.737902', time_epoch_executed='1630752011.74' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919620

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919620/ft1_4FGL_J1132.7+0034_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919620/ft2_4FGL_J1132.7+0034_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919620/ft1_4FGL_J1132.7+0034_daily_bin559.fits outfile=/scratch/kocevski/919620/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin559.fits ra=173.196 dec=0.5737 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.91
user 13.43
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919620/ft1_filtered_4FGL_J1132.7+0034_daily_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/919620/ft2_4FGL_J1132.7+0034_daily_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/919620/ltcube_384220801_384480001_4FGL_J1132.7+0034_daily_bin559.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/919620/ft2_4FGL_J1132.7+0034_daily_bin559.fits
.....................!
real 10.86
user 10.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919620/ft1_filtered_4FGL_J1132.7+0034_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/919620/ft2_4FGL_J1132.7+0034_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/919620/ltcube_384220801_384480001_4FGL_J1132.7+0034_daily_bin559.fits outfile=/scratch/kocevski/919620/expmap_384220801_384480001_4FGL_J1132.7+0034_daily_bin559.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/919620/ltcube_384220801_384480001_4FGL_J1132.7+0034_daily_bin559.fits
.....................!
real 190.37
user 185.67
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/919620/ft1_filtered_4FGL_J1132.7+0034_daily_bin559.fits scfile=/scratch/kocevski/919620/ft2_4FGL_J1132.7+0034_daily_bin559.fits outfile=/scratch/kocevski/919620/cmap_384220801_384480001_4FGL_J1132.7+0034_daily_bin559.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919620/ft1_filtered_4FGL_J1132.7+0034_daily_bin559.fits scfile=/scratch/kocevski/919620/ft2_4FGL_J1132.7+0034_daily_bin559.fits outfile=/scratch/kocevski/919620/cmap_HighResolution_384220801_384480001_4FGL_J1132.7+0034_daily_bin559.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919620/ft1_filtered_4FGL_J1132.7+0034_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/919620/ft2_4FGL_J1132.7+0034_daily_bin559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919620/Model_4FGL_J1132.7+0034_daily_bin559.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/919620/ft1_filtered_4FGL_J1132.7+0034_daily_bin559.fits......................!
real 30.70
user 29.35
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7586       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.332       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75389E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.713       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .51597E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28184E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14509E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.134       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5573       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62308       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=   2246.055     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3672 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7597        11.124       -.17839E-07    .32720E-03
   2  norm          .10000E-03    .36047        .11015E-07** at limit **
   3  Prefactor     .10000E-03    5.4958       -.17821E-07** at limit **
   4  Prefactor     20.327        23.178       -.58502E-06   -.15391E-04
   5  Prefactor     .10000E-03    242.09       -.40506E-05** at limit **
   6  Prefactor     40.819        34.861        .19109E-05   -.28932E-03
   7  Prefactor     .10008E-03    13.987        .15783E-05** at limit **
   8  Prefactor     .10005E-03    449.66        .14440E-04** at limit **
   9  norm          .10016E-03    101.36        .13050E-04** at limit **
  10  Prefactor     .10000E-03    4.6149        .11794E-06** at limit **
  11  norm          .10000E-03    17.262       -.60882E-06** at limit **
  12  Prefactor     .10000E-03    2.3382       -.10710E-07** at limit **
  13  Prefactor     .10000E-03    14.926        .32401E-06** at limit **
  14  norm          .10000E-03    4.2182        .10111E-07** at limit **
  15  Prefactor     .10000E-03    3.2129        .49468E-08** at limit **
  16  Prefactor     .10000E-03    39.810       -.19577E-05** at limit **
  17  Prefactor     .10001E-03    102.02       -.62360E-05** at limit **
  18  Prefactor     2.3738        13.725        .16993E-05    .62545E-03
  19  Prefactor     .10000E-03    80.876        .37348E-05** at limit **
  20  Prefactor     .10000E-03    8.5649        .25961E-07** at limit **
  21  Prefactor     .10000E-03    14.920        .30934E-06** at limit **
  22  Prefactor     .10001E-03    75.752        .63276E-05** at limit **
  23  Prefactor     .10000E-03    24.019        .10393E-05** at limit **
  24  Prefactor     18.133        29.245       -.48930E-06   -.74767E-05
  25  Prefactor     .10000E-03    41.739        .26558E-06** at limit **
  26  Prefactor     .10000E-03    13.142       -.92981E-07** at limit **
  27  norm          .10000E-03    3.6958        .31087E-08** at limit **
  28  Normalizat    1.5573        .32690        .16353E-05    .18859E-03
  29  Prefactor     .62314        .25092        .17936E-05    .19089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.75974
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3265
  Prefactor  = 0.0001
  Prefactor  = 40.8186
  Prefactor  = 0.000100079
  Prefactor  = 0.000100052
  norm       = 0.000100158
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100011
  Prefactor  = 2.37385
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 18.1335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.5573
  Prefactor  = 0.623143
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.055     FROM HESSE     STATUS=OK           535 CALLS     4207 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7597        11.182        .77170E-03   -1.5188    
   2  norm          .10000E-03    .37026        .55404E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.5030        .10850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.327        23.216        .88827E-04   -1.4806    
   5  Prefactor     .10000E-03    251.04        .41874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.819        35.689        .62822E-04   -1.4429    
   7  Prefactor     .10008E-03    41.773        .29183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    455.34        .21416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10016E-03    126.69        .46628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6211        .99352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    17.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3554        .70746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.928        .17887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.2187        .95071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2162        .82970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    103.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3738        16.955        .13288E-02   -1.5400    
  19  Prefactor     .10000E-03    81.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6004        .13546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.925        .17882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    76.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.133        29.256        .94052E-04   -1.4856    
  25  Prefactor     .10000E-03    41.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.157        .16783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.7167        .88952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5573        .38226        .23785E-03   -.76181    
  29  Prefactor     .62314        .29514        .27729E-03   -1.0662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63391e-09
Minuit parameter uncertainties:
  1  11.1854
  2  3.88747e-06
  3  1.52893e-05
  4  23.226
  5  6.9825e-05
  6  35.7072
  7  0.00362507
  8  0.00978102
  9  0.00895315
  10  9.56116e-06
  11  9.66777e-05
  12  1.53786e-05
  13  2.94297e-05
  14  1.66873e-06
  15  3.09393e-06
  16  0.000469857
  17  0.00216484
  18  12.6933
  19  0.00104569
  20  1.56224e-05
  21  2.40975e-05
  22  0.00178131
  23  0.000152346
  24  29.2794
  25  3.49109e-05
  26  2.03356e-05
  27  4.04829e-06
  28  0.382977
  29  0.295873
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.538e-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:  6.231e-01  2.959e-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.557e+00  3.830e-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: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919620/likelihoodResults_384220801_384480001_4FGL_J1132.7+0034_daily_bin559.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) = 2246.05743393
delta logL = -0.00196842049172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2246.05546553
delta logL = -2.00948306883e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1284       1.0000          .0000       10.000    
     3 'Normalizat'    1.5573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62318       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=   2246.055     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      239 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    75.262        .70900E-03** at limit **
   2  Index         2.1022        7.6099        .50000        .20386E-04
   3  Normalizat    1.5573        .48376E-01    .23785E-03    .11892E-04
   4  Prefactor     .62314        .37665E-01    .27729E-03    .11685E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100228
  Index      = 2.10216
  Normalizat = 1.5573
  Prefactor  = 0.623141
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.055     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    277.02        .14180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1022        8.8757        .50000       -.61820    
   3  Normalizat    1.5573        .10679        .47571E-04   -.76181    
   4  Prefactor     .62314        .83099E-01    .11092E-04   -1.0662    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21777e-08
Minuit parameter uncertainties:
  1  0.0159789
  2  681.335
  3  0.106809
  4  0.0831157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919620': 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): 102
logL (Free Index) = 2246.05546537
delta logL = 1.41267264553e-07

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.002e-04  1.598e-02  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.102e+00  6.813e+02  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:  6.231e-01  8.312e-02  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.557e+00  1.068e-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/919620/cmap_HighResolution_384220801_384480001_4FGL_J1132.7+0034_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-04 03:49:24.890734', job_id='919620', GAL2='0.62', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1630752564.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='559' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:49:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 919620: <4FGL_J1132.7+0034_daily_bin559> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin559> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 03:36:14 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:36:16 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:36:16 2021
Terminated at Sat Sep  4 03:49:25 2021
Results reported at Sat Sep  4 03:49:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin559 173.196 0.5737 384220801 384480001 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 :                                   549.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

