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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin663
RA = 173.196, Dec = 0.5737
tmin = 411177601, tmax = 411436801
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='919772', job_status='RUN', time_executed='2021-09-04 03:38:26.284922', time_epoch_executed='1630751906.28' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919772

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919772/ft1_4FGL_J1132.7+0034_daily_bin663.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919772/ft2_4FGL_J1132.7+0034_daily_bin663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919772/ft1_4FGL_J1132.7+0034_daily_bin663.fits outfile=/scratch/kocevski/919772/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin663.fits ra=173.196 dec=0.5737 rad=12.0 tmin=411177601.0 tmax=411436801.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 6.73
user 6.44
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919772/ft2_4FGL_J1132.7+0034_daily_bin663.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/919772/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin663.fits evtable="EVENTS" outfile="/scratch/kocevski/919772/ft1_filtered_4FGL_J1132.7+0034_daily_bin663.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919772/ft1_filtered_4FGL_J1132.7+0034_daily_bin663.fits" evtable="EVENTS" scfile=/scratch/kocevski/919772/ft2_4FGL_J1132.7+0034_daily_bin663.fits sctable="SC_DATA" outfile=/scratch/kocevski/919772/ltcube_411177601_411436801_4FGL_J1132.7+0034_daily_bin663.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/919772/ft2_4FGL_J1132.7+0034_daily_bin663.fits
.....................!
real 12.17
user 11.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919772/ft1_filtered_4FGL_J1132.7+0034_daily_bin663.fits evtable="EVENTS" scfile=/scratch/kocevski/919772/ft2_4FGL_J1132.7+0034_daily_bin663.fits sctable="SC_DATA" expcube=/scratch/kocevski/919772/ltcube_411177601_411436801_4FGL_J1132.7+0034_daily_bin663.fits outfile=/scratch/kocevski/919772/expmap_411177601_411436801_4FGL_J1132.7+0034_daily_bin663.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/919772/ltcube_411177601_411436801_4FGL_J1132.7+0034_daily_bin663.fits
.....................!
real 191.11
user 185.39
sys 5.27

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/919772/ft1_filtered_4FGL_J1132.7+0034_daily_bin663.fits scfile=/scratch/kocevski/919772/ft2_4FGL_J1132.7+0034_daily_bin663.fits outfile=/scratch/kocevski/919772/cmap_411177601_411436801_4FGL_J1132.7+0034_daily_bin663.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919772/ft1_filtered_4FGL_J1132.7+0034_daily_bin663.fits scfile=/scratch/kocevski/919772/ft2_4FGL_J1132.7+0034_daily_bin663.fits outfile=/scratch/kocevski/919772/cmap_HighResolution_411177601_411436801_4FGL_J1132.7+0034_daily_bin663.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.62
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919772/ft1_filtered_4FGL_J1132.7+0034_daily_bin663.fits evtable="EVENTS" scfile=/scratch/kocevski/919772/ft2_4FGL_J1132.7+0034_daily_bin663.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919772/Model_4FGL_J1132.7+0034_daily_bin663.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/919772/ft1_filtered_4FGL_J1132.7+0034_daily_bin663.fits.....................!
real 45.15
user 43.09
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9641       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29781E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .88916       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.235       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6194       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13905E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.808       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.8186       1.0000         .10000E-03   10000.    
    27 'norm      '    1.1274       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2077       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80309       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=   4128.684     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     4219 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9646        11.248       -.16446E-05    .17709E-04
   2  norm          3.3737        1.1114        .57571E-08   -.54427E-04
   3  Prefactor     .10000E-03    6.0002       -.33623E-07** at limit **
   4  Prefactor     .10000E-03    13.584       -.11191E-05** at limit **
   5  Prefactor     24.236        27.268       -.31417E-05   -.43261E-03
   6  Prefactor     .10000E-03    219.51        .75123E-04** at limit **
   7  Prefactor     .10000E-03    3.2924        .10328E-06** at limit **
   8  Prefactor     .10000E-03    54.788       -.13862E-04** at limit **
   9  norm          .10000E-03    3.2747        .34766E-07** at limit **
  10  Prefactor     .10000E-03    1.6052        .55705E-07** at limit **
  11  norm          .10000E-03    8.3916       -.58643E-08** at limit **
  12  Prefactor     .10000E-03    1.2211        .23762E-07** at limit **
  13  Prefactor     .10000E-03    12.368        .65218E-06** at limit **
  14  norm          .10000E-03    2.4554        .74027E-07** at limit **
  15  Prefactor     .88786        4.4167       -.84171E-06    .89110E-03
  16  Prefactor     .10000E-03    7.8849       -.31065E-07** at limit **
  17  Prefactor     .10000E-03    678.93       -.56580E-04** at limit **
  18  Prefactor     21.225        18.573        .19222E-05    .30247E-03
  19  Prefactor     .10000E-03    31.413        .61398E-05** at limit **
  20  Prefactor     2.6194        4.7434       -.33640E-05    .84737E-04
  21  Prefactor     .10000E-03    58.897        .59809E-05** at limit **
  22  Prefactor     12.787        52.129       -.57506E-05   -.63323E-04
  23  Prefactor     .10000E-03    18.137        .13959E-05** at limit **
  24  Prefactor     .10000E-03    18.271        .19294E-06** at limit **
  25  Prefactor     .10000E-03    24.844       -.49889E-05** at limit **
  26  Prefactor     3.8182        5.4040       -.10878E-05   -.73486E-05
  27  norm          1.1274        1.1660        .24390E-06   -.88452E-04
  28  Normalizat    1.2080        .23792        .22971E-06    .75031E-04
  29  Prefactor     .80295        .18567        .75002E-06    .13505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.96464
  norm       = 3.37372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2355
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.88786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2253
  Prefactor  = 0.0001
  Prefactor  = 2.61937
  Prefactor  = 0.0001
  Prefactor  = 12.7872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.81817
  norm       = 1.12738
  Normalizat = 1.20795
  Prefactor  = 0.802951
 **********
 **   18 **HESSE 
 **********

 FCN=   4128.684     FROM HESSE     STATUS=OK           549 CALLS     4768 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9646        11.236        .71039E-03   -1.5143    
   2  norm          3.3737        1.1113        .37371E-04   -1.5341    
   3  Prefactor     .10000E-03    6.0075        .15365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.236        25.361        .81375E-04   -1.4723    
   6  Prefactor     .10000E-03    212.22        .45073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3260        .11380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    54.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2764        .11355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6077        .79500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.3932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2351        .69308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4586        .98296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .88786        6.9672        .24257E-02   -1.5520    
  16  Prefactor     .10000E-03    7.8879        .17623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    682.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.225        18.726        .86920E-04   -1.4786    
  19  Prefactor     .10000E-03    31.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6194        4.7362        .91630E-03   -1.5384    
  21  Prefactor     .10000E-03    60.518        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.787        51.371        .11193E-03   -1.4993    
  23  Prefactor     .10000E-03    18.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.8182        5.3965        .17267E-03   -1.5317    
  27  norm          1.1274        1.1666        .22036E-03   -1.5496    
  28  Normalizat    1.2080        .28170        .25773E-03   -.86357    
  29  Prefactor     .80295        .21912        .24180E-03   -.99620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55299e-09
