/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 139 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 = 7659
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1139.0+4033_daily_bin6
RA = 174.764, Dec = 40.5617
tmin = 240883201, tmax = 241142401
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='977543', job_status='RUN', time_executed='2021-09-04 06:38:51.777902', time_epoch_executed='1630762731.78' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977543

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977543/ft1_4FGL_J1139.0+4033_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977543/ft2_4FGL_J1139.0+4033_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977543/ft1_4FGL_J1139.0+4033_daily_bin6.fits outfile=/scratch/kocevski/977543/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin6.fits ra=174.764 dec=40.5617 rad=12.0 tmin=240883201.0 tmax=241142401.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 1.48
user 1.32
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/977543/ft2_4FGL_J1139.0+4033_daily_bin6.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/977543/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin6.fits evtable="EVENTS" outfile="/scratch/kocevski/977543/ft1_filtered_4FGL_J1139.0+4033_daily_bin6.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977543/ft1_filtered_4FGL_J1139.0+4033_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/977543/ft2_4FGL_J1139.0+4033_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/977543/ltcube_240883201_241142401_4FGL_J1139.0+4033_daily_bin6.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/977543/ft2_4FGL_J1139.0+4033_daily_bin6.fits
.....................!
real 12.69
user 12.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977543/ft1_filtered_4FGL_J1139.0+4033_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/977543/ft2_4FGL_J1139.0+4033_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/977543/ltcube_240883201_241142401_4FGL_J1139.0+4033_daily_bin6.fits outfile=/scratch/kocevski/977543/expmap_240883201_241142401_4FGL_J1139.0+4033_daily_bin6.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/977543/ltcube_240883201_241142401_4FGL_J1139.0+4033_daily_bin6.fits
.....................!
real 189.71
user 185.44
sys 3.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/977543/ft1_filtered_4FGL_J1139.0+4033_daily_bin6.fits scfile=/scratch/kocevski/977543/ft2_4FGL_J1139.0+4033_daily_bin6.fits outfile=/scratch/kocevski/977543/cmap_240883201_241142401_4FGL_J1139.0+4033_daily_bin6.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/977543/ft1_filtered_4FGL_J1139.0+4033_daily_bin6.fits scfile=/scratch/kocevski/977543/ft2_4FGL_J1139.0+4033_daily_bin6.fits outfile=/scratch/kocevski/977543/cmap_HighResolution_240883201_241142401_4FGL_J1139.0+4033_daily_bin6.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10964E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .47108E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7277       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1725       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29559E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11542E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.172       1.0000         .10000E-03   10000.    
     8 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.619       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5790       1.0000         .10000E-03   10000.    
    12 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7233       1.0000         .10000E-03   10000.    
    15 'Prefactor '    64.870       1.0000         .10000E-03   10000.    
    16 'norm      '    .15512       1.0000         .10000E-03   10000.    
    17 'norm      '    7.6534       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .95595       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5030       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0192       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91598       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0938       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=   5770.285     FROM MIGRAD    STATUS=CONVERGED   1020 CALLS     3370 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.233        .18142E-02** at limit **
   2  Prefactor     .10014E-03    71.720        .19942    ** at limit **
   3  norm          1.7276        .41543        .21790E-04    .16063E-02
   4  Prefactor     9.1697        17.555        .13233E-03    .10172E-03
   5  Prefactor     .10040E-03    95.588        .54085E-02** at limit **
   6  Prefactor     .10001E-03    87.013        .18142E-02** at limit **
   7  norm          13.162        13.435        .11037E-03    .10929E-03
   8  norm          .10000E-03    17.255        .18142E-02** at limit **
   9  Prefactor     .10000E-03    1.2749        .16514E-03** at limit **
  10  Prefactor     14.593        29.768        .10475E-03    .51116E-04
  11  Prefactor     3.5871        15.100        .10681E-02    .10297E-03
  12  norm          .10000E-03    .86094        .68328E-03** at limit **
  13  Prefactor     .10000E-03    7.4209        .18142E-02** at limit **
  14  Prefactor     3.7255        3.6727        .13964E-03   -.10600E-03
  15  Prefactor     64.856        46.108        .49827E-04   -.56950E-04
  16  norm          .15599        .95188        .13353E-03    .85140E-03
  17  norm          7.6523        10.371        .14496E-03   -.84154E-04
  18  Prefactor     .10000E-03    12.745        .18142E-02** at limit **
  19  Prefactor     .95717        2.9069        .21505E-03    .49958E-04
  20  Prefactor     .10000E-03    15.877        .18142E-02** at limit **
  21  Prefactor     .10000E-03    15.943        .18142E-02** at limit **
  22  Prefactor     1.5131        191.95        .34919E-03   -.32102E-04
  23  Prefactor     5.0206        7.8801        .17949E-03    .53204E-05
  24  Normalizat    .91589        .20545        .24284E-03   -.29800E-03
  25  Prefactor     1.0938        .24101        .27359E-03   -.35457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100141
  norm       = 1.72757
  Prefactor  = 9.16973
  Prefactor  = 0.000100404
  Prefactor  = 0.000100011
  norm       = 13.1615
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5929
  Prefactor  = 3.58715
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.72548
  Prefactor  = 64.8562
  norm       = 0.155986
  norm       = 7.65232
  Prefactor  = 0.0001
  Prefactor  = 0.957168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.51306
  Prefactor  = 5.02058
  Normalizat = 0.915892
  Prefactor  = 1.09376
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.285     FROM HESSE     STATUS=OK           411 CALLS     3781 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10014E-03    73.574        .19543       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7276        .41483        .43581E-05   -1.5445    
   4  Prefactor     9.1697        17.546        .52933E-05   -1.5102    
   5  Prefactor     .10040E-03    97.291        .10817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    87.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.162        13.433        .44147E-05   -1.4982    
   8  norm          .10000E-03    17.255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2749        .33027E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.593        29.758        .41902E-05   -1.4944    
  11  Prefactor     3.5871        15.087        .42723E-04   -1.5329    
  12  norm          .10000E-03    .86099        .13666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4228        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7255        3.6725        .55854E-05   -1.5322    
  15  Prefactor     64.856        46.079        .99654E-05   -1.4096    
  16  norm          .15599        .95018        .53412E-05   -1.5629    
  17  norm          7.6523        10.371        .57982E-05   -1.5155    
  18  Prefactor     .10000E-03    12.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .95717        2.9061        .86020E-05   -1.5512    
  20  Prefactor     .10000E-03    15.877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5131        191.68        .13967E-04   -1.5462    
  23  Prefactor     5.0206        7.8790        .71796E-05   -1.5260    
  24  Normalizat    .91589        .20555        .48568E-04   -.95904    
  25  Prefactor     1.0938        .24121        .54718E-04   -.89666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25829e-09
