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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin328
RA = 173.196, Dec = 0.5737
tmin = 324345601, tmax = 324604801
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='918279', job_status='RUN', time_executed='2021-09-04 03:36:07.395391', time_epoch_executed='1630751767.4' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918279

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918279/ft1_4FGL_J1132.7+0034_daily_bin328.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918279/ft2_4FGL_J1132.7+0034_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918279/ft1_4FGL_J1132.7+0034_daily_bin328.fits outfile=/scratch/kocevski/918279/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin328.fits ra=173.196 dec=0.5737 rad=12.0 tmin=324345601.0 tmax=324604801.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 14.16
user 13.44
sys 0.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918279/ft1_filtered_4FGL_J1132.7+0034_daily_bin328.fits" evtable="EVENTS" scfile=/scratch/kocevski/918279/ft2_4FGL_J1132.7+0034_daily_bin328.fits sctable="SC_DATA" outfile=/scratch/kocevski/918279/ltcube_324345601_324604801_4FGL_J1132.7+0034_daily_bin328.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/918279/ft2_4FGL_J1132.7+0034_daily_bin328.fits
.....................!
real 11.22
user 10.73
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918279/ft1_filtered_4FGL_J1132.7+0034_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/918279/ft2_4FGL_J1132.7+0034_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/918279/ltcube_324345601_324604801_4FGL_J1132.7+0034_daily_bin328.fits outfile=/scratch/kocevski/918279/expmap_324345601_324604801_4FGL_J1132.7+0034_daily_bin328.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/918279/ltcube_324345601_324604801_4FGL_J1132.7+0034_daily_bin328.fits
.....................!
real 190.37
user 186.12
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/918279/ft1_filtered_4FGL_J1132.7+0034_daily_bin328.fits scfile=/scratch/kocevski/918279/ft2_4FGL_J1132.7+0034_daily_bin328.fits outfile=/scratch/kocevski/918279/cmap_324345601_324604801_4FGL_J1132.7+0034_daily_bin328.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918279/ft1_filtered_4FGL_J1132.7+0034_daily_bin328.fits scfile=/scratch/kocevski/918279/ft2_4FGL_J1132.7+0034_daily_bin328.fits outfile=/scratch/kocevski/918279/cmap_HighResolution_324345601_324604801_4FGL_J1132.7+0034_daily_bin328.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918279/ft1_filtered_4FGL_J1132.7+0034_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/918279/ft2_4FGL_J1132.7+0034_daily_bin328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918279/Model_4FGL_J1132.7+0034_daily_bin328.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/918279/ft1_filtered_4FGL_J1132.7+0034_daily_bin328.fits.....................!
real 30.68
user 29.52
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.049       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    27.863       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    23.113       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.153       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.690       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    65.370       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.3677       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .48248       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.8723       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=   2391.050     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3702 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.678       -.22436E-05** at limit **
   2  norm          2.0196        1.3008       -.78041E-07   -.10809E-02
   3  Prefactor     .10000E-03    33.601        .12258E-04** at limit **
   4  Prefactor     21.053        32.222       -.42967E-06   -.15000E-04
   5  Prefactor     .10000E-03    46.445       -.43542E-05** at limit **
   6  Prefactor     .10000E-03    11.734        .26685E-05** at limit **
   7  Prefactor     .10000E-03    5.9756       -.75521E-07** at limit **
   8  Prefactor     .10000E-03    108.83        .12095E-03** at limit **
   9  norm          .10000E-03    8.9574       -.15172E-06** at limit **
  10  Prefactor     .10000E-03    5.3170        .57986E-07** at limit **
  11  norm          27.850        38.912       -.24493E-05   -.74634E-05
  12  Prefactor     .10000E-03    3.2703       -.21438E-07** at limit **
  13  Prefactor     .10000E-03    20.248        .13587E-04** at limit **
  14  norm          23.110        21.426        .14302E-06   -.14675E-04
  15  Prefactor     .10000E-03    7.4107       -.10886E-06** at limit **
  16  Prefactor     31.154        38.718        .20996E-06    .76046E-05
  17  Prefactor     .10000E-03    300.33       -.18311E-03** at limit **
  18  Prefactor     .10000E-03    13.772       -.10537E-05** at limit **
  19  Prefactor     .10000E-03    68.709       -.33734E-04** at limit **
  20  Prefactor     11.690        12.535        .44562E-07    .36631E-04
  21  Prefactor     .10000E-03    35.149        .19526E-04** at limit **
  22  Prefactor     .10000E-03    59.247       -.43826E-04** at limit **
  23  Prefactor     .10000E-03    40.179        .22605E-04** at limit **
  24  Prefactor     .10000E-03    29.825       -.28927E-04** at limit **
  25  Prefactor     65.369        105.28       -.17442E-05    .90457E-05
  26  Prefactor     .10000E-03    20.845       -.10626E-04** at limit **
  27  norm          4.3675        7.1553        .11034E-05    .11287E-04
  28  Normalizat    .48218        .40360       -.12792E-06   -.14019E-04
  29  Prefactor     1.8725        .34929        .38767E-06    .63823E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.01957
  Prefactor  = 0.0001
  Prefactor  = 21.0529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 27.8503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.1096
  Prefactor  = 0.0001
  Prefactor  = 31.1545
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.3687
  Prefactor  = 0.0001
  norm       = 4.36751
  Normalizat = 0.482183
  Prefactor  = 1.87253
 **********
 **   18 **HESSE 
 **********

 FCN=   2391.050     FROM HESSE     STATUS=OK           535 CALLS     4237 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.768        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0196        1.2903        .41750E-04   -1.5424    
   3  Prefactor     .10000E-03    33.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.053        32.176        .87301E-04   -1.4790    
   5  Prefactor     .10000E-03    46.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.741        .16362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0177        .11672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    108.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.9663        .14295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3251        .11008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          27.850        38.922        .75897E-04   -1.4652    
  12  Prefactor     .10000E-03    3.3432        .86314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          23.110        21.411        .83317E-04   -1.4746    
  15  Prefactor     .10000E-03    7.4214        .12998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.154        38.719        .71786E-04   -1.4591    
  17  Prefactor     .10000E-03    300.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.817        .17726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    68.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.690        12.533        .11717E-03   -1.5024    
  21  Prefactor     .10000E-03    35.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    59.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    40.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     65.369        105.25        .49637E-04   -1.4089    
  26  Prefactor     .10000E-03    20.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.3675        7.1482        .16309E-03   -1.5290    
  28  Normalizat    .48218        .43088        .46888E-03   -1.1325    
  29  Prefactor     1.8725        .37972        .22277E-03   -.67577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12812e-10
