/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 230 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 = 7551
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin444
RA = 173.196, Dec = 0.5737
tmin = 354412801, tmax = 354672001
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='919451', job_status='RUN', time_executed='2021-09-04 03:40:02.331273', time_epoch_executed='1630752002.33' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919451

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919451/ft1_4FGL_J1132.7+0034_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919451/ft2_4FGL_J1132.7+0034_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919451/ft1_4FGL_J1132.7+0034_daily_bin444.fits outfile=/scratch/kocevski/919451/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin444.fits ra=173.196 dec=0.5737 rad=12.0 tmin=354412801.0 tmax=354672001.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 2.83
user 2.62
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919451/ft1_filtered_4FGL_J1132.7+0034_daily_bin444.fits" evtable="EVENTS" scfile=/scratch/kocevski/919451/ft2_4FGL_J1132.7+0034_daily_bin444.fits sctable="SC_DATA" outfile=/scratch/kocevski/919451/ltcube_354412801_354672001_4FGL_J1132.7+0034_daily_bin444.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/919451/ft2_4FGL_J1132.7+0034_daily_bin444.fits
.....................!
real 10.23
user 9.91
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919451/ft1_filtered_4FGL_J1132.7+0034_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/919451/ft2_4FGL_J1132.7+0034_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/919451/ltcube_354412801_354672001_4FGL_J1132.7+0034_daily_bin444.fits outfile=/scratch/kocevski/919451/expmap_354412801_354672001_4FGL_J1132.7+0034_daily_bin444.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/919451/ltcube_354412801_354672001_4FGL_J1132.7+0034_daily_bin444.fits
.....................!
real 156.31
user 151.87
sys 3.58

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/919451/ft1_filtered_4FGL_J1132.7+0034_daily_bin444.fits scfile=/scratch/kocevski/919451/ft2_4FGL_J1132.7+0034_daily_bin444.fits outfile=/scratch/kocevski/919451/cmap_354412801_354672001_4FGL_J1132.7+0034_daily_bin444.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.47
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919451/ft1_filtered_4FGL_J1132.7+0034_daily_bin444.fits scfile=/scratch/kocevski/919451/ft2_4FGL_J1132.7+0034_daily_bin444.fits outfile=/scratch/kocevski/919451/cmap_HighResolution_354412801_354672001_4FGL_J1132.7+0034_daily_bin444.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.48
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/919451/ft1_filtered_4FGL_J1132.7+0034_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/919451/ft2_4FGL_J1132.7+0034_daily_bin444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919451/Model_4FGL_J1132.7+0034_daily_bin444.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/919451/ft1_filtered_4FGL_J1132.7+0034_daily_bin444.fits.....................!
real 47.26
user 46.06
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.366       1.0000         .10000E-03   10000.    
     2 'norm      '    .58574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.442       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.681       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12388E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.2106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9309       1.0000         .10000E-03   10000.    
    14 'norm      '    .14877E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    108.25       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7769       1.0000         .10000E-03   10000.    
    22 'Prefactor '    78.018       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.793       1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.359       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91159       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2116       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=   6049.751     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3757 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.369        10.878        .14489E-06   -.41343E-05
   2  norm          .58601        .50143       -.29963E-07   -.34943E-03
   3  Prefactor     .10000E-03    5.8073        .33329E-07** at limit **
   4  Prefactor     .10000E-03    39.944       -.42666E-05** at limit **
   5  Prefactor     23.438        17.031        .53566E-06    .77581E-04
   6  Prefactor     .10000E-03    10.456       -.49202E-06** at limit **
   7  Prefactor     13.670        7.1426        .58146E-07    .34640E-03
   8  Prefactor     .10000E-03    23.739        .66920E-05** at limit **
   9  norm          .10002E-03    7.5554       -.15122E-05** at limit **
  10  Prefactor     .10000E-03    2.8792        .43537E-07** at limit **
  11  norm          8.2168        23.210       -.80946E-06    .85550E-05
  12  Prefactor     .10000E-03    .76441       -.72284E-07** at limit **
  13  Prefactor     8.9205        28.125       -.32017E-05   -.28392E-04
  14  norm          .10000E-03    9.2773        .14617E-05** at limit **
  15  Prefactor     .10000E-03    1.8651        .21983E-06** at limit **
  16  Prefactor     11.736        17.570        .10800E-06   -.27216E-04
  17  Prefactor     .10000E-03    170.57        .45861E-05** at limit **
  18  Prefactor     .10000E-03    7.4683       -.14946E-05** at limit **
  19  Prefactor     108.17        68.526       -.52559E-04   -.27442E-03
  20  Prefactor     .10000E-03    6.7753       -.38807E-05** at limit **
  21  Prefactor     3.7561        34.848        .76957E-04    .16423E-03
  22  Prefactor     77.983        58.308       -.17032E-04   -.20317E-03
  23  Prefactor     30.767        43.899       -.20632E-04    .82964E-05
  24  Prefactor     33.343        23.883        .20757E-05   -.15105E-03
  25  Prefactor     .10000E-03    25.126       -.43573E-05** at limit **
  26  Prefactor     .10000E-03    6.8988        .50068E-05** at limit **
  27  norm          .10000E-03    .80239       -.49110E-07** at limit **
  28  Normalizat    .91215        .22041       -.28778E-05   -.11317E-04
  29  Prefactor     1.2111        .17292        .26156E-05   -.28843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3691
  norm       = 0.586011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.438
  Prefactor  = 0.0001
  Prefactor  = 13.6705
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 0.0001
  norm       = 8.21684
  Prefactor  = 0.0001
  Prefactor  = 8.9205
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.736
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 108.165
  Prefactor  = 0.0001
  Prefactor  = 3.75612
  Prefactor  = 77.9833
  Prefactor  = 30.7667
  Prefactor  = 33.3435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.912151
  Prefactor  = 1.21112
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.751     FROM HESSE     STATUS=OK           547 CALLS     4304 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.369        10.857        .10568E-03   -1.4950    
   2  norm          .58601        .47997        .48498E-03   -1.5555    
   3  Prefactor     .10000E-03    5.8427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.438        16.987        .82732E-04   -1.4739    
   6  Prefactor     .10000E-03    10.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.670        6.9059        .10829E-03   -1.4968    
   8  Prefactor     .10000E-03    23.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    21.877        .39515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9048        .12852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.2168        23.160        .13991E-03   -1.5135    
  12  Prefactor     .10000E-03    .76938        .66389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.9205        27.986        .13412E-03   -1.5111    
  14  norm          .10000E-03    9.5968        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8796        .10367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.736        17.565        .11692E-03   -1.5023    
  17  Prefactor     .10000E-03    171.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     108.17        68.606        .19328E-03   -1.3624    
  20  Prefactor     .10000E-03    6.8158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7561        34.644        .20772E-03   -1.5320    
  22  Prefactor     77.983        58.292        .22732E-03   -1.3939    
  23  Prefactor     30.767        43.964        .72204E-04   -1.4598    
  24  Prefactor     33.343        23.849        .69379E-04   -1.4552    
  25  Prefactor     .10000E-03    25.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.9186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .80337        .68036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .91215        .25909        .32013E-03   -.96034    
  29  Prefactor     1.2111        .20400        .22968E-03   -.85990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43683e-09
