/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 31 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1132.7+0034_daily_bin342
RA = 173.196, Dec = 0.5737
tmin = 327974401, tmax = 328233601
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='918301', job_status='RUN', time_executed='2021-09-04 03:33:18.791461', time_epoch_executed='1630751598.79' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918301

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918301/ft1_4FGL_J1132.7+0034_daily_bin342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918301/ft2_4FGL_J1132.7+0034_daily_bin342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918301/ft1_4FGL_J1132.7+0034_daily_bin342.fits outfile=/scratch/kocevski/918301/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin342.fits ra=173.196 dec=0.5737 rad=12.0 tmin=327974401.0 tmax=328233601.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 3.51
user 3.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918301/ft1_filtered_4FGL_J1132.7+0034_daily_bin342.fits" evtable="EVENTS" scfile=/scratch/kocevski/918301/ft2_4FGL_J1132.7+0034_daily_bin342.fits sctable="SC_DATA" outfile=/scratch/kocevski/918301/ltcube_327974401_328233601_4FGL_J1132.7+0034_daily_bin342.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/918301/ft2_4FGL_J1132.7+0034_daily_bin342.fits
.....................!
real 12.72
user 12.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918301/ft1_filtered_4FGL_J1132.7+0034_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/918301/ft2_4FGL_J1132.7+0034_daily_bin342.fits sctable="SC_DATA" expcube=/scratch/kocevski/918301/ltcube_327974401_328233601_4FGL_J1132.7+0034_daily_bin342.fits outfile=/scratch/kocevski/918301/expmap_327974401_328233601_4FGL_J1132.7+0034_daily_bin342.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/918301/ltcube_327974401_328233601_4FGL_J1132.7+0034_daily_bin342.fits
.....................!
real 190.89
user 186.69
sys 3.82

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/918301/ft1_filtered_4FGL_J1132.7+0034_daily_bin342.fits scfile=/scratch/kocevski/918301/ft2_4FGL_J1132.7+0034_daily_bin342.fits outfile=/scratch/kocevski/918301/cmap_327974401_328233601_4FGL_J1132.7+0034_daily_bin342.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918301/ft1_filtered_4FGL_J1132.7+0034_daily_bin342.fits scfile=/scratch/kocevski/918301/ft2_4FGL_J1132.7+0034_daily_bin342.fits outfile=/scratch/kocevski/918301/cmap_HighResolution_327974401_328233601_4FGL_J1132.7+0034_daily_bin342.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918301/ft1_filtered_4FGL_J1132.7+0034_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/918301/ft2_4FGL_J1132.7+0034_daily_bin342.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918301/Model_4FGL_J1132.7+0034_daily_bin342.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/918301/ft1_filtered_4FGL_J1132.7+0034_daily_bin342.fits.....................!
real 53.76
user 52.38
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.927       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2042       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3778       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5436       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.557       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .57567       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9762       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2148       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.6277       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6299       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.211       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.681       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12252E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.434       1.0000         .10000E-03   10000.    
    23 'Prefactor '    55.254       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14276E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11057E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1898       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0016       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=   5519.316     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3723 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.936        12.769       -.95298E-07   -.30196E-04
   2  norm          3.2051        .93236        .36430E-07   -.33436E-03
   3  Prefactor     .10000E-03    9.3884       -.64902E-07** at limit **
   4  Prefactor     3.3708        29.748        .12496E-04   -.22981E-03
   5  Prefactor     .10000E-03    7.4317       -.51299E-07** at limit **
   6  Prefactor     .10000E-03    4.0201       -.15859E-07** at limit **
   7  Prefactor     8.5467        6.9054        .25804E-06   -.40351E-03
   8  Prefactor     .10000E-03    152.90        .24402E-05** at limit **
   9  norm          14.549        12.395       -.39087E-07   -.31150E-03
  10  Prefactor     .61908        5.2049        .87401E-06   -.42516E-03
  11  norm          4.9245        38.742       -.82728E-06   -.11083E-03
  12  Prefactor     1.2152        2.3976        .46530E-06   -.17169E-03
  13  Prefactor     .10000E-03    12.286       -.77686E-07** at limit **
  14  norm          4.6278        5.7838        .35340E-06    .66889E-04
  15  Prefactor     1.6296        3.2090        .23217E-06   -.17297E-03
  16  Prefactor     24.211        35.829        .41655E-06   -.10803E-04
  17  Prefactor     40.682        116.63        .12192E-05    .26358E-04
  18  Prefactor     .10000E-03    14.873        .23196E-06** at limit **
  19  Prefactor     28.721        52.515        .29872E-05    .10267E-03
  20  Prefactor     .10000E-03    19.773       -.59036E-07** at limit **
  21  Prefactor     .10000E-03    8.1961        .59778E-07** at limit **
  22  Prefactor     21.409        37.786       -.22424E-05   -.14147E-03
  23  Prefactor     55.291        51.473        .50195E-05    .41711E-03
  24  Prefactor     .10000E-03    83.887       -.93160E-07** at limit **
  25  Prefactor     .10000E-03    21.556        .10343E-05** at limit **
  26  Prefactor     .10000E-03    28.659        .14103E-06** at limit **
  27  norm          .10000E-03    1.8544        .19544E-07** at limit **
  28  Normalizat    1.1887        .24348       -.35718E-05   -.74229E-04
  29  Prefactor     1.0024        .18512        .93336E-06   -.30014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.936
  norm       = 3.2051
  Prefactor  = 0.0001
  Prefactor  = 3.37085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.54672
  Prefactor  = 0.000100004
  norm       = 14.5492
  Prefactor  = 0.619081
  norm       = 4.92451
  Prefactor  = 1.21524
  Prefactor  = 0.0001
  norm       = 4.62779
  Prefactor  = 1.62957
  Prefactor  = 24.2106
  Prefactor  = 40.6821
  Prefactor  = 0.0001
  Prefactor  = 28.7206
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.4093
  Prefactor  = 55.2913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.18868
  Prefactor  = 1.00235
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.316     FROM HESSE     STATUS=OK           549 CALLS     4272 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.936        12.774        .11141E-03   -1.4988    
   2  norm          3.2051        .93063        .36188E-04   -1.5350    
   3  Prefactor     .10000E-03    9.4199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3708        32.045        .11008E-02   -1.5341    
   5  Prefactor     .10000E-03    7.4444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0228        .14546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.5467        6.8847        .13714E-03   -1.5123    
   8  Prefactor     .10000E-03    154.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.549        12.556        .10498E-03   -1.4945    
  10  Prefactor     .61908        31.113        .25406E-02   -1.5551    
  11  norm          4.9245        46.493        .18028E-03   -1.5264    
  12  Prefactor     1.2152        2.3673        .15368E-03   -1.5487    
  13  Prefactor     .10000E-03    12.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6278        5.7613        .18709E-03   -1.5278    
  15  Prefactor     1.6296        3.1696        .17513E-03   -1.5453    
  16  Prefactor     24.211        35.868        .81409E-04   -1.4723    
  17  Prefactor     40.682        116.94        .62846E-04   -1.4431    
  18  Prefactor     .10000E-03    15.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.721        53.146        .74774E-04   -1.4636    
  20  Prefactor     .10000E-03    20.329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.409        38.254        .86516E-04   -1.4782    
  23  Prefactor     55.291        54.222        .53964E-04   -1.4219    
  24  Prefactor     .10000E-03    86.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    29.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.8922        .98762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1887        .28211        .28372E-03   -.86953    
  29  Prefactor     1.0024        .21642        .25077E-03   -.92651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05948e-09
