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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin708
RA = 173.196, Dec = 0.5737
tmin = 422841601, tmax = 423100801
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='919842', job_status='RUN', time_executed='2021-09-04 03:39:52.976389', time_epoch_executed='1630751992.98' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919842

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919842/ft1_4FGL_J1132.7+0034_daily_bin708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919842/ft2_4FGL_J1132.7+0034_daily_bin708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919842/ft1_4FGL_J1132.7+0034_daily_bin708.fits outfile=/scratch/kocevski/919842/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin708.fits ra=173.196 dec=0.5737 rad=12.0 tmin=422841601.0 tmax=423100801.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.06
user 2.84
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919842/ft1_filtered_4FGL_J1132.7+0034_daily_bin708.fits" evtable="EVENTS" scfile=/scratch/kocevski/919842/ft2_4FGL_J1132.7+0034_daily_bin708.fits sctable="SC_DATA" outfile=/scratch/kocevski/919842/ltcube_422841601_423100801_4FGL_J1132.7+0034_daily_bin708.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/919842/ft2_4FGL_J1132.7+0034_daily_bin708.fits
.....................!
real 9.10
user 8.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919842/ft1_filtered_4FGL_J1132.7+0034_daily_bin708.fits evtable="EVENTS" scfile=/scratch/kocevski/919842/ft2_4FGL_J1132.7+0034_daily_bin708.fits sctable="SC_DATA" expcube=/scratch/kocevski/919842/ltcube_422841601_423100801_4FGL_J1132.7+0034_daily_bin708.fits outfile=/scratch/kocevski/919842/expmap_422841601_423100801_4FGL_J1132.7+0034_daily_bin708.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/919842/ltcube_422841601_423100801_4FGL_J1132.7+0034_daily_bin708.fits
.....................!
real 146.07
user 141.56
sys 4.17

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/919842/ft1_filtered_4FGL_J1132.7+0034_daily_bin708.fits scfile=/scratch/kocevski/919842/ft2_4FGL_J1132.7+0034_daily_bin708.fits outfile=/scratch/kocevski/919842/cmap_422841601_423100801_4FGL_J1132.7+0034_daily_bin708.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919842/ft1_filtered_4FGL_J1132.7+0034_daily_bin708.fits scfile=/scratch/kocevski/919842/ft2_4FGL_J1132.7+0034_daily_bin708.fits outfile=/scratch/kocevski/919842/cmap_HighResolution_422841601_423100801_4FGL_J1132.7+0034_daily_bin708.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.45
user 0.29
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919842/ft1_filtered_4FGL_J1132.7+0034_daily_bin708.fits evtable="EVENTS" scfile=/scratch/kocevski/919842/ft2_4FGL_J1132.7+0034_daily_bin708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919842/Model_4FGL_J1132.7+0034_daily_bin708.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/919842/ft1_filtered_4FGL_J1132.7+0034_daily_bin708.fits.....................!
real 45.92
user 44.75
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .21532       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1005       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9007       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.167       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12394E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.408       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4175       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.830       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10992E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.953       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5280       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7642       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .32695       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.000       1.0000         .10000E-03   10000.    
    27 'norm      '    2.6016       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96364       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0604       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=   6305.979     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     3786 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2967        .16475E-07** at limit **
   2  norm          .21533        .33318       -.69075E-07   -.13213E-02
   3  Prefactor     .10000E-03    4.8307        .77434E-07** at limit **
   4  Prefactor     9.1003        17.361       -.21923E-05   -.32480E-04
   5  Prefactor     1.8831        36.321        .14358E-04   -.13561E-03
   6  Prefactor     17.167        15.181       -.19579E-05   -.35077E-03
   7  Prefactor     .10000E-03    3.4387        .10046E-07** at limit **
   8  Prefactor     .10000E-03    22.691       -.35422E-06** at limit **
   9  norm          .10000E-03    4.3636        .12864E-07** at limit **
  10  Prefactor     .10000E-03    4.4431       -.27270E-06** at limit **
  11  norm          13.353        25.793        .28707E-04    .35133E-04
  12  Prefactor     3.4172        2.0714        .11055E-06    .57524E-04
  13  Prefactor     10.839        26.751       -.27988E-04   -.74153E-04
  14  norm          .10000E-03    2.8434        .93734E-07** at limit **
  15  Prefactor     .10000E-03    2.3643        .40937E-07** at limit **
  16  Prefactor     3.9650        39.809        .49618E-05   -.16119E-04
  17  Prefactor     .10000E-03    138.51       -.16281E-04** at limit **
  18  Prefactor     .10000E-03    4.2305        .19418E-07** at limit **
  19  Prefactor     19.953        19.826        .23989E-06    .46248E-05
  20  Prefactor     9.5258        9.3721       -.41162E-05   -.62355E-04
  21  Prefactor     7.7617        12.874        .29647E-05   -.49145E-04
  22  Prefactor     .10000E-03    9.8279        .83193E-09** at limit **
  23  Prefactor     .10000E-03    15.836        .13474E-06** at limit **
  24  Prefactor     .10000E-03    54.089        .35143E-06** at limit **
  25  Prefactor     .38884E-01    31.849       -.96787E-06    .69382E-04
  26  Prefactor     14.999        12.053       -.31016E-05   -.12058E-04
  27  norm          2.6016        2.2039        .38601E-06    .93392E-04
  28  Normalizat    .96400        .20307        .56765E-05   -.24917E-03
  29  Prefactor     1.0601        .15997       -.34915E-05    .23753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.215328
  Prefactor  = 0.0001
  Prefactor  = 9.10028
  Prefactor  = 1.88311
  Prefactor  = 17.1671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3526
  Prefactor  = 3.41723
  Prefactor  = 10.8393
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.96503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.9532
  Prefactor  = 9.52576
  Prefactor  = 7.76174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0388843
  Prefactor  = 14.9994
  norm       = 2.60159
  Normalizat = 0.963997
  Prefactor  = 1.06015
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.979     FROM HESSE     STATUS=OK           565 CALLS     4351 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .21533        .28692        .54719E-03   -1.5615    
   3  Prefactor     .10000E-03    4.8624        .17024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.1003        17.364        .13286E-03   -1.5105    
   5  Prefactor     1.8831        32.773        .30168E-03   -1.5434    
   6  Prefactor     17.167        14.462        .96667E-04   -1.4879    
   7  Prefactor     .10000E-03    3.5168        .28707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.3828        .16184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5460        .32427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.353        25.808        .10939E-03   -1.4977    
  12  Prefactor     3.4172        2.0707        .85727E-04   -1.5338    
  13  Prefactor     10.839        26.783        .12174E-03   -1.5049    
  14  norm          .10000E-03    2.8656        .13072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4749        .23822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9650        39.579        .20269E-03   -1.5310    
  17  Prefactor     .10000E-03    139.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2381        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.953        19.821        .89665E-04   -1.4814    
  20  Prefactor     9.5258        9.3587        .12983E-03   -1.5091    
  21  Prefactor     7.7617        12.850        .14391E-03   -1.5151    
  22  Prefactor     .10000E-03    9.8283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    55.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .38884E-01    33.935        .14745       -1.5669    
  26  Prefactor     14.999        12.050        .10342E-03   -1.4933    
  27  norm          2.6016        2.2083        .10189E-03   -1.5385    
  28  Normalizat    .96400        .23212        .28183E-03   -.94247    
  29  Prefactor     1.0601        .18425        .21955E-03   -.90751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42756e-09
