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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin998
RA = 173.196, Dec = 0.5737
tmin = 498009601, tmax = 498268801
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='922622', job_status='RUN', time_executed='2021-09-04 03:46:33.374529', time_epoch_executed='1630752393.37' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922622

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922622/ft1_4FGL_J1132.7+0034_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922622/ft2_4FGL_J1132.7+0034_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922622/ft1_4FGL_J1132.7+0034_daily_bin998.fits outfile=/scratch/kocevski/922622/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin998.fits ra=173.196 dec=0.5737 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.04
user 7.68
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/922622/ft2_4FGL_J1132.7+0034_daily_bin998.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/922622/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/922622/ft1_filtered_4FGL_J1132.7+0034_daily_bin998.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922622/ft1_filtered_4FGL_J1132.7+0034_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/922622/ft2_4FGL_J1132.7+0034_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/922622/ltcube_498009601_498268801_4FGL_J1132.7+0034_daily_bin998.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/922622/ft2_4FGL_J1132.7+0034_daily_bin998.fits
.....................!
real 12.16
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922622/ft1_filtered_4FGL_J1132.7+0034_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/922622/ft2_4FGL_J1132.7+0034_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/922622/ltcube_498009601_498268801_4FGL_J1132.7+0034_daily_bin998.fits outfile=/scratch/kocevski/922622/expmap_498009601_498268801_4FGL_J1132.7+0034_daily_bin998.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/922622/ltcube_498009601_498268801_4FGL_J1132.7+0034_daily_bin998.fits
.....................!
real 190.56
user 185.19
sys 4.93

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/922622/ft1_filtered_4FGL_J1132.7+0034_daily_bin998.fits scfile=/scratch/kocevski/922622/ft2_4FGL_J1132.7+0034_daily_bin998.fits outfile=/scratch/kocevski/922622/cmap_498009601_498268801_4FGL_J1132.7+0034_daily_bin998.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.56
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/922622/ft1_filtered_4FGL_J1132.7+0034_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/922622/ft2_4FGL_J1132.7+0034_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/922622/Model_4FGL_J1132.7+0034_daily_bin998.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/922622/ft1_filtered_4FGL_J1132.7+0034_daily_bin998.fits.....................!
real 44.35
user 42.96
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0024       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.906       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30353E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5003       1.0000         .10000E-03   10000.    
     8 'Prefactor '    246.46       1.0000         .10000E-03   10000.    
     9 'norm      '    .96066E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15992E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4693       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26996E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.636       1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.086       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.5395       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.7286       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63214       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4055.825     FROM MIGRAD    STATUS=CONVERGED   1396 CALLS     5013 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0030        12.441        .20159E-03   -.87583E-04
   2  norm          .10000E-03    1.0655        .93513E-03** at limit **
   3  Prefactor     30.168        15.227        .72946E-04   -.76486E-03
   4  Prefactor     15.907        17.424        .10042E-03   -.19075E-04
   5  Prefactor     .10000E-03    241.30        .57919E-02** at limit **
   6  Prefactor     .10000E-03    10.516        .18142E-02** at limit **
   7  Prefactor     1.4947        18.906        .17481E-02    .63345E-03
   8  Prefactor     246.23        142.11        .12900E-03    .86634E-04
   9  norm          .10145E-03    48.362        .63738E-01** at limit **
  10  Prefactor     .10000E-03    8.6339        .18085E-02** at limit **
  11  norm          14.655        19.830        .10461E-03   -.52304E-04
  12  Prefactor     .10000E-03    2.8465        .20499E-03** at limit **
  13  Prefactor     .10000E-03    32.289        .18142E-02** at limit **
  14  norm          11.261        11.308        .11943E-03    .16535E-03
  15  Prefactor     .10023E-03    95.045        .24941E-02** at limit **
  16  Prefactor     4.4718        22.764        .95232E-03   -.33128E-04
  17  Prefactor     .10000E-03    44.743        .18142E-02** at limit **
  18  Prefactor     .10000E-03    5.9421        .15095E-02** at limit **
  19  Prefactor     .10000E-03    29.153        .18142E-02** at limit **
  20  Prefactor     .10948E-03    9.1512        .57697E-01** at limit **
  21  Prefactor     14.648        22.086        .10469E-03   -.15257E-04
  22  Prefactor     39.063        48.104        .64112E-04    .76250E-05
  23  Prefactor     .10000E-03    18.200        .18142E-02** at limit **
  24  Prefactor     .10000E-03    50.917        .18142E-02** at limit **
  25  Prefactor     .10000E-03    16.954        .18142E-02** at limit **
  26  Prefactor     .10000E-03    14.648        .18142E-02** at limit **
  27  norm          8.5394        4.6884        .99055E-04   -.24022E-03
  28  Normalizat    1.7284        .30737        .24625E-03   -.29966E-03
  29  Prefactor     .63231        .23527        .30234E-03   -.23029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.00297
  norm       = 0.000100001
  Prefactor  = 30.168
  Prefactor  = 15.9067
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.49473
  Prefactor  = 246.226
  norm       = 0.00010145
  Prefactor  = 0.0001
  norm       = 14.6546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2615
  Prefactor  = 0.000100227
  Prefactor  = 4.47183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000109481
  Prefactor  = 14.6482
  Prefactor  = 39.0628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.53938
  Normalizat = 1.72836
  Prefactor  = 0.632312
 **********
 **   18 **HESSE 
 **********

 FCN=   4055.825     FROM HESSE     STATUS=OK           547 CALLS     5560 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0030        12.439        .80635E-05   -1.5308    
   2  norm          .10000E-03    1.0666        .18703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.168        15.214        .14589E-04   -1.4609    
   4  Prefactor     15.907        17.423        .40170E-05   -1.4910    
   5  Prefactor     .10000E-03    250.55        .23168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4947        16.999        .34961E-03   -1.5463    
   8  Prefactor     246.23        141.99        .25799E-04   -1.2557    
   9  norm          .10145E-03    34.332        .73477E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6370        .36170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.655        19.826        .20923E-04   -1.4942    
  12  Prefactor     .10000E-03    2.8465        .40998E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.261        11.232        .47772E-05   -1.5037    
  15  Prefactor     .10023E-03    96.837        .99766E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4718        22.758        .38093E-04   -1.5285    
  17  Prefactor     .10000E-03    44.743        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9435        .30191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10948E-03    8.8837        .59074E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.648        22.082        .41878E-05   -1.4942    
  22  Prefactor     39.063        48.102        .12822E-04   -1.4457    
  23  Prefactor     .10000E-03    18.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    50.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.955        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.5394        4.6880        .39622E-05   -1.5123    
  28  Normalizat    1.7284        .30745        .49250E-04   -.71549    
  29  Prefactor     .63231        .23539        .12094E-04   -1.0624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30722e-09