Minuit parameter uncertainties:
  1  10.858
  2  0.479976
  3  1.51606e-06
  4  1.96598e-05
  5  16.9902
  6  3.95723e-06
  7  6.90629
  8  3.80088e-06
  9  0.00121828
  10  8.99516e-06
  11  23.1856
  12  6.957e-07
  13  28.0274
  14  0.000207893
  15  2.12146e-05
  16  17.5731
  17  0.000851752
  18  2.2731e-05
  19  68.6561
  20  5.98478e-05
  21  22.8319
  22  58.3343
  23  44.0105
  24  23.8562
  25  0.000112999
  26  4.29306e-05
  27  5.02753e-06
  28  0.259447
  29  0.204137
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.957e-07  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.211e+00  2.041e-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:  9.122e-01  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 5.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919451/likelihoodResults_354412801_354672001_4FGL_J1132.7+0034_daily_bin444.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): 102
logL (Free Index) = 6049.75692198
delta logL = -0.00592217510894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6049.75100263
delta logL = -2.82051587419e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1118       1.0000          .0000       10.000    
     3 'Normalizat'    .91211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2112       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6049.751     FROM MIGRAD    STATUS=FAILED       109 CALLS      259 TOTAL
                     EDM=   .95E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.609        .77658E-03** at limit **
   2  Index         1.6184        6.9682        .50000       -.11056E-04
   3  Normalizat    .91215        .43648E-01    .32013E-03    .56820E-06
   4  Prefactor     1.2111        .35731E-01    .22968E-03    .49498E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6049.751     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      451 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.609        .18539E-03** at limit **
   2  Index         1.6184        6.9682        .11798E-05   -.11056E-04
   3  Normalizat    .91215        .43648E-01    .62459E-07    .56820E-06
   4  Prefactor     1.2111        .35731E-01    .22269E-07    .49498E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6049.751     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      522 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1666        .31063E-04** at limit **
   2  Index         1.6183        5.0507        .50000       -.11104E-04
   3  Normalizat    .91215        .24576        .25611E-05    .35512E-06
   4  Prefactor     1.2111        .20128        .18374E-05    .24749E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.61833
  Normalizat = 0.912148
  Prefactor  = 1.21113
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.751     FROM HESSE     STATUS=OK            27 CALLS      549 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0604        .62127E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6183        6.3636        .50000       -.74277    
   3  Normalizat    .91215        .24576        .25611E-05   -.96035    
   4  Prefactor     1.2111        .20128        .18374E-05   -.85990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76008e-08
Minuit parameter uncertainties:
  1  2.85746e-06
  2  44.0295
  3  0.246067
  4  0.201405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919451': 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) = 6049.75098215
delta logL = 1.76562271008e-05

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.857e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.618e+00  4.403e+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.211e+00  2.014e-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:  9.121e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/919451/cmap_HighResolution_354412801_354672001_4FGL_J1132.7+0034_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', job_status='DONE', photon_flux_upper_limit='5.78e-08', time_completed='2021-09-04 03:51:46.367135', job_id='919451', GAL2='1.21', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630752706.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.77e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='444' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:51:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 919451: <4FGL_J1132.7+0034_daily_bin444> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin444 173.196 0.5737 354412801 354672001 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 :                                   697.48 sec.
    Max Memory :                                 1152 MB
    Average Memory :                             257.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            944 sec.

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