Minuit parameter uncertainties:
  1  2.40152e-07
  2  0.286918
  3  4.68335e-06
  4  17.3733
  5  15.7215
  6  14.4647
  7  2.06812e-06
  8  6.67681e-05
  9  3.03206e-05
  10  2.41551e-05
  11  25.8291
  12  2.0707
  13  26.8127
  14  1.50469e-05
  15  7.62933e-06
  16  25.0756
  17  8.52515e-05
  18  2.12169e-06
  19  19.8271
  20  9.36015
  21  12.8541
  22  8.29645e-06
  23  3.34186e-05
  24  0.000432379
  25  2.29579
  26  12.0523
  27  2.20834
  28  0.232361
  29  0.184361
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.417e+00  2.071e+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.060e+00  1.844e-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:  9.640e-01  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.90
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.07e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.56e-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) = 6305.92999346
delta logL = 0.0490200267113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6305.92538396
delta logL = 0.0536295280099

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6178       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9829       1.0000          .0000       10.000    
     3 'Normalizat'    .97247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0566       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=   6305.925     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      192 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6178        60.606        .53105E-02    .10251E-02
   2  Index         1.9829        5.8619        .19654        .25930E-04
   3  Normalizat    .97248        .15472        .45821E-01    .14845E-04
   4  Prefactor     1.0566        .81172E-01    .39539E-01    .53049E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.6178
  Index      = 1.9829
  Normalizat = 0.972476
  Prefactor  = 1.05658
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.925     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6178        2.2622        .89863E-04   -1.5328    
   2  Index         1.9829        .46087        .71172E-02   -.64778    
   3  Normalizat    .97248        .22132        .28073E-03   -.93958    
   4  Prefactor     1.0566        .17980        .21988E-03   -.90867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41311e-10
Minuit parameter uncertainties:
  1  2.26222
  2  0.461905
  3  0.221527
  4  0.179899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919842': 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) = 6305.92538395
delta logL = 0.0536295348111

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.618e+00  2.262e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.983e+00  4.619e-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.057e+00  1.799e-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:  9.725e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.00
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.98 +/- 0.46
Photon Flux (Free Index): 4.29e-08 +/- 3.48e-08
Energy Flux (Free Index): 3.10e-05 +/- 2.73e-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/919842/cmap_HighResolution_422841601_423100801_4FGL_J1132.7+0034_daily_bin708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.07e-08', energy_flux2='3.10e-05', photon_flux_error='3.07e-08', dlogl='5.36e-02', energy_flux='2.58e-05', photon_flux2='4.29e-08', job_status='DONE', time_completed='2021-09-04 03:49:29.371309', photon_index_error2='0.46', photon_index2='1.98', ts='7.90', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='0.96', time_epoch_completed='1630752569.37', return_code='0', job_id='919842', GAL2='1.06', EG2='0.97', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='3.48e-08', ts2='8.00', photon_index='2.14' WHERE bin_id='708' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:49:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 919842: <4FGL_J1132.7+0034_daily_bin708> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin708 173.196 0.5737 422841601 423100801 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 :                                   574.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

