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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin701
RA = 173.196, Dec = 0.5737
tmin = 421027201, tmax = 421286401
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='919831', job_status='RUN', time_executed='2021-09-04 03:38:49.475004', time_epoch_executed='1630751929.48' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919831

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919831/ft1_4FGL_J1132.7+0034_daily_bin701.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919831/ft2_4FGL_J1132.7+0034_daily_bin701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919831/ft1_4FGL_J1132.7+0034_daily_bin701.fits outfile=/scratch/kocevski/919831/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin701.fits ra=173.196 dec=0.5737 rad=12.0 tmin=421027201.0 tmax=421286401.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.78
user 3.55
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919831/ft1_filtered_4FGL_J1132.7+0034_daily_bin701.fits" evtable="EVENTS" scfile=/scratch/kocevski/919831/ft2_4FGL_J1132.7+0034_daily_bin701.fits sctable="SC_DATA" outfile=/scratch/kocevski/919831/ltcube_421027201_421286401_4FGL_J1132.7+0034_daily_bin701.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/919831/ft2_4FGL_J1132.7+0034_daily_bin701.fits
.....................!
real 11.98
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919831/ft1_filtered_4FGL_J1132.7+0034_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/919831/ft2_4FGL_J1132.7+0034_daily_bin701.fits sctable="SC_DATA" expcube=/scratch/kocevski/919831/ltcube_421027201_421286401_4FGL_J1132.7+0034_daily_bin701.fits outfile=/scratch/kocevski/919831/expmap_421027201_421286401_4FGL_J1132.7+0034_daily_bin701.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/919831/ltcube_421027201_421286401_4FGL_J1132.7+0034_daily_bin701.fits
.....................!
real 189.41
user 184.62
sys 4.44

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/919831/ft1_filtered_4FGL_J1132.7+0034_daily_bin701.fits scfile=/scratch/kocevski/919831/ft2_4FGL_J1132.7+0034_daily_bin701.fits outfile=/scratch/kocevski/919831/cmap_421027201_421286401_4FGL_J1132.7+0034_daily_bin701.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.74
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919831/ft1_filtered_4FGL_J1132.7+0034_daily_bin701.fits scfile=/scratch/kocevski/919831/ft2_4FGL_J1132.7+0034_daily_bin701.fits outfile=/scratch/kocevski/919831/cmap_HighResolution_421027201_421286401_4FGL_J1132.7+0034_daily_bin701.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919831/ft1_filtered_4FGL_J1132.7+0034_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/919831/ft2_4FGL_J1132.7+0034_daily_bin701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919831/Model_4FGL_J1132.7+0034_daily_bin701.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/919831/ft1_filtered_4FGL_J1132.7+0034_daily_bin701.fits.....................!
real 58.28
user 57.02
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .27659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.296       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.300       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13134E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7433       1.0000         .10000E-03   10000.    
     8 'Prefactor '    101.49       1.0000         .10000E-03   10000.    
     9 'norm      '    21.732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7030       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4072       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8397       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    136.80       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2971       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.628       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.5709       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1432       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80107       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=   5855.850     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3743 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5749        .29143E-05** at limit **
   2  norm          .27721        .46643       -.13371E-06   -.16005E-02
   3  Prefactor     14.291        9.8285        .35320E-07   -.85317E-04
   4  Prefactor     .10000E-03    15.525        .96984E-05** at limit **
   5  Prefactor     50.338        25.657        .12353E-04    .22974E-03
   6  Prefactor     .10000E-03    31.120       -.63353E-05** at limit **
   7  Prefactor     2.7447        7.6525       -.30177E-05   -.39204E-03
   8  Prefactor     101.42        81.398       -.69130E-04    .20001E-04
   9  norm          21.748        15.460       -.20377E-05    .26232E-03
  10  Prefactor     .10000E-03    2.8728        .63398E-06** at limit **
  11  norm          .10000E-03    7.6676       -.27910E-05** at limit **
  12  Prefactor     7.7044        3.0869        .88424E-07    .10284E-03
  13  Prefactor     3.3752        52.197       -.27318E-04   -.14574E-04
  14  norm          .10000E-03    3.3623        .11496E-06** at limit **
  15  Prefactor     3.8401        4.2512       -.47546E-06   -.29957E-03
  16  Prefactor     .10000E-03    13.884       -.97482E-05** at limit **
  17  Prefactor     136.83        116.87        .23996E-04    .71916E-05
  18  Prefactor     8.3002        12.920       -.19132E-05   -.73291E-04
  19  Prefactor     35.633        36.538        .39787E-05    .27029E-04
  20  Prefactor     .10000E-03    2.9362       -.34134E-08** at limit **
  21  Prefactor     .10000E-03    11.084        .14719E-05** at limit **
  22  Prefactor     .10000E-03    29.278       -.13450E-04** at limit **
  23  Prefactor     .10000E-03    25.562       -.14309E-04** at limit **
  24  Prefactor     .10000E-03    35.710        .18432E-04** at limit **
  25  Prefactor     .10000E-03    20.847        .85480E-05** at limit **
  26  Prefactor     .10000E-03    33.663        .72437E-05** at limit **
  27  norm          1.5705        3.2683       -.13410E-05   -.13154E-02
  28  Normalizat    1.1424        .21667       -.24130E-05    .19611E-03
  29  Prefactor     .80177        .16523        .48286E-05   -.14730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.277207
  Prefactor  = 14.2905
  Prefactor  = 0.0001
  Prefactor  = 50.3376
  Prefactor  = 0.000100004
  Prefactor  = 2.74465
  Prefactor  = 101.417
  norm       = 21.7476
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 7.70441
  Prefactor  = 3.37518
  norm       = 0.0001
  Prefactor  = 3.84009
  Prefactor  = 0.0001
  Prefactor  = 136.83
  Prefactor  = 8.3002
  Prefactor  = 35.6328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57054
  Normalizat = 1.14242
  Prefactor  = 0.801769
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.850     FROM HESSE     STATUS=OK           549 CALLS     4292 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .27721        .41076        .60358E-03   -1.5603    
   3  Prefactor     14.291        9.6292        .10593E-03   -1.4952    
   4  Prefactor     .10000E-03    15.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     50.338        25.620        .56545E-04   -1.4288    
   6  Prefactor     .10000E-03    31.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7447        7.5115        .24581E-03   -1.5377    
   8  Prefactor     101.42        81.260        .19954E-03   -1.3690    
   9  norm          21.748        15.219        .85920E-04   -1.4775    
  10  Prefactor     .10000E-03    2.8917        .12634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.6671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7044        3.0896        .81244E-04   -1.5153    
  13  Prefactor     3.3752        51.922        .21917E-03   -1.5341    
  14  norm          .10000E-03    3.3806        .13690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8401        4.2357        .15488E-03   -1.5316    
  16  Prefactor     .10000E-03    13.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     136.83        117.06        .17218E-03   -1.3363    
  18  Prefactor     8.3002        12.927        .13918E-03   -1.5132    
  19  Prefactor     35.633        36.498        .67140E-04   -1.4513    
  20  Prefactor     .10000E-03    2.9415        .12805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    35.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    34.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.5705        3.2368        .18962E-03   -1.5457    
  28  Normalizat    1.1424        .25512        .27458E-03   -.88401    
  29  Prefactor     .80177        .19344        .25243E-03   -.99663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16713e-09
