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


Performing analysis on: 4FGL_J1135.7-0427_daily_bin485
RA = 173.943, Dec = -4.4634
tmin = 365040001, tmax = 365299201
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='938466', job_status='RUN', time_executed='2021-09-04 04:31:20.406095', time_epoch_executed='1630755080.41' WHERE source_name='4FGL J1135.7-0427' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938466

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938466/ft1_4FGL_J1135.7-0427_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938466/ft2_4FGL_J1135.7-0427_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938466/ft1_4FGL_J1135.7-0427_daily_bin485.fits outfile=/scratch/kocevski/938466/ft1_filteredMKT_4FGL_J1135.7-0427_daily_bin485.fits ra=173.943 dec=-4.4634 rad=12.0 tmin=365040001.0 tmax=365299201.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.64
user 3.38
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/938466/ft2_4FGL_J1135.7-0427_daily_bin485.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938466/ft2_4FGL_J1135.7-0427_daily_bin485.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/938466/ft1_filteredMKT_4FGL_J1135.7-0427_daily_bin485.fits evtable="EVENTS" outfile="/scratch/kocevski/938466/ft1_filtered_4FGL_J1135.7-0427_daily_bin485.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.54
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938466/ft1_filtered_4FGL_J1135.7-0427_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/938466/ft2_4FGL_J1135.7-0427_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/938466/ltcube_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.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/938466/ft2_4FGL_J1135.7-0427_daily_bin485.fits
.....................!
real 12.98
user 12.31
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938466/ft1_filtered_4FGL_J1135.7-0427_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/938466/ft2_4FGL_J1135.7-0427_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/938466/ltcube_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.fits outfile=/scratch/kocevski/938466/expmap_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.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/938466/ltcube_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.fits
.....................!
real 192.60
user 185.25
sys 6.80

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1135.7-0427 @ 173.943 -4.4634

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/938466/ft1_filtered_4FGL_J1135.7-0427_daily_bin485.fits scfile=/scratch/kocevski/938466/ft2_4FGL_J1135.7-0427_daily_bin485.fits outfile=/scratch/kocevski/938466/cmap_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.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.943 yref=-4.4634 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.79
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938466/ft1_filtered_4FGL_J1135.7-0427_daily_bin485.fits scfile=/scratch/kocevski/938466/ft2_4FGL_J1135.7-0427_daily_bin485.fits outfile=/scratch/kocevski/938466/cmap_HighResolution_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.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.943 yref=-4.4634 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.66
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938466/ft1_filtered_4FGL_J1135.7-0427_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/938466/ft2_4FGL_J1135.7-0427_daily_bin485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938466/Model_4FGL_J1135.7-0427_daily_bin485.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/938466/ft1_filtered_4FGL_J1135.7-0427_daily_bin485.fits....................!
real 48.30
user 46.09
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938466/ft1_filtered_4FGL_J1135.7-0427_daily_bin485.fits', '/scratch/kocevski/938466/ft2_4FGL_J1135.7-0427_daily_bin485.fits', expMap='/scratch/kocevski/938466/expmap_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.fits', expCube='/scratch/kocevski/938466/ltcube_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938466/Model_4FGL_J1135.7-0427_daily_bin485.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1135.7-0427'

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  4.801e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.601e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  8.991e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/938466/ft1_filtered_4FGL_J1135.7-0427_daily_bin485.fits
Spacecraft file(s): /scratch/kocevski/938466/ft2_4FGL_J1135.7-0427_daily_bin485.fits
Exposure map: /scratch/kocevski/938466/expmap_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.fits
Exposure cube: /scratch/kocevski/938466/ltcube_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938466/Model_4FGL_J1135.7-0427_daily_bin485.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) = 4918.13903282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1940       1.0000         .10000E-03   10000.    
     2 'norm      '    13.143       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.4954       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11444E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9215       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7708       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.190       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6311       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14488E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    69.775       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.198       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.8955       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0447       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91945       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4918.138     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     2909 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1992        .71651        .30402E-06    .10441E-03
   2  norm          13.144        1.0056        .14922E-08   -.11470E-03
   3  Prefactor     .10002E-03    483.42       -.15738E-04** at limit **
   4  Prefactor     8.0603        1.1161        .32822E-06   -.74876E-03
   5  Prefactor     .10000E-03    3.9710       -.22158E-06** at limit **
   6  Prefactor     .10000E-03    2.0726       -.13308E-05** at limit **
   7  Prefactor     .10021E-03    25.153        .15952E-05** at limit **
   8  norm          9.4945        1.0153       -.19723E-06   -.37466E-04
   9  Prefactor     .10000E-03    3.2265       -.20775E-05** at limit **
  10  Prefactor     .10006E-03    19.029       -.24362E-06** at limit **
  11  norm          2.8931        1.3204        .18365E-06   -.55320E-04
  12  Prefactor     2.7707        2.2451       -.19968E-06    .13993E-03
  13  Prefactor     .10001E-03    7.0592        .60067E-05** at limit **
  14  Prefactor     72.184        1.1108       -.10324E-06    .15526E-02
  15  norm          .10000E-03    5.6648       -.26245E-05** at limit **
  16  Prefactor     9.6260        4.9467        .40882E-05    .42935E-02
  17  Prefactor     .10000E-03    23.786       -.37362E-06** at limit **
  18  Prefactor     .10005E-03    8.2293        .52903E-05** at limit **
  19  Prefactor     .10116E-03    16.026        .12961E-04** at limit **
  20  Prefactor     .10001E-03    11.114        .52849E-06** at limit **
  21  Prefactor     .10138E-03    18.823       -.75716E-05** at limit **
  22  Prefactor     69.761        1.3860       -.17329E-06    .26714E-02
  23  Prefactor     20.199        1.1090       -.32021E-06    .14570E-02
  24  Prefactor     .10005E-03    7.4854       -.11186E-04** at limit **
  25  Prefactor     .10000E-03    3.8027       -.11393E-06** at limit **
  26  norm          2.8954        2.3165       -.28677E-07    .48354E-04
  27  Normalizat    1.0449        .26145       -.10062E-05    .51633E-04
  28  Prefactor     .91929        .19234       -.13442E-06    .85964E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19916
  norm       = 13.1437
  Prefactor  = 0.000100022
  Prefactor  = 8.06026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100213
  norm       = 9.49447
  Prefactor  = 0.0001
  Prefactor  = 0.000100064
  norm       = 2.89315
  Prefactor  = 2.77074
  Prefactor  = 0.000100005
  Prefactor  = 72.184
  norm       = 0.0001
  Prefactor  = 9.62599
  Prefactor  = 0.000100001
  Prefactor  = 0.000100045
  Prefactor  = 0.000101155
  Prefactor  = 0.000100008
  Prefactor  = 0.000101379
  Prefactor  = 69.761
  Prefactor  = 20.1987
  Prefactor  = 0.00010005
  Prefactor  = 0.0001
  norm       = 2.89544
  Normalizat = 1.04485
  Prefactor  = 0.91929
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.138     FROM HESSE     STATUS=OK           581 CALLS     3490 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1992        .81173        .99467E-02   -1.5489    
   2  norm          13.144        8.3747        .27621E-02   -1.4983    
   3  Prefactor     .10002E-03    9.8079        .98042E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.0603        16.985        .35293E-02   -1.5140    
   5  Prefactor     .10000E-03    3.9821        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10021E-03    49.864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.4945        7.1097        .32513E-02   -1.5092    
   9  Prefactor     .10000E-03    1.9864        .35171E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10006E-03    19.205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8931        15.451        .59419E-02   -1.5368    
  12  Prefactor     2.7707        2.2502        .61123E-02   -1.5375    
  13  Prefactor     .10001E-03    7.0910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     72.184        45.579        .11813E-02   -1.4007    
  15  norm          .10000E-03    5.6044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.6260        5.0930        .32282E-02   -1.5087    
  17  Prefactor     .10000E-03    47.146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    8.5837        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10116E-03    26.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    10.940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10138E-03    31.033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     69.761        50.149        .12014E-02   -1.4036    
  23  Prefactor     20.199        47.627        .22280E-02   -1.4809    
  24  Prefactor     .10005E-03    7.9088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.8083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.8954        2.3226        .59703E-02   -1.5368    
  27  Normalizat    1.0449        .22816        .63891E-01   -.91543    
  28  Prefactor     .91929        .16441        .45252E-01   -.95470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17424e-07
