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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin570
RA = 173.196, Dec = 0.5737
tmin = 387072001, tmax = 387331201
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='919637', job_status='RUN', time_executed='2021-09-04 03:39:21.387302', time_epoch_executed='1630751961.39' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919637/ft1_4FGL_J1132.7+0034_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919637/ft2_4FGL_J1132.7+0034_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919637/ft1_4FGL_J1132.7+0034_daily_bin570.fits outfile=/scratch/kocevski/919637/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin570.fits ra=173.196 dec=0.5737 rad=12.0 tmin=387072001.0 tmax=387331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.36
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919637/ft1_filtered_4FGL_J1132.7+0034_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/919637/ft2_4FGL_J1132.7+0034_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/919637/ltcube_387072001_387331201_4FGL_J1132.7+0034_daily_bin570.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/919637/ft2_4FGL_J1132.7+0034_daily_bin570.fits
.....................!
real 11.88
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919637/ft1_filtered_4FGL_J1132.7+0034_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/919637/ft2_4FGL_J1132.7+0034_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/919637/ltcube_387072001_387331201_4FGL_J1132.7+0034_daily_bin570.fits outfile=/scratch/kocevski/919637/expmap_387072001_387331201_4FGL_J1132.7+0034_daily_bin570.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/919637/ltcube_387072001_387331201_4FGL_J1132.7+0034_daily_bin570.fits
.....................!
real 190.26
user 185.61
sys 4.19

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/919637/ft1_filtered_4FGL_J1132.7+0034_daily_bin570.fits scfile=/scratch/kocevski/919637/ft2_4FGL_J1132.7+0034_daily_bin570.fits outfile=/scratch/kocevski/919637/cmap_387072001_387331201_4FGL_J1132.7+0034_daily_bin570.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/919637/ft1_filtered_4FGL_J1132.7+0034_daily_bin570.fits scfile=/scratch/kocevski/919637/ft2_4FGL_J1132.7+0034_daily_bin570.fits outfile=/scratch/kocevski/919637/cmap_HighResolution_387072001_387331201_4FGL_J1132.7+0034_daily_bin570.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/919637/ft1_filtered_4FGL_J1132.7+0034_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/919637/ft2_4FGL_J1132.7+0034_daily_bin570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919637/Model_4FGL_J1132.7+0034_daily_bin570.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/919637/ft1_filtered_4FGL_J1132.7+0034_daily_bin570.fits.....................!
real 48.85
user 47.56
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   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 '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8944       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.379       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2916       1.0000         .10000E-03   10000.    
     8 'Prefactor '    145.86       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2128       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4501       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.356       1.0000         .10000E-03   10000.    
    14 'norm      '    7.7609       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    73.448       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6411       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24680       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .76529       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.339       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2526       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77789       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=   4889.586     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3702 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6879       -.13081E-06** at limit **
   2  norm          .10000E-03    .19181       -.70284E-07** at limit **
   3  Prefactor     .10000E-03    4.3934       -.16700E-06** at limit **
   4  Prefactor     .10000E-03    5.3742       -.62019E-07** at limit **
   5  Prefactor     6.9517        47.603        .35890E-04    .11636E-03
   6  Prefactor     13.356        24.397       -.15569E-04   -.20609E-03
   7  Prefactor     1.2915        6.5965       -.16901E-05   -.91892E-03
   8  Prefactor     145.81        107.89       -.35615E-04   -.31889E-04
   9  norm          .10000E-03    11.433        .25171E-05** at limit **
  10  Prefactor     1.2122        5.4799        .54818E-06   -.69267E-03
  11  norm          .10000E-03    14.966       -.24042E-05** at limit **
  12  Prefactor     1.4501        1.8281       -.24445E-06   -.24588E-03
  13  Prefactor     10.362        22.439       -.71084E-05   -.14315E-05
  14  norm          7.7625        6.9983       -.36618E-06    .25882E-04
  15  Prefactor     .10000E-03    2.5689       -.56477E-09** at limit **
  16  Prefactor     .10000E-03    9.8858       -.52404E-06** at limit **
  17  Prefactor     73.420        139.73       -.32017E-04    .32096E-04
  18  Prefactor     .10000E-03    14.490       -.67625E-05** at limit **
  19  Prefactor     .10000E-03    21.571       -.27594E-05** at limit **
  20  Prefactor     4.6417        5.6006        .25907E-06    .53957E-04
  21  Prefactor     .18998        13.857       -.11414E-05   -.80353E-04
  22  Prefactor     .10000E-03    16.119        .92926E-05** at limit **
  23  Prefactor     .10000E-03    33.309        .69599E-06** at limit **
  24  Prefactor     .76859        17.788       -.81555E-06   -.14377E-03
  25  Prefactor     .10000E-03    15.296        .11278E-05** at limit **
  26  Prefactor     19.338        11.753       -.45907E-06    .78703E-04
  27  norm          .10000E-03    .86596       -.14618E-07** at limit **
  28  Normalizat    1.2523        .22007        .28721E-05    .11681E-03
  29  Prefactor     .77821        .16653        .19231E-05    .18389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.95173
  Prefactor  = 13.3557
  Prefactor  = 1.29153
  Prefactor  = 145.813
  norm       = 0.0001
  Prefactor  = 1.21218
  norm       = 0.0001
  Prefactor  = 1.45006
  Prefactor  = 10.3619
  norm       = 7.76246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.4198
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.64172
  Prefactor  = 0.189981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.768592
  Prefactor  = 0.0001
  Prefactor  = 19.3384
  norm       = 0.0001
  Normalizat = 1.25227
  Prefactor  = 0.778214
 **********
 **   18 **HESSE 
 **********

 FCN=   4889.586     FROM HESSE     STATUS=OK           557 CALLS     4259 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7187        .16284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .24005        .59474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4184        .14307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3776        .15832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9517        45.813        .15280E-03   -1.5181    
   6  Prefactor     13.356        23.680        .10951E-03   -1.4977    
   7  Prefactor     1.2915        6.3338        .31468E-03   -1.5481    
   8  Prefactor     145.81        107.59        .16682E-03   -1.3287    
   9  norm          .10000E-03    11.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2122        5.0494        .27900E-03   -1.5488    
  11  norm          .10000E-03    14.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4501        1.8070        .10240E-03   -1.5467    
  13  Prefactor     10.362        21.920        .12451E-03   -1.5064    
  14  norm          7.7625        6.9928        .14394E-03   -1.5151    
  15  Prefactor     .10000E-03    2.5970        .10925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     73.420        141.42        .46847E-04   -1.3992    
  18  Prefactor     .10000E-03    14.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.6417        5.5960        .17637E-03   -1.5277    
  21  Prefactor     .18998        23.773        .72486E-01   -1.5621    
  22  Prefactor     .10000E-03    16.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .76859        153.72        .55303E-02   -1.5533    
  25  Prefactor     .10000E-03    15.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.338        11.766        .91076E-04   -1.4828    
  27  norm          .10000E-03    .86690        .63522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2523        .26139        .24630E-03   -.85002    
  29  Prefactor     .77821        .19658        .24251E-03   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74018e-09
