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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin890
RA = 173.196, Dec = 0.5737
tmin = 470016001, tmax = 470275201
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='921401', job_status='RUN', time_executed='2021-09-04 03:44:25.907137', time_epoch_executed='1630752265.91' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921401

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921401/ft1_4FGL_J1132.7+0034_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921401/ft2_4FGL_J1132.7+0034_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921401/ft1_4FGL_J1132.7+0034_daily_bin890.fits outfile=/scratch/kocevski/921401/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin890.fits ra=173.196 dec=0.5737 rad=12.0 tmin=470016001.0 tmax=470275201.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 4.71
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921401/ft1_filtered_4FGL_J1132.7+0034_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/921401/ft2_4FGL_J1132.7+0034_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/921401/ltcube_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.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/921401/ft2_4FGL_J1132.7+0034_daily_bin890.fits
.....................!
real 12.00
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921401/ft1_filtered_4FGL_J1132.7+0034_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/921401/ft2_4FGL_J1132.7+0034_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/921401/ltcube_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.fits outfile=/scratch/kocevski/921401/expmap_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.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/921401/ltcube_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.fits
.....................!
real 191.20
user 185.74
sys 5.05

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/921401/ft1_filtered_4FGL_J1132.7+0034_daily_bin890.fits scfile=/scratch/kocevski/921401/ft2_4FGL_J1132.7+0034_daily_bin890.fits outfile=/scratch/kocevski/921401/cmap_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.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.58
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921401/ft1_filtered_4FGL_J1132.7+0034_daily_bin890.fits scfile=/scratch/kocevski/921401/ft2_4FGL_J1132.7+0034_daily_bin890.fits outfile=/scratch/kocevski/921401/cmap_HighResolution_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.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/921401/ft1_filtered_4FGL_J1132.7+0034_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/921401/ft2_4FGL_J1132.7+0034_daily_bin890.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921401/Model_4FGL_J1132.7+0034_daily_bin890.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/921401/ft1_filtered_4FGL_J1132.7+0034_daily_bin890.fits.....................!
real 57.57
user 54.30
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/921401/ft1_filtered_4FGL_J1132.7+0034_daily_bin890.fits', '/scratch/kocevski/921401/ft2_4FGL_J1132.7+0034_daily_bin890.fits', expMap='/scratch/kocevski/921401/expmap_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.fits', expCube='/scratch/kocevski/921401/ltcube_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/921401/Model_4FGL_J1132.7+0034_daily_bin890.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/921401/ft1_filtered_4FGL_J1132.7+0034_daily_bin890.fits
Spacecraft file(s): /scratch/kocevski/921401/ft2_4FGL_J1132.7+0034_daily_bin890.fits
Exposure map: /scratch/kocevski/921401/expmap_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.fits
Exposure cube: /scratch/kocevski/921401/ltcube_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/921401/Model_4FGL_J1132.7+0034_daily_bin890.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5694.14929182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4384       1.0000         .10000E-03   10000.    
     2 'norm      '    .51363E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7983       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.2708       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2154       1.0000         .10000E-03   10000.    
    11 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9312       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8432       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8122       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.731       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9844       1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.132       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.946       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.6711       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3060       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76062       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=   5694.120     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3130 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4348        6.3072        .26264E-05   -.17519E-02
   2  norm          .51529E-01    .51325       -.16880E-06   -.24802E-03
   3  Prefactor     8.8715        10.985       -.37948E-06    .22384E-03
   4  Prefactor     2.7850        37.473       -.10250E-04   -.10008E-03
   5  Prefactor     .10000E-03    16.534       -.32586E-05** at limit **
   6  Prefactor     3.1782        11.685       -.11173E-05   -.47959E-04
   7  Prefactor     .10000E-03    1.4970        .36622E-07** at limit **
   8  Prefactor     .10000E-03    21.953        .56124E-05** at limit **
   9  norm          9.2701        9.5191       -.18690E-06   -.13401E-03
  10  Prefactor     9.2147        5.5003       -.17522E-05   -.83063E-03
  11  norm          .10000E-03    10.752       -.68596E-06** at limit **
  12  Prefactor     1.9307        2.4266       -.73287E-07   -.10975E-03
  13  Prefactor     .10000E-03    11.863        .16842E-05** at limit **
  14  norm          4.8425        5.9093       -.17966E-06   -.10735E-03
  15  Prefactor     .10000E-03    2.0869        .82483E-07** at limit **
  16  Prefactor     3.8122        10.438        .13109E-05   -.71818E-03
  17  Prefactor     .10000E-03    49.108       -.14128E-05** at limit **
  18  Prefactor     11.728        11.080       -.99986E-07    .19334E-04
  19  Prefactor     .10000E-03    17.783       -.35965E-05** at limit **
  20  Prefactor     .10000E-03    2.6356        .51515E-07** at limit **
  21  Prefactor     1.9685        35.169        .12852E-05   -.15880E-04
  22  Prefactor     56.126        42.397       -.25479E-05   -.10691E-03
  23  Prefactor     .10000E-03    9.7532       -.81579E-06** at limit **
  24  Prefactor     36.937        23.445       -.25033E-05   -.21678E-03
  25  Prefactor     .10000E-03    12.468        .20554E-05** at limit **
  26  Prefactor     .10000E-03    4.8287       -.34576E-07** at limit **
  27  norm          5.6705        2.6700        .32391E-07    .48863E-04
  28  Normalizat    1.3064        .21226        .18546E-05    .63410E-04
  29  Prefactor     .76029        .16274       -.13022E-06    .20727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43479
  norm       = 0.051529
  Prefactor  = 8.87151
  Prefactor  = 2.78497
  Prefactor  = 0.0001
  Prefactor  = 3.17817
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.27011
  Prefactor  = 9.21474
  norm       = 0.0001
  Prefactor  = 1.93074
  Prefactor  = 0.0001
  norm       = 4.84247
  Prefactor  = 0.0001
  Prefactor  = 3.81221
  Prefactor  = 0.0001
  Prefactor  = 11.7281
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.96852
  Prefactor  = 56.1256
  Prefactor  = 0.0001
  Prefactor  = 36.9372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.67049
  Normalizat = 1.30639
  Prefactor  = 0.760286
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.120     FROM HESSE     STATUS=OK           555 CALLS     3685 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4348        8.6262        .10906E-02   -1.5337    
   2  norm          .51529E-01    .99431        .85612E-03   -1.5663    
   3  Prefactor     8.8715        10.473        .13455E-03   -1.5112    
   4  Prefactor     2.7850        37.932        .24320E-03   -1.5374    
   5  Prefactor     .10000E-03    16.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1782        11.609        .22764E-03   -1.5351    
   7  Prefactor     .10000E-03    1.5038        .90116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.2701        9.4674        .13163E-03   -1.5099    
  10  Prefactor     9.2147        5.5726        .12650E-03   -1.5101    
  11  norm          .10000E-03    10.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9307        2.4139        .12488E-03   -1.5430    
  13  Prefactor     .10000E-03    11.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8425        5.8929        .18279E-03   -1.5268    
  15  Prefactor     .10000E-03    2.1094        .10625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8122        11.055        .10336E-02   -1.5317    
  17  Prefactor     .10000E-03    49.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.728        11.105        .11696E-03   -1.5023    
  19  Prefactor     .10000E-03    17.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6410        .11963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9685        34.900        .29419E-03   -1.5427    
  22  Prefactor     56.126        42.280        .26771E-03   -1.4208    
  23  Prefactor     .10000E-03    9.7628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     36.937        23.567        .65935E-04   -1.4492    
  25  Prefactor     .10000E-03    12.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.8556        .16190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.6705        2.6703        .82221E-04   -1.5232    
  28  Normalizat    1.3064        .25249        .24740E-03   -.83376    
  29  Prefactor     .76029        .19245        .25292E-03   -1.0121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09847e-08
