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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin694
RA = 173.196, Dec = 0.5737
tmin = 419212801, tmax = 419472001
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='919817', job_status='RUN', time_executed='2021-09-04 03:39:09.286578', time_epoch_executed='1630751949.29' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919817

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919817/ft1_4FGL_J1132.7+0034_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919817/ft2_4FGL_J1132.7+0034_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919817/ft1_4FGL_J1132.7+0034_daily_bin694.fits outfile=/scratch/kocevski/919817/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin694.fits ra=173.196 dec=0.5737 rad=12.0 tmin=419212801.0 tmax=419472001.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.46
user 5.13
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919817/ft1_filtered_4FGL_J1132.7+0034_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/919817/ft2_4FGL_J1132.7+0034_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/919817/ltcube_419212801_419472001_4FGL_J1132.7+0034_daily_bin694.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/919817/ft2_4FGL_J1132.7+0034_daily_bin694.fits
.....................!
real 12.17
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919817/ft1_filtered_4FGL_J1132.7+0034_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/919817/ft2_4FGL_J1132.7+0034_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/919817/ltcube_419212801_419472001_4FGL_J1132.7+0034_daily_bin694.fits outfile=/scratch/kocevski/919817/expmap_419212801_419472001_4FGL_J1132.7+0034_daily_bin694.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/919817/ltcube_419212801_419472001_4FGL_J1132.7+0034_daily_bin694.fits
.....................!
real 195.87
user 191.02
sys 4.48

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/919817/ft1_filtered_4FGL_J1132.7+0034_daily_bin694.fits scfile=/scratch/kocevski/919817/ft2_4FGL_J1132.7+0034_daily_bin694.fits outfile=/scratch/kocevski/919817/cmap_419212801_419472001_4FGL_J1132.7+0034_daily_bin694.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.52
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919817/ft1_filtered_4FGL_J1132.7+0034_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/919817/ft2_4FGL_J1132.7+0034_daily_bin694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919817/Model_4FGL_J1132.7+0034_daily_bin694.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/919817/ft1_filtered_4FGL_J1132.7+0034_daily_bin694.fits.....................!
real 40.03
user 38.77
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13779E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13473       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0235       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1355       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4787       1.0000         .10000E-03   10000.    
     9 'norm      '    11.161       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35661       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5956       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15324E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.042       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.468       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3809       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20258E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.390       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.2253       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2459       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68315       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=   3672.947     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3776 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    8.8009       -.20803E-05** at limit **
   2  norm          1.1711        .79826       -.33624E-06   -.36848E-02
   3  Prefactor     .17543        16.956        .36495E-05   -.96532E-04
   4  Prefactor     1.0285        14.830        .12389E-05   -.18473E-04
   5  Prefactor     .10000E-03    10.323        .26093E-06** at limit **
   6  Prefactor     .10000E-03    6.0885        .23317E-06** at limit **
   7  Prefactor     2.1447        8.0834       -.11781E-05   -.10055E-04
   8  Prefactor     1.4702        805.32        .12703E-05   -.19429E-06
   9  norm          11.131        16.719       -.45458E-06   -.15329E-03
  10  Prefactor     .38177        6.0874        .27815E-05   -.26111E-03
  11  norm          .10000E-03    10.140        .16498E-07** at limit **
  12  Prefactor     1.5958        2.2197       -.83754E-08    .76949E-04
  13  Prefactor     .10000E-03    11.618        .19673E-06** at limit **
  14  norm          .10001E-03    47.217        .13043E-04** at limit **
  15  Prefactor     .10000E-03    4.0517        .36398E-07** at limit **
  16  Prefactor     .10000E-03    9.4239        .73855E-07** at limit **
  17  Prefactor     45.240        69.652       -.10011E-05   -.64620E-05
  18  Prefactor     .10000E-03    4.2784       -.96974E-07** at limit **
  19  Prefactor     34.496        59.832        .13016E-05   -.68780E-04
  20  Prefactor     6.3830        8.1429       -.67398E-07    .22911E-03
  21  Prefactor     .10000E-03    21.238       -.93763E-07** at limit **
  22  Prefactor     .10000E-03    61.958        .19365E-06** at limit **
  23  Prefactor     .10003E-03    190.99       -.23333E-05** at limit **
  24  Prefactor     .10000E-03    13.905        .28183E-08** at limit **
  25  Prefactor     20.389        31.794       -.11774E-07    .39582E-04
  26  Prefactor     .10000E-03    15.454        .20585E-06** at limit **
  27  norm          7.2261        4.1745        .56245E-07   -.67662E-04
  28  Normalizat    1.2456        .23819       -.20517E-05   -.57800E-03
  29  Prefactor     .68318        .19389        .88549E-06   -.23970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 1.17114
  Prefactor  = 0.175429
  Prefactor  = 1.02854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.1447
  Prefactor  = 1.4702
  norm       = 11.1308
  Prefactor  = 0.381768
  norm       = 0.0001
  Prefactor  = 1.59579
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.2398
  Prefactor  = 0.0001
  Prefactor  = 34.4957
  Prefactor  = 6.383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 20.3894
  Prefactor  = 0.0001
  norm       = 7.22608
  Normalizat = 1.2456
  Prefactor  = 0.683181
 **********
 **   18 **HESSE 
 **********

 FCN=   3672.947     FROM HESSE     STATUS=OK           553 CALLS     4329 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    21.169        .32513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1711        1.0098        .37729E-04   -1.5492    
   3  Prefactor     .17543        311.32        .38815E-02   -1.5624    
   4  Prefactor     1.0285        86.974        .44166E-02   -1.5505    
   5  Prefactor     .10000E-03    10.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0987        .14608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1447        7.7798        .26487E-03   -1.5415    
   8  Prefactor     1.4702        826.59        .35304E-03   -1.5465    
   9  norm          11.131        16.544        .11992E-03   -1.5041    
  10  Prefactor     .38177        25.015        .22295E-02   -1.5584    
  11  norm          .10000E-03    10.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5958        2.1924        .10245E-03   -1.5455    
  13  Prefactor     .10000E-03    11.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    52.919        .35820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0884        .11869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.4277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.240        69.589        .29870E-03   -1.4362    
  18  Prefactor     .10000E-03    4.2812        .12240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.496        58.422        .68257E-04   -1.4533    
  20  Prefactor     6.3830        8.1169        .15889E-03   -1.5203    
  21  Prefactor     .10000E-03    21.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    62.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10003E-03    191.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.389        31.782        .88701E-04   -1.4805    
  26  Prefactor     .10000E-03    15.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.2261        4.1720        .91341E-04   -1.5170    
  28  Normalizat    1.2456        .27945        .23660E-03   -.85205    
  29  Prefactor     .68318        .22236        .24703E-03   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3683e-08