Minuit parameter uncertainties:
  1  0.000421637
  2  0.00646066
  3  0.414829
  4  17.5562
  5  0.0125569
  6  0.0019863
  7  13.4362
  8  0.000141393
  9  1.89041e-05
  10  29.7884
  11  14.7192
  12  7.52902e-06
  13  7.46621e-05
  14  3.6727
  15  46.1039
  16  0.769744
  17  10.3731
  18  1.40203e-05
  19  2.90656
  20  6.82893e-05
  21  7.57573e-05
  22  34.1712
  23  7.88065
  24  0.205725
  25  0.241454
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  6.486e+01  4.610e+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:  1.094e+00  2.415e-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.159e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.38
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 6.88e-08 +/- 4.89e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/977543/likelihoodResults_240883201_241142401_4FGL_J1139.0+4033_daily_bin6.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) = 5770.14984727
delta logL = 0.134714464608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5770.13620052
delta logL = 0.148361212375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.823       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2155       1.0000          .0000       10.000    
     3 'Normalizat'    .88526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1204       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=   5770.136     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      262 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.823        444.60        .15496E-02    .20779E-03
   2  Index         3.2157        3.4802        .15462        .14174E-03
   3  Normalizat    .88448        .66940E-01    .44713E-01   -.11626E-03
   4  Prefactor     1.1214        .73408E-01    .61209E-01   -.35635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.8235
  Index      = 3.21567
  Normalizat = 0.884481
  Prefactor  = 1.12143
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.136     FROM HESSE     STATUS=OK            29 CALLS      291 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.823        73.808        .61986E-04   -1.4414    
   2  Index         3.2157        1.3300        .54747E-02   -.36491    
   3  Normalizat    .88448        .20905        .24654E-03   -.97008    
   4  Prefactor     1.1214        .24788        .27070E-03   -.88785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1227e-10
Minuit parameter uncertainties:
  1  73.9694
  2  1.34868
  3  0.209246
  4  0.248132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977543': 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): 0
logL (Free Index) = 5770.13619173
delta logL = 0.148370001014

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  4.182e+01  7.397e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.216e+00  1.349e+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.121e+00  2.481e-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.845e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.75
Ra Dec: 174.764 40.562
Photon Index (Free Index): 3.22 +/- 1.35
Photon Flux (Free Index): 8.90e-08 +/- 6.10e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.03e-05

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/977543/cmap_HighResolution_240883201_241142401_4FGL_J1139.0+4033_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='6.88e-08', energy_flux2='1.62e-05', photon_flux_error='4.89e-08', dlogl='1.48e-01', energy_flux='1.63e-05', photon_flux2='8.90e-08', job_status='DONE', time_completed='2021-09-04 06:52:22.883704', photon_index_error2='1.35', photon_index2='3.22', ts='3.38', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.03e-05', EG='0.92', time_epoch_completed='1630763542.88', return_code='0', job_id='977543', GAL2='1.12', EG2='0.88', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='6.10e-08', ts2='3.75', photon_index='2.72' WHERE bin_id='6' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 06:52:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 977543: <4FGL_J1139.0+4033_daily_bin6> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin6> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 06:36:19 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:36:22 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:36:22 2021
Terminated at Sat Sep  4 06:52:23 2021
Results reported at Sat Sep  4 06:52:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin6 174.764 40.5617 240883201 241142401 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 :                                   810.22 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             318.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

