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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin19
RA = 174.764, Dec = 40.5617
tmin = 244252801, tmax = 244512001
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='978712', job_status='RUN', time_executed='2021-09-04 06:45:22.254273', time_epoch_executed='1630763122.25' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978712/ft1_4FGL_J1139.0+4033_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978712/ft2_4FGL_J1139.0+4033_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978712/ft1_4FGL_J1139.0+4033_daily_bin19.fits outfile=/scratch/kocevski/978712/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin19.fits ra=174.764 dec=40.5617 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.40
user 2.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/978712/ft2_4FGL_J1139.0+4033_daily_bin19.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/978712/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin19.fits evtable="EVENTS" outfile="/scratch/kocevski/978712/ft1_filtered_4FGL_J1139.0+4033_daily_bin19.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978712/ft1_filtered_4FGL_J1139.0+4033_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/978712/ft2_4FGL_J1139.0+4033_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/978712/ltcube_244252801_244512001_4FGL_J1139.0+4033_daily_bin19.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/978712/ft2_4FGL_J1139.0+4033_daily_bin19.fits
.....................!
real 14.17
user 13.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978712/ft1_filtered_4FGL_J1139.0+4033_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/978712/ft2_4FGL_J1139.0+4033_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/978712/ltcube_244252801_244512001_4FGL_J1139.0+4033_daily_bin19.fits outfile=/scratch/kocevski/978712/expmap_244252801_244512001_4FGL_J1139.0+4033_daily_bin19.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/978712/ltcube_244252801_244512001_4FGL_J1139.0+4033_daily_bin19.fits
.....................!
real 194.29
user 187.75
sys 5.74

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/978712/ft1_filtered_4FGL_J1139.0+4033_daily_bin19.fits scfile=/scratch/kocevski/978712/ft2_4FGL_J1139.0+4033_daily_bin19.fits outfile=/scratch/kocevski/978712/cmap_244252801_244512001_4FGL_J1139.0+4033_daily_bin19.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978712/ft1_filtered_4FGL_J1139.0+4033_daily_bin19.fits scfile=/scratch/kocevski/978712/ft2_4FGL_J1139.0+4033_daily_bin19.fits outfile=/scratch/kocevski/978712/cmap_HighResolution_244252801_244512001_4FGL_J1139.0+4033_daily_bin19.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.675       1.0000         .10000E-03   10000.    
     3 'norm      '    .69530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.359       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.926       1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .26631       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4802       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5947       1.0000         .10000E-03   10000.    
    17 'norm      '    7.1677       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .67781       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.979       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.732       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1146       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .56362       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=   4650.528     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2899 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.776        .85683E-08** at limit **
   2  Prefactor     40.657        92.880       -.14639E-06   -.64612E-05
   3  norm          .69529        .25701       -.38590E-08    .12320E-03
   4  Prefactor     13.358        13.014       -.16228E-07    .83644E-05
   5  Prefactor     .10000E-03    5.0696       -.98471E-08** at limit **
   6  Prefactor     .10000E-03    35.152       -.50907E-07** at limit **
   7  norm          16.928        12.969       -.33532E-08    .10479E-04
   8  norm          .10000E-03    27.623        .11761E-06** at limit **
   9  Prefactor     .10000E-03    .99854       -.66891E-07** at limit **
  10  Prefactor     .10000E-03    36.502       -.30075E-06** at limit **
  11  Prefactor     .10000E-03    7.4495        .40146E-07** at limit **
  12  norm          .26592        1.6835        .63323E-06   -.16485E-03
  13  Prefactor     .10000E-03    32.287       -.15003E-08** at limit **
  14  Prefactor     .10000E-03    1.2209        .70211E-08** at limit **
  15  Prefactor     3.4023        114.66        .13369E-07   -.45244E-04
  16  norm          1.5953        1.7478       -.13797E-06    .40626E-03
  17  norm          7.1677        9.4792        .49213E-07    .29810E-04
  18  Prefactor     .10000E-03    28.768        .27136E-06** at limit **
  19  Prefactor     .67847        5.5334        .45764E-05   -.78218E-04
  20  Prefactor     28.972        63.749       -.12786E-05    .52613E-04
  21  Prefactor     22.740        30.084       -.49765E-05   -.18786E-03
  22  Prefactor     .10000E-03    61.543        .90455E-06** at limit **
  23  Prefactor     .10000E-03    1.8433        .24438E-07** at limit **
  24  Normalizat    1.1148        .17889        .11210E-05   -.25064E-03
  25  Prefactor     .56356        .20534       -.27175E-05    .28442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.6573
  norm       = 0.695287
  Prefactor  = 13.358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9279
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.265916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40235
  norm       = 1.59529
  norm       = 7.16768
  Prefactor  = 0.0001
  Prefactor  = 0.678467
  Prefactor  = 28.9718
  Prefactor  = 22.7403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11476
  Prefactor  = 0.563561
 **********
 **   18 **HESSE 
 **********

 FCN=   4650.528     FROM HESSE     STATUS=OK           419 CALLS     3318 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.657        93.056        .62851E-04   -1.4432    
   3  norm          .69529        .25761        .20066E-04   -1.5541    
   4  Prefactor     13.358        13.023        .10959E-03   -1.4977    
   5  Prefactor     .10000E-03    5.0725        .14993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.928        12.967        .97351E-04   -1.4885    
   8  norm          .10000E-03    27.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0238        .13282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.4718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .26592        1.6861        .16916E-03   -1.5605    
  13  Prefactor     .10000E-03    33.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2237        .73582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4023        114.55        .21675E-03   -1.5339    
  16  norm          1.5953        1.7238        .62399E-04   -1.5455    
  17  norm          7.1677        9.4743        .14983E-03   -1.5172    
  18  Prefactor     .10000E-03    29.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .67847        5.6727        .25726E-03   -1.5543    
  20  Prefactor     28.972        64.017        .74424E-04   -1.4631    
  21  Prefactor     22.740        30.211        .84011E-04   -1.4754    
  22  Prefactor     .10000E-03    61.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.8442        .90422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1148        .20351        .19763E-03   -.89279    
  25  Prefactor     .56356        .22992        .31582E-03   -1.0914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70926e-10
