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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1201
RA = 174.764, Dec = 40.5617
tmin = 550627201, tmax = 550886401
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='989465', job_status='RUN', time_executed='2021-09-04 07:12:07.492807', time_epoch_executed='1630764727.49' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989465

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989465/ft1_4FGL_J1139.0+4033_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989465/ft2_4FGL_J1139.0+4033_daily_bin1201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989465/ft1_4FGL_J1139.0+4033_daily_bin1201.fits outfile=/scratch/kocevski/989465/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1201.fits ra=174.764 dec=40.5617 rad=12.0 tmin=550627201.0 tmax=550886401.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 5.07
user 3.72
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/989465/ft2_4FGL_J1139.0+4033_daily_bin1201.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/989465/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1201.fits evtable="EVENTS" outfile="/scratch/kocevski/989465/ft1_filtered_4FGL_J1139.0+4033_daily_bin1201.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/989465/ft1_filtered_4FGL_J1139.0+4033_daily_bin1201.fits" evtable="EVENTS" scfile=/scratch/kocevski/989465/ft2_4FGL_J1139.0+4033_daily_bin1201.fits sctable="SC_DATA" outfile=/scratch/kocevski/989465/ltcube_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.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/989465/ft2_4FGL_J1139.0+4033_daily_bin1201.fits
.....................!
real 11.95
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989465/ft1_filtered_4FGL_J1139.0+4033_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/989465/ft2_4FGL_J1139.0+4033_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/989465/ltcube_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.fits outfile=/scratch/kocevski/989465/expmap_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.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/989465/ltcube_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.fits
.....................!
real 191.39
user 186.01
sys 4.95

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/989465/ft1_filtered_4FGL_J1139.0+4033_daily_bin1201.fits scfile=/scratch/kocevski/989465/ft2_4FGL_J1139.0+4033_daily_bin1201.fits outfile=/scratch/kocevski/989465/cmap_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.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.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/989465/ft1_filtered_4FGL_J1139.0+4033_daily_bin1201.fits scfile=/scratch/kocevski/989465/ft2_4FGL_J1139.0+4033_daily_bin1201.fits outfile=/scratch/kocevski/989465/cmap_HighResolution_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.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/989465/ft1_filtered_4FGL_J1139.0+4033_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/989465/ft2_4FGL_J1139.0+4033_daily_bin1201.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/989465/Model_4FGL_J1139.0+4033_daily_bin1201.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/989465/ft1_filtered_4FGL_J1139.0+4033_daily_bin1201.fits.....................!
real 26.47
user 25.09
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/989465/ft1_filtered_4FGL_J1139.0+4033_daily_bin1201.fits', '/scratch/kocevski/989465/ft2_4FGL_J1139.0+4033_daily_bin1201.fits', expMap='/scratch/kocevski/989465/expmap_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.fits', expCube='/scratch/kocevski/989465/ltcube_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/989465/Model_4FGL_J1139.0+4033_daily_bin1201.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/989465/ft1_filtered_4FGL_J1139.0+4033_daily_bin1201.fits
Spacecraft file(s): /scratch/kocevski/989465/ft2_4FGL_J1139.0+4033_daily_bin1201.fits
Exposure map: /scratch/kocevski/989465/expmap_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.fits
Exposure cube: /scratch/kocevski/989465/ltcube_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/989465/Model_4FGL_J1139.0+4033_daily_bin1201.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) = 1836.37795611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    874.68       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20414E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65122E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    39.821       1.0000         .10000E-03   10000.    
     8 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13299E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3764       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.196       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24044E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5239       1.0000         .10000E-03   10000.    
    17 'norm      '    9.3521       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    776.54       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10856E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81866       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0321       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1836.203     FROM MIGRAD    STATUS=CONVERGED   1051 CALLS     3423 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.366        .18142E-02** at limit **
   2  Prefactor     874.42        632.75        .70792E-04   -.44637E-04
   3  norm          1.7358        .83910        .22221E-04   -.75789E-02
   4  Prefactor     .10000E-03    201.14        .18142E-02** at limit **
   5  Prefactor     .10000E-03    111.89        .94424E-01** at limit **
   6  Prefactor     .10000E-03    977.11        .18142E-02** at limit **
   7  norm          39.849        34.099        .63519E-04   -.20960E-03
   8  norm          .10007E-03    512.67        .18142E-02** at limit **
   9  Prefactor     .10000E-03    35.660        .17898E-02** at limit **
  10  Prefactor     .10000E-03    215.11        .18142E-02** at limit **
  11  Prefactor     8.3688        19.672        .13851E-03    .10670E-05
  12  norm          .10000E-03    7.9357        .11681E-02** at limit **
  13  Prefactor     .10000E-03    5.7496        .10034E-02** at limit **
  14  Prefactor     20.206        14.201        .89124E-04   -.73411E-04
  15  Prefactor     .10000E-03    1199.7        .20056E-02** at limit **
  16  norm          3.5297        4.3898        .89043E-04   -.81745E-04
  17  norm          9.2624        160.46        .13105E-03    .70919E-05
  18  Prefactor     .10000E-03    31.607        .18142E-02** at limit **
  19  Prefactor     .10000E-03    134.70        .18142E-02** at limit **
  20  Prefactor     776.72        418.06        .74731E-04    .28417E-04
  21  Prefactor     .10000E-03    203.88        .18142E-02** at limit **
  22  Prefactor     .10000E-03    71.804        .18142E-02** at limit **
  23  Prefactor     .10000E-03    6.8126        .10920E-02** at limit **
  24  Normalizat    .81867        .49518        .34793E-03   -.66290E-04
  25  Prefactor     1.0325        .53111        .33999E-03   -.22850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 874.417
  norm       = 1.73579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 39.8487
  norm       = 0.00010007
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.3688
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2061
  Prefactor  = 0.000100002
  norm       = 3.5297
  norm       = 9.26243
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 776.725
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.818675
  Prefactor  = 1.03248
 **********
 **   18 **HESSE 
 **********

 FCN=   1836.203     FROM HESSE     STATUS=OK           411 CALLS     3834 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     874.42        632.75        .14158E-04   -.97041    
   3  norm          1.7358        .83618        .44442E-05   -1.5444    
   4  Prefactor     .10000E-03    201.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    101.41        .10020       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    977.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          39.849        34.099        .12704E-04   -1.4445    
   8  norm          .10007E-03    512.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.879        .35797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    215.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3688        19.672        .55406E-05   -1.5129    
  12  norm          .10000E-03    7.9376        .23362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.7496        .20068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.206        14.198        .35650E-05   -1.4809    
  15  Prefactor     .10000E-03    1200.1        .40113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5297        4.3894        .35617E-05   -1.5332    
  17  norm          9.2624        160.30        .52420E-05   -1.5099    
  18  Prefactor     .10000E-03    31.609        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    134.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     776.72        417.94        .14946E-04   -1.0059    
  21  Prefactor     .10000E-03    203.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    71.809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.8127        .21840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81867        .49561        .13917E-04   -.99380    
  25  Prefactor     1.0325        .53156        .67997E-04   -.91655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41271e-09
