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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin174
RA = 174.764, Dec = 40.5617
tmin = 284428801, tmax = 284688001
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='983319', job_status='RUN', time_executed='2021-09-04 06:56:31.633204', time_epoch_executed='1630763791.63' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983319

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983319/ft1_4FGL_J1139.0+4033_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983319/ft2_4FGL_J1139.0+4033_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983319/ft1_4FGL_J1139.0+4033_daily_bin174.fits outfile=/scratch/kocevski/983319/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin174.fits ra=174.764 dec=40.5617 rad=12.0 tmin=284428801.0 tmax=284688001.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.59
user 3.28
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/983319/ft2_4FGL_J1139.0+4033_daily_bin174.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/983319/ft2_4FGL_J1139.0+4033_daily_bin174.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/983319/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin174.fits evtable="EVENTS" outfile="/scratch/kocevski/983319/ft1_filtered_4FGL_J1139.0+4033_daily_bin174.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/983319/ft1_filtered_4FGL_J1139.0+4033_daily_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/983319/ft2_4FGL_J1139.0+4033_daily_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/983319/ltcube_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.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/983319/ft2_4FGL_J1139.0+4033_daily_bin174.fits
.....................!
real 12.35
user 11.95
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983319/ft1_filtered_4FGL_J1139.0+4033_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/983319/ft2_4FGL_J1139.0+4033_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/983319/ltcube_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.fits outfile=/scratch/kocevski/983319/expmap_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.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/983319/ltcube_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.fits
.....................!
real 192.42
user 186.20
sys 5.50

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

Setting source of interest to:
4FGL J1139.0+4033 @ 174.764 40.5617

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/983319/ft1_filtered_4FGL_J1139.0+4033_daily_bin174.fits scfile=/scratch/kocevski/983319/ft2_4FGL_J1139.0+4033_daily_bin174.fits outfile=/scratch/kocevski/983319/cmap_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.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=174.764 yref=40.5617 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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983319/ft1_filtered_4FGL_J1139.0+4033_daily_bin174.fits scfile=/scratch/kocevski/983319/ft2_4FGL_J1139.0+4033_daily_bin174.fits outfile=/scratch/kocevski/983319/cmap_HighResolution_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.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=174.764 yref=40.5617 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983319/ft1_filtered_4FGL_J1139.0+4033_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/983319/ft2_4FGL_J1139.0+4033_daily_bin174.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983319/Model_4FGL_J1139.0+4033_daily_bin174.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/983319/ft1_filtered_4FGL_J1139.0+4033_daily_bin174.fits.....................!
real 52.55
user 51.16
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/983319/ft1_filtered_4FGL_J1139.0+4033_daily_bin174.fits', '/scratch/kocevski/983319/ft2_4FGL_J1139.0+4033_daily_bin174.fits', expMap='/scratch/kocevski/983319/expmap_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.fits', expCube='/scratch/kocevski/983319/ltcube_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/983319/Model_4FGL_J1139.0+4033_daily_bin174.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1139.0+4033'

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  9.736e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.720e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/983319/ft1_filtered_4FGL_J1139.0+4033_daily_bin174.fits
Spacecraft file(s): /scratch/kocevski/983319/ft2_4FGL_J1139.0+4033_daily_bin174.fits
Exposure map: /scratch/kocevski/983319/expmap_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.fits
Exposure cube: /scratch/kocevski/983319/ltcube_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/983319/Model_4FGL_J1139.0+4033_daily_bin174.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) = 6127.55928532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36962E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    2.7403       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    165.70       1.0000         .10000E-03   10000.    
     7 'norm      '    77.581       1.0000         .10000E-03   10000.    
     8 'norm      '    11.816       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4509       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41797E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9639       1.0000         .10000E-03   10000.    
    12 'norm      '    .20638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48708       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.616       1.0000         .10000E-03   10000.    
    16 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.290       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10796E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2211       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94770       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6127.518     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     2652 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.782        44.094       -.83917E-06   -.62707E-04
   2  Prefactor     .10004E-03    1565.4       -.39745E-06** at limit **
   3  norm          2.7403        .45348        .34601E-07    .55384E-03
   4  Prefactor     .10000E-03    8.6577       -.19915E-06** at limit **
   5  Prefactor     .10000E-03    5.0794       -.11196E-06** at limit **
   6  Prefactor     165.59        108.74        .39518E-05    .17646E-03
   7  norm          77.545        24.580        .57562E-06    .32701E-03
   8  norm          11.818        52.112       -.12908E-05    .14791E-05
   9  Prefactor     5.4530        3.7571        .10120E-06    .27665E-03
  10  Prefactor     .10017E-03    1309.5       -.11520E-03** at limit **
  11  Prefactor     8.9648        19.127       -.73266E-06    .12757E-03
  12  norm          .19713        10.843       -.98641E-05    .25783E-03
  13  Prefactor     .10000E-03    10.387       -.48382E-05** at limit **
  14  Prefactor     .50712        4.1228        .22129E-05    .54676E-03
  15  Prefactor     34.747        49.827       -.64472E-06    .10425E-03
  16  norm          .10000E-03    .69882       -.76724E-06** at limit **
  17  norm          15.292        11.549       -.92611E-06   -.11072E-03
  18  Prefactor     .10000E-03    22.814       -.15391E-05** at limit **
  19  Prefactor     2.2210        2.2349       -.21121E-06   -.18417E-04
  20  Prefactor     .10001E-03    233.60       -.83194E-05** at limit **
  21  Prefactor     .10000E-03    5.6012       -.37695E-06** at limit **
  22  Prefactor     .10000E-03    11.608       -.56645E-06** at limit **
  23  Prefactor     .10000E-03    1.4444       -.10325E-06** at limit **
  24  Normalizat    .94757        .17876        .32778E-05    .78339E-03
  25  Prefactor     .96840        .20837       -.85668E-06   -.42439E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.7817
  Prefactor  = 0.000100043
  norm       = 2.74028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 165.592
  norm       = 77.5446
  norm       = 11.818
  Prefactor  = 5.45304
  Prefactor  = 0.000100174
  Prefactor  = 8.96475
  norm       = 0.197125
  Prefactor  = 0.0001
  Prefactor  = 0.50712
  Prefactor  = 34.7469
  norm       = 0.0001
  norm       = 15.2919
  Prefactor  = 0.0001
  Prefactor  = 2.22102
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.947572
  Prefactor  = 0.968403
 **********
 **   18 **HESSE 
 **********

 FCN=   6127.518     FROM HESSE     STATUS=OK           435 CALLS     3087 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.782        44.123        .56268E-04   -1.4282    
   2  Prefactor     .10004E-03    1621.1        .39181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.7403        .45384        .10325E-03   -1.5377    
   4  Prefactor     .10000E-03    8.6730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0817        .17230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     165.59        109.20        .15668E-03   -1.3127    
   7  norm          77.545        24.558        .45591E-04   -1.3944    
   8  norm          11.818        52.157        .11654E-03   -1.5020    
   9  Prefactor     5.4530        4.5539        .10937E-03   -1.5241    
  10  Prefactor     .10017E-03    78.028        .15106       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9648        19.068        .13387E-03   -1.5109    
  12  norm          .19713        12.680        .17326E-02   -1.5619    
  13  Prefactor     .10000E-03    10.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .50712        21.441        .27284E-02   -1.5566    
  15  Prefactor     34.747        50.371        .68111E-04   -1.4528    
  16  norm          .10000E-03    .71055        .10466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.292        11.536        .10243E-03   -1.4926    
  18  Prefactor     .10000E-03    22.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2210        2.2336        .11347E-03   -1.5410    
  20  Prefactor     .10001E-03    235.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6078        .18095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.4447        .91881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94757        .21149        .25298E-03   -.94808    
  25  Prefactor     .96840        .24036        .29591E-03   -.93790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04963e-09
