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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin916
RA = 173.196, Dec = 0.5737
tmin = 476755201, tmax = 477014401
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='921440', job_status='RUN', time_executed='2021-09-04 03:44:56.401490', time_epoch_executed='1630752296.4' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='916'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921440/ft1_4FGL_J1132.7+0034_daily_bin916.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921440/ft2_4FGL_J1132.7+0034_daily_bin916.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921440/ft1_4FGL_J1132.7+0034_daily_bin916.fits outfile=/scratch/kocevski/921440/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin916.fits ra=173.196 dec=0.5737 rad=12.0 tmin=476755201.0 tmax=477014401.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.50
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921440/ft1_filtered_4FGL_J1132.7+0034_daily_bin916.fits" evtable="EVENTS" scfile=/scratch/kocevski/921440/ft2_4FGL_J1132.7+0034_daily_bin916.fits sctable="SC_DATA" outfile=/scratch/kocevski/921440/ltcube_476755201_477014401_4FGL_J1132.7+0034_daily_bin916.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/921440/ft2_4FGL_J1132.7+0034_daily_bin916.fits
.....................!
real 11.84
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921440/ft1_filtered_4FGL_J1132.7+0034_daily_bin916.fits evtable="EVENTS" scfile=/scratch/kocevski/921440/ft2_4FGL_J1132.7+0034_daily_bin916.fits sctable="SC_DATA" expcube=/scratch/kocevski/921440/ltcube_476755201_477014401_4FGL_J1132.7+0034_daily_bin916.fits outfile=/scratch/kocevski/921440/expmap_476755201_477014401_4FGL_J1132.7+0034_daily_bin916.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/921440/ltcube_476755201_477014401_4FGL_J1132.7+0034_daily_bin916.fits
.....................!
real 190.08
user 184.92
sys 4.87

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/921440/ft1_filtered_4FGL_J1132.7+0034_daily_bin916.fits scfile=/scratch/kocevski/921440/ft2_4FGL_J1132.7+0034_daily_bin916.fits outfile=/scratch/kocevski/921440/cmap_476755201_477014401_4FGL_J1132.7+0034_daily_bin916.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.55
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921440/ft1_filtered_4FGL_J1132.7+0034_daily_bin916.fits evtable="EVENTS" scfile=/scratch/kocevski/921440/ft2_4FGL_J1132.7+0034_daily_bin916.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921440/Model_4FGL_J1132.7+0034_daily_bin916.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/921440/ft1_filtered_4FGL_J1132.7+0034_daily_bin916.fits.....................!
real 64.48
user 63.09
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9023       1.0000         .10000E-03   10000.    
     2 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23104E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.152       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6177       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4916       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9223       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0626       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1434       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9722       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.616       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2425       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.784       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3482       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.5725       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4533       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0229       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83040       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=   6879.273     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3711 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9042        9.0775        .54735E-05   -.27328E-03
   2  norm          .10000E-03    .30893        .97144E-07** at limit **
   3  Prefactor     .10005E-03    5.4089        .29071E-05** at limit **
   4  Prefactor     21.144        20.369        .55511E-06   -.10659E-03
   5  Prefactor     8.6194        12.585        .27507E-06   -.59832E-04
   6  Prefactor     .10000E-03    14.307        .90175E-06** at limit **
   7  Prefactor     1.4903        4.5643        .10484E-04   -.80031E-04
   8  Prefactor     .10000E-03    56.074       -.26245E-05** at limit **
   9  norm          11.549        9.8381       -.19552E-05   -.62837E-04
  10  Prefactor     6.9251        4.5372        .34511E-08   -.78354E-04
  11  norm          .10000E-03    19.344        .64273E-06** at limit **
  12  Prefactor     4.0623        2.0933        .10151E-06   -.15699E-03
  13  Prefactor     .10000E-03    18.416       -.21034E-06** at limit **
  14  norm          .10000E-03    2.8765        .55637E-07** at limit **
  15  Prefactor     3.1434        2.4006        .19695E-06   -.21290E-05
  16  Prefactor     4.9713        15.627        .98562E-06   -.47506E-05
  17  Prefactor     31.460        61.722        .29551E-04    .96779E-04
  18  Prefactor     4.2408        7.0223        .25950E-06   -.42762E-04
  19  Prefactor     .10000E-03    18.030       -.53427E-06** at limit **
  20  Prefactor     .10000E-03    3.5867       -.21768E-06** at limit **
  21  Prefactor     32.776        13.451        .50286E-06   -.79937E-05
  22  Prefactor     .10000E-03    59.186       -.22973E-06** at limit **
  23  Prefactor     2.3281        79.955        .15893E-05   -.32227E-04
  24  Prefactor     .10000E-03    5.6570        .32246E-08** at limit **
  25  Prefactor     .10000E-03    29.972        .15946E-06** at limit **
  26  Prefactor     5.5719        6.6119        .28187E-06    .36553E-05
  27  norm          1.4533        1.9154        .12491E-06   -.10722E-04
  28  Normalizat    1.0232        .18338       -.21467E-05   -.35303E-03
  29  Prefactor     .83023        .13958       -.20121E-05   -.54839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.90422
  norm       = 0.000100001
  Prefactor  = 0.000100051
  Prefactor  = 21.1439
  Prefactor  = 8.61935
  Prefactor  = 0.0001
  Prefactor  = 1.49028
  Prefactor  = 0.0001
  norm       = 11.5488
  Prefactor  = 6.92506
  norm       = 0.0001
  Prefactor  = 4.06231
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.14338
  Prefactor  = 4.97129
  Prefactor  = 31.4604
  Prefactor  = 4.24082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.776
  Prefactor  = 0.0001
  Prefactor  = 2.32812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.57186
  norm       = 1.45329
  Normalizat = 1.02322
  Prefactor  = 0.830229
 **********
 **   18 **HESSE 
 **********

 FCN=   6879.273     FROM HESSE     STATUS=OK           557 CALLS     4268 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9042        8.9140        .11926E-02   -1.5367    
   2  norm          .10000E-03    .85482        .85268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    15.365        .34670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.144        20.372        .87089E-04   -1.4788    
   5  Prefactor     8.6194        12.536        .13655E-03   -1.5121    
   6  Prefactor     .10000E-03    14.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4903        4.6004        .13633E-02   -1.5464    
   8  Prefactor     .10000E-03    56.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.549        9.8319        .11790E-03   -1.5028    
  10  Prefactor     6.9251        4.5224        .12781E-03   -1.5182    
  11  norm          .10000E-03    19.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0623        2.0921        .82593E-04   -1.5305    
  13  Prefactor     .10000E-03    18.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9710        .27449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1434        2.3937        .10807E-03   -1.5353    
  16  Prefactor     4.9713        15.610        .18035E-03   -1.5262    
  17  Prefactor     31.460        61.845        .35630E-03   -1.4586    
  18  Prefactor     4.2408        7.0104        .19563E-03   -1.5296    
  19  Prefactor     .10000E-03    18.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.6142        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.776        13.444        .69983E-04   -1.4562    
  22  Prefactor     .10000E-03    59.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.3281        80.471        .26751E-03   -1.5403    
  24  Prefactor     .10000E-03    5.6659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    30.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.5719        6.6156        .17019E-03   -1.5236    
  27  norm          1.4533        1.8902        .12187E-03   -1.5467    
  28  Normalizat    1.0232        .20981        .25803E-03   -.92256    
  29  Prefactor     .83023        .16051        .22911E-03   -.98623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69137e-09