Minuit parameter uncertainties:
  1  8.62936
  2  0.452277
  3  10.4748
  4  20.5717
  5  0.000104354
  6  11.6171
  7  9.37014e-06
  8  0.00040349
  9  9.46891
  10  5.57294
  11  1.5485e-05
  12  2.414
  13  0.000130462
  14  5.89357
  15  3.29195e-06
  16  11.0609
  17  0.00018362
  18  11.1067
  19  0.000218011
  20  8.5361e-07
  21  16.5881
  22  42.3023
  23  4.31168e-05
  24  23.5726
  25  0.000105251
  26  2.65837e-06
  27  2.67033
  28  0.252725
  29  0.192615
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.931e+00  2.414e+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:  7.603e-01  1.926e-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.306e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/921401/likelihoodResults_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.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) = 5694.11854787
delta logL = 0.00187977371206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5694.11834065
delta logL = 0.0020869977252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9103       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2017       1.0000          .0000       10.000    
     3 'Normalizat'    1.3028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76183       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=   5694.118     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9103        69.174        .75195E-02    .72409E-03
   2  Index         2.2017        5.8073        .18867        .46085E-04
   3  Normalizat    1.3028        .68238E-01    .56013E-01    .45459E-05
   4  Prefactor     .76183        .47851E-01    .43218E-01    .15561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.91033
  Index      = 2.20168
  Normalizat = 1.30282
  Prefactor  = 0.761829
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.118     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9103        2.4521        .12140E-03   -1.5432    
   2  Index         2.2017        1.0349        .10663E-01   -.59398    
   3  Normalizat    1.3028        .24258        .24769E-03   -.83482    
   4  Prefactor     .76183        .19112        .25270E-03   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1414e-09
Minuit parameter uncertainties:
  1  2.45221
  2  1.04593
  3  0.242789
  4  0.191281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921401': 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) = 5694.11834064
delta logL = 0.00208699908217

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.910e+00  2.452e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.202e+00  1.046e+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.618e-01  1.913e-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.303e+00  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.98
Ra Dec: 173.196 0.574

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/921401/cmap_HighResolution_470016001_470275201_4FGL_J1132.7+0034_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-04 03:57:22.924636', job_id='921401', GAL2='0.76', fit_tolerance='1e-08', EG2='1.30', EG='1.31', time_epoch_completed='1630753042.92', return_code2='0', ts='0.98', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.09e-03', ts2='0.98', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='890' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:57:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 921401: <4FGL_J1132.7+0034_daily_bin890> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin890 173.196 0.5737 470016001 470275201 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 :                                   771.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