Minuit parameter uncertainties:
  1  8.08889e-07
  2  1.29033
  3  5.71704e-05
  4  32.202
  5  2.62871e-05
  6  2.29416e-06
  7  2.19894e-06
  8  7.8646e-06
  9  1.28617e-06
  10  7.12705e-06
  11  38.957
  12  9.8085e-07
  13  6.90493e-07
  14  21.4178
  15  2.54313e-06
  16  38.7504
  17  0.000785289
  18  9.63316e-06
  19  3.09811e-06
  20  12.5361
  21  7.61935e-06
  22  1.50952e-06
  23  1.03866e-05
  24  2.36187e-06
  25  105.549
  26  1.32963e-05
  27  7.1496
  28  0.433898
  29  0.380326
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  9.808e-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.873e+00  3.803e-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:  4.822e-01  4.339e-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.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918279/likelihoodResults_324345601_324604801_4FGL_J1132.7+0034_daily_bin328.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) = 2391.05172399
delta logL = -0.00137996329386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2391.05034406
delta logL = -2.87318471237e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1267       1.0000          .0000       10.000    
     3 'Normalizat'    .48225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8725       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=   2391.050     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      239 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    58.877        .86614E-03** at limit **
   2  Index         2.1063        8.9389        .50000        .17613E-04
   3  Normalizat    .48218        .39450E-01    .46888E-03    .35157E-05
   4  Prefactor     1.8725        .34611E-01    .22277E-03    .10309E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100169
  Index      = 2.10627
  Normalizat = 0.482184
  Prefactor  = 1.87252
 **********
 **   18 **HESSE 
 **********

 FCN=   2391.050     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    241.94        .17323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1063        8.5841        .50000       -.61719    
   3  Normalizat    .48218        .86066E-01    .18755E-04   -1.1325    
   4  Prefactor     1.8725        .75519E-01    .89108E-05   -.67577    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03514e-08
Minuit parameter uncertainties:
  1  0.0128482
  2  450.013
  3  0.0860896
  4  0.0755236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918279': 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) = 2391.05034391
delta logL = 1.19032392831e-07

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.002e-04  1.285e-02  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.106e+00  4.500e+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:  1.873e+00  7.552e-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:  4.822e-01  8.609e-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/918279/cmap_HighResolution_324345601_324604801_4FGL_J1132.7+0034_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-04 03:46:06.767052', job_id='918279', GAL2='1.87', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1630752366.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.87', dlogl='1.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='328' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:46:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 918279: <4FGL_J1132.7+0034_daily_bin328> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin328 173.196 0.5737 324345601 324604801 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 :                                   563.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