Minuit parameter uncertainties:
  1  0.000379439
  2  638.166
  3  0.836185
  4  0.00059839
  5  0.000197815
  6  0.00181016
  7  34.1154
  8  0.0121286
  9  0.00056636
  10  0.000621703
  11  19.6872
  12  4.04702e-06
  13  4.59355e-06
  14  14.2006
  15  0.00288119
  16  4.38985
  17  77.3086
  18  4.42456e-05
  19  0.000904274
  20  419.653
  21  0.000909489
  22  0.00035372
  23  2.25979e-06
  24  0.498382
  25  0.534304
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  2.881e-03  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:  1.032e+00  5.343e-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.187e-01  4.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/989465/likelihoodResults_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.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) = 1836.20333039
delta logL = -3.81168865715e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1836.20333039
delta logL = -3.81151903639e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7201       1.0000          .0000       10.000    
     3 'Normalizat'    .81867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0325       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1836.203     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      255 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    353.09        .18142E-01** at limit **
   2  Index         2.8627        6.6617        .50000        .97177E-06
   3  Normalizat    .81865        .68691E-02    .34793E-03   -.15451E-03
   4  Prefactor     1.0325        .74999E-02    .33998E-03   -.35437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100101
  Index      = 2.86271
  Normalizat = 0.818654
  Prefactor  = 1.0325
 **********
 **   18 **HESSE 
 **********

 FCN=   1836.203     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    8333.0        .72570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8627        6.4279        .50000       -.44168    
   3  Normalizat    .81865        .34568E-01    .69586E-04   -.99380    
   4  Prefactor     1.0325        .37742E-01    .13599E-04   -.91654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04445e-07
Minuit parameter uncertainties:
  1  0.060834
  2  1680.53
  3  0.0345685
  4  0.0377434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989465': 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) = 1836.2033266
delta logL = -2.26461907005e-08

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.001e-04  6.083e-02  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.863e+00  1.681e+03  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.033e+00  3.774e-02  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.187e-01  3.457e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 174.764 40.562

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/989465/cmap_HighResolution_550627201_550886401_4FGL_J1139.0+4033_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-02', job_status='DONE', photon_flux_upper_limit='4.60e-07', time_completed='2021-09-04 07:20:24.518573', job_id='989465', GAL2='1.03', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630765224.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-2.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1201' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:20:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 989465: <4FGL_J1139.0+4033_daily_bin1201> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1201> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:11:37 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:11:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 07:11:39 2021
Terminated at Sat Sep  4 07:20:25 2021
Results reported at Sat Sep  4 07:20:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1201 174.764 40.5617 550627201 550886401 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 :                                   470.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            528 sec.

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