Minuit parameter uncertainties:
  1  8.91808
  2  5.7038e-05
  3  0.00177515
  4  20.3787
  5  12.5399
  6  6.33352e-05
  7  4.60145
  8  9.31782e-05
  9  9.8333
  10  4.52261
  11  5.77898e-05
  12  2.09213
  13  6.01654e-05
  14  7.60291e-06
  15  2.39375
  16  15.6225
  17  61.9713
  18  7.01177
  19  3.08444e-06
  20  1.14945e-05
  21  13.4452
  22  5.77907e-05
  23  27.4143
  24  2.77517e-06
  25  6.8193e-05
  26  6.61642
  27  1.89032
  28  0.209975
  29  0.160599
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.062e+00  2.092e+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.302e-01  1.606e-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.023e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.97
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.02e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 3.07e-05 +/- 1.58e-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) = 6878.55063067
delta logL = 0.722255335933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6878.5256537
delta logL = 0.74723230679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7090       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6918       1.0000          .0000       10.000    
     3 'Normalizat'    1.0491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81788       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=   6878.526     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7090        3.0462        .46359E-02   -.15575E-02
   2  Index         1.6918        .37599        .16405       -.22954E-04
   3  Normalizat    1.0492        .17199        .40614E-01   -.68195E-05
   4  Prefactor     .81786        .13907        .43950E-01    .19037E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70901
  Index      = 1.69179
  Normalizat = 1.04917
  Prefactor  = 0.817859
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.526     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7090        2.4984        .91784E-04   -1.5274    
   2  Index         1.6918        .34085        .65313E-02   -.72301    
   3  Normalizat    1.0492        .19602        .25513E-03   -.91401    
   4  Prefactor     .81786        .15881        .23061E-03   -.99073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36735e-10
Minuit parameter uncertainties:
  1  2.49842
  2  0.341323
  3  0.196152
  4  0.158897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921440': 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) = 6878.52565369
delta logL = 0.747232319762

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.709e+00  2.498e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.692e+00  3.413e-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:  8.179e-01  1.589e-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.049e+00  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.46
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.69 +/- 0.34
Photon Flux (Free Index): 3.92e-08 +/- 2.62e-08
Energy Flux (Free Index): 6.57e-05 +/- 5.65e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/921440/cmap_HighResolution_476755201_477014401_4FGL_J1132.7+0034_daily_bin916.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.02e-08', energy_flux2='6.57e-05', photon_flux_error='3.10e-08', dlogl='7.47e-01', energy_flux='3.07e-05', photon_flux2='3.92e-08', job_status='DONE', time_completed='2021-09-04 03:58:14.301501', photon_index_error2='0.34', photon_index2='1.69', ts='11.97', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='5.65e-05', EG='1.02', time_epoch_completed='1630753094.3', return_code='0', job_id='921440', GAL2='0.82', EG2='1.05', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='2.62e-08', ts2='13.46', photon_index='2.14' WHERE bin_id='916' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:58:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 921440: <4FGL_J1132.7+0034_daily_bin916> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin916> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:48 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:50 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:41:50 2021
Terminated at Sat Sep  4 03:58:15 2021
Results reported at Sat Sep  4 03:58:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin916 173.196 0.5737 476755201 477014401 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 :                                   795.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

