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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin682
RA = 173.196, Dec = 0.5737
tmin = 416102401, tmax = 416361601
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='919800', job_status='RUN', time_executed='2021-09-04 03:39:11.706876', time_epoch_executed='1630751951.71' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919800/ft1_4FGL_J1132.7+0034_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919800/ft2_4FGL_J1132.7+0034_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919800/ft1_4FGL_J1132.7+0034_daily_bin682.fits outfile=/scratch/kocevski/919800/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin682.fits ra=173.196 dec=0.5737 rad=12.0 tmin=416102401.0 tmax=416361601.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.51
user 6.26
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919800/ft1_filtered_4FGL_J1132.7+0034_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/919800/ft2_4FGL_J1132.7+0034_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/919800/ltcube_416102401_416361601_4FGL_J1132.7+0034_daily_bin682.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/919800/ft2_4FGL_J1132.7+0034_daily_bin682.fits
.....................!
real 12.01
user 11.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919800/ft1_filtered_4FGL_J1132.7+0034_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/919800/ft2_4FGL_J1132.7+0034_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/919800/ltcube_416102401_416361601_4FGL_J1132.7+0034_daily_bin682.fits outfile=/scratch/kocevski/919800/expmap_416102401_416361601_4FGL_J1132.7+0034_daily_bin682.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/919800/ltcube_416102401_416361601_4FGL_J1132.7+0034_daily_bin682.fits
.....................!
real 191.30
user 186.27
sys 4.67

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/919800/ft1_filtered_4FGL_J1132.7+0034_daily_bin682.fits scfile=/scratch/kocevski/919800/ft2_4FGL_J1132.7+0034_daily_bin682.fits outfile=/scratch/kocevski/919800/cmap_416102401_416361601_4FGL_J1132.7+0034_daily_bin682.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919800/ft1_filtered_4FGL_J1132.7+0034_daily_bin682.fits scfile=/scratch/kocevski/919800/ft2_4FGL_J1132.7+0034_daily_bin682.fits outfile=/scratch/kocevski/919800/cmap_HighResolution_416102401_416361601_4FGL_J1132.7+0034_daily_bin682.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919800/ft1_filtered_4FGL_J1132.7+0034_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/919800/ft2_4FGL_J1132.7+0034_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919800/Model_4FGL_J1132.7+0034_daily_bin682.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/919800/ft1_filtered_4FGL_J1132.7+0034_daily_bin682.fits.....................!
real 41.63
user 40.08
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4550       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44631E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .35316       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14050E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    25.865       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .27315E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3256       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11125E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54195E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.475       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .90251       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80621       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1809       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=   3869.031     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     4368 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1784        .17676E-06** at limit **
   2  norm          3.4554        1.1280       -.25837E-07   -.13130E-03
   3  Prefactor     .10000E-03    5.1384       -.18254E-06** at limit **
   4  Prefactor     .10000E-03    29.468        .20536E-04** at limit **
   5  Prefactor     .62418        37.091       -.76232E-05    .18038E-03
   6  Prefactor     .10016E-03    25.179        .60834E-05** at limit **
   7  Prefactor     .35544        4.3939       -.34881E-06   -.14444E-03
   8  Prefactor     .10000E-03    141.25       -.11116E-04** at limit **
   9  norm          25.855        17.812        .18097E-06   -.18688E-03
  10  Prefactor     .10000E-03    3.3249        .14261E-06** at limit **
  11  norm          .10060E-03    35.273       -.11811E-05** at limit **
  12  Prefactor     3.9946        2.9208       -.44822E-07   -.13022E-04
  13  Prefactor     .10000E-03    13.951       -.79729E-06** at limit **
  14  norm          .10000E-03    2.7806       -.24481E-06** at limit **
  15  Prefactor     .18294        3.3548        .35528E-06   -.36971E-03
  16  Prefactor     1.1945        180.79        .30086E-04   -.36129E-04
  17  Prefactor     .10000E-03    82.969       -.63334E-05** at limit **
  18  Prefactor     .10000E-03    13.245        .41019E-06** at limit **
  19  Prefactor     .10000E-03    156.95       -.20389E-04** at limit **
  20  Prefactor     .10000E-03    16.260       -.42012E-06** at limit **
  21  Prefactor     .10000E-03    11.018        .26616E-06** at limit **
  22  Prefactor     21.536        56.399        .71622E-06    .37876E-04
  23  Prefactor     .10000E-03    52.225        .37478E-05** at limit **
  24  Prefactor     .10000E-03    11.175       -.20020E-06** at limit **
  25  Prefactor     .10000E-03    31.252       -.18867E-04** at limit **
  26  Prefactor     .10000E-03    25.274       -.39885E-05** at limit **
  27  norm          .90250        2.5052       -.55027E-06   -.64488E-03
  28  Normalizat    .80641        .24391       -.19072E-05   -.11565E-04
  29  Prefactor     1.1806        .20631        .12156E-05   -.77297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.45535
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.624178
  Prefactor  = 0.000100157
  Prefactor  = 0.355442
  Prefactor  = 0.0001
  norm       = 25.8549
  Prefactor  = 0.0001
  norm       = 0.000100602
  Prefactor  = 3.99461
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.182939
  Prefactor  = 1.19448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.9025
  Normalizat = 0.806414
  Prefactor  = 1.18057
 **********
 **   18 **HESSE 
 **********

 FCN=   3869.031     FROM HESSE     STATUS=OK           559 CALLS     4927 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1841        .12418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4554        1.1286        .36206E-04   -1.5336    
   3  Prefactor     .10000E-03    5.1449        .13767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .62418        263.25        .57934E-02   -1.5550    
   6  Prefactor     .10016E-03    93.834        .47756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .35544        20.771        .24112E-02   -1.5589    
   8  Prefactor     .10000E-03    141.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          25.855        17.539        .78768E-04   -1.4691    
  10  Prefactor     .10000E-03    3.3356        .11065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10060E-03    39.309        .11457       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9946        2.9222        .87807E-04   -1.5308    
  13  Prefactor     .10000E-03    13.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7855        .10128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .18294        39.146        .21510E-02   -1.5622    
  16  Prefactor     1.1945        178.54        .38181E-03   -1.5489    
  17  Prefactor     .10000E-03    83.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    158.33        .21117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.536        56.481        .86433E-04   -1.4779    
  23  Prefactor     .10000E-03    52.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    31.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .90250        2.4476        .15826E-03   -1.5518    
  28  Normalizat    .80641        .27472        .31321E-03   -.99831    
  29  Prefactor     1.1806        .23662        .21844E-03   -.86931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14807e-09