Minuit parameter uncertainties:
  1  6.3587e-07
  2  93.3913
  3  0.257605
  4  13.0253
  5  1.54261e-06
  6  4.15957e-05
  7  12.9689
  8  5.1567e-05
  9  2.06761e-07
  10  4.02811e-05
  11  6.23821e-07
  12  1.33901
  13  6.0214e-06
  14  2.27148e-07
  15  39.5662
  16  1.72383
  17  9.47625
  18  2.68785e-05
  19  3.92387
  20  64.1691
  21  30.2312
  22  0.000139418
  23  3.75383e-07
  24  0.203654
  25  0.230307
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.402e+00  3.957e+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:  5.636e-01  2.303e-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.115e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 9.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978712/likelihoodResults_244252801_244512001_4FGL_J1139.0+4033_daily_bin19.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) = 4650.52822055
delta logL = 0.000196139357286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4650.52810894
delta logL = 0.000307748372506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1416       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8007       1.0000          .0000       10.000    
     3 'Normalizat'    1.1144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56383       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=   4650.528     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      293 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1927        114.24        .11435E-02   -.12815E-04
   2  Index         2.8332        6.4086        .28955E-01   -.24072E-05
   3  Normalizat    1.1143        .19707        .19766E-03   -.69814E-04
   4  Prefactor     .56391        .22889        .31573E-03   -.26753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.19273
  Index      = 2.83316
  Normalizat = 1.11431
  Prefactor  = 0.563914
 **********
 **   18 **HESSE 
 **********

 FCN=   4650.528     FROM HESSE     STATUS=OK            27 CALLS      320 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1927        76.974        .45741E-04   -1.5351    
   2  Index         2.8332        3.7643        .11582E-02   -.44823    
   3  Normalizat    1.1143        .19738        .39532E-04   -.89294    
   4  Prefactor     .56391        .22897        .12629E-04   -1.0913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80527e-11
Minuit parameter uncertainties:
  1  31.3983
  2  4.45571
  3  0.197509
  4  0.229344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978712': 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) = 4650.52807062
delta logL = 0.000346067482496

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.193e+00  3.140e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.833e+00  4.456e+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:  5.639e-01  2.293e-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.114e+00  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/978712/cmap_HighResolution_244252801_244512001_4FGL_J1139.0+4033_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-09-04 06:56:54.654961', job_id='978712', GAL2='0.56', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630763814.66', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='3.46e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='19' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 06:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 978712: <4FGL_J1139.0+4033_daily_bin19> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin19> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 06:41:16 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:41: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:41:18 2021
Terminated at Sat Sep  4 06:56:55 2021
Results reported at Sat Sep  4 06:56:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin19 174.764 40.5617 244252801 244512001 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 :                                   691.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             259.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            939 sec.

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

