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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin942
RA = 174.764, Dec = 40.5617
tmin = 483494401, tmax = 483753601
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='987695', job_status='RUN', time_executed='2021-09-04 07:07:03.168355', time_epoch_executed='1630764423.17' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='942'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987695/ft1_4FGL_J1139.0+4033_daily_bin942.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987695/ft2_4FGL_J1139.0+4033_daily_bin942.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987695/ft1_4FGL_J1139.0+4033_daily_bin942.fits outfile=/scratch/kocevski/987695/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin942.fits ra=174.764 dec=40.5617 rad=12.0 tmin=483494401.0 tmax=483753601.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 6.47
user 6.21
sys 0.25

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/987695/ft1_filtered_4FGL_J1139.0+4033_daily_bin942.fits" evtable="EVENTS" scfile=/scratch/kocevski/987695/ft2_4FGL_J1139.0+4033_daily_bin942.fits sctable="SC_DATA" outfile=/scratch/kocevski/987695/ltcube_483494401_483753601_4FGL_J1139.0+4033_daily_bin942.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/987695/ft2_4FGL_J1139.0+4033_daily_bin942.fits
.....................!
real 12.30
user 11.83
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987695/ft1_filtered_4FGL_J1139.0+4033_daily_bin942.fits evtable="EVENTS" scfile=/scratch/kocevski/987695/ft2_4FGL_J1139.0+4033_daily_bin942.fits sctable="SC_DATA" expcube=/scratch/kocevski/987695/ltcube_483494401_483753601_4FGL_J1139.0+4033_daily_bin942.fits outfile=/scratch/kocevski/987695/expmap_483494401_483753601_4FGL_J1139.0+4033_daily_bin942.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/987695/ltcube_483494401_483753601_4FGL_J1139.0+4033_daily_bin942.fits
.....................!
real 192.61
user 187.95
sys 4.13

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/987695/ft1_filtered_4FGL_J1139.0+4033_daily_bin942.fits scfile=/scratch/kocevski/987695/ft2_4FGL_J1139.0+4033_daily_bin942.fits outfile=/scratch/kocevski/987695/cmap_483494401_483753601_4FGL_J1139.0+4033_daily_bin942.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/987695/ft1_filtered_4FGL_J1139.0+4033_daily_bin942.fits scfile=/scratch/kocevski/987695/ft2_4FGL_J1139.0+4033_daily_bin942.fits outfile=/scratch/kocevski/987695/cmap_HighResolution_483494401_483753601_4FGL_J1139.0+4033_daily_bin942.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.53
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6677       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.984       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.400       1.0000         .10000E-03   10000.    
     8 'norm      '    .10781E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.398       1.0000         .10000E-03   10000.    
    12 'norm      '    .98455       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4886       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31650E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16949E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .67450       1.0000         .10000E-03   10000.    
    17 'norm      '    10.454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.146       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .46940E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .91243E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4267       1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.920       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6108       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0097       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0638       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=   6725.116     FROM MIGRAD    STATUS=CONVERGED   1044 CALLS     3421 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.384        .18142E-02** at limit **
   2  Prefactor     .10000E-03    22.761        .18142E-02** at limit **
   3  norm          1.6677        .36379        .21807E-04    .14188E-02
   4  Prefactor     15.986        13.872        .10018E-03    .13312E-03
   5  Prefactor     .10000E-03    5.5806        .18142E-02** at limit **
   6  Prefactor     .10000E-03    35.930        .18142E-02** at limit **
   7  norm          10.402        9.8919        .12425E-03    .53858E-04
   8  norm          .10000E-03    11.844        .18142E-02** at limit **
   9  Prefactor     1.1640        1.3498        .99559E-04    .84775E-03
  10  Prefactor     .10000E-03    14.956        .18142E-02** at limit **
  11  Prefactor     10.383        20.396        .12425E-03    .11894E-03
  12  norm          .98661        1.8662        .14875E-03    .14941E-02
  13  Prefactor     9.5006        15.217        .13010E-03    .94551E-04
  14  Prefactor     .10000E-03    3.4301        .41248E-01** at limit **
  15  Prefactor     .10000E-03    36.419        .18142E-02** at limit **
  16  norm          .67186        .90032        .86877E-03    .35165E-02
  17  norm          10.447        12.591        .12392E-03   -.71192E-04
  18  Prefactor     24.154        24.202        .81518E-04    .89674E-04
  19  Prefactor     .10082E-03    4.0198        .32776E-01** at limit **
  20  Prefactor     .10000E-03    39.406        .14416    ** at limit **
  21  Prefactor     5.4401        17.746        .17250E-03    .17894E-03
  22  Prefactor     35.967        33.290        .66867E-04   -.13275E-03
  23  Prefactor     5.6120        5.2101        .16960E-03   -.23596E-04
  24  Normalizat    1.0098        .19656        .24048E-03    .32952E-03
  25  Prefactor     1.0637        .23367        .28782E-03    .20804E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66767
  Prefactor  = 15.9856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4021
  norm       = 0.0001
  Prefactor  = 1.16403
  Prefactor  = 0.0001
  Prefactor  = 10.3826
  norm       = 0.98661
  Prefactor  = 9.50057
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.671864
  norm       = 10.4467
  Prefactor  = 24.1544
  Prefactor  = 0.000100819
  Prefactor  = 0.0001
  Prefactor  = 5.44008
  Prefactor  = 35.967
  Prefactor  = 5.61205
  Normalizat = 1.00981
  Prefactor  = 1.06369
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.116     FROM HESSE     STATUS=OK           433 CALLS     3854 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6677        .36379        .43615E-05   -1.5450    
   4  Prefactor     15.986        13.871        .40071E-05   -1.4908    
   5  Prefactor     .10000E-03    5.5808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.402        9.8917        .24849E-04   -1.5063    
   8  norm          .10000E-03    11.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1640        1.3497        .39824E-05   -1.5492    
  10  Prefactor     .10000E-03    14.956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.383        20.391        .49702E-05   -1.5063    
  12  norm          .98661        1.8657        .59502E-05   -1.5509    
  13  Prefactor     9.5006        15.213        .52040E-05   -1.5091    
  14  Prefactor     .10000E-03    3.0927        .44772E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.424        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .67186        .89860        .34751E-04   -1.5544    
  17  norm          10.447        12.585        .49568E-05   -1.5061    
  18  Prefactor     24.154        24.209        .32607E-05   -1.4725    
  19  Prefactor     .10082E-03    3.0400        .39435E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.908        .14548       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4401        17.692        .68998E-05   -1.5241    
  22  Prefactor     35.967        33.289        .13373E-04   -1.4508    
  23  Prefactor     5.6120        5.2100        .67839E-05   -1.5234    
  24  Normalizat    1.0098        .19676        .48095E-04   -.92703    
  25  Prefactor     1.0637        .23391        .11513E-04   -.90636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35188e-09