Minuit parameter uncertainties:
  1  44.1513
  2  0.0171257
  3  0.453843
  4  8.21112e-05
  5  2.05152e-05
  6  109.33
  7  24.5609
  8  49.7271
  9  4.55417
  10  0.00737761
  11  19.0808
  12  3.16189
  13  2.36921e-05
  14  6.59679
  15  50.4329
  16  1.85356e-05
  17  11.5381
  18  7.64694e-05
  19  2.23373
  20  0.00247419
  21  1.45997e-05
  22  3.41808e-05
  23  2.37397e-06
  24  0.211678
  25  0.240627
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.475e+01  5.043e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.720e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  9.684e-01  2.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  9.476e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.69
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983319/likelihoodResults_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.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) = 6125.92450978
delta logL = 1.59384174034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6125.87051216
delta logL = 1.64783936139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16513       1.0000         .10000E-03   10000.    
     2 'Index     '    6.6792       1.0000          .0000       10.000    
     3 'Normalizat'    .85423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0551       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6125.870     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      343 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16184        1.5016        .40935E-02   -.10986E-02
   2  Index         6.6915        2.8413        .12127        .70380E-04
   3  Normalizat    .85369        .50456E-01    .44314E-01   -.58717E-04
   4  Prefactor     1.0555        .59966E-01    .64415E-01    .72175E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.16184
  Index      = 6.69148
  Normalizat = 0.853691
  Prefactor  = 1.05555
 **********
 **   18 **HESSE 
 **********

 FCN=   6125.870     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      376 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16184        2.9883        .18499E-04   -1.5628    
   2  Index         6.6915        7.4202        .48927E-02    .34511    
   3  Normalizat    .85369        .18093        .26443E-03   -.98107    
   4  Prefactor     1.0555        .21046        .28491E-03   -.90900    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.36905e-09
Minuit parameter uncertainties:
  1  1.39051
  2  4.82939
  3  0.181062
  4  0.210624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983319': 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) = 6125.87049807
delta logL = 1.64785344368

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.618e-01  1.391e+00  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  6.691e+00  4.829e+00  0.000e+00  1.000e+01 (-1.000e+00)
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.056e+00  2.106e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  8.537e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 174.764 40.562
Photon Index (Free Index): 6.69 +/- 4.83
Photon Flux (Free Index): 1.05e-07 +/- 6.47e-08
Energy Flux (Free Index): 1.27e-05 +/- 8.76e-06

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/983319/cmap_HighResolution_284428801_284688001_4FGL_J1139.0+4033_daily_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='1.27e-05', dlogl='1.65e+00', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-04 07:09:45.638734', photon_index_error2='4.83', photon_index2='6.69', ts='0.69', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='8.76e-06', EG='0.95', time_epoch_completed='1630764585.64', return_code='0', job_id='983319', GAL2='1.06', EG2='0.85', return_code2='102', photon_flux_error2='6.47e-08', ts2='4.32', photon_index='2.72' WHERE bin_id='174' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 983319: <4FGL_J1139.0+4033_daily_bin174> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin174> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Sep  4 06:56:16 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:56:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 06:56:18 2021
Terminated at Sat Sep  4 07:09:47 2021
Results reported at Sat Sep  4 07:09:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin174 174.764 40.5617 284428801 284688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1139.0+4033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   789.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             339.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