Minuit parameter uncertainties:
  1  12.4471
  2  7.38234e-05
  3  15.2163
  4  17.4289
  5  0.00107495
  6  1.0965e-05
  7  10.0848
  8  142.194
  9  0.0141194
  10  5.16811e-06
  11  19.8353
  12  6.70169e-05
  13  3.37824e-05
  14  11.2339
  15  0.00938425
  16  20.188
  17  4.1572e-06
  18  6.34833e-06
  19  5.83016e-06
  20  0.0183575
  21  22.0941
  22  48.1499
  23  7.3598e-08
  24  8.07741e-05
  25  2.67768e-07
  26  2.86726e-05
  27  4.68824
  28  0.307792
  29  0.235759
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.702e-05  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.323e-01  2.358e-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.728e+00  3.078e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922622/likelihoodResults_498009601_498268801_4FGL_J1132.7+0034_daily_bin998.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) = 4055.82664424
delta logL = -0.00167127198165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4055.82497318
delta logL = -2.16566604649e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1262       1.0000          .0000       10.000    
     3 'Normalizat'    1.7284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63233       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4055.825     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      250 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10074E-03    40.695        .20585E-02** at limit **
   2  Index         2.0730        8.9634        .50000        .23928E-04
   3  Normalizat    1.7284        .25332E-01    .24625E-03   -.12885E-03
   4  Prefactor     .63231        .20045E-01    .30235E-03   -.78869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010074
  Index      = 2.07303
  Normalizat = 1.72836
  Prefactor  = 0.632312
 **********
 **   18 **HESSE 
 **********

 FCN=   4055.825     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10074E-03    210.11        .41170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0730        7.9773        .50000       -.62537    
   3  Normalizat    1.7284        .62209E-01    .49250E-04   -.71549    
   4  Prefactor     .63231        .49171E-01    .12094E-04   -1.0624    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.45425e-08
Minuit parameter uncertainties:
  1  0.0250273
  2  733.471
  3  0.0622122
  4  0.0491748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922622': 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) = 4055.8249727
delta logL = 2.66811184702e-07

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.007e-04  2.503e-02  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.073e+00  7.335e+02  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:  6.323e-01  4.917e-02  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.728e+00  6.221e-02  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/922622/cmap_HighResolution_498009601_498268801_4FGL_J1132.7+0034_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-04 03:59:41.858855', job_id='922622', GAL2='0.63', fit_tolerance='1e-08', EG2='1.73', EG='1.73', time_epoch_completed='1630753181.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='998' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:59:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 922622: <4FGL_J1132.7+0034_daily_bin998> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin998> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 03:46:07 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:46:09 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:46:09 2021
Terminated at Sat Sep  4 03:59:42 2021
Results reported at Sat Sep  4 03:59:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin998 173.196 0.5737 498009601 498268801 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 :                                   779.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