Minuit parameter uncertainties:
  1  0.811733
  2  8.37545
  3  0.000919954
  4  16.9951
  5  3.51426e-05
  6  3.72136e-06
  7  0.00652543
  8  7.11035
  9  1.00709e-05
  10  0.00221306
  11  13.377
  12  2.25027
  13  0.000384457
  14  45.6007
  15  2.65495e-05
  16  5.09323
  17  0.00046321
  18  0.00124402
  19  0.011112
  20  0.000595524
  21  0.0130915
  22  50.1793
  23  47.7163
  24  0.00125657
  25  2.36894e-05
  26  2.32265
  27  0.228377
  28  0.164498
Done.

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

Extracting fit parameters...

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.845e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.601e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  8.991e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.193e-01  1.645e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.045e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.943 -4.463
Photon Flux Upper Limit: 6.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938466/likelihoodResults_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.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) = 4918.13829302
delta logL = -0.000668777223837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4918.13762397
delta logL = 2.68445546681e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5558       1.0000          .0000       10.000    
     3 'Normalizat'    1.0449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   4918.138     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      248 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11346E-03    9.5651        .18142E-01** at limit **
   2  Index         2.3884        7.7440        .50000        .46093E-04
   3  Normalizat    1.0449        .52915E-02    .28261E-03    .16976E-04
   4  Prefactor     .91929        .39454E-02    .22185E-03    .16296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000113462
  Index      = 2.38837
  Normalizat = 1.04485
  Prefactor  = 0.919289
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.138     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11346E-03    73.461        .22461E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3884        8.7090        .50000       -.54958    
   3  Normalizat    1.0449        .14722E-01    .11304E-04   -.91543    
   4  Prefactor     .91929        .10977E-01    .88739E-05   -.95470    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60467e-08
Minuit parameter uncertainties:
  1  0.0629709
  2  260.048
  3  0.0147218
  4  0.0109767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938466': 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) = 4918.13762244
delta logL = 1.8008695406e-06

Extracting fit parameters...

4FGL J1135.7-0427
   Spectrum: PowerLaw
299    Prefactor:  1.135e-04  6.297e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.388e+00  2.600e+02  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  8.991e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.193e-01  1.098e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.045e+00  1.472e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.943 -4.463

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/938466/cmap_HighResolution_365040001_365299201_4FGL_J1135.7-0427_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-04 04:42:54.367241', job_id='938466', GAL2='0.92', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630755774.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.80e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='485' AND source_name='4FGL J1135.7-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:42:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 938466: <4FGL_J1135.7-0427_daily_bin485> in cluster <slac> Done

Job <4FGL_J1135.7-0427_daily_bin485> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 04:31:07 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:31:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 04:31:08 2021
Terminated at Sat Sep  4 04:42:55 2021
Results reported at Sat Sep  4 04:42:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.7-0427_daily_bin485 173.943 -4.4634 365040001 365299201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1135.7-0427 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             381.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