Minuit parameter uncertainties:
  1  2.97705e-05
  2  0.410762
  3  9.63023
  4  3.75569e-05
  5  25.6257
  6  0.000719612
  7  7.51404
  8  81.3491
  9  15.2213
  10  0.000101556
  11  4.48259e-05
  12  3.08971
  13  26.5031
  14  1.85398e-05
  15  4.23605
  16  1.09086e-05
  17  117.254
  18  12.9315
  19  36.5207
  20  9.27644e-06
  21  2.09673e-05
  22  4.82789e-05
  23  0.000142042
  24  0.000109052
  25  3.63133e-05
  26  6.21976e-05
  27  3.2372
  28  0.255394
  29  0.193602
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  7.704e+00  3.090e+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:  8.018e-01  1.936e-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.142e+00  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.71
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 4.58e-08
Energy Flux (Fixed Index): 5.82e-05 +/- 2.33e-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) = 5855.80440589
delta logL = 0.0454415919176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5855.79589037
delta logL = 0.0539571196514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2685       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0173       1.0000          .0000       10.000    
     3 'Normalizat'    1.1571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79393       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=   5855.796     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      260 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2689        3.6954        .85915E-04   -.32924E-02
   2  Index         2.0180        .35528        .51519E-02   -.57430E-03
   3  Normalizat    1.1569        .24610        .27313E-03    .17306E-03
   4  Prefactor     .79408        .19155        .25354E-03    .25514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.26886
  Index      = 2.01796
  Normalizat = 1.15689
  Prefactor  = 0.794082
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.796     FROM HESSE     STATUS=OK            23 CALLS      283 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2689        3.6506        .17183E-04   -1.5133    
   2  Index         2.0180        .35074        .20608E-03   -.63902    
   3  Normalizat    1.1569        .24619        .54626E-04   -.87946    
   4  Prefactor     .79408        .19166        .10142E-04   -.99947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90574e-09
Minuit parameter uncertainties:
  1  3.65074
  2  0.351186
  3  0.246436
  4  0.191817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919831': 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) = 5855.79588784
delta logL = 0.0539596427179

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  8.269e+00  3.651e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.018e+00  3.512e-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:  7.941e-01  1.918e-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.157e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.69
Ra Dec: 173.196 0.574
Photon Index (Free Index): 2.02 +/- 0.35
Photon Flux (Free Index): 1.03e-07 +/- 5.40e-08
Energy Flux (Free Index): 6.82e-05 +/- 4.48e-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/919831/cmap_HighResolution_421027201_421286401_4FGL_J1132.7+0034_daily_bin701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='6.82e-05', photon_flux_error='4.58e-08', dlogl='5.40e-02', energy_flux='5.82e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-04 03:50:51.929547', photon_index_error2='0.35', photon_index2='2.02', ts='18.71', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='4.48e-05', EG='1.14', time_epoch_completed='1630752651.93', return_code='0', job_id='919831', GAL2='0.79', EG2='1.16', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='5.40e-08', ts2='18.69', photon_index='2.14' WHERE bin_id='701' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:50:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 919831: <4FGL_J1132.7+0034_daily_bin701> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin701> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 03:36:29 2021
Job was executed on host(s) <bullet0024>, 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:50:52 2021
Results reported at Sat Sep  4 03:50:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin701 173.196 0.5737 421027201 421286401 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 :                                   721.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