Minuit parameter uncertainties:
  1  11.2386
  2  1.11129
  3  6.1275e-07
  4  7.57433e-06
  5  25.3718
  6  0.00188835
  7  1.03535e-05
  8  0.000282467
  9  5.85916e-06
  10  3.58192e-06
  11  1.4804e-06
  12  3.59883e-08
  13  8.303e-06
  14  1.30356e-05
  15  4.97482
  16  8.03108e-07
  17  0.000535591
  18  18.7316
  19  6.66481e-05
  20  4.73692
  21  0.000141788
  22  51.3366
  23  6.36182e-06
  24  2.34848e-05
  25  3.43459e-05
  26  5.39719
  27  1.1666
  28  0.282052
  29  0.219362
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  8.030e-01  2.194e-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.208e+00  2.821e-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: 8.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919772/likelihoodResults_411177601_411436801_4FGL_J1132.7+0034_daily_bin663.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): 102
logL (Free Index) = 4128.68760457
delta logL = -0.00377828717228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4128.68382628
delta logL = 8.76752892509e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1435       1.0000          .0000       10.000    
     3 'Normalizat'    1.2080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80299       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=   4128.396     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      315 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .13256E-01    .25306E-03** at limit **
   2  Index         7.2108        7.4817        .13835        .10474E-03
   3  Normalizat    1.1488        .61632E-01    .25773E-03    .54477E-04
   4  Prefactor     .83479        .47707E-01    .24180E-03    .53693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.21078
  Normalizat = 1.14879
  Prefactor  = 0.834793
 **********
 **   18 **HESSE 
 **********

 FCN=   4128.396     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      352 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .30818E-01    .22850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.2108        8.5453        .71540E-02    .45800    
   3  Normalizat    1.1488        .10884        .10309E-04   -.88200    
   4  Prefactor     .83479        .84323E-01    .96721E-05   -.98458    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77902e-09
Minuit parameter uncertainties:
  1  8.82795e-09
  2  8.1136
  3  0.108865
  4  0.0843362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919772': 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) = 4128.39632932
delta logL = 0.287496958837

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  8.828e-09  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  7.211e+00  8.114e+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:  8.348e-01  8.434e-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.149e+00  1.089e-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/919772/cmap_HighResolution_411177601_411436801_4FGL_J1132.7+0034_daily_bin663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', job_status='DONE', photon_flux_upper_limit='8.02e-08', time_completed='2021-09-04 03:50:25.757070', job_id='919772', GAL2='0.83', fit_tolerance='1e-08', EG2='1.15', EG='1.21', time_epoch_completed='1630752625.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.87e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='663' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 919772: <4FGL_J1132.7+0034_daily_bin663> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin663 173.196 0.5737 411177601 411436801 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 :                                   715.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            841 sec.

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

