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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin970
RA = 173.196, Dec = 0.5737
tmin = 490752001, tmax = 491011201
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='921517', job_status='RUN', time_executed='2021-09-04 03:43:56.189244', time_epoch_executed='1630752236.19' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921517

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921517/ft1_4FGL_J1132.7+0034_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921517/ft2_4FGL_J1132.7+0034_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921517/ft1_4FGL_J1132.7+0034_daily_bin970.fits outfile=/scratch/kocevski/921517/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin970.fits ra=173.196 dec=0.5737 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.74
user 5.49
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921517/ft1_filtered_4FGL_J1132.7+0034_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/921517/ft2_4FGL_J1132.7+0034_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/921517/ltcube_490752001_491011201_4FGL_J1132.7+0034_daily_bin970.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/921517/ft2_4FGL_J1132.7+0034_daily_bin970.fits
.....................!
real 12.55
user 12.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921517/ft1_filtered_4FGL_J1132.7+0034_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/921517/ft2_4FGL_J1132.7+0034_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/921517/ltcube_490752001_491011201_4FGL_J1132.7+0034_daily_bin970.fits outfile=/scratch/kocevski/921517/expmap_490752001_491011201_4FGL_J1132.7+0034_daily_bin970.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/921517/ltcube_490752001_491011201_4FGL_J1132.7+0034_daily_bin970.fits
.....................!
real 191.90
user 186.14
sys 5.30

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/921517/ft1_filtered_4FGL_J1132.7+0034_daily_bin970.fits scfile=/scratch/kocevski/921517/ft2_4FGL_J1132.7+0034_daily_bin970.fits outfile=/scratch/kocevski/921517/cmap_490752001_491011201_4FGL_J1132.7+0034_daily_bin970.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.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921517/ft1_filtered_4FGL_J1132.7+0034_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/921517/ft2_4FGL_J1132.7+0034_daily_bin970.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921517/Model_4FGL_J1132.7+0034_daily_bin970.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/921517/ft1_filtered_4FGL_J1132.7+0034_daily_bin970.fits.....................!
real 51.88
user 50.50
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.244       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47102       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.941       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5846       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 '    7.1847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5786       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18345E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6878       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.453       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9294       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.088       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    64.763       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.2352       1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.187       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.6570       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .63886       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0510       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=   5363.136     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3682 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3034        .25308E-06** at limit **
   2  norm          3.8830        .82523        .13723E-07   -.21983E-04
   3  Prefactor     .10000E-03    3.3221       -.10028E-07** at limit **
   4  Prefactor     43.236        26.958       -.52042E-06   -.19710E-03
   5  Prefactor     .10000E-03    9.8727       -.28179E-06** at limit **
   6  Prefactor     .46554        30.343        .74570E-05   -.38098E-03
   7  Prefactor     .10000E-03    2.7667       -.12502E-07** at limit **
   8  Prefactor     .10000E-03    18.981        .29908E-06** at limit **
   9  norm          10.943        8.4888        .44504E-07   -.64754E-04
  10  Prefactor     .10000E-03    1.6458       -.36648E-07** at limit **
  11  norm          .10000E-03    8.0496        .51348E-06** at limit **
  12  Prefactor     1.5845        1.2982        .92954E-08   -.19758E-04
  13  Prefactor     .10000E-03    6.9684       -.29000E-06** at limit **
  14  norm          .10000E-03    2.9531       -.19725E-07** at limit **
  15  Prefactor     7.1845        3.7989        .11057E-07   -.26741E-04
  16  Prefactor     5.5792        14.155        .27009E-06    .37724E-04
  17  Prefactor     .10010E-03    385.11        .14562E-04** at limit **
  18  Prefactor     7.7000        13.653        .29506E-05    .55125E-03
  19  Prefactor     13.455        19.587        .59094E-06    .99008E-04
  20  Prefactor     4.9286        7.0744        .37761E-06    .61972E-03
  21  Prefactor     19.087        12.991       -.83026E-07   -.65018E-04
  22  Prefactor     .10000E-03    10.346       -.48913E-08** at limit **
  23  Prefactor     64.773        44.293       -.55254E-06   -.81686E-04
  24  Prefactor     6.2345        12.258       -.51769E-08   -.39809E-05
  25  Prefactor     21.182        38.280        .37704E-06    .24282E-04
  26  Prefactor     .10000E-03    4.2568       -.24170E-06** at limit **
  27  norm          2.6566        2.2892        .19550E-07    .26190E-04
  28  Normalizat    .63878        .20493        .94302E-08   -.54594E-04
  29  Prefactor     1.0511        .16216       -.37480E-06   -.13203E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.88297
  Prefactor  = 0.0001
  Prefactor  = 43.2358
  Prefactor  = 0.0001
  Prefactor  = 0.465545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9433
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.58454
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.18448
  Prefactor  = 5.57917
  Prefactor  = 0.0001001
  Prefactor  = 7.70004
  Prefactor  = 13.4554
  Prefactor  = 4.92863
  Prefactor  = 19.0867
  Prefactor  = 0.0001
  Prefactor  = 64.7725
  Prefactor  = 6.23449
  Prefactor  = 21.1818
  Prefactor  = 0.0001
  norm       = 2.6566
  Normalizat = 0.638785
  Prefactor  = 1.05112
 **********
 **   18 **HESSE 
 **********

 FCN=   5363.136     FROM HESSE     STATUS=OK           551 CALLS     4233 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3469        .14845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8830        .82571        .29260E-04   -1.5314    
   3  Prefactor     .10000E-03    3.3275        .13029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.236        27.070        .60963E-04   -1.4392    
   5  Prefactor     .10000E-03    9.9656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .46554        41.537        .40141E-02   -1.5572    
   7  Prefactor     .10000E-03    2.8123        .11868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.943        8.3914        .12112E-03   -1.5046    
  10  Prefactor     .10000E-03    1.6699        .91669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.0823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5845        1.3049        .73410E-04   -1.5456    
  13  Prefactor     .10000E-03    6.9864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9703        .12273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.1845        3.7928        .99113E-04   -1.5172    
  16  Prefactor     5.5792        14.149        .17009E-03   -1.5236    
  17  Prefactor     .10010E-03    393.58        .20305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7000        14.223        .14463E-03   -1.5153    
  19  Prefactor     13.455        19.620        .10921E-03   -1.4974    
  20  Prefactor     4.9286        7.2672        .90576E-03   -1.5264    
  21  Prefactor     19.087        12.995        .91674E-04   -1.4834    
  22  Prefactor     .10000E-03    10.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     64.773        44.562        .49868E-04   -1.4097    
  24  Prefactor     6.2345        12.244        .16076E-03   -1.5209    
  25  Prefactor     21.182        38.276        .87017E-04   -1.4787    
  26  Prefactor     .10000E-03    4.2662        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.6566        2.2939        .99966E-04   -1.5382    
  28  Normalizat    .63878        .23092        .31796E-03   -1.0636    
  29  Prefactor     1.0511        .18412        .21056E-03   -.91044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26904e-09