Minuit parameter uncertainties:
  1  2.53507e-05
  2  4.59612e-06
  3  1.99402e-05
  4  7.91807e-06
  5  35.7315
  6  23.6968
  7  5.72097
  8  107.736
  9  9.9472e-05
  10  4.94855
  11  5.96356e-05
  12  1.80708
  13  21.9373
  14  6.99351
  15  3.3863e-06
  16  8.48738e-06
  17  142.074
  18  0.000177225
  19  9.84267e-06
  20  5.59663
  21  4.25095
  22  4.81913e-06
  23  0.00010657
  24  21.7945
  25  7.66507e-06
  26  11.7676
  27  1.24646e-07
  28  0.261662
  29  0.196752
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.450e+00  1.807e+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:  7.782e-01  1.968e-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.252e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.15e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.36e-05

TS (Fixed Index): 1.13
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 9.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919637/likelihoodResults_387072001_387331201_4FGL_J1132.7+0034_daily_bin570.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) = 4889.57641325
delta logL = 0.00965294443722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4889.5759569
delta logL = 0.01010929325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4605       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9688       1.0000          .0000       10.000    
     3 'Normalizat'    1.2577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77599       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=   4889.576     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      220 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4641        71.308        .89010E-02    .21359E-03
   2  Index         1.9718        5.2731        .25972       -.77402E-05
   3  Normalizat    1.2576        .92721E-01    .55597E-01   -.42482E-04
   4  Prefactor     .77601        .56666E-01    .43404E-01   -.35956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46409
  Index      = 1.97182
  Normalizat = 1.2576
  Prefactor  = 0.776007
 **********
 **   18 **HESSE 
 **********

 FCN=   4889.576     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4641        1.8696        .10570E-03   -1.5466    
   2  Index         1.9718        1.1190        .12281E-01   -.65056    
   3  Normalizat    1.2576        .24374        .24585E-03   -.84841    
   4  Prefactor     .77601        .19329        .24281E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27743e-12
Minuit parameter uncertainties:
  1  1.86965
  2  1.13432
  3  0.243965
  4  0.193454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919637': 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) = 4889.57595202
delta logL = 0.0101141784644

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.464e+00  1.870e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.972e+00  1.134e+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:  7.760e-01  1.935e-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.258e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.97 +/- 1.13
Photon Flux (Free Index): 1.71e-08 +/- 3.56e-08
Energy Flux (Free Index): 1.27e-05 +/- 2.26e-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/919637/cmap_HighResolution_387072001_387331201_4FGL_J1132.7+0034_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', comment='SUCCESS', photon_flux='2.15e-08', energy_flux2='1.27e-05', photon_flux_error='2.68e-08', dlogl='1.01e-02', energy_flux='1.09e-05', photon_flux2='1.71e-08', job_status='DONE', time_completed='2021-09-04 03:51:42.734315', photon_index_error2='1.13', photon_index2='1.97', ts='1.13', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='9.47e-08', energy_flux_error2='2.26e-05', EG='1.25', time_epoch_completed='1630752702.73', return_code='0', job_id='919637', GAL2='0.78', EG2='1.26', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.56e-08', ts2='1.15', photon_index='2.14' WHERE bin_id='570' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 919637: <4FGL_J1132.7+0034_daily_bin570> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin570 173.196 0.5737 387072001 387331201 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 :                                   736.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