Minuit parameter uncertainties:
  1  12.7764
  2  0.930634
  3  7.99682e-07
  4  20.8008
  5  7.9179e-07
  6  1.52885e-06
  7  6.88533
  8  0.00158566
  9  12.5582
  10  8.78176
  11  30.2932
  12  2.3675
  13  7.27048e-06
  14  5.76197
  15  3.1699
  16  35.8997
  17  117.609
  18  3.64653e-05
  19  53.2333
  20  0.000286569
  21  8.05874e-06
  22  38.2973
  23  54.2701
  24  2.82215e-05
  25  0.000168753
  26  4.18164e-05
  27  2.82513e-06
  28  0.282467
  29  0.216608
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.002e+00  2.166e-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.189e+00  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/918301/likelihoodResults_327974401_328233601_4FGL_J1132.7+0034_daily_bin342.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) = 5519.3127394
delta logL = 0.00337586967635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5519.31227914
delta logL = 0.00383613248687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2859       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0425       1.0000          .0000       10.000    
     3 'Normalizat'    1.1909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0011       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=   5519.312     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      196 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2865        96.135        .97732E-02    .77492E-03
   2  Index         2.0423        5.6207        .25550        .17042E-04
   3  Normalizat    1.1909        .58014E-01    .64088E-01    .83107E-05
   4  Prefactor     1.0011        .47167E-01    .45331E-01    .80073E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28655
  Index      = 2.04229
  Normalizat = 1.19089
  Prefactor  = 1.00109
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.312     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2865        2.5958        .15790E-03   -1.5481    
   2  Index         2.0423        1.0491        .12149E-01   -.63297    
   3  Normalizat    1.1909        .25409        .28349E-03   -.86885    
   4  Prefactor     1.0011        .20908        .25091E-03   -.92693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21104e-10
Minuit parameter uncertainties:
  1  2.59599
  2  1.0613
  3  0.25435
  4  0.20925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918301': 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) = 5519.31227909
delta logL = 0.0038361789193

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.287e+00  2.596e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.042e+00  1.061e+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:  1.001e+00  2.093e-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.191e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/918301/cmap_HighResolution_327974401_328233601_4FGL_J1132.7+0034_daily_bin342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 03:47:09.650541', job_id='918301', GAL2='1.00', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630752429.65', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.84e-03', ts2='0.34', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='342' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:47:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 918301: <4FGL_J1132.7+0034_daily_bin342> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin342> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:32:11 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:32:13 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:32:13 2021
Terminated at Sat Sep  4 03:47:10 2021
Results reported at Sat Sep  4 03:47:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin342 173.196 0.5737 327974401 328233601 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 :                                   804.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