Minuit parameter uncertainties:
  1  2.9524e-05
  2  0.825713
  3  2.66375e-07
  4  27.0772
  5  9.7222e-05
  6  8.80022
  7  1.49098e-05
  8  5.96016e-05
  9  8.39231
  10  5.85571e-06
  11  7.34824e-05
  12  1.30492
  13  4.01877e-05
  14  1.02048e-06
  15  3.79295
  16  14.1574
  17  0.0126592
  18  14.2293
  19  19.6293
  20  7.26852
  21  12.9969
  22  3.51967e-07
  23  44.5854
  24  12.2486
  25  38.3207
  26  2.4637e-05
  27  2.29395
  28  0.231269
  29  0.184227
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.585e+00  1.305e+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.051e+00  1.842e-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:  6.388e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.54
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.35e-08 +/- 1.93e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 9.85e-06

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) = 5361.96425432
delta logL = 1.17223903464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5361.9562848
delta logL = 1.18020854779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6455       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3242       1.0000          .0000       10.000    
     3 'Normalizat'    .65336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0449       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=   5361.956     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6455        1.4623        .82317E-02   -.68417E-03
   2  Index         1.3241        .38477        .19995       -.43469E-04
   3  Normalizat    .65333        .19127        .71050E-01    .25106E-04
   4  Prefactor     1.0449        .16027        .40217E-01    .21454E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6455
  Index      = 1.32408
  Normalizat = 0.653326
  Prefactor  = 1.04491
 **********
 **   18 **HESSE 
 **********

 FCN=   5361.956     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6455        1.7703        .81408E-04   -1.5451    
   2  Index         1.3241        .50212        .81276E-02   -.82594    
   3  Normalizat    .65333        .21706        .31448E-03   -1.0577    
   4  Prefactor     1.0449        .18235        .21112E-03   -.91247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48324e-11
Minuit parameter uncertainties:
  1  1.77033
  2  0.503978
  3  0.217343
  4  0.18246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921517': 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) = 5361.9562847
delta logL = 1.1802086487

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.645e+00  1.770e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.324e+00  5.040e-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.045e+00  1.825e-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:  6.533e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.89
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.32 +/- 0.50
Photon Flux (Free Index): 1.09e-08 +/- 1.22e-08
Energy Flux (Free Index): 6.17e-05 +/- 8.12e-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/921517/cmap_HighResolution_490752001_491011201_4FGL_J1132.7+0034_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.35e-08', energy_flux2='6.17e-05', photon_flux_error='1.93e-08', dlogl='1.18e+00', energy_flux='1.20e-05', photon_flux2='1.09e-08', job_status='DONE', time_completed='2021-09-04 03:55:41.380411', photon_index_error2='0.50', photon_index2='1.32', ts='7.54', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='8.12e-05', EG='0.64', time_epoch_completed='1630752941.38', return_code='0', job_id='921517', GAL2='1.04', EG2='0.65', return_code2='0', energy_flux_error='9.85e-06', photon_flux_error2='1.22e-08', ts2='9.89', photon_index='2.14' WHERE bin_id='970' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:55:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 921517: <4FGL_J1132.7+0034_daily_bin970> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin970 173.196 0.5737 490752001 491011201 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 :                                   702.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