Minuit parameter uncertainties:
  1  0.000785273
  2  1.0098
  3  14.854
  4  18.9438
  5  4.07185e-06
  6  6.88613e-06
  7  7.78345
  8  70.7221
  9  16.5503
  10  6.18252
  11  4.48125e-06
  12  2.19252
  13  1.03188e-06
  14  0.00168441
  15  1.02617e-05
  16  7.13573e-06
  17  69.7138
  18  1.88297e-05
  19  58.5195
  20  8.11834
  21  7.07409e-05
  22  0.000187564
  23  0.00483986
  24  5.56467e-06
  25  31.8085
  26  2.04782e-06
  27  4.17213
  28  0.279785
  29  0.222651
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.596e+00  2.193e+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:  6.832e-01  2.227e-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.246e+00  2.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919817/likelihoodResults_419212801_419472001_4FGL_J1132.7+0034_daily_bin694.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3672.65605857
delta logL = 0.291032815294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3672.61776197
delta logL = 0.329329414125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36936       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5483       1.0000          .0000       10.000    
     3 'Normalizat'    1.1759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72202       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=   3672.618     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      257 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35656        7.0834        .74426E-02    .68395E-03
   2  Index         3.5683        3.5099        .10703        .78217E-04
   3  Normalizat    1.1751        .62287E-01    .54833E-01   -.27123E-04
   4  Prefactor     .72251        .49048E-01    .42694E-01    .63967E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.356557
  Index      = 3.56833
  Normalizat = 1.17511
  Prefactor  = 0.722511
 **********
 **   18 **HESSE 
 **********

 FCN=   3672.618     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      292 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35656        15.641        .33984E-03   -1.5589    
   2  Index         3.5683        6.7182        .52456E-02   -.29040    
   3  Normalizat    1.1751        .24501        .24246E-03   -.87375    
   4  Prefactor     .72251        .18875        .24089E-03   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05776e-07
Minuit parameter uncertainties:
  1  4.72371
  2  7.2366
  3  0.245244
  4  0.188916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919817': 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): 102
logL (Free Index) = 3672.61774179
delta logL = 0.3293495988

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.566e-01  4.724e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  3.568e+00  7.237e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  7.225e-01  1.889e-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.175e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 173.196 0.574
Photon Index (Free Index): 3.57 +/- 7.24
Photon Flux (Free Index): 7.30e-08 +/- 1.18e-07
Energy Flux (Free Index): 1.19e-05 +/- 1.22e-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/919817/cmap_HighResolution_419212801_419472001_4FGL_J1132.7+0034_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='3.29e-01', photon_flux2='7.30e-08', job_status='DONE', time_completed='2021-09-04 03:49:56.979369', photon_index_error2='7.24', photon_index2='3.57', ts='0.80', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.22e-05', EG='1.25', time_epoch_completed='1630752596.98', return_code='0', job_id='919817', GAL2='0.72', EG2='1.18', return_code2='102', photon_flux_error2='1.18e-07', ts2='1.52', photon_index='2.14' WHERE bin_id='694' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:49:57 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin694 173.196 0.5737 419212801 419472001 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 :                                   646.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