Minuit parameter uncertainties:
  1  1.76325e-06
  2  1.12863
  3  1.07556e-06
  4  0.000548919
  5  25.7499
  6  0.00769621
  7  5.43547
  8  0.000460747
  9  17.542
  10  3.57557e-06
  11  0.00973952
  12  2.92233
  13  1.47614e-05
  14  2.93604e-06
  15  5.35422
  16  29.2951
  17  0.000299336
  18  1.37696e-05
  19  0.00142869
  20  0.000152974
  21  1.39741e-07
  22  56.6217
  23  0.000124017
  24  1.80509e-05
  25  0.000556566
  26  4.62855e-05
  27  2.44785
  28  0.27519
  29  0.236832
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.995e+00  2.922e+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:  1.181e+00  2.368e-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:  8.064e-01  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.57
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.92e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 2.21e-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) = 3868.83340761
delta logL = 0.198051345879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3868.82149037
delta logL = 0.209968585061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4804       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7886       1.0000          .0000       10.000    
     3 'Normalizat'    .82152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1746       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=   3868.821     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4810        5.4771        .47555E-02   -.89914E-04
   2  Index         1.7883        .74056        .18180       -.74330E-05
   3  Normalizat    .82138        .24280        .70188E-01    .62939E-05
   4  Prefactor     1.1747        .20041        .35261E-01    .33308E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.481
  Index      = 1.78828
  Normalizat = 0.821384
  Prefactor  = 1.17469
 **********
 **   18 **HESSE 
 **********

 FCN=   3868.821     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4810        3.3597        .95815E-04   -1.5285    
   2  Index         1.7883        .50908        .71369E-02   -.69755    
   3  Normalizat    .82138        .27133        .31058E-03   -.99280    
   4  Prefactor     1.1747        .22593        .21893E-03   -.87114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73143e-12
Minuit parameter uncertainties:
  1  3.35989
  2  0.510591
  3  0.271777
  4  0.226119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919800': 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) = 3868.82149006
delta logL = 0.209968898576

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.481e+00  3.360e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.788e+00  5.106e-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:  1.175e+00  2.261e-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:  8.214e-01  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.98
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.79 +/- 0.51
Photon Flux (Free Index): 4.14e-08 +/- 3.97e-08
Energy Flux (Free Index): 5.13e-05 +/- 6.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/919800/cmap_HighResolution_416102401_416361601_4FGL_J1132.7+0034_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.92e-08', energy_flux2='5.13e-05', photon_flux_error='4.33e-08', dlogl='2.10e-01', energy_flux='3.02e-05', photon_flux2='4.14e-08', job_status='DONE', time_completed='2021-09-04 03:49:37.599836', photon_index_error2='0.51', photon_index2='1.79', ts='7.57', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='6.20e-05', EG='0.81', time_epoch_completed='1630752577.6', return_code='0', job_id='919800', GAL2='1.17', EG2='0.82', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='3.97e-08', ts2='7.98', photon_index='2.14' WHERE bin_id='682' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 919800: <4FGL_J1132.7+0034_daily_bin682> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin682 173.196 0.5737 416102401 416361601 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 :                                   621.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.12 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.