Minuit parameter uncertainties:
  1  0.000181694
  2  6.48364e-05
  3  0.363788
  4  13.8738
  5  8.37457e-06
  6  0.000138254
  7  9.89327
  8  4.43314e-06
  9  1.34975
  10  9.20799e-05
  11  20.4047
  12  1.86583
  13  15.2189
  14  8.56047e-05
  15  0.00011489
  16  0.89862
  17  12.5882
  18  24.2191
  19  0.00315592
  20  0.000189013
  21  17.7093
  22  33.306
  23  5.21043
  24  0.196897
  25  0.23413
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  1.149e-04  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.064e+00  2.341e-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:  1.010e+00  1.969e-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: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/987695/likelihoodResults_483494401_483753601_4FGL_J1139.0+4033_daily_bin942.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) = 6725.11649506
delta logL = -0.000130775518301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6725.11636562
delta logL = -1.33878074848e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1100       1.0000          .0000       10.000    
     3 'Normalizat'    1.0098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0637       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=   6725.116     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      278 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11305E-03    19.412        .18142E-01** at limit **
   2  Index         2.9223        5.9870        .50000        .14940E-04
   3  Normalizat    1.0098        .34463E-02    .24048E-03   -.19955E-03
   4  Prefactor     1.0637        .42391E-02    .28782E-03   -.38907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000113047
  Index      = 2.92229
  Normalizat = 1.0098
  Prefactor  = 1.06369
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.116     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11305E-03    139.86        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9223        7.8883        .50000       -.42854    
   3  Normalizat    1.0098        .92155E-02    .96190E-05   -.92703    
   4  Prefactor     1.0637        .11336E-01    .11513E-04   -.90636    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48169e-08
Minuit parameter uncertainties:
  1  0.0856358
  2  451.466
  3  0.00921556
  4  0.0113356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987695': 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) = 6725.116365
delta logL = -7.19181116438e-07

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.130e-04  8.564e-02  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.922e+00  4.515e+02  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.064e+00  1.134e-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:  1.010e+00  9.216e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/987695/cmap_HighResolution_483494401_483753601_4FGL_J1139.0+4033_daily_bin942.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-04 07:22:26.533901', job_id='987695', GAL2='1.06', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630765346.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-7.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='942' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:22:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 987695: <4FGL_J1139.0+4033_daily_bin942> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin942> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:06:48 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:06:49 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:06:49 2021
Terminated at Sat Sep  4 07:22:27 2021
Results reported at Sat Sep  4 07:22:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin942 174.764 40.5617 483494401 483753601 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 :                                   916.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

